From 8b67664fd35767b22ae7b937c9db7db566fc631c Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Fri, 10 Mar 2023 10:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E7=90=86=E5=92=A8=E8=AF=A2--=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PsychologyReplyInfo/FormFiveView.cshtml | 12 +- .../Views/PsychologyReplyInfo/FormFiveView.js | 202 +++++++++--------- .../Views/PsychologyReplyInfo/Index.js | 4 +- .../Views/PsychologyReplyInfo/Index3.js | 4 +- .../Views/PsychologyReplyInfo/Index4.js | 4 +- .../Views/PsychologyReplyInfo/IndexFive.js | 6 +- .../Views/PsychologyReplyInfo/IndexSix.js | 4 +- 7 files changed, 122 insertions(+), 114 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.cshtml index 1b9f78138..02626e0f8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.cshtml @@ -65,12 +65,20 @@
指派教师
-
+
-
回复内容
+
最终回复人
+
+
+
+
最终回复内容
+
+
最终回复时间
+ +
附件上传
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.js index ac14373b8..6f3d8f579 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.js @@ -1,101 +1,101 @@ -/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) - * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 - * 创建人:超级管理员 - * 日 期:2023-03-06 12:21 - * 描 述:心理咨询回复 - */ -var acceptClick; -var PsychologyInfoId = request('PsychologyInfoId'); -var type = request('type'); -var bootstrap = function ($, learun) { - "use strict"; - var objectId = '1b3b9b47-450e-45ab-8264-14ef89106f83'; - var page = { - init: function () { - $('.lr-form-wrap').lrscroll(); - page.bind(); - page.initData(); - }, - bind: function () { - $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); - $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#ReplyUser').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); - $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); - $('#IsSingle').lrDataItemSelect({ code: 'YesOrNoBit' }); - $('#Appointor').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); - $('#ReplyType').lrselect({ - url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', - param: { itemCode: 'ReplyType' }, - value: 'F_ItemValue', - text: 'F_ItemName' - }); - //$('#ReplyType').lrselect({ - // url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', - // param: { itemCode: 'ReplyType' }, - // value: 'F_ItemValue', - // text: 'F_ItemName', - // select: - // function (item) { - // if (item) { - // if (item.F_ItemValue == '1') { - // //上报 - // $('#ReplyContent').attr('readonly', 'readonly'); - // $('#ReplyContent').val(''); - // $('#ReplyContent').prev().html('回复内容'); - // $('#ReplyContent').removeAttr('isvalid'); - // $('#Appointor').removeAttr('readonly'); - // //$('#Appointor').prev().html('指派教师*'); - // //$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull'); - // } else { - // //回复 - // $('#ReplyContent').removeAttr('readonly'); - // $('#ReplyContent').prev().html('回复内容*'); - // $('#ReplyContent').attr('isvalid', 'yes').attr('checkexpession', 'NotNull'); - // $('#Appointor').attr('readonly', 'readonly'); - // $('#Appointor').lrselectSet(''); - // //$('#Appointor').remove(); - // //$('#Appointor').removeAttr('isvalid'); - // } - // } - // } - //}); - $('#Url').lrUploader(); - $('#StuUrl').lrUploader({ isUpload: false }); - }, - initData: function () { - if (!!PsychologyInfoId) { - $.lrSetForm(top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/GetFormDataByPsychologyInfoId?PsychologyInfoId=' + PsychologyInfoId + '&type=' + type, function (data) { - console.log(data, "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]); - - } - } - }); - } - } - }; - // 保存数据 - acceptClick = function (callBack) { - if (!$('body').lrValidform()) { - return false; - } - var strEntity = $('body').lrGetFormData(); - strEntity.ReplyUser = learun.clientdata.get(['userinfo']).account; - strEntity.ReplyTime = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'); - var postData = { - strEntity: JSON.stringify(strEntity) - }; - $.lrSaveForm(top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { - // 保存成功后才回调 - if (!!callBack) { - callBack(); - } - }); - }; - page.init(); -} +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-03-06 12:21 + * 描 述:心理咨询回复 + */ +var acceptClick; +var PsychologyInfoId = request('PsychologyInfoId'); +var type = request('type'); +var bootstrap = function ($, learun) { + "use strict"; + var objectId = '1b3b9b47-450e-45ab-8264-14ef89106f83'; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); + $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); + $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); + $('#ReplyUser').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); + $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); + $('#IsSingle').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#Appointor').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); + $('#ReplyType').lrselect({ + url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', + param: { itemCode: 'ReplyType' }, + value: 'F_ItemValue', + text: 'F_ItemName' + }); + //$('#ReplyType').lrselect({ + // url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', + // param: { itemCode: 'ReplyType' }, + // value: 'F_ItemValue', + // text: 'F_ItemName', + // select: + // function (item) { + // if (item) { + // if (item.F_ItemValue == '1') { + // //上报 + // $('#ReplyContent').attr('readonly', 'readonly'); + // $('#ReplyContent').val(''); + // $('#ReplyContent').prev().html('回复内容'); + // $('#ReplyContent').removeAttr('isvalid'); + // $('#Appointor').removeAttr('readonly'); + // //$('#Appointor').prev().html('指派教师*'); + // //$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull'); + // } else { + // //回复 + // $('#ReplyContent').removeAttr('readonly'); + // $('#ReplyContent').prev().html('回复内容*'); + // $('#ReplyContent').attr('isvalid', 'yes').attr('checkexpession', 'NotNull'); + // $('#Appointor').attr('readonly', 'readonly'); + // $('#Appointor').lrselectSet(''); + // //$('#Appointor').remove(); + // //$('#Appointor').removeAttr('isvalid'); + // } + // } + // } + //}); + $('#Url').lrUploader(); + $('#StuUrl').lrUploader({ isUpload: false }); + }, + initData: function () { + if (!!PsychologyInfoId) { + $.lrSetForm(top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/GetFormDataByPsychologyInfoId?PsychologyInfoId=' + PsychologyInfoId + '&type=' + type, 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]); + + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var strEntity = $('body').lrGetFormData(); + strEntity.ReplyUser = learun.clientdata.get(['userinfo']).account; + strEntity.ReplyTime = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'); + var postData = { + strEntity: JSON.stringify(strEntity) + }; + $.lrSaveForm(top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index.js index 8e3675482..794f87ad5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index.js @@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { title: '新增', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/Form', width: 800, - height: 700, + height: 750, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -75,7 +75,7 @@ var bootstrap = function ($, learun) { title: '查看', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormView?PsychologyInfoId=' + PsychologyInfoId, width: 800, - height: 700, + height: 750, btn: null, callBack: function (id) { return top[id].acceptClick(refreshGirdData); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index3.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index3.js index 8a4e271fe..59c7a19ea 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index3.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index3.js @@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { title: '新增', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/Form', width: 800, - height: 700, + height: 750, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -75,7 +75,7 @@ var bootstrap = function ($, learun) { title: '查看', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormView?PsychologyInfoId=' + PsychologyInfoId + '&type=' + 3, width: 800, - height: 700, + height: 750, btn: null, callBack: function (id) { return top[id].acceptClick(refreshGirdData); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index4.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index4.js index f55df2b7f..98e5dd893 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index4.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index4.js @@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { title: '新增', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/Form', width: 800, - height: 700, + height: 750, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -75,7 +75,7 @@ var bootstrap = function ($, learun) { title: '查看', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormView?PsychologyInfoId=' + PsychologyInfoId + '&type=' + 4, width: 800, - height: 700, + height: 750, btn: null, callBack: function (id) { return top[id].acceptClick(refreshGirdData); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexFive.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexFive.js index e4dd38c8c..5e32fd31c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexFive.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexFive.js @@ -60,9 +60,9 @@ var bootstrap = function ($, learun) { learun.layerForm({ id: 'formview', title: '查看', - url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormFiveView?PsychologyInfoId=' + PsychologyInfoId, + url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormFiveView?PsychologyInfoId=' + PsychologyInfoId + '&type=5', width: 800, - height: 700, + height: 750, btn: null, callBack: function (id) { return top[id].acceptClick(refreshGirdData); @@ -92,7 +92,7 @@ var bootstrap = function ($, learun) { title: '回复', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormFive?keyValue=' + keyValue, width: 800, - height: 700, + height: 750, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexSix.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexSix.js index 7ec090fde..2301ed3ea 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexSix.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexSix.js @@ -63,7 +63,7 @@ var bootstrap = function ($, learun) { title: '查看', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormView?PsychologyInfoId=' + PsychologyInfoId + '&type=' + 6, width: 800, - height: 700, + height: 750, btn: null, callBack: function (id) { return top[id].acceptClick(refreshGirdData); @@ -93,7 +93,7 @@ var bootstrap = function ($, learun) { title: '回复', url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormSix?keyValue=' + keyValue + '&type=' + 6, width: 800, - height: 700, + height: 750, callBack: function (id) { return top[id].acceptClick(refreshGirdData); }