private void ChangeBackPic(HttpContext context) { int itemid = Convert.ToInt32(context.Request["ItemId"]); jsonModel = bll.GetEntityById(itemid); if (jsonModel.errNum == 0) { Acti_DepartInfo item = jsonModel.retData as Acti_DepartInfo; item.Id = itemid; item.BackPicUrl = context.Request["BackPicUrl"]; jsonModel = bll.Update(item); } }
private void AddDepartInfo(HttpContext context) { Acti_DepartInfo item = new Acti_DepartInfo(); item.Id = 0; item.Name = context.Request["Name"]; item.ParentId = Convert.ToInt32(context.Request["ParentId"]); item.Introduce = context.Request["Introduce"]; item.LeaderNo = context.Request["LeaderNo"]; item.SecondLeaderNo = context.Request["SecondLeaderNo"]; item.PicURL = context.Request["PicURL"]; item.CreateUID = context.Request["LoginUID"]; jsonModel = bll.EditDepartInfo(item); }
private void EditDepartInfo(HttpContext context) { int itemid = Convert.ToInt32(context.Request["ItemId"]); jsonModel = bll.GetEntityById(itemid); if (jsonModel.errNum == 0) { Acti_DepartInfo item = jsonModel.retData as Acti_DepartInfo; item.Id = itemid; item.Name = context.Request["Name"]; item.Introduce = context.Request["Introduce"]; item.LeaderNo = context.Request["LeaderNo"]; item.SecondLeaderNo = context.Request["SecondLeaderNo"]; item.PicURL = context.Request["PicURL"]; item.EditUID = context.Request["LoginUID"]; jsonModel = bll.EditDepartInfo(item); } }