示例#1
0
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                pagePara = new GetDistributorWithdrawRecordPagePara()
                {
                    DistributorID = skinComboBoxShopID.Text,
                    StartDate     = new Date(dateTimePicker_Start.Value),
                    EndDate       = new Date(dateTimePicker_End.Value),
                    PageIndex     = 0,
                    PageSize      = dataGridViewPagingSumCtrl.PageSize,
                    State         = (DistributorWithdrawRecordState)skinComboBoxState.SelectedValue
                };

                DistributorWithdrawRecordPage listPage = GlobalCache.ServerProxy.GetDistributorWithdrawRecordPage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                this.dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingScrapOrderSource(listPage);
            }
            catch (Exception ee)
            {
                GlobalUtil.ShowError(ee);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
示例#2
0
        private void BaseButtonQuery_Click(object sender, EventArgs e)
        {
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                /* this.para = new GetPfCustomerPagePara()
                 {
                     IdOrName = this.skinTextBoxName.SkinTxt.Text,
                     PageIndex = 0,
                     PageSize = dataGridViewPagingSumCtrl.PageSize,

                 };

                 dataGridViewPagingSumCtrl.OrderPara = para;
                 PfCustomerPage listPage =  GlobalCache.ServerProxy.GetPfCustomerPage(para);
                 this.dataGridViewPagingSumCtrl.Initialize(listPage);
                 this.BindingCostumeStoreDataSource(listPage);*/

                 para = new  GetDistributorWithdrawRecordPagePara()
                {
                    //StartTime=
                      
                     DistributorID = this.skinTextBoxName.SkinTxt.Text,
                     // Level = 0,
                    PageSize = dataGridViewPagingSumCtrl.PageSize,
                     StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value),
                     EndDate = new CJBasic.Date(this.dateTimePicker_End.Value),
                };

                dataGridViewPagingSumCtrl.OrderPara = para;
               InteractResult<DistributorWithdrawRecordPage> result = GlobalCache.ServerProxy.GetDistributorPayManage(para);
                 if (result.ExeResult == ExeResult.Success)
                {
                    if (result.Data != null)
                    {
                        // this.dataGridViewPagingSumCtrl.Initialize(result.Data.Distributors);
                        dataGridViewPagingSumCtrl.BindingDataSource(result.Data?.DistributorWithdrawRecords);
                       // dataGridViewPagingSumCtrl.BindingDataSource(DataGridViewUtil.ListToBindingList(result.Data.Distributors));
                    }
                }
                else
                {
                    ShowMessage(result.Msg);
                }

                

            }
            catch (Exception ex)
            {
                GlobalUtil.ShowError(ex);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }