/// <summary> /// 将Model 值赋给控件 /// </summary> /// <param name="tSingleProjectID">工程ID</param> public void DataBindEx(int tSingleProjectID) { ztjg.DataValueField = "systeminfoname"; ztjg.DataBindEx(); if (tSingleProjectID > 0) { List <b_single_project_MDL> projectmdl = new b_single_project_BLL().GetModelList("SingleProjectID=" + tSingleProjectID); if (projectmdl.Count > 0) { Comm.SetValueToPage(projectmdl[0], tabledetail); } } }
/// <summary> /// 获取房屋专业记载MODEL /// </summary> /// <param name="tSingleProjectID">工程ID</param> /// <returns></returns> public b_single_project_MDL GetModule(int tSingleProjectID) { b_single_project_BLL bll = new b_single_project_BLL(); b_single_project_MDL mdl = new b_single_project_MDL(); if (tSingleProjectID > 0) { List <b_single_project_MDL> projectmdl = bll.GetModelList("SingleProjectID=" + tSingleProjectID); if (projectmdl.Count > 0) { mdl = bll.GetModel(projectmdl[0].SingleProjectID); } } object obj = Comm.GetValueToObject(mdl, tabledetail); return((b_single_project_MDL)obj); }