Ejemplo n.º 1
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);
            }
        }
Ejemplo n.º 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.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);
            }
        }