private void RenderInfoGroupElement(ComponentController paComponentController, String paInfoLabel, MetaDataElement paMetaDataElement) { if ((paMetaDataElement != null) && (paMetaDataElement.ValueCount > 0)) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paInfoLabel); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, clCLSInfoData); paComponentController.RenderBeginTag(HtmlTag.Div); for (int lcCount = 0; lcCount < paMetaDataElement.ValueCount; lcCount++) { paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(paMetaDataElement[lcCount].Replace(".", " ")); paComponentController.RenderEndTag(); } paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); } }
private void RenderSelectionInputRow(ComponentController paComponentController, String paName, String paLabel, String paCommand = null) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "selectioninputrow"); paComponentController.AddElementType(ComponentController.ElementType.InputRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.InputLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(paLabel)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInputDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, paCommand); paComponentController.AddElementType(ComponentController.ElementType.Button); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.ellipsis_h)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.ReadOnly, HtmlAttribute.ReadOnly.ToString()); paComponentController.AddElementType(ComponentController.ElementType.InputBox); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "selection"); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, paCommand); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctSETReceiptLayoutSetting); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, paName); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderReceiptEntry(ComponentController paComponentController, POSReceiptListRow paReceiptListRow) { paComponentController.AddElementType(ComponentController.ElementType.Element); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDSelectReceipt); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, paReceiptListRow.ReceiptID.ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paReceiptListRow.ReceiptType.ToLower()); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSElement); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLReceiptNo); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(ctReceiptNoPrefix + paReceiptListRow.ReceiptNo.ToString().PadLeft(6, '0'))); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLReceiptDate); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paReceiptListRow.ReceiptDate.ToString(clSettingManager.DateFormatString))); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLName); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paReceiptListRow.Name); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLReceiptAmount); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_CurrencyCode, clSettingManager.CurrencyCode); paComponentController.AddAttribute(HtmlAttribute.Value, paReceiptListRow.ReceiptAmount.ToString(clSettingManager.BareCurrencyFormatString)); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paReceiptListRow.ReceiptAmount.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); RenderButtonPanel(paComponentController); paComponentController.RenderEndTag(); }
private void RenderNumberInputBoxRow(ComponentController paComponentController, String paName, String paLabel, String paInputMode, String paSuffix, int paMaxLength, decimal paLowerBound, decimal paUpperBound) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "numberinputrow"); paComponentController.AddElementType(ComponentController.ElementType.InputRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.InputLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(paLabel)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "unit"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paSuffix); paComponentController.RenderEndTag(); paComponentController.AddElementType(ComponentController.ElementType.InputBox); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctSETReceiptLayoutSetting); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, paName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_InputMode, paInputMode); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paSuffix); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_UpperBound, paUpperBound.ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LowerBound, paLowerBound.ToString()); paComponentController.AddAttribute(HtmlAttribute.Maxlength, paMaxLength.ToString()); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderHeaderBar(ComponentController paComponentController) { paComponentController.AddElementType(ComponentController.ElementType.ControlBar); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHeaderBar); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDPrevDay); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.caret_left)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDShowCalendar); paComponentController.AddElementType(ComponentController.ElementType.DateBox); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(General.GetCurrentSystemLocalTime().ToString(clSettingManager.DateFormatString)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDNextDay); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.caret_right)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDSearch); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.search)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderButtonPanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAddButton); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDUpdate); paComponentController.RenderBeginTag(HtmlTag.A); if (clTableListRow == null) { paComponentController.Write(clLanguageManager.GetText(SC_AddButtonText)); } else { paComponentController.Write(clLanguageManager.GetText(SC_UpdateButtonText)); } paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCloseButton); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDClose); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(clLanguageManager.GetText(SC_CloseButtonText)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderHeaderRow(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHeaderRow); paComponentController.AddElementType(ComponentController.ElementType.Row); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "date"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTRowHeaderDate)); paComponentController.RenderEndTag(); if (clAllowProfitLossView) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "profit"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTRowheaderProfit)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "cost"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTRowHeaderTotalCost)); paComponentController.RenderEndTag(); } paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "amount"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTRowHeaderTotalAmount)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderButtonPanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAddButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDUpdate); paComponentController.RenderBeginTag(HtmlTag.A); if (clMetaDataRow.ActiveRow == null) { paComponentController.Write(SC_AddButtonText); } else { paComponentController.Write(SC_UpdateButtonText); } paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCloseButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDClose); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_CloseButtonText); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderPricingDiv(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPricingDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPriceLabelDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_SetupFeeLabel); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAmountDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_WidgetRow.SetupFee.ToString("F0")); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPriceLabelDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_SubscriptionFeeLabel); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAmountDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_WidgetRow.SubscriptionFee.ToString("F0")); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRemarkDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_Remark); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderTitlePanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitlePanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSImageContainer); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSImage); paComponentController.AddAttribute(HtmlAttribute.Src, SC_WidgetRow.Icon); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); // Image Container paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTextContainer); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSNameDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_WidgetRow.DisplayName); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSBriefDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_WidgetRow.BriefDescription); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); // Text Container paComponentController.RenderEndTag(); // Title Panel }
private void RenderButtonPanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSResetButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDReset); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ctDEFResetButtonText); paComponentController.RenderEndTag(); if (clPanelMode == PanelMode.Sort) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSearchButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDSort); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ctDEFSortButtonText); paComponentController.RenderEndTag(); } else { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSearchButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDSearch); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ctDEFSearchButtonText); paComponentController.RenderEndTag(); } paComponentController.RenderEndTag(); }
private void RenderTitleBar(ComponentController paComponentController) { paComponentController.AddElementType(ComponentController.ElementType.Title); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleBar); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDPrinterStatus); paComponentController.AddElementType(ComponentController.ElementType.StatusControl); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "icon"); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOPrinter)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "ajax"); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetAjaxLoaderImageUrl(ctAJAXSquares)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(clLanguageManager.GetText(ctDYTReceiptListTitle)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDFormClose); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.remove)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderRefreshBar(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRefreshBar); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSStatusDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTimerDiv); paComponentController.AddElementType(ComponentController.ElementType.Timer); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(SC_RefreshTimeOut.ToString().PadLeft(2, '0') + ":00"); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAjaxImage); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetAjaxLoaderImageUrl(ctAJAXBigCircle)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLastUpdateDiv); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(General.GetCurrentSystemLocalTime().ToString("HH:mm")); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); RenderRefrehBarButton(paComponentController, ctICORefresh, 0, true); paComponentController.RenderEndTag(); }
private void RenderEntryRow(ComponentController paComponentController, DateTime paDate, Decimal paTotalAmount, Decimal paTotalCost) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRow); paComponentController.AddElementType(ComponentController.ElementType.Row); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "date"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paDate.ToString(clSettingManager.DateFormatString))); paComponentController.RenderEndTag(); if (clAllowProfitLossView) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "profit"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber((paTotalAmount + paTotalCost).ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "cost"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paTotalCost.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); } paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "amount"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paTotalAmount.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderInputTextAreaRow(ComponentController paComponentController, String paColumnName, String paLabel, String paInfoText, String paInputMode, int paMaxLength) { String lcLabel; lcLabel = clLanguageManager.GetText(paLabel); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, "textarea"); paComponentController.AddElementType(ComponentController.ElementType.InputRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.InputLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(lcLabel); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, paColumnName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, lcLabel); paComponentController.AddElementType(ComponentController.ElementType.InputBox); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_InputMode, paInputMode); paComponentController.AddAttribute(HtmlAttribute.Maxlength, paMaxLength.ToString()); paComponentController.RenderBeginTag(HtmlTag.Textarea); paComponentController.Write(paInfoText); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderItemRow(ComponentController paComponentController, POSItemCatalogueRow paItemRow) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemRow); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paItemRow.EntryAttribute.ToLower().Trim() + paItemRow.EntryType.ToLower()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, paItemRow.ItemID.ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDShowCategory); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_UnitRelationship, paItemRow.UnitRelationship.ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MajorUnitName, paItemRow.MajorUnitName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MinorUnitName, paItemRow.MinorUnitName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ItemText, paItemRow.ItemName); paComponentController.AddElementType(ComponentController.ElementType.Row); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.Label); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(paItemRow.ItemName); paComponentController.RenderEndTag(); paComponentController.AddElementType(ComponentController.ElementType.Figure); paComponentController.RenderBeginTag(HtmlTag.Span); if (!String.IsNullOrEmpty(paItemRow.ItemCode.Trim())) { paComponentController.Write(paItemRow.ItemCode); } paComponentController.RenderEndTag(); if ((clAllowStaffInventoryFeature) || (clAdminUser)) { RenderButtonPanel(paComponentController); } paComponentController.RenderEndTag(); }
private void RenderButtonPanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSUpdateButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDCreate); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_CreateButtonText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCancelButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDCancel); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_CancelButtonText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSBackButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDBack); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_BackButtonText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSConfirmButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDConfirm); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_ConfirmButtonText); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
protected void RenderButtonPanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSelectButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDSelect); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_SelectButtonText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSUploadButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDUpload); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_UploadButtonText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSDeleteButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDDelete); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_DeleteButtonText); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderReceiptItem(ComponentController paComponentController, POSReceiptDetailRow paReceiptDetailRow) { Decimal lcProfit; if ((clTypeID == ctTIDSale) && (clSettingManager.Edition != SettingManager.EditionType.Cash_Register)) { if ((paReceiptDetailRow.EntryAttribute != ctATTStatic) && (paReceiptDetailRow.DisplayQuantity > paReceiptDetailRow.RelativeBlance)) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, "shortsell"); } } paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEntryRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSDescription); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paReceiptDetailRow.Description); paComponentController.RenderEndTag(); if ((clTypeID == ctTIDSale) && (clAllowProfitLossView)) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSellPrice); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paReceiptDetailRow.TotalAmount.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCost); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paReceiptDetailRow.TotalCost.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); lcProfit = paReceiptDetailRow.TotalAmount + paReceiptDetailRow.TotalCost; paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSProfit); if (lcProfit < 0) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, "negative"); } else if (lcProfit > 0) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, "positive"); } paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(clLanguageManager.ConvertNumber(lcProfit.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); } else { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSProfit); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.ConvertNumber(paReceiptDetailRow.TotalAmount.ToString(clSettingManager.CurrencyFormatString))); paComponentController.RenderEndTag(); } paComponentController.RenderEndTag(); }
private void RenderLogInIDDiv(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLogInID); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.InputLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTLogInID)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Maxlength, ctMaxLength.ToString()); paComponentController.AddElementType(ComponentController.ElementType.InputBox); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); if (clUserRow != null) { paComponentController.AddAttribute(HtmlAttribute.Value, clUserRow.LoginID); } paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTInfoText)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderRejectReasonPopUp(ComponentController paComponentController) { String[] lcRejectReasonsList; // lcRejectReasonsList = ApplicationFrame.GetInstance().ActiveSubscription.GetRejectReasonList(); lcRejectReasonsList = null; paComponentController.AddElementType(ComponentController.ElementType.PopUp); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectPopUp); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectTitleDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_RejectPopUpTitle); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectOptionPanel); paComponentController.RenderBeginTag(HtmlTag.Div); for (int lcCount = 0; lcCount < lcRejectReasonsList.Length; lcCount++) { paComponentController.AddAttribute(HtmlAttribute.Name, ctRejectReasonName); paComponentController.AddAttribute(HtmlAttribute.Id, ctRejectReasonName + lcCount.ToString()); paComponentController.AddAttribute(HtmlAttribute.Type, "radio"); paComponentController.AddAttribute(HtmlAttribute.Value, lcRejectReasonsList[lcCount]); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.For, ctRejectReasonName + lcCount.ToString()); paComponentController.RenderBeginTag(HtmlTag.Label); paComponentController.Write(lcRejectReasonsList[lcCount]); paComponentController.RenderEndTag(); } paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDRejectProceed); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_RejectPopUpOkButtonText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCancelButton); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDRejectCancel); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_RejectPopUpCancelButtonText); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderOrderHeading(ComponentController paComponentController, OrderInfoRow paOrderInfoRow, int paTotalQuantity) { if ((paTotalQuantity <= 0) || (paOrderInfoRow.OrderStatus < 0)) { if (paOrderInfoRow.OrderStatus == (int)OrderInfoManager.OrderUniversalStatus.Reject) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, "reject"); } else { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, "cancel"); } } paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSOrderHeadingDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHeadingText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paOrderInfoRow.OrderNo.ToString().PadLeft(6, '0')); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSIconDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ctFASClock); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHeadingText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paOrderInfoRow.OrderDate.ToString("dd/MM/yyyy")); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "status"); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSIconDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ctFASInfoCycle); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "status"); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHeadingText); paComponentController.RenderBeginTag(HtmlTag.Div); // paComponentController.Write(ApplicationFrame.GetInstance().ActiveSubscription.GetOrderStatusText(paOrderInfoRow.OrderStatus)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDEditOrder); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOEditPencil)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
protected void RenderItemInfo(ComponentController paComponentController) { int lcPrice; int lcUsualPrice; lcPrice = clMetaDataRow.ActiveData.GetIntData(ctMETAPrice, 0); lcUsualPrice = clMetaDataRow.ActiveData.GetIntData(ctMETAUsualPrice, 0); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSNetworkDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clMetaDataRow.ActiveData.GetData(ctMETAKind, String.Empty)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSDescriptionDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clMetaDataRow.ActiveData.GetData(ctMETADescription1, String.Empty) + "<br/>" + clMetaDataRow.ActiveData.GetData(ctMETADescription2, String.Empty)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSUsualPriceDiv); paComponentController.RenderBeginTag(HtmlTag.Div); if ((lcUsualPrice != 0) && (lcUsualPrice > lcPrice)) { paComponentController.Write(ctDEFCurrency + " " + lcUsualPrice.ToString("N0")); } paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSeparatorDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSeparator); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetSystemImageUrl(ctDashImage)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPriceDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ctDEFCurrency); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPriceFigure); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(lcPrice.ToString("N0")); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
protected void RenderPasswordDiv(ComponentController paComponentController) { paComponentController.AddElementType(ComponentController.ElementType.Container); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPasswordDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCloseButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDClosePassword); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.remove)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLabelDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTPasswordMessage)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPasswordInputDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_InputMode, "number"); paComponentController.AddAttribute(HtmlAttribute.Type, "password"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSVerifyButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDVerifyPassword); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICORightChevron)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.AddElementType(ComponentController.ElementType.AjaxLoaderStatusDisplay); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetAjaxLoaderImageUrl(ctAJAXIndicatorBig)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddElementType(ComponentController.ElementType.StatusControl); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSStatusDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderEditingButtons(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonBar); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditingButton); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDDeleteOrder); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOBin)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditingButtonText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_DeleteText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditingButton); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDUpdateOrder); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOTickButton)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditingButtonText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_UpdateText); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditingButton); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDBack); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOBack)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditingButtonText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_CloseText); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderCustomerAddressPanel(ComponentController paComponentController, OrderInfoRow paOrderInfoRow) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCustomerInfoPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSBriefInfoDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSNameDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paOrderInfoRow.Name); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSContactNoDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paOrderInfoRow.ContactNo); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSShortAddressDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(UILogic.CompileShortAddress(paOrderInfoRow.Row)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDShowDetail); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICODownChevron)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDHideDetail); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOUpChevron)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCompleteInfoDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(UILogic.CompileAddress(paOrderInfoRow.Row)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderTableGroupTitle(ComponentController paComponentController, POSTableListRow paTableGroupRow) { if (paTableGroupRow != null) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTableGroupTitle); paComponentController.AddElementType(ComponentController.ElementType.Title); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRefreshButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDRefresh); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.refresh)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paTableGroupRow.DisplayName); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); } else { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTableGroupTitle); paComponentController.AddElementType(ComponentController.ElementType.Title); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRefreshButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDRefresh); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.refresh)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleText); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); } }
private void RenderLogoImageInput(ComponentController paComponentController) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "imagerow"); paComponentController.AddElementType(ComponentController.ElementType.InputRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.InputLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(clLanguageManager.GetText(ctDYTReceiptLogo)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctSETReceiptCustomization); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, ctKEYRenderLogo); paComponentController.AddElementType(ComponentController.ElementType.Panel); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLogoImageDiv); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "logoimage"); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.Wrapper); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSImageWrapperDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctSETReceiptCustomization); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, ctKEYLogoName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, ctTYPLogoName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Path, UploadManager.GetInstance().UploadPath); paComponentController.AddAttribute(HtmlAttribute.Value, UploadManager.GetInstance().ReceiptLogoFileName); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDOpenImagePopUp); paComponentController.AddElementType(ComponentController.ElementType.Button); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.picture)); paComponentController.RenderEndTag(); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDSuppressImage); paComponentController.AddElementType(ComponentController.ElementType.Button); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.ban_circle)); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderConfirmationTitle(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSConfirmationTitle); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(SC_ConfirmationTitle); paComponentController.RenderEndTag(); }
private void RenderUsualPriceDiv(ComponentController paComponentController, MetaDataRow paMetaDataRow) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSUsualPriceDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(paMetaDataRow.ActiveData.GetMultiColumnData(SC_UsualPriceText, String.Empty)); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInputDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, SC_UsualPriceColumnName.ToLower()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_OriginalValue, paMetaDataRow.ActiveData.GetData(SC_UsualPriceColumnName, String.Empty)); paComponentController.AddAttribute(HtmlAttribute.Value, paMetaDataRow.ActiveData.GetData(SC_UsualPriceColumnName, String.Empty)); paComponentController.AddAttribute(HtmlAttribute.Maxlength, SC_MaxLength.ToString()); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }