|
|
@@ -8,6 +8,7 @@ var acceptClick; |
|
|
|
var keyValue = request('keyValue'); |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var loginInfo = top.learun.clientdata.get(['userinfo']); |
|
|
|
var selectedRow = learun.frameTab.currentIframe().selectedRow; |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
@@ -16,16 +17,25 @@ var bootstrap = function ($, learun) { |
|
|
|
page.initData(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
//如果是校长的话,审批需要做必填设置 |
|
|
|
if (loginInfo.realName == "关亮") { |
|
|
|
$('#SpecifyReceiver').prev().html('批示<font face="宋体">*</font>'); |
|
|
|
$('#SpecifyReceiver').attr('isvalid', 'yes').attr('checkexpession', 'NotNull'); |
|
|
|
} |
|
|
|
$('#SenderId').lrformselect({ |
|
|
|
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm', |
|
|
|
layerUrlW: 400, |
|
|
|
layerUrlH: 300, |
|
|
|
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds' |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$('#RStatus').lrRadioCheckbox({data:[{text:'通知',value:0},{text:'不通知',value:1}],text:'text',value:'value' |
|
|
|
}); |
|
|
|
$('#RStatus').lrRadioCheckbox({ |
|
|
|
data: [{ text: '通知', value: 0 }, { text: '不通知', value: 1 }], text: 'text', value: 'value' |
|
|
|
}); |
|
|
|
|
|
|
|
if ($('.lr-radio').find('input:radio:checked').length == 0) { |
|
|
|
$('.lr-radio').find('input')[0].checked = true; |
|
|
|
} |
|
|
|
|
|
|
|
$('#SendType').lrDataItemSelect({ code: 'FileSendType' }); |
|
|
|
if (selectedRow.ReadFlag == true) {//已读 |
|
|
@@ -56,9 +66,7 @@ var bootstrap = function ($, learun) { |
|
|
|
if (!$('body').lrValidform()) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
if ($('.lr-radio').find('input:radio:checked').length==0) { |
|
|
|
$('.lr-radio').find('input')[0].checked = true; |
|
|
|
} |
|
|
|
|
|
|
|
var postData = { |
|
|
|
strEntity: JSON.stringify($('body').lrGetFormData()) |
|
|
|
}; |
|
|
|