public void Search()
        {
            this.dataGridViewPagingSumCtrl.SetDataSource <SupplierAccountRecord>(null);

            if (this.pagePara != null)
            {
                this.pagePara.SupplierID = supplier?.ID;
            }
            else
            {
                this.pagePara = new SupplierAccountRecordPagePara()
                {
                    SupplierID  = supplier?.ID,
                    StartDate   = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate     = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex   = 0,
                    PageSize    = this.dataGridViewPagingSumCtrl.PageSize,
                    AccountType = (AccountType)this.skinComboBox_FeeType.SelectedValue,
                };
            }
            if (supplier != null)
            {
                skinComboBoxSupplier.SelectedValue = supplier.ID;
            }
            Search(this.pagePara);
        }
 private void BaseButton_Search_Click(object sender, EventArgs e)
 {
     this.pagePara = new SupplierAccountRecordPagePara()
     {
         SupplierID  = ValidateUtil.CheckEmptyValue(this.skinComboBoxSupplier.SelectedValue),
         StartDate   = new CJBasic.Date(this.dateTimePicker_Start.Value),
         EndDate     = new CJBasic.Date(this.dateTimePicker_End.Value),
         PageIndex   = 0,
         PageSize    = this.dataGridViewPagingSumCtrl.PageSize,
         AccountType = (AccountType)this.skinComboBox_FeeType.SelectedValue,
     };
     Search(pagePara);
 }
 public void Search(SupplierAccountRecordPagePara para)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         SupplierAccountRecordPage listPage = GlobalCache.ServerProxy.GetSupplierAccountRecordPage(this.pagePara);
         dataGridViewPagingSumCtrl.OrderPara = pagePara;
         this.dataGridViewPagingSumCtrl.Initialize(listPage);
         this.BindingSource(listPage);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// 获取供应商往来账分页信息
        /// </summary>
        /// <param name="para"></param>
        /// <returns></returns>
        public SupplierAccountRecordPage GetSupplierAccountRecordPage(SupplierAccountRecordPagePara para)
        {
            byte[] response = this.engine.CustomizeOutter.Query(ManageInformationTypes.GetSupplierAccountRecordPage, SerializeHelper.ResultToSerialize(para));

            return(CompactPropertySerializer.Default.Deserialize <SupplierAccountRecordPage>(response, 0));
        }