Exemplo n.º 1
0
        private void Init()
        {
            MenuPermission            = RolePermissionMenuEnum.批发发货;
            skinLabelPrice.Text       = string.Empty;
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl.ShowRowCounts = false;
            dataGridViewPagingSumCtrl.Initialize();
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2, new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                SumCount.DataPropertyName,
                //  SumMoney.DataPropertyName,
                dataGridViewTextBoxColumn14.DataPropertyName
            });
            dataGridViewPagingSumCtrl2.ShowRowCounts = false;
            dataGridViewPagingSumCtrl2.Initialize();

            costumeFromSupplierTextBox1.ShopID = CommonGlobalCache.GeneralStoreShopID;
            if (!HasPermission(RolePermissionMenuEnum.批发发货, RolePermissionEnum.单据时间))
            {
                dateTimePicker_Start.Enabled = false;
            }
        }
Exemplo n.º 2
0
 ///// <summary>
 ///// 点击查询入库差异单明细
 ///// </summary>
 //public event CJBasic.Action<SupplierAccountRecord,Type>SupplierAccountRecordDetailClick;
 public WholesaleAccountContrastCtrl()
 {
     InitializeComponent();
     MenuPermission            = RolePermissionMenuEnum.客户往来账对账表;
     dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, new String[] {
         this.inCountDataGridViewTextBoxColumn.DataPropertyName,
         this.inMoneyDataGridViewTextBoxColumn.DataPropertyName,
         this.outCountDataGridViewTextBoxColumn.DataPropertyName,
         this.outMoneyDataGridViewTextBoxColumn.DataPropertyName,
         this.otherMoneyDataGridViewTextBoxColumn.DataPropertyName,
         this.payMoneyDataGridViewTextBoxColumn.DataPropertyName,
         dataGridViewTextBoxColumn1.DataPropertyName,
         createTimeDataGridViewTextBoxColumn.DataPropertyName
     });
     dataGridViewPagingSumCtrl.HideSummaryRowHeader = true;
     dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] {
         this.inCountDataGridViewTextBoxColumn,
         this.inMoneyDataGridViewTextBoxColumn,
         this.outCountDataGridViewTextBoxColumn,
         this.outMoneyDataGridViewTextBoxColumn,
     });
     dataGridViewPagingSumCtrl.Initialize();
     SetSpanInfo();
     Initialize();
 }
        public SaleAnalysisCollectTypeForm1()
        {
            try
            {
                InitializeComponent();
                this.filterValid = filterValid;
                dataGridViewQueryResults.AutoGenerateColumns = false;
                dataGridViewTarget.AutoGenerateColumns       = false;
                dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridViewQueryResults);
                dataGridViewPagingSumCtrl.Initialize();
                dataGridViewQueryResults.MultiSelect        = true;
                this.dataGridViewQueryResults.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;

                new DataGridViewPagingSumCtrl(this.dataGridViewTarget).Initialize();
                dataGridViewTarget.MultiSelect        = true;
                this.dataGridViewTarget.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
                queryResults = new List <ListItem <string> >();
                queryResults.Add(new ListItem <string>("店铺", "店铺"));
                queryResults.Add(new ListItem <string>("供应商", "供应商"));
                queryResults.Add(new ListItem <string>("品牌", "品牌"));
                queryResults.Add(new ListItem <string>("大类", "大类"));
                queryResults.Add(new ListItem <string>("小类", "小类"));
                queryResults.Add(new ListItem <string>("款号", "款号"));
                queryResults.Add(new ListItem <string>("名称", "名称"));
                queryResults.Add(new ListItem <string>("年份", "年份"));
                dataGridViewQueryResults.DataSource = queryResults;
            }
            catch (Exception ex)
            {
                CommonGlobalUtil.ShowError(ex);
            }
        }
