public void BeginAddProductCfg() { List <ProductHeightDefModel> heights = heightDefBll.GetModelList(""); if (heights != null && heights.Count > 0) { List <string> strHeights = new List <string>(); foreach (ProductHeightDefModel m in heights) { strHeights.Add(m.productHeight.ToString()); } view.RefreshHeightList(strHeights); } List <ProductPacsizeDefModel> packs = packsizeDefBll.GetModelList(""); if (packs != null && packs.Count > 0) { List <string> strPacks = new List <string>(); foreach (ProductPacsizeDefModel m in packs) { strPacks.Add(m.packageSize); } view.RefreshPacksizeList(strPacks); } List <GasConfigModel> gasList = gasCfgBll.GetModelList(""); if (gasList != null && gasList.Count > 0) { List <string> strGas = new List <string>(); foreach (GasConfigModel m in gasList) { strGas.Add(m.gasName); } view.RefreshGasList(strGas); } DataTable dt = panelDefBll.GetAllList().Tables[0]; if (dt != null && dt.Rows.Count > 0) { List <string> panelSizeList = new List <string>(); foreach (DataRow dr in dt.Rows) { panelSizeList.Add(dr["facePanelSize"].ToString()); } view.RefreshPanelSizeList(panelSizeList); } }
public void BeginAddProductCfg() { List <ProductHeightDefModel> heights = heightDefBll.GetModelList(""); if (heights != null && heights.Count > 0) { List <string> strHeights = new List <string>(); foreach (ProductHeightDefModel m in heights) { strHeights.Add(m.productHeight.ToString()); } view.RefreshHeightList(strHeights); } List <ProductPacsizeDefModel> packs = packsizeDefBll.GetModelList(""); if (packs != null && packs.Count > 0) { List <string> strPacks = new List <string>(); foreach (ProductPacsizeDefModel m in packs) { strPacks.Add(m.packageSize); } view.RefreshPacksizeList(strPacks); } List <GasConfigModel> gasList = gasCfgBll.GetModelList(""); if (gasList != null && gasList.Count > 0) { List <string> strGas = new List <string>(); foreach (GasConfigModel m in gasList) { strGas.Add(m.gasName); } view.RefreshGasList(strGas); } }