Browse Source

心理咨询汇总查看功能

新疆体育高职分支
zhangli 1 year ago
parent
commit
63145ffe36
5 changed files with 183 additions and 4 deletions
  1. +12
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/PsychologyReplyInfoController.cs
  2. +79
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormGatherView.cshtml
  3. +89
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormGatherView.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/IndexGather.js
  5. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 12
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/PsychologyReplyInfoController.cs View File

@@ -52,7 +52,7 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
@@ -71,7 +71,7 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
@@ -127,7 +127,16 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
{
return View();
}
/// <summary>
/// 汇总表
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormGatherView()
{
return View();
}

#endregion

#region 获取数据


+ 79
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormGatherView.cshtml View File

@@ -0,0 +1,79 @@
@{
ViewBag.Title = "心理咨询回复";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" readonly />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">姓名</div>
<input id="StuName" type="text" class="form-control" readonly />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">专业</div>
<div id="MajorNo" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">身份证号</div>
<input id="IdentityCardNo" type="text" class="form-control" readonly />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">性别</div>
<div id="GenderNo" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">是否单亲</div>
<div id="IsSingle" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">联系电话</div>
<input id="mobile" type="text" class="form-control" readonly />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">校内电话</div>
<input id="InSchoolTelephone" type="text" class="form-control" readonly />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">现住址</div>
<input id="InSchoolAddress" type="text" class="form-control" readonly />
</div>
<div class="col-xs-6 lr-form-item" data-table="PsychologyReplyInfo">
<div class="lr-form-item-title">提交日期</div>
<input id="SubmitTime" 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>
<textarea id="Concent" 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>
<div id="StuUrl"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PsychologyReplyInfo">
<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>
</div>
</div>
@Html.AppendJsFile("/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormView.js")

+ 89
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormGatherView.js View File

@@ -0,0 +1,89 @@
/* * 版 本 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 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' });
// $('#ReplyType').lrDataItemSelect({ code: 'ReplyType' });
$('#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');
// } else {
// //回复
// $('#ReplyContent').removeAttr('readonly');
// $('#ReplyContent').prev().html('回复内容<font face="宋体">*</font>');
// $('#ReplyContent').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
// }
// }
// }
});


$('#Url').lrUploader({ isUpload: false });
$('#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();
}

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

@@ -60,7 +60,7 @@ var bootstrap = function ($, learun) {
learun.layerForm({
id: 'formview',
title: '查看',
url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormFiveView?PsychologyInfoId=' + PsychologyInfoId + '&type=5',
url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/FormGatherView?PsychologyInfoId=' + PsychologyInfoId + '&type=5',
width: 800,
height: 750,
btn: null,


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -1518,6 +1518,7 @@
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormFiveView.js" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormSix.js" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormFive.js" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormGatherView.js" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormView.js" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\Index4.js" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\IndexGather.js" />
@@ -8120,6 +8121,7 @@
<Content Include="Areas\StudentWork\Views\FamilyEconomy\IndexOfThree.cshtml" />
<Content Include="Areas\StudentWork\Views\FamilyEconomy\IndexOfStudent.cshtml" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\IndexGather.cshtml" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormGatherView.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


Loading…
Cancel
Save