Exemplo n.º 1
0
        private void RenderFloatButtonBar(ComponentController paComponentController)
        {
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSFloatButtonBar);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, ((int)OrderInfoManager.OrderUniversalStatus.Reject).ToString());
            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDRejectOrder);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOCross));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();


            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, ((int)OrderInfoManager.OrderUniversalStatus.Processing).ToString());
            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDChangeOrderState);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOProcessing));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, ((int)OrderInfoManager.OrderUniversalStatus.Shipping).ToString());
            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDChangeOrderState);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOShipping));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, ((int)OrderInfoManager.OrderUniversalStatus.Delivered).ToString());
            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDChangeOrderState);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICODelivered));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        protected void RenderSummaryBar(ComponentController paComponentController)
        {
            paComponentController.AddElementType(ComponentController.ElementType.Summary);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSummary);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "quantity");
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementType(ComponentController.ElementType.Quantity);
            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.RenderEndTag();

            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.Write(clLanguageManager.GetText(ctDYTTotalQuantityText));
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "total");
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_CurrencyCode, clSettingManager.CurrencyCode);
            paComponentController.AddElementType(ComponentController.ElementType.Total);
            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Exemplo n.º 4
0
        protected void RenderBrowserMode(ComponentController paComponentController)
        {
            IncludeExternalLinkFiles(paComponentController);

            clReceiptList = ApplicationFrame.GetInstance().ActiveFormInfoManager.RunRetrieveQuery();

            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Template, ctTPLEditReceipt);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LowerBound, GetLowerBoundDays().ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_UpperBound, GetUpperBoundDays().ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Edition, clEdition.ToString().ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Filter, ctDefaultType);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSReceiptList);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderTitleBar(paComponentController);
            RenderHeaderBar(paComponentController);
            SCI_ParentForm.RenderToolBar(paComponentController);
            RenderReceiptContainer(paComponentController);
            RenderSummaryBar(paComponentController);
            RenderNoReceiptDiv(paComponentController);

            paComponentController.RenderEndTag();

            RenderExternalComponentsContainer(paComponentController);
        }
Exemplo n.º 5
0
        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();
        }
Exemplo n.º 6
0
        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();
        }
Exemplo n.º 7
0
        private void RenderMessageRepositoryDiv(ComponentController paComponentController)
        {
            DataTable  lcMessageList;
            MessageRow lcMessageRow;

            if ((lcMessageList = RetrieveMessageList()) != null)
            {
                lcMessageRow = new MessageRow(null);

                paComponentController.AddElementType(ComponentController.ElementType.MessageRepository);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSMessageRepositoryDiv);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                for (int lcCount = 0; lcCount < lcMessageList.Rows.Count; lcCount++)
                {
                    lcMessageRow.Row = lcMessageList.Rows[lcCount];

                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Code, lcMessageRow.MessageCode.ToLower());
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Button1, lcMessageRow.Button1);
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Button2, lcMessageRow.Button2);
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Title, lcMessageRow.Title);
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, lcMessageRow.MessageType.ToLower());
                    paComponentController.RenderBeginTag(HtmlTag.Span);
                    paComponentController.Write(lcMessageRow.Message);
                    paComponentController.RenderEndTag();
                }

                paComponentController.RenderEndTag();
            }
        }
Exemplo n.º 8
0
        protected virtual void RenderBrowserMode(ComponentController paComponentController)
        {
            paComponentController.AddElementType(ComponentController.ElementType.AjaxLoaderPopUp);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Default, SC_DefaultStatusText);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCompositeAjaxLoaderPopUp);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPopUp);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTextDiv);
            paComponentController.AddElementType(ComponentController.ElementType.AjaxLoaderStatusDisplay);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write("Testing....");
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAjaxImageDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSAjaxImage);
            paComponentController.AddAttribute(HtmlAttribute.Src, AjaxManager.GetInstance().GetAjaxLoaderImageUrl(SC_AjaxLoaderImage));
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_GifDisplayMode, "inline-block");
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Exemplo n.º 9
0
        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();
        }
Exemplo n.º 10
0
        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();
        }
Exemplo n.º 11
0
        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();
            }
        }
Exemplo n.º 12
0
        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();
        }
Exemplo n.º 13
0
        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();
        }
Exemplo n.º 14
0
        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();
        }
Exemplo n.º 15
0
        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();
        }
Exemplo n.º 16
0
        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();
        }
Exemplo n.º 17
0
        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();
        }
