Browse Source

心理咨询--修改

新疆体育高职分支
zhangli 1 year ago
parent
commit
8b67664fd3
7 changed files with 122 additions and 114 deletions
  1. +10
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.cshtml
  2. +101
    -101
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.js
  3. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index.js
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index3.js
  5. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index4.js
  6. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexFive.js
  7. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexSix.js

+ 10
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.cshtml View File

@@ -65,12 +65,20 @@
</div>
<div class="col-xs-6 lr-form-item" data-table="PsychologyReplyInfo">
<div class="lr-form-item-title">指派教师</div>
<div id="Appointor" readonly > </div>
<div id="Appointor" readonly> </div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PsychologyReplyInfo">
<div class="lr-form-item-title">回复内容</div>
<div class="lr-form-item-title">最终回复人</div>
<div id="ReplyUser" readonly></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PsychologyReplyInfo">
<div class="lr-form-item-title">最终回复内容</div>
<textarea id="ReplyContent" class="form-control" style="height:100px;" readonly></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="PsychologyReplyInfo">
<div class="lr-form-item-title">最终回复时间</div>
<input id="ReplyTime" type="text" class="form-control" readonly />
</div>
<div class="col-xs-12 lr-form-item" data-table="PsychologyReplyInfo">
<div class="lr-form-item-title">附件上传</div>
<div id="Url"></div>


+ 101
- 101
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFiveView.js View File

@@ -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('指派教师<font face="宋体">*</font>');
// //$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
// } else {
// //回复
// $('#ReplyContent').removeAttr('readonly');
// $('#ReplyContent').prev().html('回复内容<font face="宋体">*</font>');
// $('#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('指派教师<font face="宋体">*</font>');
// //$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
// } else {
// //回复
// $('#ReplyContent').removeAttr('readonly');
// $('#ReplyContent').prev().html('回复内容<font face="宋体">*</font>');
// $('#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();
}

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index.js View File

@@ -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);


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index3.js View File

@@ -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);


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/Index4.js View File

@@ -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);


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexFive.js View File

@@ -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);
}


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexSix.js View File

@@ -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);
}


Loading…
Cancel
Save