Exemplo n.º 4
0
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                pagePara = new CashRecordPagePara()
                {
                    ShopID            = ValidateUtil.CheckEmptyValue(this.skinComboBox_DestShop.SelectedValue),
                    StartDate         = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate           = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex         = 0,
                    PageSize          = this.dataGridViewPagingSumCtrl.PageSize,
                    CashRecordFeeType = (CashRecordFeeType)this.skinComboBox_FeeType.SelectedValue,
                };
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                CashRecordPage listPage = CommonGlobalCache.ServerProxy.GetCashRecordPage(this.pagePara);
                dataGridViewPagingSumCtrl.Initialize(listPage);
                BindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
Exemplo n.º 5
0
 public CheckStoreOrderSummaryCtrl()
 {
     InitializeComponent();
     try
     {
         this.dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1,
                                                                        dataGridViewPagingSumCtrl_CurrentPageIndexChanged,
                                                                        BaseButton_Search_Click,
                                                                        new String[] {
             CountInSnapshotColumn.DataPropertyName,
             CountInCheckColumn.DataPropertyName,
             dataGridViewTextBoxColumn3.DataPropertyName,
             dataGridViewTextBoxColumn5.DataPropertyName
         });
         dataGridViewPagingSumCtrl.Initialize();
         dataGridViewPagingSumCtrl.ColumnSorting += dataGridViewPagingSumCtrl_ColumnSorting;
         skinSplitContainer1.Panel2Collapsed      = true;
         MenuPermission = RolePermissionMenuEnum.盘点汇总;
         SetState();
         skinComboBoxShop.Initialize();
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
     //  baseButtonExport.data
 }
Exemplo n.º 6
0
        public ReplenishOutboundCtrl(ReplenishOrder replenishOrder)
        {
            InitializeComponent();
            dataGridViewPagingSumCtrl1 = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl1.Initialize();
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2,
                                                                       new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                SumCount.DataPropertyName,
                SumMoney.DataPropertyName
            });
            dataGridViewPagingSumCtrl2.Initialize();
            curReplenishOrder = replenishOrder;
            // this.curOutbound = GlobalCache.ServerProxy.GetOneOutbound(replenishOrder.ID);
            this.Initialize();

            orderStoreCache = GlobalCache.ServerProxy.GetCostumeStore4ReplenishInfo(new CostumeStore4ReplenishInfoPara()
            {
                ReplenishOrderID = replenishOrder.ID, ShopID = GlobalCache.ServerProxy.GetGeneralStoreShopID()
            });
        }
Exemplo n.º 7
0
        public WholesaleDeliveryPickForm(bool isPurchase)
        {
            InitializeComponent();
            MenuPermission            = RolePermissionMenuEnum.批发发货;
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl.Initialize();
            dataGridViewPagingSumCtrl.ShowRowCounts = false;
            dataGridViewPagingSumCtrl1 = new DataGridViewPagingSumCtrl(this.dataGridView2);
            dataGridViewPagingSumCtrl1.Initialize();
            dataGridViewPagingSumCtrl1.ShowRowCounts = false;

            if (isPurchase)
            {
                this.Text = "批发发货单提单";
            }
            else
            {
                this.Text = "批发退货单提单";
            }
            GetHangUpPfsPara para = new GetHangUpPfsPara()
            {
                IsDelivery = isPurchase
            };

            orders = GlobalCache.ServerProxy.GetHangUpPfs(para);
            if (orders != null)
            {
                foreach (var item in orders)
                {
                    item.PfCustomerName = PfCustomerCache.GetPfCustomerName(item.PfCustomerID);
                    item.AdminUserName  = CommonGlobalCache.GetUserName(item.AdminUserID);
                }
            }
            dataGridViewPagingSumCtrl.BindingDataSource(orders);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 调拨查询管理
        /// </summary>
        /// <param name="state">调拨状态</param>
        /// <param name="isAllocateInbound">true:调拨入库  false:调拨</param>
        public CurrentShopAllocateManageCtrl(AllocateOrderState state = AllocateOrderState.All)
        {
            InitializeComponent();
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2, new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName
            });
            dataGridViewPagingSumCtrl2.SpecAutoSizeModeColumns(new DataGridViewColumn[] { costumeIDDataGridViewTextBoxColumn });
            dataGridViewPagingSumCtrl2.Initialize();
            this.dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, BaseButton_Search_Click, new string[] { totalCountDataGridViewTextBoxColumn.DataPropertyName, totalPriceDataGridViewTextBoxColumn.DataPropertyName });

            dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] {
                remarksDataGridViewTextBoxColumn
            });
            dataGridViewPagingSumCtrl.Initialize();

            dataGridViewPagingSumCtrl.ColumnSorting += dataGridViewPagingSumCtrl_ColumnSorting;
            this.createTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATETIME_FORMAT;
            this.dataGridView1.AutoGenerateColumns = false;
            this.state = state;
        }
Exemplo n.º 9
0
        public ReplenishPickForm(string shopID)
        {
            InitializeComponent();
            dataGridView1.AutoGenerateColumns       = false;
            dataGridView2.AutoGenerateColumns       = false;
            dataGridViewPagingSumCtrl               = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl.ShowRowCounts = false;
            dataGridViewPagingSumCtrl.Initialize();
            dataGridViewPagingSumCtrl1 = new DataGridViewPagingSumCtrl(this.dataGridView2);
            dataGridViewPagingSumCtrl1.ShowRowCounts = false;
            dataGridViewPagingSumCtrl1.Initialize();

            if (!string.IsNullOrEmpty(shopID))
            {
                orders = GlobalCache.ServerProxy.GetHangUpReplenishOrders(shopID, null);
                if (orders != null)
                {
                    foreach (var item in orders)
                    {
                        item.ShopName  = CommonGlobalCache.GetShopName(item.ShopID);
                        item.GuideName = CommonGlobalCache.GetUserName(item.RequestGuideID);
                    }
                }
            }
            dataGridViewPagingSumCtrl.BindingDataSource(orders);
        }
Exemplo n.º 10
0
 ///// <summary>
 ///// 点击查询入库差异单明细
 ///// </summary>
 //public event CJBasic.Action<CostumeStoreChangeInfo,Type> CostumeStoreTrackDetailClick;
 public CostumeStoreTrackSearchCtrl1()
 {
     InitializeComponent();
     this.dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1
                                                                    , new string[] {
         inDataGridViewTextBoxColumn.DataPropertyName,
         intoDataGridViewTextBoxColumn.DataPropertyName,
         returnDataGridViewTextBoxColumn.DataPropertyName,
         turnOutDataGridViewTextBoxColumn.DataPropertyName,
         retailDataGridViewTextBoxColumn.DataPropertyName,
         scrapDataGridViewTextBoxColumn.DataPropertyName,
         profitDataGridViewTextBoxColumn.DataPropertyName
     });
     dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(
         inDataGridViewTextBoxColumn,
         intoDataGridViewTextBoxColumn,
         returnDataGridViewTextBoxColumn,
         turnOutDataGridViewTextBoxColumn,
         retailDataGridViewTextBoxColumn,
         scrapDataGridViewTextBoxColumn,
         profitDataGridViewTextBoxColumn);
     dataGridViewPagingSumCtrl.Initialize();
     dataGridViewPagingSumCtrl.ColumnSorting += dataGridViewPagingSumCtrl_ColumnSorting;
     dataGridView1.ColumnHeadersHeight        = 40;
     SetSpanInfo();
     MenuPermission = RolePermissionMenuEnum.库存变化查询;
 }
        public SalesQuantityRankingSearchCtrl()
        {
            InitializeComponent();
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, BaseButton_Search_Click, new string[] {
                quantityOfSaleDataGridViewTextBoxColumn.DataPropertyName,
                sumMoneyDataGridViewTextBoxColumn.DataPropertyName
            });
            dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] {
                Remarks
            });
            dataGridViewPagingSumCtrl.Initialize();

            dataGridViewPagingSumCtrl.ColumnSorting    = dataGridViewPagingSumCtrl_ColumnSorting;
            dataGridViewPagingSumCtrl.SelectionChanged = dataGridView1_SelectionChanged;
            dataGridViewPagingSumCtrl.AutoIndex        = false;
            this.skinSplitContainer1.Panel2Collapsed   = true;
            firstInboundTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATE_FORMAT;
            firstSaleTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format    = DateTimeUtil.DEFAULT_DATE_FORMAT;
            LastSaleTime.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATE_FORMAT;

            CommonGlobalUtil.SetBrand(skinComboBox_Brand);
            this.skinComboBoxShopID.Initialize(false, CommonGlobalCache.IsGeneralStoreRetail != "1", CommonGlobalCache.BusinessAccount.OnlineEnabled);
            this.skinRadioButtonCostume.Checked = true;
            this.skinRadioButton1.Checked       = true;
            List <ListItem <int> > stateList = new List <ListItem <int> >();

            DateTimeUtil.DateTimePicker_SetDateTimePicker(dateTimePicker_Start, dateTimePicker_End);
            DateTimeUtil.DateTimePicker_ThisWeek(dateTimePickerStartInbound, dateTimePickerEndInbound);
            MenuPermission = RolePermissionMenuEnum.畅滞排行榜;
        }
