public ActionResult EditOwnPany(HCQ2_Model.WGJG_GRZX model) { if (!ModelState.IsValid) { return(operateContext.RedirectAjax(1, "数据正确性验证失败~", null, null)); } string rowID = Helper.ToString(Request["rowID"]); model.RowID = rowID; int mark = operateContext.bllSession.WGJG_GRZX.ModifyData(model); if (mark > 0) { return(operateContext.RedirectAjax(0, "编辑成功~", null, null)); } return(operateContext.RedirectAjax(1, "编辑失败~", null, null)); }
public ActionResult AddOwnPany(HCQ2_Model.WGJG_GRZX model) { if (!ModelState.IsValid) { return(operateContext.RedirectAjax(1, "数据正确性验证失败~", null, null)); } model.RowID = OnlyCodeHelper.CreateOnlyCode(); model.WGJG_GRZX01 = OnlyCodeHelper.CreateIntCode(); model.WGJG_GRZX10 = operateContext.Usr.user_name; model.WGJG_GRZX11 = DateTime.Now; int mark = operateContext.bllSession.WGJG_GRZX.Add(model); if (mark > 0) { return(operateContext.RedirectAjax(0, "添加成功~", null, null)); } return(operateContext.RedirectAjax(1, "添加失败~", null, null)); }