private void SetDisplay()
 {
     this.skinSplitContainer1.Panel2Collapsed = true;
     dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(Column7, colorNameDataGridViewTextBoxColumn);
     dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(firstInboundTimeDataGridViewTextBoxColumn, firstSaleTimeDataGridViewTextBoxColumn, LastSaleTime);
     if (skinRadioButtonCostumeColor.Checked)
     {
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(colorNameDataGridViewTextBoxColumn);
     }
     else if (skinRadioButtonCostumeColorSize.Checked)
     {
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(Column7, colorNameDataGridViewTextBoxColumn);
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(LastSaleTime, firstInboundTimeDataGridViewTextBoxColumn, firstSaleTimeDataGridViewTextBoxColumn);
     }
     if (skinRadioButton2.Checked)
     {
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(UnsalableRate);
     }
     else
     {
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(UnsalableRate);
     }
     if (skinRadioButton1.Checked)
     {
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(StartCostumeStoreCount, dataGridViewTextBoxColumn1);
     }
     else
     {
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(StartCostumeStoreCount, dataGridViewTextBoxColumn1);
     }
 }
示例#2
0
        private void BaseButtonQuery_Click(object sender, EventArgs e)
        {
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                String queryStr = this.skinTextBoxName.SkinTxt.Text.Trim();
                if (condition.SelectedValue == null)
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(EnabledLink, ColumnDisable, ColumnDelete);
                }
                else if (Convert.ToBoolean(condition.SelectedValue))
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(ColumnDisable);
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(EnabledLink, ColumnDelete);
                }
                else
                {
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(ColumnDisable);
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(EnabledLink, ColumnDelete);
                }
                bool        state = true;
                List <Shop> shops = null;
                if (condition.SelectedValue != null)
                {
                    state = Convert.ToBoolean(condition.SelectedValue);
                    shops = GlobalCache.ShopList.FindAll(t =>
                                                         // (t.ID.Contains(queryStr) || t.Name.Contains(queryStr)) && condition.SelectedValue == null ? true : (Convert.ToBoolean(condition.SelectedValue) ? t.Enabled : !t.Enabled));
                                                         (t.ID.Contains(queryStr) || t.Name.Contains(queryStr)) && t.Enabled == state);
                }
                else
                {
                    shops = GlobalCache.ShopList.FindAll(t =>
                                                         // (t.ID.Contains(queryStr) || t.Name.Contains(queryStr)) && condition.SelectedValue == null ? true : (Convert.ToBoolean(condition.SelectedValue) ? t.Enabled : !t.Enabled));
                                                         (t.ID.Contains(queryStr) || t.Name.Contains(queryStr)));
                }
                //else
                //{
                //   // state = Convert.ToBoolean(condition.SelectedValue);
                //}



                dataGridViewPagingSumCtrl.BindingDataSource(DataGridViewUtil.ListToBindingList(shops));
            }
            catch (Exception ex)
            {
                GlobalUtil.ShowError(ex);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
 private void SetDisplay()
 {
     if (skinComboBox_PfCustomer.SelectedValue == null && String.IsNullOrEmpty(this.skinTextBox_costumeID.Text))
     {//正常
         if (view != null)
         {
             this.skinSplitContainer1.Panel1.Controls.Remove(view);
             view.Dispose(); dataGridViewPagingSumCtrl1.Dispose();
         }
         // view.SendToBack();
         dataGridView1.BringToFront();
         //view.Dispose();
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(pfCustomerNameDataGridViewTextBoxColumn);
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(costumeIDDataGridViewTextBoxColumn, costumeNameDataGridViewTextBoxColumn,
                                                                 colorNameDataGridViewTextBoxColumn, sizeNameDataGridViewTextBoxColumn);
     }
     else if (!String.IsNullOrEmpty(this.skinTextBox_costumeID.Text) && skinComboBox_PfCustomer.SelectedValue == null)
     {
         view?.BringToFront();
         // dataGridView1.SendToBack();
     }
     else if (!String.IsNullOrEmpty(this.skinTextBox_costumeID.Text) && skinComboBox_PfCustomer.SelectedValue != null)
     {
         if (view != null)
         {
             this.skinSplitContainer1.Panel1.Controls.Remove(view);
             view.Dispose(); dataGridViewPagingSumCtrl1.Dispose();
         }
         dataGridView1.BringToFront();
         //dataGridView1.Visible = true;
         //view.Visible = false;
         //单独款号的时候
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(pfCustomerNameDataGridViewTextBoxColumn);
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(costumeIDDataGridViewTextBoxColumn, costumeNameDataGridViewTextBoxColumn,
                                                                 colorNameDataGridViewTextBoxColumn, sizeNameDataGridViewTextBoxColumn);
     }
     else
     {
         if (view != null)
         {
             this.skinSplitContainer1.Panel1.Controls.Remove(view);
             view.Dispose(); dataGridViewPagingSumCtrl1.Dispose();
         }
         // view.Dispose();
         //dataGridView1.Visible = true;
         dataGridView1.BringToFront();
         // view.Visible = false;
         //   view.SendToBack();
         //款号和客户都有的时候
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(pfCustomerNameDataGridViewTextBoxColumn, colorNameDataGridViewTextBoxColumn, sizeNameDataGridViewTextBoxColumn);
         dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(costumeIDDataGridViewTextBoxColumn, costumeNameDataGridViewTextBoxColumn);
     }
 }
示例#4
0
        private void Search(object sender, EventArgs args)
        {
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                EmCostumePage listPage = GlobalCache.EMallServerProxy.GetEmCostumePage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                this.dataGridViewPagingSumCtrl.Initialize(listPage);
                if (pagePara.EmShowOnline)
                {
                    // EmOnlinePrice.DataPropertyName = "EmOnlinePrice";

                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(Column2, Column1, CreateTime, Column4, QuantityOfSale, EmTitle, IsHot, IsNew, PfShowOnline, EmShowOnline);
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(Column5);
                }
                else
                {
                    //  EmOnlinePrice.DataPropertyName = "Price";
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(Column2, Column1, CreateTime, Column4, QuantityOfSale, EmTitle, IsHot, IsNew, PfShowOnline, EmShowOnline);
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(Column5);
                }

                /*   if (this.skinRadioButtonOffline.Checked)
                 * {
                 *     // dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(PfOnlinePrice);
                 *     // PfOnlinePrice.Visible = false;
                 *     dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(PfOnlinePrice);
                 * }
                 * else
                 * {
                 *     dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(PfOnlinePrice);
                 * }*/

                this.BindingDataSource(listPage);
            }
            catch (Exception ex)
            {
                GlobalUtil.ShowError(ex);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
示例#5
0
        private void Search()
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                if (pagePara.State == CheckStoreOrderState.ChildOrder)
                {
                    // EmOnlinePrice.DataPropertyName = "EmOnlinePrice";

                    // dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(Column2, Column1, CreateTime, Column4, EmIsRecommandColumn, QuantityOfSale, EmTitle, IsHot, IsNew, PfShowOnline, EmShowOnline);
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(ColumnCancel, ColumnRedo, ColumnPrint, CheckUserID);
                }
                else
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(ColumnCancel, ColumnRedo, ColumnPrint, CheckUserID);
                }
                CheckStoreOrderPage listPage = CommonGlobalCache.ServerProxy.GetCheckStoreOrderPage(this.pagePara);

                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                this.dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingCheckStoreOrderBindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
示例#6
0
        /*private void BindingSource(List<PfCustomerStore> listPage)
         * {
         *  if (this.InvokeRequired)
         *  {
         *      this.BeginInvoke(new CbGeneric<List<PfCustomerStore>>(this.BindingSource), listPage);
         *  }
         *  else
         *  {
         *      if (listPage != null)
         *      {
         *          //foreach (var item in listPage)
         *          //{
         *          //  //  item.CostumeName = CommonGlobalCache.GetCostumeName(item.CostumeID);
         *          //    item.ShopName = CommonGlobalCache.GetShopName(item.ShopID);
         *          //}
         *      }
         *
         *      dataGridViewPagingSumCtrl.BindingDataSource<PfCustomerStore>(DataGridViewUtil.ListToBindingList(listPage));
         *      CompleteProgressForm();
         *  }
         * }*/


        private void BindingSource(List <PfCustomerStore> listPage)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new CbGeneric <List <PfCustomerStore> >(this.BindingSource), listPage);
            }
            else
            {
                if (listPage != null)
                {
                    //foreach (var item in listPage)
                    //{
                    //    item.ShopName = CommonGlobalCache.GetShopName(item.ShopID);
                    //}
                }
                if (costumeTextBox1.Text != "")
                {
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(Column2);
                }
                else
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(Column2);
                }
                dataGridViewPagingSumCtrl.BindingDataSource <PfCustomerStore>(DataGridViewUtil.ListToBindingList(listPage));
                CompleteProgressForm();
            }
        }
