/// <summary> /// 绑定页面 /// </summary> /// <param name="ID"></param> private void BindPage(string ID) { Model.T_Area_MDL model = new DigiPower.Onlinecol.Standard.Model.T_Area_MDL(); model = areaBLL.GetModel(Convert.ToInt32(ID)); if (model != null) { ViewState["model"] = model; DigiPower.Onlinecol.Standard.Web.Comm.SetValueToPage(model, this.tbl); PID.SelectValue = model.PID.ToString(); } }
public bool DeleteArea(string AreaID) { bool result = false; try { T_Area_MDL areaMDL = areaBLL.GetModel(ConvertEx.ToInt(AreaID)); if (areaMDL != null) { areaBLL.Delete(areaMDL.AreaID); PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_Area;key=", areaMDL.AreaID, ";area_code=", areaMDL.area_code, ";area_name=", areaMDL.area_name)); } result = true; } catch (Exception ex) { Common.LogUtil.Debug(this, "删除机构失败", ex); } return(result); }