public ActionResult CustomFromFieldEdit(CustomFromField entity) { int CFF_ID_ = ParmEncryp.DecryptInt(Request.Form["CFF_ID"]); if (CFF_ID_ == 0) { return(Content("<script>top.extAlert('非法访问!')</script>")); } CustomFromField entity_ = bll.GetCustomFromField(CFF_ID_); ActionResult result = base.EditExecuteScript(); if (result != null) { return(result); } Users u = userHelper.GetUser(); if (bll.UpdCustomFromField(entity)) { return(pageHelper.AlertCloseWin("CustomFromFieldEdit", "修改成功!")); } else { return(pageHelper.ExtAlert("修改失败!")); } }
public ActionResult CustomFromFieldEdit(string CFF_ID) { int CFF_ID_ = ParmEncryp.DecryptInt(CFF_ID); if (CFF_ID_ == 0) { return(Content("<script>top.extAlert('非法访问!')</script>")); } CustomFromField entity = bll.GetCustomFromField(lsid_); string checkResult = base.CheckEditGetUsersPerm(); if (!String.IsNullOrEmpty(checkResult)) { return(Content("<script>" + checkResult + "</script>")); } return(View(entity)); }
public ActionResult CustomFromFieldAdd(CustomFromField entity) { ActionResult result = base.AddExecuteScript(); if (result != null) { return(result); } Users u = userHelper.GetUser(); int flag = bll.AddCustomFromField(entity); if (flag > 0) { return(pageHelper.AlertCloseWin("CustomFromFieldAdd", "新增成功!")); } else { return(pageHelper.ExtAlert("新增失败!")); } }
public string DelCustomFromField(string CFF_ID) { int CFF_ID_ = ParmEncryp.DecryptInt(CFF_ID); if (CFF_ID_ == 0) { return("top.extAlert('非法访问!');"); } CustomFromField entity = bll.GetCustomFromField(CFF_ID_); string checkRresult = base.CheckDelGetUsersPerm(); if (!String.IsNullOrEmpty(checkRresult)) { return(checkRresult); } else if (bll.DelCustomFromField(CFF_ID_)) { return("$('#refreshdataBtn').click();top.extAlert('删除成功!');"); } else { return("top.extAlert('删除失败!');"); } }
/// <summary> ///修改自定义表单字段表 /// </summary> /// <param name="model">实体</param> /// <returns>是否成功</returns> public bool UpdCustomFromField(CustomFromField model) { return(dh.UpdEntity("UpdCustomFromField", model)); }
/// <summary> ///增加自定义表单字段表 /// </summary> /// <param name="model">实体</param> /// <returns>主键 CFF_ID</returns> public int AddCustomFromField(CustomFromField model) { return(Convert.ToInt32(dh.AddEntity("AddCustomFromField", model))); }