Exemplo n.º 12
0
        public PurchaseSummaryTypeForm1()
        {
            try
            {
                InitializeComponent();
                this.filterValid = filterValid;
                dataGridViewQueryResults.AutoGenerateColumns = false;
                dataGridViewTarget.AutoGenerateColumns       = false;
                dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridViewQueryResults);
                dataGridViewPagingSumCtrl.Initialize();
                dataGridViewQueryResults.MultiSelect        = true;
                this.dataGridViewQueryResults.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;

                new DataGridViewPagingSumCtrl(this.dataGridViewTarget).Initialize();
                dataGridViewTarget.MultiSelect        = true;
                this.dataGridViewTarget.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
                queryResults = new List <ListItem <string> >();
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.CostumeID, PurchaseSummaryType.CostumeID));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.CostumeName, PurchaseSummaryType.CostumeName));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.Date, PurchaseSummaryType.Date));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.SupplierName, PurchaseSummaryType.SupplierName));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.BrandName, PurchaseSummaryType.BrandName));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.PurchaseOrderID, PurchaseSummaryType.PurchaseOrderID));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.Color, PurchaseSummaryType.Color));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.Year, PurchaseSummaryType.Year));
                queryResults.Add(new ListItem <string>(PurchaseSummaryType.Season, PurchaseSummaryType.Season));
                dataGridViewQueryResults.DataSource = queryResults;
            }
            catch (Exception ex)
            {
                CommonGlobalUtil.ShowError(ex);
            }
        }
Exemplo n.º 13
0
        public WholesaleEmOrderDetailCtrl(String orderID, BaseUserControl sourceCtrl = null)
        {
            InitializeComponent();
            //  this.Controls.Add(imageCtrl);
            // ShowMessage("SourceCtrlType1:" + this);
            //ShowMessage( "SourceCtrlType:" + this.SourceCtrlType.ToString());
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl.Initialize();
            this.sourceCtrl = sourceCtrl;
            GetPfCustomerOrderPagePara para = new GetPfCustomerOrderPagePara()
            {
                CustomerOrderId = orderID,
                PageIndex       = 0,
                PageSize        = 1
            };
            PfCustomerOrderPage listPage = GlobalCache.EMallServerProxy.GetPfCustomerOrderPage(para);

            if (listPage != null && listPage.PfCustomerOrders.Count == 1)
            {
                //获取order
                this.Order = listPage.PfCustomerOrders[0];
                //skinLabel2.Text = Order.PayTypeName;
            }
            skinLabelRemarks.Text = Order.Remarks;
            skinLabelOrderId.Text = orderID;

            if (Order != null)
            {
                Display();
                Initialize();
            }
        }
Exemplo n.º 14
0
        private void Init()
        {
            dataGridViewPagingSumCtrl1 = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl1.ShowRowCounts = false;
            dataGridViewPagingSumCtrl1.Initialize();
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2, new String[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                SumMoney.DataPropertyName,
                SumCount.DataPropertyName
            });

            dataGridViewPagingSumCtrl2.ShowRowCounts = false;
            dataGridViewPagingSumCtrl2.Initialize();
            MenuPermission = RolePermissionMenuEnum.报损;
        }
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                this.pagePara = new GetPfCustomerBalanceRecordPagePara()
                {
                    PfCustomerBalanceType = (PfCustomerBalanceType)this.skinComboBoxChangeType.SelectedValue,

                    StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate   = new CJBasic.Date(this.dateTimePicker_End.Value),

                    PageIndex    = 0,
                    PageSize     = this.dataGridViewPagingSumCtrl.PageSize,
                    PfCustomerID = pfCustomer?.ID
                };
                PfCustomerBalanceRecordPage listPage = GlobalCache.ServerProxy.GetPfCustomerBalanceRecordPage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
