Esempio n. 1
0
 public void Initialize(SqlConnection Conn)
 {
     objUnitDL             = new Unit_DL(Conn);
     objFormDL             = new Form_DL(Conn);
     objProductCategoryDL  = new ProductCategory_DL(Conn);
     objProductSubCategory = new ProductSubCategory_DL(Conn);
     objFormulaDL          = new Formula_DL(Conn);
     objPackingTypeDL      = new PackingType_DL(Conn);
     objFinishProductDL    = new FinishProduct_DL(Conn);
     objbasicProductDL     = new BasicProduct_DL(Conn);
 }
Esempio n. 2
0
        private void Load_ProductList()
        {
            try
            {
                if (lstBasicProductList.SelectedValue != null)
                {
                    FinishProduct_DL objFinishProduct_DL = new FinishProduct_DL(ConnectionStringClass.GetConnection());

                    DataTable dtStart = objFinishProduct_DL.GetDataView(lstBasicProductList.SelectedValue.ToString());
                    DataTable dtStop  = objFinishProduct_DL.GetDataView(lstBasicProductList.SelectedValue.ToString());

                    objSourceFinishProductStart.DataSource = dtStart;
                    objSourceFinishProductStop.DataSource  = dtStop;

                    cmbStartProduct.DataSource = objSourceFinishProductStart;
                    cmbEndProduct.DataSource   = objSourceFinishProductStop;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }