/// <summary> /// 1.1.9 编辑模板数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public ActionResult EditWageTemp(WGJG02Model model) { if (null == model) { return(null); } int mark = operateContext.bllSession.WGJG02_Template.EditWageTempModel(model); if (mark > 0) { return(operateContext.RedirectAjax(0, "编辑保存成功~", "", "")); } return(operateContext.RedirectAjax(1, "编辑保存失败~", "", "")); }
public int EditWageTempModel(WGJG02Model model) { if (null == model) { return(0); } HCQ2_Model.WGJG02_Template wg2 = new WGJG02_Template() { WGJG0204 = model.WGJG0204, WGJG0205 = model.WGJG0205, WGJG0206 = model.WGJG0206, WGJG0207 = model.WGJG0207, WGJG0208 = model.WGJG0208 }; return(Modify(wg2, s => s.A0177 == model.A0177, "WGJG0204", "WGJG0205", "WGJG0206", "WGJG0207", "WGJG0208")); }
public int EditWageTempModelBySingle(WGJG02Model model, string columnName) { if (null == model || string.IsNullOrEmpty(columnName)) { return(0); } WGJG02_Template wg2 = new WGJG02_Template() { WGJG0204 = model.WGJG0204, WGJG0205 = model.WGJG0205, WGJG0206 = model.WGJG0206, WGJG0207 = model.WGJG0207, WGJG0208 = model.WGJG0208 }; return(Modify(wg2, s => s.A0177 == model.A0177 && s.RowID == model.RowID, columnName)); }