Exemplo n.º 16
0
        public WholesaleCustomeStoreCtrl()
        {
            InitializeComponent();

            MenuPermission            = RolePermissionMenuEnum.库存查询;
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1,
                                                                      new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                CostPriceSum.DataPropertyName,
                SumCount.DataPropertyName,
                SumPfMoney.DataPropertyName
            });
            dataGridViewPagingSumCtrl.Initialize();
            // dataGridViewPagingSumCtrl.SpecAutoSizeMode(new TKeyValue<DataGridViewColumn, DataGridViewAutoSizeColumnMode>(Remarks, DataGridViewAutoSizeColumnMode.ColumnHeader));
        }
Exemplo n.º 17
0
 private void BaseButtonQuery_Click(object sender, EventArgs e)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         para = new GetPfCustomerPage4DistributorPara()
         {
             DistributorID = item.ID,
             PageIndex     = 0,
             PageSize      = dataGridViewPagingSumCtrl.PageSize
         };
         PfCustomerPage page = GlobalCache.ServerProxy.GetPfCustomerPage4Distributor(para);
         dataGridViewPagingSumCtrl.OrderPara = para;
         dataGridViewPagingSumCtrl.Initialize(page);
         BindingDataSource(page);
     }
     catch (Exception ex)
     {
         GlobalUtil.ShowError(ex);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }
Exemplo n.º 18
0
        private void Init()
        {
            imageHelp1.Control        = this;
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(dataGridView1);
            dataGridViewPagingSumCtrl.Initialize();
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(dataGridView2, new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                sumMoneyDataGridViewTextBoxColumn.DataPropertyName,
                sumCountDataGridViewTextBoxColumn1.DataPropertyName
            });
            dataGridViewPagingSumCtrl2.Initialize();

            DataGridViewUtil.SetAlternatingColor(dataGridView1, Color.Gainsboro, Color.White);
            this.CostumeCurrentShopTextBox1.CostumeSelected += CostumeCurrentShopTextBox1_CostumeSelected;
            this.guideComboBox1.Initialize(GuideComboBoxInitializeType.Null, shopID);
            if (CommonGlobalCache.CurrentUser.Type == UserInfoType.Guide)
            {
                //  this.guideComboBox1.SelectedValue = GlobalCache.CurrentUserID;
            }
        }
Exemplo n.º 19
0
 private void Init()
 {
     dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, new string[] {
         fAtmDataGridViewTextBoxColumn.DataPropertyName,
         xSAtmDataGridViewTextBoxColumn.DataPropertyName,
         sAtmDataGridViewTextBoxColumn.DataPropertyName,
         mAtmDataGridViewTextBoxColumn.DataPropertyName,
         lAtmDataGridViewTextBoxColumn.DataPropertyName,
         xLAtmDataGridViewTextBoxColumn.DataPropertyName,
         xL2AtmDataGridViewTextBoxColumn.DataPropertyName,
         xL3AtmDataGridViewTextBoxColumn.DataPropertyName,
         xL4AtmDataGridViewTextBoxColumn.DataPropertyName,
         xL5AtmDataGridViewTextBoxColumn.DataPropertyName,
         xL6AtmDataGridViewTextBoxColumn.DataPropertyName,
         sumCountAtmDataGridViewTextBoxColumn.DataPropertyName,
         xSDataGridViewTextBoxColumn.DataPropertyName,
         sDataGridViewTextBoxColumn.DataPropertyName,
         mDataGridViewTextBoxColumn.DataPropertyName,
         lDataGridViewTextBoxColumn.DataPropertyName,
         xLDataGridViewTextBoxColumn.DataPropertyName,
         xL2DataGridViewTextBoxColumn.DataPropertyName,
         xL3DataGridViewTextBoxColumn.DataPropertyName,
         xL4DataGridViewTextBoxColumn.DataPropertyName,
         xL5DataGridViewTextBoxColumn.DataPropertyName,
         xL6DataGridViewTextBoxColumn.DataPropertyName,
         fDataGridViewTextBoxColumn.DataPropertyName,
         sumCountDataGridViewTextBoxColumn.DataPropertyName,
         SumMoneyWinLost.DataPropertyName, sumCountWinLostDataGridViewTextBoxColumn.DataPropertyName
     });
     dataGridViewPagingSumCtrl.Initialize();
 }
Exemplo n.º 20
0
        private void Init()
        {
            DataGridViewUtil.SetAlternatingColor(dataGridView1, Color.Gainsboro, Color.White);
            dataGridViewPagingSumCtrl1 = new DataGridViewPagingSumCtrl(this.dataGridView1);
            dataGridViewPagingSumCtrl1.ShowRowCounts = false;
            dataGridViewPagingSumCtrl1.Initialize();
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2, new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                SumCount.DataPropertyName,
                SumCost.DataPropertyName,
                SumMoney.DataPropertyName
            });
            dataGridViewPagingSumCtrl2.ShowRowCounts = false;
            dataGridViewPagingSumCtrl2.Initialize();
            MenuPermission = RolePermissionMenuEnum.采购退货;

            if (!HasPermission(RolePermissionMenuEnum.采购退货, RolePermissionEnum.单据时间))
            {
                dateTimePicker_Start.Enabled = false;
            }
        }
Exemplo n.º 21
0
 public CustomerSaleOrderDetailForm()
 {
     InitializeComponent();
     dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1);
     dataGridViewPagingSumCtrl.Initialize();
     skinLabelOrder.Text = String.Empty;
 }
Exemplo n.º 22
0
        public InboundDetailCtrl(InboundOrder inboundOrder, AllocateOrder order)
        {
            InitializeComponent();
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(dataGridView1, new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,

                sumCountDataGridViewTextBoxColumn.DataPropertyName,
                sumMoneyDataGridViewTextBoxColumn.DataPropertyName
            });
            dataGridViewPagingSumCtrl.Initialize();
            this.curInboundOrder = inboundOrder; Initialize();
            if (order.State == 1)
            {
                this.curDateTime = order.FinishedTime.ToString();
            }
            else
            {
                this.curDateTime = "";
            }
        }
Exemplo n.º 23
0
 public CostumeColorCtrl()
 {
     InitializeComponent();
     MenuPermission            = RolePermissionMenuEnum.颜色;
     dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1);
     dataGridViewPagingSumCtrl.Initialize();
 }
Exemplo n.º 24
0
        /// <summary>
        /// 点击收货按钮触发
        /// </summary>
        // public event CJBasic.Action<GuideDayAchievement> InboundClick;

        public GuideAchievementSummaryManageCtrl()
        {
            InitializeComponent();

            this.skinComboBoxShopID.SelectedIndexChanged += SkinComboBoxShopID_SelectedIndexChanged;
            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, new String[] {
                this.dataGridViewTextBoxColumn45.DataPropertyName,
                this.dataGridViewTextBoxColumn46.DataPropertyName,
                this.dataGridViewTextBoxColumn47.DataPropertyName,
                this.dataGridViewTextBoxColumn48.DataPropertyName,
                this.dataGridViewTextBoxColumn49.DataPropertyName,
                this.SalesActualRecvSum.DataPropertyName,
                this.SalesActualRecvShopSum.DataPropertyName,
                this.dataGridViewTextBoxColumn52.DataPropertyName,
                this.dataGridViewTextBoxColumn53.DataPropertyName,
                this.dataGridViewTextBoxColumn54.DataPropertyName,
                this.dataGridViewTextBoxColumn55.DataPropertyName
            });
            dataGridViewPagingSumCtrl.Initialize();
            // this.dataGridView1.SelectionChanged += dataGridView1_SelectionChanged;
            dataGridViewPagingSumCtrl.SelectionChanged = dataGridView1_SelectionChanged;
            dataGridViewPagingSumCtrl.ColumnSorting    = dataGridViewPagingSumCtrl_ColumnSorting;
            dataGridViewPagingSumCtrl1 = new DataGridViewPagingSumCtrl(this.dataGridView2);
            dataGridViewPagingSumCtrl1.Initialize();
            //  this.dataGridView2.CellFormatting += DataGridView2_CellFormatting;
            this.dataGridViewTextBoxColumn38.DefaultCellStyle.Format = "p2";
            this.dataGridViewTextBoxColumn52.DefaultCellStyle.Format = "p2";
            this.dataGridView1.AutoGenerateColumns   = false;
            this.dataGridView2.AutoGenerateColumns   = false;
            this.skinSplitContainer1.Panel2Collapsed = true;
            this.Initialize();
            MenuPermission = RolePermissionMenuEnum.导购业绩;
        }