示例#7
0
        //private int GetBigClass(int classID)
        //{
        //    int id =0;

        //    return id;
        //}


        /// <summary>
        /// 绑定CostumeStore数据源
        /// </summary>
        /// <param name="listPage"></param>
        private void BindingCostumeStoreDataSource(List <CostumeInvoicing> listPage)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                this.skinSplitContainer1.Panel2Collapsed = true;
                if (columnsHide != null && columnsHide.Count > 0)
                {
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(columnsHide.ToArray());
                }
                if (columnsDisplay != null && columnsDisplay.Count > 0)
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(columnsDisplay.ToArray());
                }
                // DataTable dt = DataGridViewUtil.ToDataTable<CostumeInvoicing>(listPage);
                this.dataGridViewPagingSumCtrl.BindingDataSource <CostumeInvoicing>(DataGridViewUtil.ToDataTable(listPage));
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
        public void Initialize()
        {
            if (skinSplitContainer1 != null)
            {
                skinSplitContainer1.Panel2Collapsed = true;
            }

            if (CommonGlobalCache.BusinessAccount != null && CommonGlobalCache.BusinessAccount.OnlineEnabled)
            {
                dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(CarriageCost);
            }
            else
            {
                dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(CarriageCost);
            }

            createTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATETIME_FORMAT;
            if (dataGridViewPagingSumCtrl != null)
            {
                dataGridViewPagingSumCtrl.ColumnSorting = dataGridViewPagingSumCtrl_ColumnSorting;
                dataGridViewPagingSumCtrl.Clear();
            }
            this.dataGridView_RetailDetail.DataSource = null;
            this.pagePara = new RetailListPagePara();
            SetRetailOrderLabel(null);
        }
        private void SetBuyout(SalesPromotion curItem)
        {
            if (!String.IsNullOrEmpty(curItem.CostumeIDStr))
            {
                this.targets = new List <Costume>();
                String[] buyoutRangeRule = curItem.RuleExpression.Split(';');
                String[] buyoutRange     = curItem.CostumeIDStr.Split(';');

                for (int i = 0; i < buyoutRange.Length; i++)
                {
                    // var cos in buyoutRange
                    String   cos         = buyoutRange[i];
                    String   buyoutPrice = buyoutRangeRule[i] == ""?"0" : buyoutRangeRule[i];
                    String[] ids         = cos.Split(',');

                    foreach (var id in ids)
                    {
                        Costume item = CommonGlobalCache.CostumeList.Find(t => t.ID == id);

                        if (item != null)
                        {
                            item.BuyoutPrice = Convert.ToDecimal(buyoutPrice);
                            if (filterValid)
                            {
                                if (item.IsValid)
                                {
                                    targets.Add(item);
                                }
                            }
                            else
                            {
                                targets.Add(item);
                            }
                        }
                    }
                }

                this.dataGridViewTarget.DataSource = targets;
            }

            dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(dataGridViewTextBoxColumnYear, dataGridViewTextBoxColumnSeason);
            dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(CostPrice, Price);
        }
        private void BindingDataSource(List <CostumeDistribution> listPage)
        {
            if (skinCheckBoxShowColor.Checked)
            {
                dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(ColorName);
            }
            else
            {
                dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(ColorName);
            }
            foreach (CostumeDistribution cDisItem in listPage)
            {
                cDisItem.CostPriceSum = cDisItem.CostumeStore * cDisItem.CostPrice;
            }
            dataGridViewPagingSumCtrl.BindingDataSource(DataGridViewUtil.ListToBindingList(listPage));
            //   (DataGridViewUtil.ListToBindingList(listPage)


            if (listPage.Count == 0)
            {
                dataGridViewPagingSumCtrl2.BindingDataSource(new List <CostumeDistributionDetail>());
            }
        }