Exemplo n.º 18
0
        private void RenderItemButtons(ComponentController paComponentController, OrderDetailRow paOrderDetailRow)
        {
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemButtonPanel);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDAddQuantity);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOPlusButton));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_InputMode, "number");
            paComponentController.AddElementType(ComponentController.ElementType.Quantity);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLQuantity);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_OriginalValue, paOrderDetailRow.Quantity.ToString());
            paComponentController.AddAttribute(HtmlAttribute.Maxlength, SC_InputLimit.ToString());
            paComponentController.AddAttribute(HtmlAttribute.ReadOnly, "true");
            paComponentController.AddAttribute(HtmlAttribute.Type, "text");
            paComponentController.AddAttribute(HtmlAttribute.Value, paOrderDetailRow.Quantity.ToString());
            paComponentController.RenderBeginTag(HtmlTag.Input);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDSubQuantity);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOMinusButton));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Exemplo n.º 19
0
        private void RenderOrderEntry(ComponentController paComponentController, OrderInfoRow paOrderInfoRow, DataRow[] paOrderDetail)
        {
            int     lcTotalQuantity;
            Decimal lcTotalAmount;

            CalculateOrderDetailSummary(paOrderInfoRow, paOrderDetail, out lcTotalQuantity, out lcTotalAmount);

            if ((paOrderInfoRow.OrderStatus != (int)OrderInfoManager.OrderUniversalStatus.Submitted) &&
                (paOrderInfoRow.OrderStatus != (int)OrderInfoManager.OrderUniversalStatus.Requested))
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ReadOnlyMode, "true");
            }

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, paOrderInfoRow.OrderNo.ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, paOrderInfoRow.OrderStatus.ToString());
            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSOrderDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderOrderHeading(paComponentController, paOrderInfoRow, lcTotalQuantity);
            RenderBriefDescriptionDiv(paComponentController, paOrderInfoRow, paOrderDetail, lcTotalQuantity, lcTotalAmount);
            RenderEditingPanel(paComponentController, paOrderInfoRow, paOrderDetail, lcTotalQuantity, lcTotalAmount);


            //paComponentController.AddAttribute(HtmlAttribute.Class, ctHea);
            //paComponentController.RenderBeginTag(HtmlTag.Div);
            //paComponentController.Write(ctFASInfoCycle);
            //paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Exemplo n.º 20
0
        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();
        }
Exemplo n.º 21
0
        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();
        }
Exemplo n.º 22
0
        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();
        }
Exemplo n.º 23
0
        protected void RenderSummaryBlock(ComponentController paComponentController, String paBlockTitle, object[,] paInfoBlockRow, String paBlockType, String paPopUpTitle, DataTable paDataTable)
        {
            if (paDataTable.Rows.Count > 0)
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_AdditionalData, "true");
            }

            paComponentController.AddElementType(ComponentController.ElementType.Block);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paBlockType);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSummaryBlock);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderSummaryBlockHeader(paComponentController, paBlockTitle);

            for (int lcCount = 0; lcCount < paInfoBlockRow.GetLength(0); lcCount++)
            {
                RenderSummaryInfo(paComponentController, Convert.ToString(paInfoBlockRow[lcCount, 0]),
                                  (SummaryValue)paInfoBlockRow[lcCount, 1],
                                  Convert.ToString(paInfoBlockRow[lcCount, 2]),
                                  Convert.ToBoolean(paInfoBlockRow[lcCount, 3]));
            }


            RenderDetailPopUp(paComponentController, clDate, paPopUpTitle, paBlockType, paDataTable);

            paComponentController.RenderEndTag();
        }
Exemplo n.º 24
0
        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();
        }
Exemplo n.º 25
0
        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();
        }
Exemplo n.º 26
0
        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();
        }
Exemplo n.º 27
0
        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();
        }
Exemplo n.º 28
0
        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();
        }
Exemplo n.º 29
0
 protected void RenderExternalComponentsContainer(ComponentController paComponentController)
 {
     paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, clMode.ToString().ToLower());
     paComponentController.AddElementType(ComponentController.ElementType.Container);
     paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, ctCTNExternalComponent);
     paComponentController.RenderBeginTag(HtmlTag.Div);
     paComponentController.RenderEndTag();
 }
Exemplo n.º 30
0
 protected void RenderResetPasswordLink(ComponentController paComponentController)
 {
     paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCreateAccountButton);
     paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Parameter, ctPRMResetPassword);
     paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDResetPassword);
     paComponentController.RenderBeginTag(HtmlTag.A);
     paComponentController.Write(clLanguageManager.GetText(ctDYTResetPasswordText));
     paComponentController.RenderEndTag();
 }