private void InitializaLOVData()
        {
            try
            {
                //for warehouse
                using (QueryBLL queryBll = new QueryBLL())
                {
                    List <Warehouse> lstWH = queryBll.GetWarehouse();
                    if (lstWH != null)
                    {
                        lstWH.Insert(0, new Warehouse {
                            SEQ_NO = string.Empty, NAME = "(All)"
                        });
                        this.lueWarehouse.Properties.DataSource = lstWH;
                        this.rps_lueWH.DataSource = lstWH;
                    }
                }

                //for party
                using (PartyBLL partyBll = new PartyBLL())
                {
                    List <Party> lstParty = partyBll.LovPratyList("C", string.Empty);
                    lstParty.Insert(0, new Party {
                        PARTY_ID = string.Empty, PARTY_NAME = "(All)"
                    });
                    this.lueCUSTOMER.Properties.DataSource = lstParty;
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
        private void InitializaLOVData()
        {
            try
            {
                //For Warehouse
                using (MaterialBLL mtlBll = new MaterialBLL())
                {
                    List <Location> lstLoc = mtlBll.GetLocationList();
                    if (lstLoc != null)
                    {
                        this.grvQrySummary_rps_lueLocation.DataSource = lstLoc;

                        lstLoc.Insert(0, new Location {
                            SEQ_NO = string.Empty, NAME = "(All)"
                        });
                        this.lueLocation.Properties.DataSource = lstLoc;
                    }
                }

                //for party
                using (PartyBLL partyBll = new PartyBLL())
                {
                    List <Party> lstParty = partyBll.LovPratyList("V", string.Empty);
                    lstParty.Insert(0, new Party {
                        PARTY_ID = string.Empty, PARTY_NAME = "(All)"
                    });

                    this.lueCUSTOMER.Properties.DataSource = lstParty;
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
Exemplo n.º 3
0
        public void GetPartyList()
        {
            List <Party> lstParty = null;

            try
            {
                base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data");

                using (PartyBLL partyBll = new PartyBLL())
                {
                    lstParty = partyBll.LovPratyList(this._PARTY_TYPE, string.Empty);
                }

                this.grdParty.DataSource = lstParty;
            }
            catch (Exception ex)
            {
                base.FinishedProcessing();
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
            finally
            {
                base.FinishedProcessing();
            }
        }
        private void InitializaLOVData()
        {
            try
            {
                //for warehouse
                //using (QueryBLL queryBll = new QueryBLL())
                //{
                //    List<Warehouse> lstWH = queryBll.GetWarehouse();
                //    if (lstWH != null)
                //    {
                //        lstWH.Insert(0, new Warehouse { SEQ_NO = string.Empty, NAME = "(All)" });
                //        this.lueWarehouse.Properties.DataSource = lstWH;
                //        this.rps_lueWH.DataSource = lstWH;
                //    }
                //}
                using (MaterialBLL mtlBll = new MaterialBLL())
                {
                    List <Location> lstLoc = mtlBll.GetLocationList();
                    if (lstLoc != null)
                    {
                        // this.grvQrySummary_rps_lueLocation.DataSource = lstLoc;

                        lstLoc.Insert(0, new Location {
                            SEQ_NO = string.Empty, NAME = "(All)"
                        });
                        this.lueWarehouse.Properties.DataSource = lstLoc;
                        this.rps_lueWH.DataSource = lstLoc;
                    }
                }


                //for ARR TYPE
                using (ArrivalBLL arrBll = new ArrivalBLL())
                {
                    List <M_ARRIVAL_TYPE> lstARR_TYPE = arrBll.GetArrivalTypeList();
                    if (lstARR_TYPE != null)
                    {
                        //  lstWH.Insert(0, new Warehouse { SEQ_NO = string.Empty, NAME = "(All)" });
                        //    this.lueWarehouse.Properties.DataSource = lstWH;
                        this.rps_lueARR_TYPE.DataSource = lstARR_TYPE;
                    }
                }

                //for party
                using (PartyBLL partyBll = new PartyBLL())
                {
                    List <Party> lstParty = partyBll.LovPratyList("V", string.Empty);
                    lstParty.Insert(0, new Party {
                        PARTY_ID = string.Empty, PARTY_NAME = "(All)"
                    });
                    this.lueCUSTOMER.Properties.DataSource = lstParty;
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
Exemplo n.º 5
0
        public void GetPartyListSearchValue(string search)
        {
            List <Party> lstParty = null;

            try
            {
                using (PartyBLL partyBll = new PartyBLL())
                {
                    lstParty = partyBll.LovPratyList(this._PARTY_TYPE, search);
                }

                this.grdParty.DataSource = lstParty;
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
Exemplo n.º 6
0
        private void InitializaLOVData()
        {
            try
            {
                using (ProductionTypeBLL pdtBll = new ProductionTypeBLL())
                {
                    List <ProductionType> lstProdType = pdtBll.GetProductionTypeList();
                    lstProdType.Insert(0, new ProductionType {
                        SEQ_NO = string.Empty, NAME = "(All)"
                    });
                    this.luePRODUCTION_TYPE.Properties.DataSource = lstProdType;
                }

                using (MachineBLL mcBll = new MachineBLL())
                {
                    List <Machine> lstMachine = mcBll.GetMachineList(string.Empty);
                    lstMachine.Insert(0, new Machine {
                        MC_NO = string.Empty, MACHINE_NAME = "(All)"
                    });
                    this.lueMC_NO.Properties.DataSource = lstMachine;
                }

                using (PartyBLL partyBll = new PartyBLL())
                {
                    List <Party> lstParty = partyBll.LovPratyList("C", string.Empty);
                    lstParty.Insert(0, new Party {
                        PARTY_ID = string.Empty, PARTY_NAME = "(All)"
                    });
                    this.lueCUSTOMER.Properties.DataSource = lstParty;
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }