From 01fcc2abe007c7a3e6c61aadc984f54e1c6ea3e7 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 7 Jul 2023 15:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E6=9D=90=E5=BE=81=E8=AE=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TextBookSubscriptionController.cs | 9 + .../Views/TextBookSubscription/Form.cshtml | 64 ++++--- .../Views/TextBookSubscription/Form.js | 51 ++++++ .../TextBookSubscription/FormView.cshtml | 71 ++++++++ .../Views/TextBookSubscription/FormView.js | 163 ++++++++++++++++++ .../Views/TextBookSubscription/Index.cshtml | 8 +- .../Views/TextBookSubscription/Index.js | 134 +++++++++++--- .../Learun.Application.Web.csproj | 2 + .../TextBookSubscriptionEntity.cs | 5 + .../TextBookSubscriptionService.cs | 14 +- 10 files changed, 464 insertions(+), 57 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.js diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TextBookSubscriptionController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TextBookSubscriptionController.cs index 8694ddb7b..f4e8d9541 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TextBookSubscriptionController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TextBookSubscriptionController.cs @@ -39,6 +39,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(); } + /// + /// 查看页面 + /// + /// + [HttpGet] + public ActionResult FormView() + { + return View(); + } #endregion #region 获取数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.cshtml index 084eb7a77..504e9e902 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.cshtml @@ -3,57 +3,69 @@ Layout = "~/Views/Shared/_Form.cshtml"; }
-
+
学年
-
+
-
+
学期
-
+
-
+
+
申报部门
+
+
+
+
申请人
+
+
+
+
填报时间
+ +
+
年级
-
+
-
+
班级
-
+
-
+
册数
- +
-
+
资料名称
- +
-
+
刊号
- +
-
+
出版社
- +
-
+
作者
- +
-
+
定价
- +
-
+
教师册数
- +
-
+
合计
- +
-
+
备注
- +
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TextBookSubscription/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.js index 6ee96ab6a..635be46ac 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Form.js @@ -42,6 +42,30 @@ var bootstrap = function ($, learun) { page.initData(); }, bind: function () { + //$('#Department').lrDepartmentSelect({ + // select: function (val) { + // $('#Applicat').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) + // } + //}); + $('#Applicat').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); + + $('#Department').lrselect({ + type: 'tree', + allowSearch: true, + url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', + param: {}, + select: function (val) { + var departmentId = ""; + if (val) { + departmentId = val.value; + } + $('#Applicat').lrselectRefresh({ + url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + departmentId, + text: "F_RealName", + value: "F_UserId" + }) + } + }); $('#AcademicYearNo').lrselect({ placeholder: "学年", allowSearch: false, @@ -87,6 +111,33 @@ var bootstrap = function ($, learun) { value: "classno", text: "classname" }); + $('.calcul').blur(function () { + var Book = $('#BookNumber').val(); + var Teach = $('#TeachNum').val(); + if (!!Book) { + let regNeg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; + if (regNeg.test(Book) && Book != '.') { + $('#Book').val(Book); + } else { + $('#Book').val(''); + learun.alert.warning("单价必须为整数或最多两位小数(不能为负数)!"); + return false; + } + } + if (!!Teach) { + let regNeg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; + if (regNeg.test(Teach) && Teach != '.') { + $('#Teach').val(Teach); + } else { + $('#Teach').val(''); + learun.alert.warning("数量必须为整数或最多两位小数(不能为负数)!"); + return false; + } + } + if (!!Book && !!Teach) { + $('#Amount').val(parseInt(Book) + parseInt(Teach)); + } + }); }, initData: function () { if (!!keyValue) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.cshtml new file mode 100644 index 000000000..86d8f1a5a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.cshtml @@ -0,0 +1,71 @@ +@{ + ViewBag.Title = "流程审批"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
学年
+
+
+
+
学期
+
+
+
+
申报部门
+
+
+
+
申请人
+
+
+
+
填报时间
+ +
+
+
年级
+
+
+
+
班级
+
+
+
+
册数
+ +
+
+
资料名称
+ +
+
+
刊号
+ +
+
+
出版社
+ +
+
+
作者
+ +
+
+
定价
+ +
+
+
教师册数
+ +
+
+
合计
+ +
+
+
备注
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.js new file mode 100644 index 000000000..011d0e103 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/FormView.js @@ -0,0 +1,163 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-07-04 15:10 + * 描 述:TextBookSubscription + */ +var acceptClick; +var keyValue = request('keyValue'); + +// 设置权限 +var setAuthorize; +// 设置表单数据 +var setFormData; +// 验证数据是否填写完整 +var validForm; +// 保存数据 +var save; +var bootstrap = function ($, learun) { + "use strict"; + // 设置权限 + setAuthorize = function (data) { + if (!!data) { + for (var field in data) { + if (data[field].isLook != 1) {// 如果没有查看权限就直接移除 + $('#' + data[field].fieldId).parent().remove(); + } + else { + if (data[field].isEdit != 1) { + $('#' + data[field].fieldId).attr('disabled', 'disabled'); + if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) { + $('#' + data[field].fieldId).css({ 'padding-right': '58px' }); + $('#' + data[field].fieldId).find('.btn-success').remove(); + } + } + } + } + } + }; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#Applicat').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); + + $('#Department').lrselect({ + type: 'tree', + allowSearch: true, + url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', + param: {}, + select: function (val) { + var departmentId = ""; + if (val) { + departmentId = val.value; + } + $('#Applicat').lrselectRefresh({ + url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + departmentId, + text: "F_RealName", + value: "F_UserId" + }) + } + }); + $('#AcademicYearNo').lrselect({ + placeholder: "学年", + allowSearch: false, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', + value: 'value', + text: 'text', + maxHeight: 200, + }); + //学期 + $('#Semester').lrselect({ + placeholder: "学期", + allowSearch: false, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester', + value: 'value', + text: 'text' + }); + $('#Grade').lrselect({ + url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', + value: "value", + text: "text", + select: function (item) { + if (item) { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { + strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" + } + }); + } else { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } + }); + } + } + }); + $('#ClassNo').lrselect({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, + value: "classno", + text: "classname" + }); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 设置表单数据 + setFormData = function (processId, param, callback) { + if (!!processId) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/GetFormDataByProcessId?processId=' + processId, function (data) { + for (var id in data) { + if (!!data[id] && data[id].length > 0) { + $('#' + id).jfGridSet('refreshdata', data[id]); + } + else { + if (id == 'TextBookSubscription' && data[id]) { + keyValue = data[id].ID; + } + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + callback && callback(); + } + // 验证数据是否填写完整 + validForm = function () { + if (!$('body').lrValidform()) { + return false; + } + return true; + }; + // 保存数据 + save = function (processId, callBack, i) { + //var formData = {}; + var res = {}; + res.code = 200; + //if (!!processId) { + // formData.PID = processId; + //} + callBack(res, i); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.cshtml index 6a1a631d8..79375fd94 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.cshtml @@ -2,7 +2,7 @@ ViewBag.Title = "TextBookSubscription"; Layout = "~/Views/Shared/_Index.cshtml"; } -
+
@@ -43,9 +43,11 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.js index 090c9e5ed..3e42c2947 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TextBookSubscription/Index.js @@ -56,16 +56,19 @@ var bootstrap = function ($, learun) { id: 'form', title: '新增', url: top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/Form', - width: 600, - height: 600, + width: 800, + height: 500, callBack: function (id) { var res = false; // 验证数据 res = top[id].validForm(); // 保存数据 if (res) { - processId = learun.newGuid(); - res = top[id].save(processId, refreshGirdData); + res = top[id].save('', function () { + page.search(); + }); + //processId = learun.newGuid(); + //res = top[id].save(processId, refreshGirdData); } return res; } @@ -75,12 +78,17 @@ var bootstrap = function ($, learun) { $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { + var Status = $('#gridtable').jfGridValue('Status'); + if (Status !== 0) { + learun.alert.warning("当前项目已提交不可编辑!"); + return; + } learun.layerForm({ id: 'form', title: '编辑', url: top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/Form?keyValue=' + keyValue, - width: 600, - height: 600, + width: 800, + height: 500, callBack: function (id) { var res = false; // 验证数据 @@ -100,48 +108,134 @@ var bootstrap = function ($, learun) { $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { + var Status = $('#gridtable').jfGridValue('Status'); + if (Status !== 0) { + learun.alert.warning("选中记录中包含已提交项目,不可删除!"); + return; + } learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/DeleteForm', { keyValue: keyValue }, function () { - refreshGirdData(); + page.search(); }); } }); } }); + // 提交 + $('#lr_submit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + if (learun.checkrow(keyValue)) { + var Status = $('#gridtable').jfGridValue('Status'); + if (Status !== 0) { + learun.alert.warning("选中记录中包含已提交项目!"); + return; + } + learun.layerConfirm('是否确认提交该项!', function (res) { + if (res) { + processId = learun.newGuid(); + learun.postForm(top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/ModifyStatus', { keyValue: keyValue, processId: processId }, function (res) { + refreshGirdData(res, {}); + }); + } + }); + } + }); + //查看 + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'TextBookSubscription', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/FormView?keyValue=' + keyValue, + width: 800, + height: 600, + btn: null + }); + } + }); }, // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/EducationalAdministration/TextBookSubscription/GetPageList', headData: [ - { label: "学年", name: "AcademicYearNo", width: 100, align: "left" }, - { label: "学期", name: "Semester", width: 100, align: "left" }, - { label: "年级", name: "Grade", width: 100, align: "left" }, + { label: "学年", name: "AcademicYearNo", width: 80, align: "left" }, + { label: "学期", name: "Semester", width: 80, align: "left" }, + { + label: '征订部门', name: 'Department', width: 100, align: 'left', + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', + key: value, + keyId: 'id', + callback: function (_data) { + callback(_data['name']); + } + }); + } + }, + { + label: '申请人', name: 'Applicat', width: 100, align: 'left', + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { + label: "填报时间", name: "FillingTime", width: 120, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm'); + } + }, + { label: "年级", name: "Grade", width: 80, align: "left" }, { label: "班级", name: "ClassNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', key: value, - code: '', + keyId: 'classno', callback: function (_data) { - callback(_data.text); + callback(_data['classname']); } }); } }, - { label: "册数", name: "BookNumber", width: 100, align: "left" }, + { label: "册数", name: "BookNumber", width: 80, align: "left", statistics: true, }, { label: "资料名称", name: "DataName", width: 100, align: "left" }, - { label: "刊号", name: "ISSN", width: 100, align: "left" }, - { label: "出版社", name: "Publisher", width: 100, align: "left" }, + { label: "刊号", name: "ISSN", width: 150, align: "left" }, + { label: "出版社", name: "Publisher", width: 150, align: "left" }, { label: "作者", name: "Author", width: 100, align: "left" }, { label: "定价", name: "Pricing", width: 100, align: "left" }, - { label: "教师册数", name: "TeachNum", width: 100, align: "left" }, - { label: "合计", name: "Amount", width: 100, align: "left" }, + { label: "教师册数", name: "TeachNum", width: 80, align: "left", statistics: true, }, + { label: "合计", name: "Amount", width: 100, align: "left", statistics: true,}, { label: "备注", name: "Remark", width: 100, align: "left" }, + { + label: "审批状态", name: "Status", width: 100, align: "left", + formatter: function (cellvalue, row) { + if (cellvalue === 1) { + return '审批中'; + } else if (cellvalue === 2) { + return '审批通过'; + } else if (cellvalue === 0) { + return '草稿'; + } else { + return "作废"; + } + } + } ], mainId: 'ID', - isPage: true + isPage: true, + sidx: 'AcademicYearNo desc,FillingTime desc,Semester desc' }); page.search(); }, @@ -155,7 +249,7 @@ var bootstrap = function ($, learun) { if (res.code == 200) { // 发起流程 var postData = { - schemeCode: '',// 填写流程对应模板编号 + schemeCode: 'TextBookSubscription',// 填写流程对应模板编号 processId: processId, level: '1', }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 57bdc692a..ea6ee652a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -1461,6 +1461,7 @@ + @@ -8139,6 +8140,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionEntity.cs index a1958d40a..1983aeb36 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionEntity.cs @@ -114,6 +114,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration ///
[Column("APPLICAT")] public string Applicat { get; set; } + /// + /// 申请时间 + /// + [Column("FILLINGTIME")] + public DateTime? FillingTime { get; set; } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionService.cs index 664212280..25d23051b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextBookSubscription/TextBookSubscriptionService.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Data; using System.Text; +using System.Linq; namespace Learun.Application.TwoDevelopment.EducationalAdministration { @@ -195,14 +196,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration var db = this.BaseRepository("CollegeMIS").BeginTrans(); try { - var id = keyValue.Split(','); - foreach (var item in id) - { - var entity = this.BaseRepository("CollegeMIS").FindEntity(a => a.ID == keyValue); - entity.processId = processId; - entity.Status = 1; - db.Update(entity); - } + + var entity = this.BaseRepository("CollegeMIS").FindEntity(a => a.ID == keyValue); + entity.ProcessId = processId; + entity.Status = 1; + db.Update(entity); db.Commit(); } catch (Exception e)