public void InitPageMer() { DAL.OveralManaDAL.CityManaDAL cm = new DAL.OveralManaDAL.CityManaDAL(); DataSet ds = cm.getAllCity(); if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { CityDpl2.Items.Add(new ListItem(ds.Tables[0].Rows[i]["city_name"].ToString(), ds.Tables[0].Rows[i]["city_id"].ToString())); } } }
public void InitPagePrd() { DAL.OveralManaDAL.MerchantManaDAL mc = new DAL.OveralManaDAL.MerchantManaDAL(); DataSet merDs = mc.GetAllMerList(""); if (merDs.Tables[0].Rows.Count > 0) { for (int i = 0; i < merDs.Tables[0].Rows.Count; i++) { MerDpl.Items.Add(new ListItem(merDs.Tables[0].Rows[i]["mer_name"].ToString(), merDs.Tables[0].Rows[i]["mer_id"].ToString())); } } DAL.OveralManaDAL.CityManaDAL cm = new DAL.OveralManaDAL.CityManaDAL(); DataSet cityDs = cm.getAllCity(); if (cityDs.Tables[0].Rows.Count > 0) { for (int i = 0; i < cityDs.Tables[0].Rows.Count; i++) { CityDpl.Items.Add(new ListItem(cityDs.Tables[0].Rows[i]["city_name"].ToString(), cityDs.Tables[0].Rows[i]["city_id"].ToString())); } } }