private void loadsingleplant() { try { SqlDataReader dr = null; dr = Bllusers.LoadSinglePlantcode(ccode.ToString(), (pcode).ToString()); if (dr.HasRows) { while (dr.Read()) { ddl_Plantcode.Items.Add(dr["Plant_Code"].ToString()); ddl_PlantName.Items.Add(dr["Plant_Code"].ToString() + "_" + dr["Plant_Name"].ToString()); } } } catch (Exception ex) { WebMsgBox.Show(ex.ToString()); } }
private void loadspecialsingleplant()//form load method { try { SqlDataReader dr = null; ddl_Plantcode.Items.Clear(); ddl_Plantname.Items.Clear(); dr = Bllusers.LoadSinglePlantcode(Company_code, "170"); if (dr.HasRows) { while (dr.Read()) { ddl_Plantcode.Items.Add(dr["Plant_Code"].ToString()); ddl_Plantname.Items.Add(dr["Plant_Code"].ToString() + "_" + dr["Plant_Name"].ToString()); } } } catch (Exception ex) { WebMsgBox.Show(ex.ToString()); } }
private void loadsingleplant() { try { SqlDataReader dr = null; ddl_Plantcode.Items.Clear(); DDL_Plantfrom.Items.Clear(); dr = Bllusers.LoadSinglePlantcode(companycode, plantcode); if (dr.HasRows) { while (dr.Read()) { ddl_Plantcode.Items.Add(dr["Plant_Code"].ToString()); DDL_Plantfrom.Items.Add(dr["Plant_Code"].ToString() + "_" + dr["Plant_Name"].ToString()); } } } catch (Exception ex) { catchmsg(ex.ToString()); } }
private void loadsingleplant() { try { SqlDataReader dr = null; ddl_Plantcode.Items.Clear(); ddl_Plantname.Items.Clear(); dr = Bllusers.LoadSinglePlantcode(companycode, plantcode); if (dr.HasRows) { while (dr.Read()) { ddl_Plantcode.Items.Add(dr["Plant_Code"].ToString()); ddl_Plantname.Items.Add(dr["Plant_Code"].ToString() + "_" + dr["Plant_Name"].ToString()); } } } catch (Exception ex) { Lbl_Errormsg.Visible = true; Lbl_Errormsg.Text = ex.ToString(); } }