Пример #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
            {
            }
        }
Пример #2
0
 public void MachineLoad()
 {
     try
     {
         //cmbMachineSupply.DataSource = objSupplierDL.GetDataView(2, 6);
         cmbUnit.DataSource        = objUnitDL.GetDataView();
         cmbMachineType.DataSource = objMachineTypeDL.GetDataView();
         gvMachine.DataSource      = objMachineDL.GetDataView();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #3
0
        private void frmPackType_Load(object sender, EventArgs e)
        {
            try
            {
                Load_Data();


                dtUnits = objUnitDL.GetDataView();
                bindUnits.DataSource = dtUnits;
                cmbUnit.DataSource   = bindUnits;
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #4
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);
            }
        }
Пример #5
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);
            }
        }