public ActionResult ChangeCheckMethodStatue(string check_method_id, int check_method_statue) { CheckMethodEntity checkMethodEntity = checkMethodApp.GetForm(check_method_id); checkMethodEntity.check_method_statue = check_method_statue; checkMethodApp.SubmitForm(checkMethodEntity, check_method_id); return(Success("操作成功。")); }
public void SubmitForm(CheckMethodEntity checkMethodEntity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { checkMethodEntity.Modify(keyValue); service.Update(checkMethodEntity); } else { checkMethodEntity.Create(); service.Insert(checkMethodEntity); } }
public ActionResult AddCheckMethod(string check_method_name, string check_method_define, string check_method_proc) { if (checkMethodApp.IsExists(check_method_name)) { return(Error("已存在相同条目。")); } CheckMethodEntity entity = new CheckMethodEntity(); entity.check_method_name = check_method_name; entity.check_method_define = check_method_define; entity.check_method_statue = 0; entity.check_method_proc = check_method_proc; checkMethodApp.SubmitForm(entity, string.Empty); return(Success("操作成功。")); }