Browse Source

心理咨询--修改

新疆体育高职分支
zhangli 2 years ago
parent
commit
079906d0e5
4 changed files with 30 additions and 28 deletions
  1. +10
    -9
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFive.js
  2. +17
    -17
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormView.js
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/PsychologyReplyInfo/PsychologyReplyInfoService.cs

+ 10
- 9
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/PsychologyReplyInfo/FormFive.js View File

@@ -22,6 +22,11 @@ var bootstrap = function ($, learun) {
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#ReplyUser').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#ReplyUser').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' });
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
$('#IsSingle').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#IsSingle').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#Appointor').lrselect({
url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/GetUserIdLists?objectId=' + objectId,
value: 'F_Account',
text: 'F_RealName',
});
$('#ReplyType').lrselect({ $('#ReplyType').lrselect({
url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList',
param: { itemCode: 'ReplyType' }, param: { itemCode: 'ReplyType' },
@@ -31,27 +36,23 @@ var bootstrap = function ($, learun) {
function (item) { function (item) {
if (item) { if (item) {
if (item.F_ItemValue == '1') { if (item.F_ItemValue == '1') {
$('#Appointor').lrselect({
url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/GetUserIdLists?objectId=' + objectId,
value: 'F_Account',
text: 'F_RealName',
});
//上报 //上报
$('#ReplyContent').attr('readonly', 'readonly'); $('#ReplyContent').attr('readonly', 'readonly');
$('#ReplyContent').val(''); $('#ReplyContent').val('');
$('#ReplyContent').prev().html('回复内容'); $('#ReplyContent').prev().html('回复内容');
$('#ReplyContent').removeAttr('isvalid'); $('#ReplyContent').removeAttr('isvalid');
$('#Appointor').removeAttr('readonly'); $('#Appointor').removeAttr('readonly');
$('#Appointor').prev().html('指派教师<font face="宋体">*</font>');
$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
//$('#Appointor').prev().html('指派教师<font face="宋体">*</font>');
//$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
} else { } else {
//回复 //回复
$('#ReplyContent').removeAttr('readonly'); $('#ReplyContent').removeAttr('readonly');
$('#ReplyContent').prev().html('回复内容<font face="宋体">*</font>'); $('#ReplyContent').prev().html('回复内容<font face="宋体">*</font>');
$('#ReplyContent').attr('isvalid', 'yes').attr('checkexpession', 'NotNull'); $('#ReplyContent').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
$('#Appointor').attr('readonly', 'readonly'); $('#Appointor').attr('readonly', 'readonly');
$('#Appointor').remove();
$('#Appointor').removeAttr('isvalid');
$('#Appointor').lrselectSet('');
//$('#Appointor').remove();
//$('#Appointor').removeAttr('isvalid');
} }
} }
} }


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

@@ -28,23 +28,23 @@ var bootstrap = function ($, learun) {
param: { itemCode: 'ReplyType' }, param: { itemCode: 'ReplyType' },
value: 'F_ItemValue', value: 'F_ItemValue',
text: 'F_ItemName', 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');
}
}
}
//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');
// }
// }
// }
}); });






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

@@ -8090,6 +8090,7 @@
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\IndexSix.cshtml" /> <Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\IndexSix.cshtml" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\Index4.cshtml" /> <Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\Index4.cshtml" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormFive.cshtml" /> <Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormFive.cshtml" />
<Content Include="Areas\LR_Desktop\Views\PsychologyReplyInfo\FormSix.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> <None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> <None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" /> <Content Include="Views\Login\Default-beifen.cshtml" />


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/PsychologyReplyInfo/PsychologyReplyInfoService.cs View File

@@ -220,7 +220,7 @@ where a.Id='{keyValue}'";
,[Url] ,[Url]
,[ReplyUser] ,[ReplyUser]
,[ReplyTime] ,[ReplyTime]
,[CreateTime])
,[CreateTime],Appointor)
VALUES VALUES
(newid() (newid()
,'{psychologyInfoId}' ,'{psychologyInfoId}'
@@ -230,7 +230,7 @@ where a.Id='{keyValue}'";
,NULL ,NULL
,NULL ,NULL
,NULL ,NULL
,getdate())";
,getdate(),'{entity.Appointor}')";
db.ExecuteBySql(sql); db.ExecuteBySql(sql);


//修改主表state //修改主表state


Loading…
Cancel
Save