Exemplo n.º 25
0
        public GetRetailSummaryCtrl()
        {
            InitializeComponent();

            MenuPermission = RolePermissionMenuEnum.店铺收款汇总;
            //dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2);
            //dataGridViewPagingSumCtrl2.Initialize();
            this.dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1,
                                                                           new string[] {
                WeChat.DataPropertyName,
                Alipay.DataPropertyName,
                Cash.DataPropertyName,
                UnionpayCard.DataPropertyName,
                Integrate.DataPropertyName,
                Card.DataPropertyName,
                Sum.DataPropertyName,
                Ticket.DataPropertyName, MoneyOther.DataPropertyName
            });


            this.dataGridView1.AutoGenerateColumns = false;
            dataGridViewPagingSumCtrl.Initialize();

            this.dataGridView1.AutoGenerateColumns  = false;
            dataGridViewPagingSumCtrl.ColumnSorting = dataGridViewPagingSumCtrl_ColumnSorting;


            GlobalUtil.SetShop(skinComboBoxShopID, true);
            skinComboBoxShopID.SelectedValue = GlobalCache.GeneralStoreShopID;
        }
Exemplo n.º 26
0
        /// <summary>
        /// 调拨查询管理
        /// </summary>
        public AllocateManageCtrl()
        {
            InitializeComponent();
            MenuPermission             = RolePermissionMenuEnum.调拨单查询;
            dataGridViewPagingSumCtrl2 = new DataGridViewPagingSumCtrl(this.dataGridView2);
            dataGridViewPagingSumCtrl2.Initialize();

            isCheckOnlyCurShop = HasPermission(RolePermissionMenuEnum.调拨单查询, RolePermissionEnum.查看_只看本店);

            this.dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, BaseButton_Search_Click,
                                                                           new string[] { totalCountDataGridViewTextBoxColumn.DataPropertyName, totalPriceDataGridViewTextBoxColumn.DataPropertyName });

            dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] {
                remarksDataGridViewTextBoxColumn
            });

            dataGridViewPagingSumCtrl.Initialize();

            createTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATETIME_FORMAT;
            shopComboBox1.Initialize(false);
            shopCmbSend.Initialize(false);
            ShopCmbGet.Initialize(false);

            //  dataGridViewPagingSumCtrl.ColumnSorting = dataGridViewPagingSumCtrl_ColumnSorting;
        }
Exemplo n.º 27
0
 private void Init(bool hideOper = false)
 {
     //MenuPermission = RolePermissionMenuEnum.销售退货单查询;
     this.dataGridView_RetailOrder.AutoGenerateColumns = false;
     dataGridView_RetailDetail.AutoGenerateColumns     = false;
     dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView_RetailOrder, PageControlPanel21_CurrentPageIndexChanged, BaseButton_Search_Click,
                                                               new String[] {
         // TextBoxColumnOFshowCash.DataPropertyName,
         MoneyBankCard.DataPropertyName,
         MoneyWeiXin.DataPropertyName,
         MoneyAlipay.DataPropertyName,
         MoneyBuyByTicket.DataPropertyName,
         MoneyCash.DataPropertyName,
         MoneyVipCard.DataPropertyName,
         totalCountDataGridViewTextBoxColumn.DataPropertyName,
         totalPriceDataGridViewTextBoxColumn.DataPropertyName,
         TotalMoneyReceivedActual.DataPropertyName,
         CarriageCost.DataPropertyName,
         MoneyOtherColumn.DataPropertyName
     });
     if (hideOper)
     {
         //不分页
         dataGridViewPagingSumCtrl.Paging = false;
         dataGridViewPagingSumCtrl.AppendNotShowInColumnSettings(ColumnRedo, ColumnRemove, ColumnPrint);
     }
     this.Initialize();
     dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] { Remarks });
     dataGridViewPagingSumCtrl.Initialize();
     SetUpOrderStrip(dataGridViewPagingSumCtrl.InnerContextMenuStrip);
     new DataGridViewPagingSumCtrl(dataGridView_RetailDetail).Initialize();
 }
Exemplo n.º 28
0
        private List <BoundDetail> outboundDetailListCounterpart = new List <BoundDetail>();//绑定源的副本
        public InboundConfirmCtrl(string sourceOrderID)
        {
            InitializeComponent();
            this.shopID      = CommonGlobalCache.CurrentShopID;
            this.curOutbound = CommonGlobalCache.ServerProxy.GetOneOutbound(sourceOrderID);

            dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(dataGridView1, new string[] {
                xSDataGridViewTextBoxColumn.DataPropertyName,
                sDataGridViewTextBoxColumn.DataPropertyName,
                mDataGridViewTextBoxColumn.DataPropertyName,
                lDataGridViewTextBoxColumn.DataPropertyName,
                xLDataGridViewTextBoxColumn.DataPropertyName,
                xL2DataGridViewTextBoxColumn.DataPropertyName,
                xL3DataGridViewTextBoxColumn.DataPropertyName,
                xL4DataGridViewTextBoxColumn.DataPropertyName,
                xL5DataGridViewTextBoxColumn.DataPropertyName,
                xL6DataGridViewTextBoxColumn.DataPropertyName,
                fDataGridViewTextBoxColumn.DataPropertyName,
                SumCount.DataPropertyName,
                SumMoney.DataPropertyName
            });
            dataGridViewPagingSumCtrl.Initialize();
            this.Initialize();

            this.CostumeCurrentShopTextBox1.CostumeSelected += CostumeCurrentShopTextBox1_CostumeSelected;
        }
Exemplo n.º 29
0
        public RetailOrderSelectForm(string costumeID, String shopID, bool isRetailOrderIDQuery = true)
        {
            InitializeComponent();
            this.shopID = shopID;
            CostumeCurrentShopTextBox1.ShopID = shopID;
            retailOrderIDTextBox1.ShopID      = shopID;
            dataGridViewPagingSumCtrl         = new DataGridViewPagingSumCtrl(dataGridView1, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, this.baseButton3_Click);
            dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] {
                remarksDataGridViewTextBoxColumn
            });
            dataGridViewPagingSumCtrl.Initialize();
            //  dataGridViewPagingSumCtrl.SpecAutoSizeMode(new TKeyValue<DataGridViewColumn, DataGridViewAutoSizeColumnMode>(remarksDataGridViewTextBoxColumn, DataGridViewAutoSizeColumnMode.ColumnHeader));


            this.isRetailOrderIDQuery = isRetailOrderIDQuery;
            if (this.isRetailOrderIDQuery)
            {
                this.retailOrderIDTextBox1.SkinTxt.Text = costumeID;
                this.CostumeCurrentShopTextBox1.Visible = false;
                this.skinLabel_CostumeID.Visible        = false;
            }
            else
            {
                this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeID;
                this.retailOrderIDTextBox1.Visible           = false;
                this.skinLabel_OrderID.Visible = false;
            }
            baseButton3_Click(null, null);
        }
Exemplo n.º 30
0
 public GiftTicketCtrl()
 {
     InitializeComponent();
     MenuPermission            = RolePermissionMenuEnum.优惠券设置;
     dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(dataGridView1);
     dataGridViewPagingSumCtrl.Initialize();
 }