private void AddDatetoDateTextBox(HtmlGenericControl container) { using (HtmlGenericControl field = HtmlControlHelper.GetField()) { using (HtmlGenericControl iconInput = new HtmlGenericControl("div")) { iconInput.Attributes.Add("class", "ui icon input"); this.dateToDateTextBox = new DateTextBox(); this.dateToDateTextBox.ID = "DateToDateTextBox"; this.dateToDateTextBox.CssClass = "date"; this.dateToDateTextBox.Mode = this.DateToFrequencyType; this.dateToDateTextBox.Required = true; this.dateToDateTextBox.Catalog = this.Catalog; this.dateToDateTextBox.OfficeId = this.OfficeId; iconInput.Controls.Add(this.dateToDateTextBox); using (HtmlGenericControl icon = new HtmlGenericControl("i")) { icon.Attributes.Add("class", "icon calendar pointer"); icon.Attributes.Add("onclick", "$('#DateToDateTextBox').datepicker('show');"); iconInput.Controls.Add(icon); } field.Controls.Add(iconInput); container.Controls.Add(field); } } }
public static DateTextBox GetDateTextBox(string id, bool required) { using (var textBox = new DateTextBox()) { textBox.ID = id; textBox.Required = required; textBox.ClientIDMode = ClientIDMode.Static; textBox.Width = 100; return textBox; } }
public static MixERP.Net.WebControls.Common.DateTextBox GetDateTextBox(string id, bool required) { using (DateTextBox textBox = new DateTextBox()) { textBox.ID = id; textBox.Required = required; textBox.ClientIDMode = System.Web.UI.ClientIDMode.Static; textBox.Width = 100; return textBox; } }
protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (this.currentPeriodDateTextBox != null) { this.currentPeriodDateTextBox.Dispose(); this.currentPeriodDateTextBox = null; } if (this.previousPeriodDateTextBox != null) { this.previousPeriodDateTextBox.Dispose(); this.previousPeriodDateTextBox = null; } if (this.factorInputText != null) { this.factorInputText.Dispose(); this.factorInputText = null; } if (this.showButton != null) { this.showButton.Dispose(); this.showButton = null; } if (this.printButton != null) { this.printButton.Dispose(); this.printButton = null; } if (this.grid != null) { this.grid.RowDataBound -= this.Grid_RowDataBound; this.grid.DataBound -= this.Grid_DataBound; this.grid.Dispose(); this.grid = null; } this.disposed = true; }
protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (this.container != null) { this.container.Dispose(); this.container = null; } if (this.dateTextBox != null) { this.dateTextBox.Dispose(); this.dateTextBox = null; } this.disposed = true; }
private void Dispose(bool disposing) { if (!disposing) { return; } if (this.dateTextBox != null) { this.dateTextBox.Dispose(); this.dateTextBox = null; } this.disposed = true; }
private void AddDateTextBox(HtmlGenericControl fields) { using (HtmlGenericControl field = HtmlControlHelper.GetField()) { using (HtmlGenericControl label = new HtmlGenericControl()) { label.TagName = "label"; label.Attributes.Add("for", "ValueDateTextBox"); label.InnerText = Titles.ValueDate; field.Controls.Add(label); } this.dateTextBox = new DateTextBox(); this.dateTextBox.ID = "ValueDateTextBox"; this.dateTextBox.Mode = FrequencyType.Today; this.dateTextBox.Catalog = AppUsers.GetCurrentUserDB(); this.dateTextBox.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); field.Controls.Add(this.dateTextBox); fields.Controls.Add(field); } }
private HtmlGenericControl GetDateField(string labelText, DateTextBox dateTextBox) { using (HtmlGenericControl field = HtmlControlHelper.GetField()) { using (HtmlGenericControl label = HtmlControlHelper.GetLabel(labelText, dateTextBox.ID)) { field.Controls.Add(label); } using (HtmlGenericControl iconInput = new HtmlGenericControl("div")) { iconInput.Attributes.Add("class", ""); iconInput.Controls.Add(dateTextBox); using (HtmlGenericControl icon = new HtmlGenericControl("i")) { icon.Attributes.Add("class", "icon calendar pointer"); icon.Attributes.Add("onclick", string.Format(CultureInfo.InvariantCulture, "$('#{0}').datepicker('show');", dateTextBox.ID)); } field.Controls.Add(iconInput); } return field; } }
private void Dispose(bool disposing) { if (!disposing) { return; } if (this.accountOverviewTab != null) { this.accountOverviewTab.Dispose(); this.accountOverviewTab = null; } if (this.headerLiteral != null) { this.headerLiteral.Dispose(); this.headerLiteral = null; } if (this.itemCodeInputText != null) { this.itemCodeInputText.Dispose(); this.itemCodeInputText = null; } if (this.itemSelect != null) { this.itemSelect.Dispose(); this.itemSelect = null; } if (this.storeSelect != null) { this.storeSelect.Dispose(); this.storeSelect = null; } if (this.selectedValuesHidden != null) { this.selectedValuesHidden.Dispose(); this.selectedValuesHidden = null; } if (this.showButton != null) { this.showButton.Dispose(); this.showButton = null; } if (this.statementGridView != null) { this.statementGridView.Dispose(); this.statementGridView = null; } if (this.toDateTextBox != null) { this.toDateTextBox.Dispose(); this.toDateTextBox = null; } this.disposed = true; }
private void AddToDateTextBox(HtmlGenericControl container) { this.toDateTextBox = new DateTextBox(); this.toDateTextBox.ID = "ToDateTextBox"; this.toDateTextBox.Mode = FrequencyType.FiscalYearEndDate; this.toDateTextBox.Catalog = AppUsers.GetCurrentUserDB(); this.toDateTextBox.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); using (HtmlGenericControl field = this.GetDateField(Titles.To, this.toDateTextBox)) { container.Controls.Add(field); } }
private void AddDateField(HtmlGenericControl container) { using (HtmlGenericControl field = HtmlControlHelper.GetField()) { using (HtmlGenericControl label = HtmlControlHelper.GetLabel(Titles.Date, "DateTextBox")) { field.Controls.Add(label); } this.dateTextBox = new DateTextBox(); this.dateTextBox.ID = "DateTextBox"; this.dateTextBox.Mode = FrequencyType.FiscalYearEndDate; this.dateTextBox.Catalog = AppUsers.GetCurrentUserDB(); this.dateTextBox.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); field.Controls.Add(this.dateTextBox); container.Controls.Add(field); } }
private void Dispose(bool disposing) { if (!disposing) { return; } if (this.dateTextBox != null) { this.dateTextBox.Dispose(); this.dateTextBox = null; } if (this.itemCodeHidden != null) { this.itemCodeHidden.Dispose(); this.itemCodeHidden = null; } if (this.itemIdHidden != null) { this.itemIdHidden.Dispose(); this.itemIdHidden = null; } if (this.modeHidden != null) { this.modeHidden.Dispose(); this.modeHidden = null; } if (this.partyCodeHidden != null) { this.partyCodeHidden.Dispose(); this.partyCodeHidden = null; } if (this.partyCodeInputText != null) { this.partyCodeInputText.Dispose(); this.partyCodeInputText = null; } if (this.partyIdHidden != null) { this.partyIdHidden.Dispose(); this.partyIdHidden = null; } if (this.priceTypeIdHidden != null) { this.priceTypeIdHidden.Dispose(); this.priceTypeIdHidden = null; } if (this.productGridViewDataHidden != null) { this.productGridViewDataHidden.Dispose(); this.productGridViewDataHidden = null; } if (this.referenceNumberInputText != null) { this.referenceNumberInputText.Dispose(); this.referenceNumberInputText = null; } if (this.statementReferenceTextArea != null) { this.statementReferenceTextArea.Dispose(); this.statementReferenceTextArea = null; } if (this.salesPersonIdHidden != null) { this.salesPersonIdHidden.Dispose(); this.salesPersonIdHidden = null; } if (this.shipperIdHidden != null) { this.shipperIdHidden.Dispose(); this.shipperIdHidden = null; } if (this.shippingAddressCodeHidden != null) { this.shippingAddressCodeHidden.Dispose(); this.shippingAddressCodeHidden = null; } if (this.storeIdHidden != null) { this.storeIdHidden.Dispose(); this.storeIdHidden = null; } if (this.title != null) { this.title.Dispose(); this.title = null; } if (this.tranIdCollectionHidden != null) { this.tranIdCollectionHidden.Dispose(); this.tranIdCollectionHidden = null; } if (this.unitIdHidden != null) { this.unitIdHidden.Dispose(); this.unitIdHidden = null; } if (this.unitNameHidden != null) { this.unitNameHidden.Dispose(); this.unitNameHidden = null; } if (this.placeHolder != null) { this.placeHolder.Dispose(); this.placeHolder = null; } this.disposed = true; }
protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (this.valueDateTextBox != null) { this.valueDateTextBox.Dispose(); this.valueDateTextBox = null; } if (this.storeHiddenField != null) { this.storeHiddenField.Dispose(); this.storeHiddenField = null; } if (this.showButton != null) { this.showButton.Click -= this.ShowButton_Click; this.showButton.Dispose(); this.showButton = null; } if (this.grid != null) { this.grid.RowCreated -= this.Grid_RowCreated; this.grid.Dispose(); this.grid = null; } this.disposed = true; }
private void CreateValueDateField(HtmlGenericControl container) { using (HtmlGenericControl field = HtmlControlHelper.GetField()) { using (HtmlGenericControl label = HtmlControlHelper.GetLabel(Titles.ValueDate, "ValueDateTextBox")) { field.Controls.Add(label); } this.valueDateTextBox = new DateTextBox(); this.valueDateTextBox.ID = "ValueDateTextBox"; this.valueDateTextBox.Mode = FrequencyType.Today; this.valueDateTextBox.Catalog = AppUsers.GetCurrentUserDB(); this.valueDateTextBox.OfficeId = AppUsers.GetCurrentLogin().View.OfficeId.ToInt(); field.Controls.Add(this.valueDateTextBox); container.Controls.Add(field); } }
private void AddFromDateTextBoxField(HtmlGenericControl container) { using (HtmlGenericControl field = HtmlControlHelper.GetField()) { using (HtmlGenericControl label = HtmlControlHelper.GetLabel(Titles.From, "FromDateTextBox")) { field.Controls.Add(label); } this.fromDateTextBox = new DateTextBox(); this.fromDateTextBox.ID = "FromDateTextBox"; this.fromDateTextBox.Mode = FrequencyType.QuarterStartDate; this.fromDateTextBox.Catalog = AppUsers.GetCurrentUserDB(); this.fromDateTextBox.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); field.Controls.Add(this.fromDateTextBox); container.Controls.Add(field); } }