Ver código fonte

金隅问题修改

金隅分支
zhichao lei 3 anos atrás
pai
commit
8b40a2b33c
4 arquivos alterados com 23 adições e 7 exclusões
  1. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js
  2. +14
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/DTListController.cs
  4. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentService.cs

+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js Ver arquivo

@@ -8,6 +8,7 @@ var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var processId = '';
var loginInfo = top.learun.clientdata.get(['userinfo']);
var page = {
init: function () {
page.initGird();
@@ -343,7 +344,9 @@ var bootstrap = function ($, learun) {
page.search();
},
search: function (param) {

param = param || {};
param.SenderId = loginInfo.userId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};


+ 14
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.js Ver arquivo

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


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/DTListController.cs Ver arquivo

@@ -192,7 +192,7 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
if (dtListEntity.F_Name.Contains("公文接收"))
{
dtListEntity.F_Sql =
"SELECT Title as f_title,SendTime as f_time FROM dbo.Sys_ReceiveFile WHERE DelFlag=0 AND ReadFlag<>1 AND ReceiverId='" +
"SELECT Title as f_title,SendTime as f_time FROM dbo.Sys_ReceiveFile WHERE DelFlag=0 AND ReadFlag<>1 and STypeId=4 AND ReceiverId='" +
loginUserInfo.userId + "'";
}



+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentService.cs Ver arquivo

@@ -53,6 +53,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["SenderId"].IsEmpty())
{
dp.Add("SenderId", queryParam["SenderId"].ToString(), DbType.String);
strSql.Append(" AND t.SenderId = @SenderId ");
}
if (!queryParam["RReceiveUnit"].IsEmpty())
{
dp.Add("RReceiveUnit", queryParam["RReceiveUnit"].ToString(), DbType.String);


Carregando…
Cancelar
Salvar