예제 #1
0
        protected override void OnOK()
        {
            if (this.condition == null)
            {
                this.condition = new ConditionForListCls();
            }

            if (this.StartdateEdit.EditValue == null)
            {
                this.condition.StartDate = global::Helper.DateTimeParse.NullDate;
            }
            else
            {
                this.condition.StartDate = this.StartdateEdit.DateTime;
            }

            if (this.EnddateEdit.EditValue == null)
            {
                this.condition.EndDate = global::Helper.DateTimeParse.EndDate;
            }
            else
            {
                this.condition.EndDate = this.EnddateEdit.DateTime;
            }


            this.condition.StartPMEid           = this.txtStartPMEid.Text;
            this.condition.EndPMEid             = this.txtEndPMEid.Text;
            this.condition.StartPronoteHeaderId = this.txtStartPronoteheadid.Text;
            this.condition.EndPronoteHeaderId   = this.txtEndPronoteheadid.Text;

            this.condition.StartProduct = this.btnEditStartProduct.EditValue as Model.Product;
            this.condition.EndProduct   = this.btnEditEndProduct.EditValue as Model.Product;
        }
예제 #2
0
        private void barBtnChangeSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ConditionForList f = new ConditionForList();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                ConditionForListCls con = f.Condition as ConditionForListCls;

                this.bindingSource1.DataSource = (this.manager as BL.ProduceMaterialExitManager).SelectForListForm(con.StartDate, con.EndDate, con.StartPMEid, con.EndPMEid, con.StartPronoteHeaderId, con.EndPronoteHeaderId, con.StartProduct, con.EndProduct, con.DepotStart, con.DepotEnd, con.InvoiceCusID);

                foreach (Model.ProduceMaterialExit pme in (this.bindingSource1.DataSource as IList <Model.ProduceMaterialExit>))
                {
                    pme.MPronoteHeader = this.PronoteHeaderManager.Get(pme.PronoteHeaderID);
                }
                this.barStaticItem1.Caption = string.Format("{0}Items", this.bindingSource1.Count);
            }
        }
예제 #3
0
        private void barBtnChangeSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ConditionForList f = new ConditionForList();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                ConditionForListCls con = f.Condition as ConditionForListCls;

                //this.bindingSource1.DataSource = (this.manager as BL.ProduceMaterialExitManager).SelectForListForm(con.StartDate, con.EndDate, con.StartPMEid, con.EndPMEid, con.StartPronoteHeaderId, con.EndPronoteHeaderId, con.StartProduct, con.EndProduct, con.WorkhouseId, con.InvocieXOCusId, con.HandBookId);

                //foreach (Model.ProduceMaterialExit pme in (this.bindingSource1.DataSource as IList<Model.ProduceMaterialExit>))
                //{
                //    pme.MPronoteHeader = this.PronoteHeaderManager.Get(pme.PronoteHeaderID);
                //}
                this.bindingSource1.DataSource = DetailManager.SelectForListForm(con.StartDate, con.EndDate, con.StartPMEid, con.EndPMEid, con.StartPronoteHeaderId, con.EndPronoteHeaderId, con.StartProduct, con.EndProduct, con.WorkhouseId, con.InvocieXOCusId, con.HandBookId);
            }
        }
예제 #4
0
        protected override void OnOK()
        {
            if (this.condition == null)
            {
                this.condition = new ConditionForListCls();
            }

            if (this.StartdateEdit.EditValue == null)
            {
                this.condition.StartDate = global::Helper.DateTimeParse.NullDate;
            }
            else
            {
                this.condition.StartDate = this.StartdateEdit.DateTime;
            }

            if (this.EnddateEdit.EditValue == null)
            {
                this.condition.EndDate = global::Helper.DateTimeParse.EndDate;
            }
            else
            {
                this.condition.EndDate = this.EnddateEdit.DateTime;
            }


            this.condition.StartPMEid           = this.btn_StartPMEId.Text;
            this.condition.EndPMEid             = this.btn_EndPMEId.Text;
            this.condition.StartPronoteHeaderId = this.btn_StartPNTId.Text;
            this.condition.EndPronoteHeaderId   = this.btn_EndPNTId.Text;

            this.condition.StartProduct = this.btnEditStartProduct.EditValue as Model.Product;
            this.condition.EndProduct   = this.btnEditEndProduct.EditValue as Model.Product;

            this.condition.WorkhouseId    = this.ncc_Workhouse.EditValue == null ? null : (this.ncc_Workhouse.EditValue as Model.WorkHouse).WorkHouseId;
            this.condition.InvocieXOCusId = this.txt_InvoiceXOCusId.Text;
            this.condition.HandBookId     = this.cob_HandBook.Text;
        }