コード例 #1
0
        private void DeliveryOrder_GetProductList_Search(string search)
        {
            List <Product> lstPrd = null;

            try
            {
                using (DeliveryOrderBLL delOrdBll = new DeliveryOrderBLL())
                {
                    lstPrd = delOrdBll.LovProductList(search, this._PRODUCTION_TYPE);
                }

                this.grdProduct.DataSource = lstPrd;
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
コード例 #2
0
        //for Delivery Order
        public void DeliveryOrder_GetProductList()
        {
            List <Product> lstPrd = null;

            try
            {
                using (DeliveryOrderBLL delOrdBll = new DeliveryOrderBLL())
                {
                    lstPrd = delOrdBll.LovProductList(string.Empty, this._PRODUCTION_TYPE);
                }

                this.grdProduct.DataSource = lstPrd;
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
            finally
            {
                GridView view = (GridView)this.grdProduct.Views[0];
                view.Columns["FREE_STOCK"].Visible = false;
            }
        }