//-------------------------------------------------------------ModelNoComboFill---------------------------
 public void ModelNoComboFill()
 {
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         ModelNoBll BllModelNo = new ModelNoBll();
         listObj = BllModelNo.ModelNoViewAll();
         cmbModalNo.DataSource = listObj[0];
         cmbModalNo.DisplayMember = "modelNo";
         cmbModalNo.ValueMember = "modelNoId";
         cmbModalNo.SelectedValue = 1;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PC:44" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill ModelNo combobox
 /// </summary>
 public void ModelNoComboFill()
 {
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         ModelNoBll BllModelNo = new ModelNoBll();
         listObj = BllModelNo.ModelNoViewAll();
         DataRow dr = listObj[0].NewRow();
         dr["modelno"] = "All";
         dr["modelNoId"] = 0;
         listObj[0].Rows.InsertAt(dr, 0);
         cmbModelNo.DataSource = listObj[0];
         cmbModelNo.DisplayMember = "modelNo";
         cmbModelNo.ValueMember = "modelNoId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("ST:3" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill ModelNo combobox
 /// </summary>
 public void ModelComboFill()
 {
     try
     {
         ModelNoBll BllModelNo = new ModelNoBll();
         dtblModelNo = BllModelNo.ModelNoViewAll();
         dgvcmbModel.DataSource = dtblModelNo[0];
         dgvcmbModel.ValueMember = "modelNoId";
         dgvcmbModel.DisplayMember = "modelNo";
         SettingsBll BllSettings = new SettingsBll();
         if (BllSettings.SettingsStatusCheck("ShowModelNo") == "Yes")
         {
             dgvcmbModel.ReadOnly = false;
         }
         else
         {
             dgvcmbModel.ReadOnly = true;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MPC7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }