Example #1
0
        private void RenderItemList(ComponentController paComponentController, POSStockBalanceRow paCategoryRow)
        {
            POSStockBalanceRow lcItemCatalogueRow;

            DataRow[] lcItemList;

            lcItemList = GetItemList(paCategoryRow == null ? 0 : paCategoryRow.ItemID);

            paComponentController.AddElementType(ComponentController.ElementType.List);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemListBlock);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            lcItemCatalogueRow = new POSStockBalanceRow(null);

            for (int lcCount = 0; lcCount < lcItemList.Length; lcCount++)
            {
                lcItemCatalogueRow.Row = lcItemList[lcCount];
                RenderItemRow(paComponentController, lcItemCatalogueRow);
            }


            paComponentController.RenderEndTag();
        }
Example #2
0
        private void RenderTableList(ComponentController paComponentController, POSTableListRow paTableGroupRow)
        {
            POSTableListRow lcTableListRow;

            DataRow[] lcTableList;

            lcTableList = GetTableList(paTableGroupRow == null ? 0 : paTableGroupRow.TableID);

            paComponentController.AddElementType(ComponentController.ElementType.List);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTableListBlock);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            lcTableListRow = new POSTableListRow(null);

            for (int lcCount = 0; lcCount < lcTableList.Length; lcCount++)
            {
                lcTableListRow.Row = lcTableList[lcCount];
                RenderTableRow(paComponentController, lcTableListRow);
            }


            paComponentController.RenderEndTag();
        }
Example #3
0
        private void RenderOrderHeading(ComponentController paComponentController, OrderInfoRow paOrderInfoRow, int paTotalQuantity)
        {
            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, ctCLSAjaxImage);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetAjaxLoaderImageUrl(ctAJAXBigCircle));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();


            paComponentController.RenderEndTag();
        }
Example #4
0
        protected void RenderBrowserMode(ComponentController paComponentController)
        {
            IncludeExternalLinkFiles(paComponentController);

            if (clUserRow == null)
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, (-1).ToString());
            }
            else
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, clUserRow.UserID.ToString());
            }
            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSAddAdjustUser);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderHeaderBar(paComponentController);

            RenderContentContainer(paComponentController);

            //   RenderButtonPanel(paComponentController);
            paComponentController.RenderEndTag();
        }
Example #5
0
        private void RenderItemBlock(ComponentController paComponentController, StandardItemCatalogueRow paStandardCatalogueRow)
        {
            if (paStandardCatalogueRow != null)
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, paStandardCatalogueRow.ItemID.ToString());
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Group, paStandardCatalogueRow.Category.ToString());
                paComponentController.AddElementType(ComponentController.ElementType.Element);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemBlock);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLItemName);
                RenderElement(paComponentController, ctCLSItemName, paStandardCatalogueRow.EntryName);

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

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

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

                paComponentController.RenderEndTag();

                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLRemark);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRemarkBox);
                paComponentController.AddAttribute(HtmlAttribute.Type, "text");
                paComponentController.RenderBeginTag(HtmlTag.Input);
                paComponentController.RenderEndTag();

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPricePanel);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                RenderPriceComponent(paComponentController, 0, ctCLSTotalPanel, ComponentController.ElementType.Total, String.Empty);
                RenderPriceComponent(paComponentController, paStandardCatalogueRow.Price, ctCLSUnitPricePanel, ComponentController.ElementType.UnitPrice, ctCOLUnitPrice);
                paComponentController.RenderEndTag();

                RenderItemButtons(paComponentController);

                paComponentController.RenderEndTag();
            }
        }
Example #6
0
        protected void RenderBrowserMode(ComponentController paComponentController)
        {
            CSSStyleManager lcCSSStyleManager;


            if ((clFormInfoManager = GetFormInfoManager()) != null)
            {
                lcCSSStyleManager = new CSSStyleManager(paComponentController);

                IncludeExternalLinkFiles(paComponentController);
                AddFormStyle(paComponentController);

                paComponentController.RenderBeginTag(HtmlTag.Div);

                if (!clFormInfoManager.IsAttributeSet(FormInfoManager.FormAttribute.NoTitle))
                {
                    RenderTitleBar(paComponentController);
                }

                if (!clFormInfoManager.IsAttributeSet(FormInfoManager.FormAttribute.NoToolBar))
                {
                    RenderToolBar(paComponentController);
                }

                RenderElementContainer(paComponentController);
                RenderBufferDiv(paComponentController);
                RenderMessageRepositoryDiv(paComponentController);
                RenderPasswordDiv(paComponentController);

                paComponentController.RenderEndTag();

                if (!String.IsNullOrEmpty(clFormInfoManager.ActiveRow.FormCSSFile))
                {
                    lcCSSStyleManager.IncludeExternalStyleSheet(ResourceManager.GetInstance().GetPolymorphicStyleSheetUrl(clFormInfoManager.ActiveRow.FormCSSFile));
                }
            }
        }
Example #7
0
        private void RenderTitleBar(ComponentController paComponentController)
        {
            paComponentController.AddElementType(ComponentController.ElementType.Title);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleBar);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            if (clReceiptPrintMode)
            {
                //paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDPrinterStatus);
                //paComponentController.AddElementType(ComponentController.ElementType.StatusControl);
                //paComponentController.RenderBeginTag(HtmlTag.Div);
                //paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOPrinter));
                //paComponentController.RenderBeginTag(HtmlTag.Img);
                //paComponentController.RenderEndTag();
                //paComponentController.RenderEndTag();

                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(GetTitleBarText());
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDFormClose);
            paComponentController.RenderBeginTag(HtmlTag.A);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.remove));
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Example #8
0
        private void RenderApplicationTitlePanel(ComponentController paComponentController)
        {
            String lcDefaultTitle;

            lcDefaultTitle = clApplicationTitle.GetData(ctKEYDefault, "");

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, ctBLKApplicationTitle);
            paComponentController.AddElementType(ComponentController.ElementType.Block);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctSETApplicationTitle);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, ctKEYDefault);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_OriginalValue, lcDefaultTitle);
            paComponentController.AddAttribute(HtmlAttribute.Value, lcDefaultTitle);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSettingGroup);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderSectionHeader(paComponentController, ctDYTApplicationTitle);

            for (int lcCount = 0; lcCount < clLanaguageOptionArray.Length; lcCount++)
            {
                RenderApplicationTitleRow(paComponentController, clLanaguageOptionArray[lcCount]);
            }

            paComponentController.RenderEndTag();
        }
Example #9
0
        private void RenderOrderList(ComponentController paComponentController)
        {
            OrderInfoRow lcOrderInfoRow;

            DataRow[] lcOrderDetailList;

            paComponentController.AddElementType(ComponentController.ElementType.Container);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSListPanel);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            if (SC_OrderInfoList != null)
            {
                lcOrderInfoRow = new OrderInfoRow(null);

                for (int lcCount = 0; lcCount < SC_OrderInfoList.Rows.Count; lcCount++)
                {
                    lcOrderInfoRow.Row = SC_OrderInfoList.Rows[lcCount];
                    lcOrderDetailList  = RetrieveOrderDetailList(lcOrderInfoRow.OrderNo);
                    RenderOrderEntry(paComponentController, lcOrderInfoRow, lcOrderDetailList);
                }
            }

            paComponentController.RenderEndTag();
        }
Example #10
0
        private void RenderEntryList(ComponentController paComponentController)
        {
            DateTime lcDate;
            int      lcIncomingID;
            Decimal  lcUnitPrice;

            paComponentController.AddElementType(ComponentController.ElementType.List);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEntryList);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            if ((clCostPriceList != null) && (clCostPriceList.Rows.Count > 0))
            {
                for (int lcCount = 0; lcCount < clCostPriceList.Rows.Count; lcCount++)
                {
                    lcDate       = Convert.ToDateTime(clCostPriceList.Rows[lcCount][ctCOLReceiptDate]);
                    lcIncomingID = Convert.ToInt32(clCostPriceList.Rows[lcCount][ctCOLIncomingID]);
                    lcUnitPrice  = Convert.ToDecimal(clCostPriceList.Rows[lcCount][ctCOLUnitPrice]);

                    if ((lcCount == 0) && (lcDate.Date != clInitialCostDate.Date))
                    {
                        RenderEntryRow(paComponentController, clInitialCostDate, 0, 0);
                        RenderEntryRow(paComponentController, lcDate, lcIncomingID, lcUnitPrice);
                    }
                    else
                    {
                        RenderEntryRow(paComponentController, lcDate, lcIncomingID, lcUnitPrice);
                    }
                }
            }
            else
            {
                RenderEntryRow(paComponentController, clInitialCostDate, 0, 0);
            }

            paComponentController.RenderEndTag();
        }
Example #11
0
        protected void RenderBrowserMode(ComponentController paComponentController)
        {
            MetaDataRow lcMetaDataRow;

            IncludeExternalLinkFiles(paComponentController);

            if (clSubscriberRow != null)
            {
                lcMetaDataRow = new MetaDataRow(clSubscriberRow.Row);
            }
            else
            {
                lcMetaDataRow = null;
            }

            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlFEBasicStoreLocation);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderMapPanel(paComponentController);
            RenderInfoPanel(paComponentController);

            paComponentController.RenderEndTag();
        }
Example #12
0
        protected void RenderBrowserMode(ComponentController paComponentController)
        {
            IncludeExternalLinkFiles(paComponentController);

            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LowerBound, GetLowerBoundDays().ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_UpperBound, GetUpperBoundDays().ToString());

            if (clAllowProfitLossView)
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, "profitloss");
            }

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

            RenderTitleBar(paComponentController);
            RenderHeaderBar(paComponentController);
            RenderDailyReceiptContainer(paComponentController);

            paComponentController.RenderEndTag();

            RenderCalendar(paComponentController);
        }
Example #13
0
        private void RenderContentArea(ComponentController paComponentController)
        {
            paComponentController.AddElementType(ComponentController.ElementType.List);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSContentArea);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            if (clListMode == ListMode.DictionaryMode)
            {
                RenderDictionaryItemList(paComponentController);
            }
            else
            {
                if (clSelectionMode == SelectionMode.Image)
                {
                    RenderImageItemList(paComponentController);
                }
                else
                {
                    RenderArrayItemList(paComponentController);
                }
            }

            paComponentController.RenderEndTag();
        }
Example #14
0
        private void RenderElementBlock(ComponentController paComponentController, StandardItemCatalogueRow paStandardCatalogueRow)
        {
            // String  lcShowChildParam;

            if (paStandardCatalogueRow != null)
            {
                //if (SC_ControlMode == ControlMode.Category)
                //{
                //    paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDShowChild);

                //    lcShowChildParam = ctPRMShowChild.Replace("$CATEGORYCODE",paStandardCatalogueRow.ItemID.ToString());
                //    lcShowChildParam = lcShowChildParam.Replace("$CATEGORYNAME", paStandardCatalogueRow.EntryName);
                //    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Parameter, lcShowChildParam);
                //}

                paComponentController.AddElementType(ComponentController.ElementType.Element);
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, paStandardCatalogueRow.ItemID.ToString());
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paStandardCatalogueRow.EntryType);
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Group, paStandardCatalogueRow.Category.ToString());
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemBlock);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                RenderButtonPanel(paComponentController);

                RenderElement(paComponentController, ctCLSItemName, paStandardCatalogueRow.EntryName);

                if ((SC_DescriptionVisible) && (!String.IsNullOrEmpty(paStandardCatalogueRow.Description)))
                {
                    RenderElement(paComponentController, ctCLSDescription, paStandardCatalogueRow.Description);
                }

                RenderPricePanel(paComponentController, paStandardCatalogueRow.Price);

                paComponentController.RenderEndTag();
            }
        }