示例#11
0
 private void CostumeManageCtrl_Load(object sender, EventArgs e)
 {
     try
     {
         dataGridViewPagingSumCtrl.SetDataSource <SalesAnalysis>(null);
         pagePara = new GetSalesAnalysisPara();
         this.skinComboBoxShopID.Initialize(false, CommonGlobalCache.IsGeneralStoreRetail != "1", CommonGlobalCache.BusinessAccount.OnlineEnabled);
         if (TypeValue1.HeaderText == "TypeValue1")
         {
             TypeValue1.HeaderText   = "款号";
             this.TypeValue1.Visible = false;
         }
         if (TypeValue2.HeaderText == "TypeValue2")
         {
             TypeValue2.HeaderText   = "品牌";
             this.TypeValue2.Visible = false;
         }
         if (TypeValue3.HeaderText == "TypeValue3")
         {
             TypeValue3.HeaderText   = "供应商";
             this.TypeValue3.Visible = false;
         }
         if (TypeValue4.HeaderText == "TypeValue4")
         {
             TypeValue4.HeaderText   = "大类";
             this.TypeValue4.Visible = false;
         }
         if (TypeValue5.HeaderText == "TypeValue5")
         {
             TypeValue5.HeaderText   = "小类";
             this.TypeValue5.Visible = false;
         }
         if (TypeValue6.HeaderText == "TypeValue6")
         {
             TypeValue6.HeaderText   = "款号";
             this.TypeValue6.Visible = false;
         }
         if (TypeValue7.HeaderText == "TypeValue7")
         {
             TypeValue7.HeaderText   = "名称";
             this.TypeValue7.Visible = false;
         }
         if (TypeValue8.HeaderText == "TypeValue8")
         {
             TypeValue8.HeaderText   = "年份";
             this.TypeValue8.Visible = false;
         }
         if (!HasPermission(RolePermissionEnum.查看_毛利))
         {
             dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(benefitRateDataGridViewTextBoxColumn);
             //  this.benefitRateDataGridViewTextBoxColumn.Visible = false;
             this.benefitRateDataGridViewTextBoxColumn.HeaderText = " ";
         }
         else
         {
             dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(benefitRateDataGridViewTextBoxColumn);
         }
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
        public SalesPromotionCostumeSelectForm(JGNet.SalesPromotion curItem, PromotionTypeEnum curType, bool isSalesPromotionUse, bool filterValid)
        {
            try
            {
                InitializeComponent();
                this.filterValid          = filterValid;
                dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridViewQueryResults, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, this.BaseButton_Search_Click);
                dataGridViewPagingSumCtrl.Initialize();
                dataGridViewQueryResults.MultiSelect        = true;
                this.dataGridViewQueryResults.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
                new DataGridViewPagingSumCtrl(this.dataGridViewTarget).Initialize();



                dataGridViewTarget.MultiSelect        = true;
                this.dataGridViewTarget.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;

                if (curType == PromotionTypeEnum.YKJ)
                {
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(dataGridViewTextBoxColumnYear, dataGridViewTextBoxColumnSeason);
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(CostPrice, Price);
                }
                else
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(dataGridViewTextBoxColumnYear, dataGridViewTextBoxColumnSeason);
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(CostPrice, Price);
                }
                if (curItem != null)
                {
                    if (curType == PromotionTypeEnum.YKJ)
                    {
                        SetBuyout(curItem);
                    }
                    else
                    {
                        SetNormal(curItem);
                    }

                    this.skinCheckBoxJoin.Checked = curItem.ContainsSpecify;
                    if (!String.IsNullOrEmpty(curItem.ID) && isSalesPromotionUse)
                    {
                        this.skinPanelQuery.Enabled      = false;
                        this.groupBoxQueryResult.Enabled = false;
                        this.skinPanelSelectBtn.Enabled  = false;
                        this.skinPanelCheck.Enabled      = false;
                    }
                }

                try
                {
                    SetYear();
                    //    CommonGlobalUtil.SetSupplier(skinComboBoxSupplierID);
                    SetParameterConfig();
                    GlobalUtil.SetBrand(skinComboBox_Brand);
                    //skinComboBox_Brand.Initialize();
                }
                catch (Exception ex)
                {
                    CommonGlobalUtil.ShowError(ex);
                }
            }
            catch (Exception ex)
            {
                CommonGlobalUtil.ShowError(ex);
            }
        }
