private void RenderLanaguageRow(ComponentController paComponentController, String paLanaguage) { LanguageRow lcLanguageRow; if ((lcLanguageRow = GetLanguageRow(paLanaguage)) != null) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDLanguage); paComponentController.AddAttribute(HtmlAttribute.Value, lcLanguageRow.Language); paComponentController.AddElementType(ComponentController.ElementType.InputRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, ctTYPLanguage); paComponentController.AddElementType(ComponentController.ElementType.Item); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSFlag); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetLanguageImageUrl(lcLanguageRow.FlagIcon)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLocalName); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(lcLanguageRow.LocalName); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); } }
private void RenderCanvasPanel(ComponentController paComponentController) { paComponentController.AddElementType(ComponentController.ElementType.Panel); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, ctPNLCanvas); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCanvasPanel); paComponentController.RenderBeginTag(HtmlTag.Div); RenderMoveButton(paComponentController, ctCLSMoveUpDiv, ctCMDMoveUp, Fontawesome.angle_up); RenderMoveButton(paComponentController, ctCLSResetDiv, ctCMDReset, Fontawesome.undo); RenderMoveButton(paComponentController, ctCLSMoveLeftDiv, ctCMDMoveLeft, Fontawesome.angle_left); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCanvasDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Width, ctCanvasWidth.ToString()); paComponentController.AddAttribute(HtmlAttribute.Height, ctCanvasHeight.ToString()); paComponentController.RenderBeginTag(HtmlTag.Canvas); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); RenderMoveButton(paComponentController, ctCLSMoveRightDiv, ctCMDMoveRight, Fontawesome.angle_right); RenderMoveButton(paComponentController, ctCLSZoomOutDiv, ctCMDZoomOut, Fontawesome.zoom_out); RenderMoveButton(paComponentController, ctCLSMoveDownDiv, ctCMDMoveDown, Fontawesome.angle_down); RenderMoveButton(paComponentController, ctCLSZoomInDiv, ctCMDZoomIn, Fontawesome.zoom_in); paComponentController.RenderEndTag(); }
private void RenderInputRow(ComponentController paComponentController, String paColumnName, String paLabel, String paInfoText, String paInputMode, int paMaxLength, bool paMandatory = false) { String lcLabel; lcLabel = clLanguageManager.GetText(paLabel); paComponentController.AddElementType(ComponentController.ElementType.InputRow); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.InputLabel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(lcLabel); paComponentController.RenderEndTag(); paComponentController.AddElementType(ComponentController.ElementType.InputBox); if (paMandatory) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mandatory, "true"); } paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, paColumnName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, lcLabel); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_InputMode, paInputMode); paComponentController.AddAttribute(HtmlAttribute.Maxlength, paMaxLength.ToString()); paComponentController.AddAttribute(HtmlAttribute.Value, paInfoText); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderItemGrid(ComponentController paComponentController) { SubControlMobileStoreFrontGridItem lcGridItem; lcGridItem = new SubControlMobileStoreFrontGridItem(); lcGridItem.IncludeExternalLinkFiles(paComponentController); lcGridItem.SC_LocalImagePath = SC_LocalImagePath; lcGridItem.SC_UniversalImagePath = SC_UniversalImagePath; paComponentController.AddElementType(ComponentController.ElementType.Container); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemContainer); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_TotalRows, clTotalRows.ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_TotalPages, clTotalPages.ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_PageIndex, "0"); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_PageSize, SC_PageSize.ToString()); paComponentController.AddElementType(ComponentController.ElementType.Grid); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemGridPanel); paComponentController.RenderBeginTag(HtmlTag.Div); foreach (DataRow lcRow in clDataTable.Rows) { lcGridItem.SetData(lcRow); lcGridItem.RenderChildMode(paComponentController); } paComponentController.RenderEndTag(); RenderAjaxLoaderDiv(paComponentController); RenderDetailOverlayDiv(paComponentController); 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 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 RenderBrowserMode(ComponentController paComponentController) { IncludeExternalLinkFiles(paComponentController); if (!String.IsNullOrEmpty(clFilterName)) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LinkColumn, clFilterName.ToLower()); } paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, clPanelType); paComponentController.AddElementType(ComponentController.ElementType.PopUp); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, clPanelAppearance); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlSelectionPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementType(ComponentController.ElementType.Overlay); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, clPanelType.ToLower()); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPanelOverlay); paComponentController.RenderBeginTag(HtmlTag.Div); RenderPanelArea(paComponentController); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderReceiptBlock(ComponentController paComponentController, DataRow[] paReceiptDetailList) { POSReceiptDetailRow lcReceiptDetailRow; int lcReceiptID; paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSReceiptBlock); paComponentController.AddElementType(ComponentController.ElementType.Block); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDShowDetail); paComponentController.RenderBeginTag(HtmlTag.Div); if (paReceiptDetailList.Length > 0) { lcReceiptDetailRow = new POSReceiptDetailRow(paReceiptDetailList[0]); lcReceiptID = lcReceiptDetailRow.ReceiptID; RenderReceiptBlockHeader(paComponentController, lcReceiptDetailRow); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemContainer); paComponentController.RenderBeginTag(HtmlTag.Div); for (int lcCount = 0; lcCount < paReceiptDetailList.Length; lcCount++) { lcReceiptDetailRow.Row = paReceiptDetailList[lcCount]; RenderReceiptItem(paComponentController, lcReceiptDetailRow); } paComponentController.RenderEndTag(); RenderReceiptBlockFooter(paComponentController, lcReceiptID); } paComponentController.RenderEndTag(); }
private void RenderBrowserMode(ComponentController paComponentController) { IncludeExternalLinkFiles(paComponentController); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPopUpInputComposite); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Language, clLanguageManager.ActiveRow.Language.ToLower()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, clTypeID); paComponentController.AddElementType(ComponentController.ElementType.PopUp); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPopUpInput); paComponentController.AddElementType(ComponentController.ElementType.Panel); paComponentController.RenderBeginTag(HtmlTag.Div); RenderInfoContainer(paComponentController); RenderButtonPanel(paComponentController); if (clMessageBar) { RenderMessageBar(paComponentController); } 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 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 RenderBrowserMode(ComponentController paComponentController) { IncludeExternalLinkFiles(paComponentController); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPOSPopUpReceiptDetailComposite); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, clTypeID); if (clAllowProfitLossView) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, "profitloss"); } paComponentController.AddElementType(ComponentController.ElementType.PopUp); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPOSPopUpReceiptDetail); paComponentController.AddElementType(ComponentController.ElementType.Panel); paComponentController.RenderBeginTag(HtmlTag.Div); RenderTitleBar(paComponentController); RenderContainer(paComponentController); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderBrowserMode(ComponentController paComponentController) { IncludeExternalLinkFiles(paComponentController); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPOSKeyPad); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, clKeyPadName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Language, clLanguageManager.ActiveRow.Language.ToLower()); paComponentController.AddElementType(ComponentController.ElementType.Composite); paComponentController.RenderBeginTag(HtmlTag.Div); if ((clKeyPadManager = new KeyPadManager(clKeyPadName)) != null) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPrimaryPanel); paComponentController.RenderBeginTag(HtmlTag.Div); RenderTopKeyBar(paComponentController); RenderLCDPanelBar(paComponentController); RenderKeyPad(paComponentController); paComponentController.RenderEndTag(); RenderBottomKeyBar(paComponentController); } paComponentController.RenderEndTag(); }
private void RenderImageListContainer(ComponentController paComponentController) { String[] lcImageFileList; String[] lcBackgroundCSSList; paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSImageListContainer); paComponentController.AddElementType(ComponentController.ElementType.List); paComponentController.RenderBeginTag(HtmlTag.Div); if ((lcBackgroundCSSList = GetBackgroundCSSList()).Length > 0) { for (int lcCount = 0; lcCount < lcBackgroundCSSList.Length; lcCount++) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDPopUpImageClick); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_desktopbackgroundcss, lcBackgroundCSSList[lcCount]); paComponentController.AddAttribute(HtmlAttribute.Src, ctTransparentImage.ToLower()); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); } } if ((lcImageFileList = GetImageFileList()) != null) { for (int lcCount = 0; lcCount < lcImageFileList.Length; lcCount++) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDPopUpImageClick); paComponentController.AddAttribute(HtmlAttribute.Src, (ctPTHImageServerPath + Path.GetFileName(lcImageFileList[lcCount])).ToLower()); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); } } paComponentController.RenderEndTag(); }
private void RenderButtonPanel(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonPanel); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEditButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDEdit); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOEditButton)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSDeleteButtonDiv); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDDelete); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICODeleteButton)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); 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 RenderMinuteWidget(ComponentController paComponentController, ViewWidgetSubscriptionRow paWidgetSubscriptionRow) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSMinuteIcon); paComponentController.AddAttribute(HtmlAttribute.Src, paWidgetSubscriptionRow.Icon); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); }
private void RenderSlidSelectionRow(ComponentController paComponentController, String paColumnName, String paName, String paLabel) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "slideselection"); 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_ColumnName, paColumnName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, paName.ToLower()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDShowPopUp); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSlideSelectionContainer); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.ReadOnly, "readonly"); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderBrowserMode(ComponentController paComponentController) { IncludeExternalLinkFiles(paComponentController); clItemList = DynamicQueryManager.GetInstance().GetDataTableResult(ctDQYRetrieveItemList); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPOSItemPanelComposite); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "itempanel"); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, clPriceMode.ToString().ToLower()); // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Edition, clEdition.ToString().ToLower()); paComponentController.AddElementType(ComponentController.ElementType.Composite); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DisplayMode, clTransactionSetting.GetData(ctKEYItemPanelDisplayMode, "price").ToLower()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, "list"); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Root, clLanguageManager.GetText(ctTXTRootCategory)); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSubControlPOSItemPanel); paComponentController.AddElementType(ComponentController.ElementType.Panel); paComponentController.RenderBeginTag(HtmlTag.Div); RenderHeaderBar(paComponentController); RenderComponentContainer(paComponentController); 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 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 RenderInputBoxRow(ComponentController paComponentController, String paColumnName, String paName, String paLabel, int paMaxLength) { if (paMaxLength <= 0) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Hidden, "true"); } paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "input"); 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.AddElementType(ComponentController.ElementType.InputBox); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, paColumnName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, paName.ToLower()); paComponentController.AddAttribute(HtmlAttribute.Maxlength, paMaxLength.ToString()); paComponentController.AddAttribute(HtmlAttribute.Type, "text"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
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(); } }
protected virtual void RenderMessageDiv(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSMessageContent); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ComponentID, ctIDMessageContent); paComponentController.AddAttribute(HtmlAttribute.Id, ctIDMessageContent); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.RenderEndTag(); }
private void RenderToolButton(ComponentController paComponentController, String paButtonCommand, Fontawesome paButtonIcon) { paComponentController.AddAttribute(HtmlAttribute.Href, paButtonCommand); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSToolButton); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(ComponentController.UnicodeStr((int)paButtonIcon)); paComponentController.RenderEndTag(); }
protected void RenderFileInputElement(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSFileInput); paComponentController.AddAttribute(HtmlAttribute.Type, "file"); paComponentController.AddAttribute(HtmlAttribute.Accept, "image/*"); paComponentController.RenderBeginTag(HtmlTag.Input); paComponentController.RenderEndTag(); }
protected void RenderCreateAccountButton(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCreateAccountButton); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Parameter, ctPRMCreateAccountParam); paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDCreateAccount); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.Write(SC_CreateAccountButtonText); paComponentController.RenderEndTag(); }
protected void RenderLogOutButton(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSLogOutButton); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDLogOut); paComponentController.RenderBeginTag(HtmlTag.A); paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOLogOut)); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderEndTag(); }
private void RenderDetailImageDiv(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoImage); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Src, GetImage()); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); 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(); }