Example #15
0
        private void RenderGridRowTemplate(ComponentController paComponentController)
        {
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, "template");
            paComponentController.AddElementType(ComponentController.ElementType.Item);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, POSGridItem.Serial.ToString().ToLower());
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.RenderEndTag();

            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, POSGridItem.Description.ToString().ToLower());
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.RenderEndTag();

            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, POSGridItem.Quantity.ToString().ToLower());
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.RenderEndTag();

            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, POSGridItem.UnitPrice.ToString().ToLower());
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.RenderEndTag();

            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, POSGridItem.Discount.ToString().ToLower());
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.RenderEndTag();

            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, POSGridItem.SubTotal.ToString().ToLower());
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Example #16
0
        private void RenderCategoryTitle(ComponentController paComponentController, POSItemCatalogueRow paCategoryRow)
        {
            if (paCategoryRow != null)
            {
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCategoryTitle);
                paComponentController.AddElementType(ComponentController.ElementType.Title);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDRootCategory);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHomeButtonDiv);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.home));
                paComponentController.RenderEndTag();

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleText);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(paCategoryRow.ItemName);
                paComponentController.RenderEndTag();

                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDUpCategory);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSUpButtonDiv);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.level_up));
                paComponentController.RenderEndTag();

                paComponentController.RenderEndTag();
            }
            else
            {
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCategoryTitle);
                paComponentController.AddElementType(ComponentController.ElementType.Title);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleText);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(clLanguageManager.GetText(ctTXTRootCategoryName));
                paComponentController.RenderEndTag();

                paComponentController.RenderEndTag();
            }
        }
Example #17
0
        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.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDRootGroup);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHomeButtonDiv);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.home));
                paComponentController.RenderEndTag();

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleText);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(paTableGroupRow.DisplayName);
                paComponentController.RenderEndTag();

                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDUpGroup);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSUpButtonDiv);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.level_up));
                paComponentController.RenderEndTag();

                paComponentController.RenderEndTag();
            }
            else
            {
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTableGroupTitle);
                paComponentController.AddElementType(ComponentController.ElementType.Title);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTitleText);
                paComponentController.RenderBeginTag(HtmlTag.Div);
                //   paComponentController.Write(clLanguageManager.GetText(ctDYTRootGroupName));
                paComponentController.RenderEndTag();

                paComponentController.RenderEndTag();
            }
        }
Example #18
0
        private void RenderSummaryBar(ComponentController paComponentController, int paTotalQuantity, Decimal paTotalAmount)
        {
            paComponentController.AddElementType(ComponentController.ElementType.Summary);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSummaryBar);
            paComponentController.RenderBeginTag(HtmlTag.Div);

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

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalQuantityLabel);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(SC_TotalQuantityText);
            paComponentController.RenderEndTag();

            paComponentController.AddElementType(ComponentController.ElementType.Quantity);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalQuantityBox);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(paTotalQuantity.ToString());
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

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

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalPriceLabel);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(SC_TotalPriceText);
            paComponentController.RenderEndTag();

            RenderPriceComponent(paComponentController, paTotalAmount, ctCLSPricePanel, ComponentController.ElementType.Total, String.Empty);

            paComponentController.RenderEndTag();

            // RenderElement(paComponentController, ctCLSOrderNote, ApplicationFrame.GetInstance().ActiveSubscription.ActiveRow.OrderNote);

            paComponentController.RenderEndTag();
        }