示例#13
0
        private void Search()
        {
            //  CommonGlobalCache.ServerProxy.GetAllAdminUser();
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }


                InteractResult <SalesAnalysisDeatilInfo> saleResult = CommonGlobalCache.ServerProxy.GetSalesAnalysisDeatilInfo(para);
                skinLabelShopName.Text = saleResult.Data.ShopName;
                List <DataGridViewColumn> Displaycolumlist   = new List <DataGridViewColumn>();
                List <DataGridViewColumn> NoDisplaycolumlist = new List <DataGridViewColumn>();

                //if (para.IsChooseSize)
                //{
                //    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(
                // ColumnsS, ColumnsF, ColumnsXS, ColumnsM, ColumnsL, ColumnsXL, ColumnsXL2, ColumnsXL3, ColumnsXL4, ColumnsXL5, ColumnsXL6
                //        );
                //}
                //else
                //{
                //  dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(
                // ColumnsS, ColumnsF,ColumnsXS, ColumnsM, ColumnsL, ColumnsXL, ColumnsXL2, ColumnsXL3, ColumnsXL4, ColumnsXL5, ColumnsXL6
                //        );

                //}

                if (para.IsChooseSize)
                {
                    Displaycolumlist.Add(ColumnsS);
                    Displaycolumlist.Add(ColumnsF);
                    Displaycolumlist.Add(ColumnsXS);
                    Displaycolumlist.Add(ColumnsM);
                    Displaycolumlist.Add(ColumnsL);
                    Displaycolumlist.Add(ColumnsXL);
                    Displaycolumlist.Add(ColumnsXL2);
                    Displaycolumlist.Add(ColumnsXL3);
                    Displaycolumlist.Add(ColumnsXL4);
                    Displaycolumlist.Add(ColumnsXL5);
                    Displaycolumlist.Add(ColumnsXL6);
                }
                else
                {
                    NoDisplaycolumlist.Add(ColumnsS);
                    NoDisplaycolumlist.Add(ColumnsF);
                    NoDisplaycolumlist.Add(ColumnsXS);
                    NoDisplaycolumlist.Add(ColumnsM);
                    NoDisplaycolumlist.Add(ColumnsL);
                    NoDisplaycolumlist.Add(ColumnsXL);
                    NoDisplaycolumlist.Add(ColumnsXL2);
                    NoDisplaycolumlist.Add(ColumnsXL3);
                    NoDisplaycolumlist.Add(ColumnsXL4);
                    NoDisplaycolumlist.Add(ColumnsXL5);
                    NoDisplaycolumlist.Add(ColumnsXL6);
                }


                if (para.IsChooseColor)
                {
                    Displaycolumlist.Add(ColorName);
                }
                else
                {
                    NoDisplaycolumlist.Add(ColorName);
                }

                if (Displaycolumlist.Count > 0)
                {
                    dataGridViewPagingSumCtrl.RemoveNotShowInColumnSettings(Displaycolumlist.ToArray());
                }
                if (NoDisplaycolumlist.Count > 0)
                {
                    dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(NoDisplaycolumlist.ToArray());
                }
                BindingDataSources(saleResult.Data);
            }
            catch (Exception ex) { CommonGlobalUtil.ShowError(ex); }
            finally
            {
                UnLockPage();
            }
        }