Ejemplo n.º 1
0
        protected override void DoQuery()
        {
            ConditionB condition = this.condition as ConditionB;

            //this.bindingSource1.DataSource = this.miscDataManager.SelectDataTable(condition.Date1, condition.Date2, condition.Company, condition.Employee, condition.Depot, global::Helper.InvoiceStatus.Normal, "Q05");
            this.bindingSource1.DataSource = XsDetailManager.Select(condition.Date1, condition.Date2, condition.Employee, condition.Customer, condition.Depot);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 重写父类方法
        /// </summary>
        protected override void OnOK()
        {
            if (this.condition == null)
            {
                this.condition = new ConditionB();
            }

            this.condition.Date1 = this.dateEdit1.DateTime == new DateTime()?new DateTime(1900, 1, 1):this.dateEdit1.DateTime;
            this.condition.Date2 = this.dateEdit2.DateTime == new DateTime() ? DateTime.Now.Date: this.dateEdit2.DateTime;
            //this.condition.Customer = this.newChooseCustomer.EditValue as Model.Customer;
            this.condition.Depot    = this.buttonEditDepot.EditValue as Model.Depot;
            this.condition.Employee = this.buttonEditEmployee.EditValue as Model.Employee;
        }