Example #19
0
        private void RenderHeaderBar(ComponentController paComponentController)
        {
            paComponentController.AddElementType(ComponentController.ElementType.ControlBar);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSHeaderBar);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSReceiptNoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.ConvertNumber(clReceiptManager.ActiveRow.ReceiptNo.ToString().PadLeft(6, '0')));
            paComponentController.RenderEndTag();


            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDCustomerInfo);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCustomerDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLCodeNo);
            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.Write(clReceiptManager.ActiveStakeHolder.ActiveRow.CodeNo);
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLName);
            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.Write(clReceiptManager.ActiveStakeHolder.ActiveRow.Name);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDChangeReceiptDate);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSDateDiv);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, ctCOLReceiptDate);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.ConvertNumber(clReceiptManager.ActiveRow.ReceiptDate.ToString("dd/MM/yyyy")));
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Example #20
0
        private void RenderBriefDescriptionDiv(ComponentController paComponentController, OrderInfoRow paOrderInfoRow, DataRow[] paOrderDetailList, int paTotalQuantity, Decimal paTotalAmount)
        {
            OrderDetailRow lcOrderDetailRow;
            int            lcOverrideStatus;
            int            lcEffectiveStatus;

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

            if (paOrderDetailList != null)
            {
                lcOrderDetailRow = new OrderDetailRow(null);
                lcOverrideStatus = paOrderInfoRow.OrderStatus;

                for (int lcCount = 0; lcCount < paOrderDetailList.Length; lcCount++)
                {
                    lcOrderDetailRow.Row = paOrderDetailList[lcCount];
                    if (!String.IsNullOrEmpty(lcOrderDetailRow.ItemName))
                    {
                        if (lcOverrideStatus < 0)
                        {
                            lcEffectiveStatus = lcOverrideStatus;
                        }
                        else
                        {
                            lcEffectiveStatus = lcOrderDetailRow.Status;
                        }

                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, ((OrderInfoManager.OrderUniversalStatus)lcEffectiveStatus).ToString().ToLower());

                        paComponentController.AddElementType(ComponentController.ElementType.Row);
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, lcOrderDetailRow.ItemID.ToString());
                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEntryRow);
                        paComponentController.RenderBeginTag(HtmlTag.Div);

                        //paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSBullet);
                        //paComponentController.RenderBeginTag(HtmlTag.Span);
                        //paComponentController.Write(lcBullet);
                        //paComponentController.RenderEndTag();

                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemName);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write(lcOrderDetailRow.ItemName);
                        paComponentController.RenderEndTag();

                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSQuantity);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write(lcOrderDetailRow.Quantity.ToString("F0"));
                        paComponentController.RenderEndTag();

                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPrice);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write((lcOrderDetailRow.UnitPrice * lcOrderDetailRow.Quantity).ToString("F0"));
                        paComponentController.RenderEndTag();

                        if (lcEffectiveStatus == (int)OrderInfoManager.OrderUniversalStatus.Reject)
                        {
                            if (!String.IsNullOrWhiteSpace(lcOrderDetailRow.RejectReason))
                            {
                                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectReason);
                                paComponentController.RenderBeginTag(HtmlTag.Span);
                                paComponentController.Write(lcOrderDetailRow.RejectReason);
                                paComponentController.RenderEndTag();
                            }
                        }
                        else
                        {
                            if (!String.IsNullOrWhiteSpace(lcOrderDetailRow.Remark))
                            {
                                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemRemark);
                                paComponentController.RenderBeginTag(HtmlTag.Span);
                                paComponentController.Write(lcOrderDetailRow.Remark);
                                paComponentController.RenderEndTag();
                            }
                        }

                        paComponentController.RenderEndTag();
                    }
                }

                paComponentController.AddElementType(ComponentController.ElementType.Summary);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalSummary);
                paComponentController.RenderBeginTag(HtmlTag.Div);

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalQuantity);
                paComponentController.RenderBeginTag(HtmlTag.Span);
                paComponentController.Write(paTotalQuantity.ToString("F0"));
                paComponentController.RenderEndTag();

                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalPrice);
                paComponentController.RenderBeginTag(HtmlTag.Span);
                paComponentController.Write(paTotalAmount.ToString("F0"));
                paComponentController.RenderEndTag();

                if (paOrderInfoRow.OrderStatus == (int)OrderInfoManager.OrderUniversalStatus.Reject)
                {
                    paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSOrderRemark);
                    paComponentController.RenderBeginTag(HtmlTag.Div);
                    paComponentController.Write(paOrderInfoRow.RejectReason);
                    paComponentController.RenderEndTag();
                }
                else
                {
                    if (!String.IsNullOrEmpty(paOrderInfoRow.OrderRemark))
                    {
                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSOrderRemark);
                        paComponentController.RenderBeginTag(HtmlTag.Div);
                        paComponentController.Write(paOrderInfoRow.OrderRemark);
                        paComponentController.RenderEndTag();
                    }
                }

                paComponentController.RenderEndTag();
            }

            paComponentController.RenderEndTag();
        }
Example #21
0
        private void RenderContentList(ComponentController paComponentController, DataRow[] paDataRowList, EntryType paEntryType)
        {
            POSItemCatalogueRow lcPOSItemCatalogueRow;

            lcPOSItemCatalogueRow = new POSItemCatalogueRow(null);

            for (int lcCount = 0; lcCount < paDataRowList.Length; lcCount++)
            {
                lcPOSItemCatalogueRow.Row = paDataRowList[lcCount];

                if ((paEntryType == EntryType.Category) || (!clStockOnlyMode) || (lcPOSItemCatalogueRow.EntryAttribute != "STATIC"))
                {
                    paComponentController.AddElementType(ComponentController.ElementType.Element);
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_EntryType, lcPOSItemCatalogueRow.EntryType.ToLower());
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_EntryAttribute, lcPOSItemCatalogueRow.EntryAttribute.ToLower());
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ItemID, lcPOSItemCatalogueRow.ItemID.ToString());
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_Category, lcPOSItemCatalogueRow.Category.ToString());
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_Attribute, lcPOSItemCatalogueRow.Favourite ? "favourite" : "");
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ItemText, lcPOSItemCatalogueRow.ItemName);

                    if (paEntryType != EntryType.Category)
                    {
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ItemCode, lcPOSItemCatalogueRow.ItemCode.ToUpper());
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MajorUnitName, lcPOSItemCatalogueRow.MajorUnitName);
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MinorUnitName, lcPOSItemCatalogueRow.MinorUnitName);
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_UnitRelationship, lcPOSItemCatalogueRow.UnitRelationship.ToString());
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ItemStatus, lcPOSItemCatalogueRow.Status.ToLower());

                        if (clPriceMode == PriceMode.PriceShow)
                        {
                            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MajorPrice, lcPOSItemCatalogueRow.MajorPrice.ToString(clSettingManager.BareCurrencyFormatString));
                            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MinorPrice, lcPOSItemCatalogueRow.MinorPrice.ToString(clSettingManager.BareCurrencyFormatString));
                            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MajorMSP, lcPOSItemCatalogueRow.MajorMSP.ToString(clSettingManager.BareCurrencyFormatString));
                            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MinorMSP, lcPOSItemCatalogueRow.MinorMSP.ToString(clSettingManager.BareCurrencyFormatString));
                        }
                    }
                    paComponentController.RenderBeginTag(HtmlTag.A);

                    paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemName);
                    paComponentController.RenderBeginTag(HtmlTag.Span);
                    paComponentController.Write(lcPOSItemCatalogueRow.ItemName);
                    paComponentController.RenderEndTag();

                    if (paEntryType != EntryType.Category)
                    {
                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemInfo);
                        paComponentController.RenderBeginTag(HtmlTag.Span);

                        if ((clItemCodeMode) && (!String.IsNullOrWhiteSpace(lcPOSItemCatalogueRow.ItemCode)))
                        {
                            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemCode);
                            paComponentController.RenderBeginTag(HtmlTag.Span);
                            paComponentController.Write(clLanguageManager.ConvertNumber(lcPOSItemCatalogueRow.ItemCode));
                            paComponentController.RenderEndTag();
                        }

                        if (clPriceMode == PriceMode.PriceShow)
                        {
                            if (lcPOSItemCatalogueRow.MajorPrice > 0)
                            {
                                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSMajorPrice);
                                paComponentController.RenderBeginTag(HtmlTag.Span);
                                paComponentController.Write(clLanguageManager.ConvertNumber(lcPOSItemCatalogueRow.MajorPrice.ToString(clSettingManager.CurrencyFormatString)));
                                paComponentController.RenderEndTag();
                            }


                            if (lcPOSItemCatalogueRow.MinorPrice > 0)
                            {
                                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSMinorPrice);
                                paComponentController.RenderBeginTag(HtmlTag.Span);
                                paComponentController.Write(clLanguageManager.ConvertNumber(lcPOSItemCatalogueRow.MinorPrice.ToString(clSettingManager.CurrencyFormatString)));
                                paComponentController.RenderEndTag();
                            }
                        }

                        paComponentController.RenderEndTag();
                    }

                    paComponentController.RenderEndTag();
                }
            }
        }
Example #22
0
        private void RenderInfoPanel(ComponentController paComponentController)
        {
            String lcBusinessName;
            String lcAddress;
            String lcContactNo;
            String lcOperatingHour;

            if (clSubscriberRow != null)
            {
                lcBusinessName  = clSubscriberRow.BusinessName;
                lcAddress       = UILogic.CompileAddress(clSubscriberRow.Row);
                lcContactNo     = clSubscriberRow.ContactNo;
                lcOperatingHour = clSubscriberRow.OperatingHour;
            }
            else
            {
                lcBusinessName  = String.Empty;
                lcAddress       = String.Empty;
                lcContactNo     = String.Empty;
                lcOperatingHour = String.Empty;
            }

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

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.info_sign));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcBusinessName);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.envelope));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcAddress);
            paComponentController.RenderEndTag();

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

            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.phone));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcContactNo);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.time));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcOperatingHour);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Example #23
0
        private void RenderTable(ComponentController paComponentController, POSTableListRow paTableListRow)
        {
            POSReceiptRow lcPOSReceiptRow;
            Decimal       lcTotalPrice;

            if ((lcPOSReceiptRow = GetPendingReceiptRow(paTableListRow.TableID)) != null)
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ReceiptID, lcPOSReceiptRow.ReceiptID.ToString());
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Lastmodified, lcPOSReceiptRow.LastModified.ToString("yyyy-MM-dd HH:mm:ss.fff"));
                lcTotalPrice = lcPOSReceiptRow.PaymentCash;
            }
            else
            {
                lcTotalPrice = 0;
            }

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTableElement);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, paTableListRow.TableID.ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paTableListRow.EntryType.ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_Reference, ctTableReferencePrefix + paTableListRow.TableID.ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_DisplayName, paTableListRow.DisplayName);
            paComponentController.AddElementType(ComponentController.ElementType.Element);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDToggleActive);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInnerArea);
            paComponentController.RenderBeginTag(HtmlTag.Div);

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

            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.Write(paTableListRow.DisplayName);
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDAddOrder);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.plus));
            paComponentController.RenderEndTag();

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Command, ctCMDMove);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.move));
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

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

            paComponentController.AddElementType(ComponentController.ElementType.Total);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            if (lcTotalPrice > 0)
            {
                paComponentController.Write(clLanguageManager.ConvertNumber(lcTotalPrice.ToString(clSettingManger.CurrencyFormatString)));
            }

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            RenderButtonPanel(paComponentController);

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Example #24
0
        private void RenderBriefDescriptionDiv(ComponentController paComponentController, OrderInfoRow paOrderInfoRow, DataRow[] paOrderDetailList, int paTotalQuantity, Decimal paTotalAmount)
        {
            OrderDetailRow lcOrderDetailRow;
            int            lcOverrideStatus;
            int            lcEffectiveStatus;

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

            if (paOrderDetailList != null)
            {
                lcOrderDetailRow = new OrderDetailRow(null);
                lcOverrideStatus = paOrderInfoRow.OrderStatus;

                for (int lcCount = 0; lcCount < paOrderDetailList.Length; lcCount++)
                {
                    lcOrderDetailRow.Row = paOrderDetailList[lcCount];
                    if (!String.IsNullOrEmpty(lcOrderDetailRow.ItemName))
                    {
                        if (lcOverrideStatus < 0)
                        {
                            lcEffectiveStatus = lcOverrideStatus;
                        }
                        else
                        {
                            lcEffectiveStatus = lcOrderDetailRow.Status;
                        }

                        if ((lcEffectiveStatus >= 0) && (lcOrderDetailRow.Quantity <= 0))
                        {
                            lcEffectiveStatus = (int)OrderInfoManager.OrderUniversalStatus.Cancel;
                        }

                        //   paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, ((OrderInfoManager.OrderUniversalStatus) lcEffectiveStatus).ToString().ToLower());
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, lcOrderDetailRow.ItemID.ToString());
                        paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Status, lcEffectiveStatus.ToString());
                        paComponentController.AddElementType(ComponentController.ElementType.Row);
                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSEntryRow);
                        paComponentController.RenderBeginTag(HtmlTag.Div);


                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemName);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write(lcOrderDetailRow.ItemName);
                        paComponentController.RenderEndTag();

                        paComponentController.AddElementType(ComponentController.ElementType.Quantity);
                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSQuantity);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write(lcOrderDetailRow.Quantity.ToString("F0"));
                        paComponentController.RenderEndTag();

                        paComponentController.AddElementType(ComponentController.ElementType.Total);
                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPrice);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write((lcOrderDetailRow.UnitPrice * lcOrderDetailRow.Quantity).ToString("F0"));
                        paComponentController.RenderEndTag();

                        if (lcEffectiveStatus >= 0)
                        {
                            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonDiv);
                            paComponentController.RenderBeginTag(HtmlTag.Div);

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

                            paComponentController.RenderEndTag();
                        }

                        if ((!String.IsNullOrWhiteSpace(lcOrderDetailRow.Remark)) && (lcEffectiveStatus != (int)OrderInfoManager.OrderUniversalStatus.Reject))
                        {
                            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemRemark);
                            paComponentController.RenderBeginTag(HtmlTag.Span);
                            paComponentController.Write(lcOrderDetailRow.Remark);
                            paComponentController.RenderEndTag();
                        }

                        paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSRejectReason);
                        paComponentController.RenderBeginTag(HtmlTag.Span);
                        paComponentController.Write(lcOrderDetailRow.RejectReason);
                        paComponentController.RenderEndTag();


                        paComponentController.RenderEndTag();
                    }
                }

                paComponentController.AddElementType(ComponentController.ElementType.Quantity);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalQuantity);
                paComponentController.RenderBeginTag(HtmlTag.Span);
                paComponentController.Write(paTotalQuantity.ToString("F0"));
                paComponentController.RenderEndTag();

                paComponentController.AddElementType(ComponentController.ElementType.Total);
                paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSTotalPrice);
                paComponentController.RenderBeginTag(HtmlTag.Span);
                paComponentController.Write(paTotalAmount.ToString("F0"));
                paComponentController.RenderEndTag();
            }

            RenderFloatButtonBar(paComponentController);

            paComponentController.RenderEndTag();
        }
Example #25
0
 protected void RenderOverlayPanel(ComponentController paComponentController)
 {
     paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSOverlayDiv);
     paComponentController.RenderBeginTag(HtmlTag.Div);
     paComponentController.RenderEndTag();
 }