Пример #1
0
        //点击查询按钮
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            bool   isOpenDate = true;
            Date   startDate  = new Date(this.dateTimePicker_Start.Value);
            Date   endDate    = new Date(this.dateTimePicker_End.Value);
            string SCustumeId = string.IsNullOrEmpty(this.costumeTextBox1.Text)?"": this.costumeTextBox1.Text;

            if ((pfCustomer == null || pfCustomer.ID == null || pfCustomer.ID == "") && skinComboBox_PfCustomer.Text != "所有")
            {
                GlobalMessageBox.Show("无效的客户信息!");
                this.skinComboBox_PfCustomer.Focus();
                return;
            }

            this.para = new GetCustomerRetailPagePara()
            {
                PfCustomerID = pfCustomer?.ID,
                CostumeID    = SCustumeId,
                StartDate    = startDate,
                EndDate      = endDate,
                PageIndex    = 0,
                PageSize     = this.dataGridViewPagingSumCtrl.PageSize,
            };

            dataGridViewPagingSumCtrl.OrderPara = para;
            Search();
        }
Пример #2
0
 private void Initialize()
 {
     DateTimeUtil.DateTimePicker_SetDateTimePicker(dateTimePicker_Start, dateTimePicker_End);
     //  this.retailOrderList = null;
     this.para = new GetCustomerRetailPagePara();
     skinComboBox_PfCustomer.Initialize(false, true, 1);
     SetDisplay();
 }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="para">内部调用的话不传</param>
        public void Search(GetCustomerRetailPagePara para = null)
        {
            if (para != null)
            {
                this.para = para;
                SetQueryCondition();
            }
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                CustomerRetailPage listPage = GlobalCache.ServerProxy.GetCustomerRetailPage(this.para);
                dataGridViewPagingSumCtrl.Initialize(listPage);

                if (this.para.PfCustomerID == null)
                {
                    PfCustomerID.Visible = true;
                }
                else
                {
                    PfCustomerID.Visible = false;
                }

                BindingDataSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }