Ejemplo n.º 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
            {
            }
        }
Ejemplo n.º 2
0
        public void Load_BasicDetails()
        {
            try
            {
                cmbMaterialUnit.DataSource = objUnitDL.GetDataView();
                cmbMaterialType.DataSource = objMaterialTypeDL.GetDataView();
                cmbMaterialForm.DataSource = objFormDL.GetDataView();


                cmbFromMonth.SelectedIndex = 0;
                cmbToMonth.SelectedIndex   = 0;

                cmbMainType.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 3
0
        //------------------ Form Methods ----------------------

        public void MaterialLoad()
        {
            try
            {
                cmbMaterialUnit.DataSource = objUnitDL.GetDataView();
                cmbMaterialType.DataSource = objMaterialTypeDL.GetDataView();
                cmbMaterialForm.DataSource = objFormDL.GetDataView();

                bindCategory.DataSource    = objMatCatDL.GetDataView();
                listBox1.DataSource        = bindCategory;
                cmbCatergory.DataSource    = objMatCatDL.GetDataView();
                cmbFromMonth.SelectedIndex = 0;
                cmbToMonth.SelectedIndex   = 0;
                cmbCatergory.SelectedIndex = 0;

                listBox1.SelectedIndex    = 0;
                cmbMainType.SelectedIndex = 0;
                //rbRaw.Checked = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }