Example #1
0
        public void ProductLoad()
        {
            try
            {
                bindCategory.DataSource = objProductCategoryDL.GetDataView();
                cmbCategory.DataSource  = bindCategory;

                bindSubCategory.DataSource       = objProductSubCategory_DL.GetDataView();
                cmbProductSubCategory.DataSource = bindSubCategory;

                bindUnits.DataSource = objUnitDL.GetDataView();
                cmbUnit.DataSource   = bindUnits;

                bindForm.DataSource = objFormDL.GetDataView();
                cmbForm.DataSource  = bindForm;

                bindDepartment.DataSource = objDepartment_DL.GetDataView();
                cmbDepartment.DataSource  = bindDepartment;

                bindSections.DataSource = objSection_DL.GetDataView();
                cmbSections.DataSource  = bindSections;
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
            }
        }
Example #2
0
        private void LoadSalesMethodandProductCategory()
        {
            bsSalesMethod.DataSource   = objSalesMethod_DL.Get();
            cmbSelectMethod.DataSource = bsSalesMethod;

            bsProductType.DataSource  = objProductCategory_DL.GetDataView();
            cmbProductType.DataSource = bsProductType;
        }
Example #3
0
        private void frmBatchPlan_Load(object sender, EventArgs e)
        {
            try

            {
                cmbYear.Text  = DateTime.Today.Year.ToString();
                cmbMonth.Text = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Today.Month);

                dtCategoryList = objProductCategory_DL.GetDataView();

                if (dtCategoryList.Rows.Count != 0)
                {
                    objSourceCategoryList.DataSource = dtCategoryList;
                    cmbCategoryList.DataSource       = objSourceCategoryList;
                }

                cmbCategoryList_SelectedIndexChanged(sender, e);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }