@@ -158,6 +158,12 @@ namespace Learun.Application.Organization | |||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("F_MODIFYUSERNAME")] | [Column("F_MODIFYUSERNAME")] | ||||
public string F_ModifyUserName { get; set; } | public string F_ModifyUserName { get; set; } | ||||
/// <summary> | |||||
/// 公告类别 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("NOTICECATEGORY")] | |||||
public string NoticeCategory { get; set; } | |||||
/// <summary> | /// <summary> | ||||
@@ -63,6 +63,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
ViewBag.NewEmpId = Guid.NewGuid().ToString(); | ViewBag.NewEmpId = Guid.NewGuid().ToString(); | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 导入页 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult ImportForm() | |||||
{ | |||||
return View(); | |||||
} | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult FormView() | public ActionResult FormView() | ||||
{ | { | ||||
@@ -413,6 +413,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return Success(data); | return Success(data); | ||||
} | } | ||||
/// <summary> | |||||
/// 学期下拉框信息【班级成绩查看】 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetSemesterDataTwo() | |||||
{ | |||||
var data = WebHelper.GenerateNearBySemeterTwo(); | |||||
return Success(data); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 班级下拉框信息【成绩录入新页面】 | /// 班级下拉框信息【成绩录入新页面】 | ||||
/// </summary> | /// </summary> | ||||
@@ -39,9 +39,10 @@ | |||||
</ul> | </ul> | ||||
</div> | </div> | ||||
<div class="tab-content lr-tab-content" id="lr_tab_content"> | <div class="tab-content lr-tab-content" id="lr_tab_content"> | ||||
<div class="lr-form-wrap tab-pane" id="tab1"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-wrap tab-pane" id="tab1"> | |||||
<div class="col-xs-12 lr-form-item" style="text-align: right;" > | |||||
<div class="lr-form-item-title lr-title">个人信息</div> | <div class="lr-form-item-title lr-title">个人信息</div> | ||||
<a id="lr_print"class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||||
</div> | </div> | ||||
<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | <div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | ||||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | <div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | ||||
@@ -154,6 +154,12 @@ var bootstrap = function ($, learun) { | |||||
$("#Birthday").val(date); | $("#Birthday").val(date); | ||||
} | } | ||||
}); | }); | ||||
$('#lr_print').on('click',function() { | |||||
$('#tab1').print(); | |||||
}) | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
@@ -0,0 +1,25 @@ | |||||
@{ | |||||
ViewBag.Title = "Form"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<link href="~/Content/webuploader/webuploader.css" rel="stylesheet" /> | |||||
<script src="~/Content/webuploader/webuploader.nolog.min.js"></script> | |||||
@Html.AppendCssFile("/Areas/PersonnelManagement/Views/Sal_UserSalary/ImportForm.css") | |||||
<div class="lr-form-layout lr-form-layout-top-bottom"> | |||||
<div class="lr-form-layout-header"> | |||||
<div id="lr_add_file_btn"><i class="fa fa-cloud-upload"></i><span class="lrlt">上传文件</span></div> | |||||
@*<div class="webuploader-pick" id="lr_down_file_btn"><i class="fa fa-download"></i><span class="lrlt">下载模板</span></div>*@ | |||||
</div> | |||||
<div class="lr-form-layout-body"> | |||||
<div class="lr-form-file-queue-wrap" id="lr_form_file_queue"> | |||||
<div class="lr-form-file-queue" id="lr_form_file_queue_list"> | |||||
</div> | |||||
<div class="lr-form-file-queue-bg"> | |||||
<h1><span class="lrlt">试试将电脑里的文件拖拽到此上传</span></h1> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/EmpInfo/ImportForm.js") |
@@ -0,0 +1,136 @@ | |||||
.lr-form-layout-body { | |||||
padding:0 5px 5px 5px; | |||||
} | |||||
.lr-form-file-queue-wrap { | |||||
position:relative; | |||||
width:100%; | |||||
height:100%; | |||||
border:1px solid #ddd; | |||||
border-radius:4px; | |||||
} | |||||
.lr-form-file-queue { | |||||
position:relative; | |||||
} | |||||
.lr-form-file-queue { | |||||
position:relative; | |||||
} | |||||
.lr-form-file-queue-item { | |||||
position:relative; | |||||
width:100%; | |||||
height:50px; | |||||
border-bottom:1px solid #ddd; | |||||
padding-left:60px; | |||||
} | |||||
.lr-file-image { | |||||
position:absolute; | |||||
top:5px; | |||||
left:5px; | |||||
} | |||||
.lr-file-image img { | |||||
width:40px; | |||||
height:40px; | |||||
} | |||||
.lr-file-name{ | |||||
line-height:50px; | |||||
} | |||||
.lr-msg { | |||||
position:absolute; | |||||
top:0; | |||||
right:5px; | |||||
font-size: 25px; | |||||
line-height:50px; | |||||
} | |||||
.lr-msg .fa-check-circle{ | |||||
color: #5cb85c; | |||||
} | |||||
.lr-msg .fa-exclamation-circle { | |||||
color: #b94a48; | |||||
} | |||||
.lr-msg2 { | |||||
position:absolute; | |||||
top:0; | |||||
right:5px; | |||||
line-height:50px; | |||||
} | |||||
.lr-msg2 span { | |||||
color:#333; | |||||
font-size:14px; | |||||
margin-right:5px; | |||||
} | |||||
.lr-tool-bar { | |||||
position:absolute; | |||||
top:0; | |||||
right:35px; | |||||
font-size: 25px; | |||||
line-height:50px; | |||||
color:#666; | |||||
cursor:pointer; | |||||
} | |||||
.lr-tool-bar > i { | |||||
margin-left:8px; | |||||
} | |||||
.lr-tool-bar .fa-minus-circle { | |||||
color: #b94a48; | |||||
} | |||||
.lr-tool-bar .fa-cloud-download { | |||||
color: #3498db; | |||||
} | |||||
.lr-uploader-progress { | |||||
position:absolute; | |||||
bottom:2px; | |||||
left:60px; | |||||
height:4px; | |||||
width:500px; | |||||
width:calc(100% - 90px); | |||||
} | |||||
.lr-uploader-progress-bar { | |||||
position:relative; | |||||
height:100%; | |||||
background-color:#039cfd; | |||||
border-radius:4px; | |||||
} | |||||
.lr-form-file-queue-bg { | |||||
position:absolute; | |||||
top:50%; | |||||
left:50%; | |||||
width:300px; | |||||
height:30px; | |||||
line-height:30px; | |||||
margin:-15px 0 0 -150px; | |||||
} | |||||
.lr-form-file-queue-bg h1 { | |||||
color: #666; | |||||
font-size: 20px; | |||||
font-family: Microsoft Yahei; | |||||
padding-bottom: 2px; | |||||
margin: 0; | |||||
} | |||||
#lr_down_file_btn { | |||||
position:absolute; | |||||
right:5px; | |||||
background:#fff; | |||||
border:1px solid #ddd; | |||||
color:#333; | |||||
} | |||||
#lr_down_file_btn:hover { | |||||
color:#337ab7; | |||||
} | |||||
/*对百度插件的样式重写*/ | |||||
.webuploader-container { | |||||
position:absolute; | |||||
} | |||||
.webuploader-pick { | |||||
padding:8px 15px; | |||||
background-color:#039cfd; | |||||
} | |||||
.webuploader-pick-hover { | |||||
background-color:#027dcb; | |||||
} |
@@ -0,0 +1,242 @@ | |||||
/* | |||||
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
* 创建人:陈彬彬 | |||||
* 日 期:2017.04.11 | |||||
* 描 述:导入Excel | |||||
*/ | |||||
var id = request('id'); | |||||
var keyVaule = ''; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page1 = { | |||||
init: function () { | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
$('#lr_add_format').on('click', function () { | |||||
currentColRow = null; | |||||
learun.layerForm({ | |||||
id: 'FormatForm', | |||||
title: '添加', | |||||
url: top.$.rootUrl + '/LR_SystemModule/CodeRule/FormatForm', | |||||
width: 450, | |||||
height: 310, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(function (data) { | |||||
$('#gridtable').jfGridSet('addRow', { row: data }); | |||||
}); | |||||
} | |||||
}); | |||||
}); | |||||
$('#lr_edit_format').on('click', function () { | |||||
currentColRow = $('#gridtable').jfGridGet('rowdata'); | |||||
var _id = currentColRow ? currentColRow.itemTypeName : ''; | |||||
if (learun.checkrow(_id)) { | |||||
learun.layerForm({ | |||||
id: 'FormatForm', | |||||
title: '修改', | |||||
url: top.$.rootUrl + '/LR_SystemModule/CodeRule/FormatForm', | |||||
width: 450, | |||||
height: 310, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(function (data) { | |||||
$('#gridtable').jfGridSet('updateRow', { row: data }); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
$('#lr_delete_format').on('click', function () { | |||||
currentColRow = null; | |||||
var row = $('#gridtable').jfGridGet('rowdata'); | |||||
var _id = row ? row.itemTypeName : ''; | |||||
if (learun.checkrow(_id)) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res, index) { | |||||
if (res) { | |||||
$('#gridtable').jfGridSet('removeRow'); | |||||
top.layer.close(index); //再执行关闭 | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
$('#gridtable').jfGrid({ | |||||
headData: [ | |||||
{ label: "前缀", name: "itemTypeName", width: 120, align: "left" }, | |||||
{ label: "格式", name: "formatStr", width: 120, align: "left" }, | |||||
{ label: "步长", name: "stepValue", width: 100, align: "left" }, | |||||
{ label: "初始值", name: "initValue", width: 120, align: "left" }, | |||||
{ label: "说明", name: "description", width: 180, align: "left" } | |||||
] | |||||
}); | |||||
/*检测重复项*/ | |||||
$('#F_EnCode').on('blur', function () { | |||||
$.lrExistField(keyValue, 'F_EnCode', top.$.rootUrl + '/LR_SystemModule/CodeRule/ExistEnCode'); | |||||
}); | |||||
$('#F_FullName').on('blur', function () { | |||||
$.lrExistField(keyValue, 'F_FullName', top.$.rootUrl + '/LR_SystemModule/CodeRule/ExistFullName'); | |||||
}); | |||||
}, | |||||
initData: function () { | |||||
if (!!selectedRow) { | |||||
keyValue = selectedRow.F_RuleId; | |||||
$('#form').lrSetFormData(selectedRow); | |||||
var formatdata = JSON.parse(selectedRow.F_RuleFormatJson); | |||||
$('#gridtable').jfGridSet('refreshdata', formatdata); | |||||
} | |||||
} | |||||
}; | |||||
var fileInfo = {}; | |||||
// 触发合并文件碎片 | |||||
var mergeFileChunks = function (file) { | |||||
var param = {}; | |||||
param['__RequestVerificationToken'] = $.lrToken; | |||||
param['fileId'] = fileInfo[file.id].fileGuid; | |||||
param['chunks'] = fileInfo[file.id].chunks; | |||||
param['ext'] = file.ext; | |||||
param['templateId'] = id; | |||||
learun.httpAsyncPost(top.$.rootUrl + "/LR_SystemModule/ExcelImport/EmpInfoImport", param, function (res) { | |||||
var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id); | |||||
$fileItem.find('.lr-uploader-progress').remove(); | |||||
if (res.code == learun.httpCode.success) { | |||||
if (res.data.Success != '0') { | |||||
learun.alert.success('导入成功' + res.data.Success + '条'); | |||||
} | |||||
// 文件保存成功后 | |||||
$fileItem.append('<div class="lr-msg2"><span>' + res.data.Success + '</span><span>/</span><span style="color:#b94a48;" >' + res.data.Fail + '</span></div>'); | |||||
// 如果有失败 | |||||
if (res.data.Fail != '0') | |||||
{ | |||||
learun.download({ url: top.$.rootUrl + '/LR_SystemModule/ExcelImport/DownImportErrorFile', param: { fileId: fileInfo[file.id].fileGuid, fileName: fileInfo[file.id].name, __RequestVerificationToken: $.lrToken }, method: 'POST' }); | |||||
} | |||||
} | |||||
else { | |||||
$fileItem.append('<div class="lr-msg"><i class="fa fa-exclamation-circle"></i></div>'); | |||||
} | |||||
}); | |||||
} | |||||
// 触发清楚文件碎片 | |||||
var reomveFileChunks = function (file) { | |||||
var param = {}; | |||||
param['__RequestVerificationToken'] = $.lrToken; | |||||
param['fileGuid'] = fileInfo[file.id].fileGuid; | |||||
param['chunks'] = fileInfo[file.id].chunks; | |||||
learun.httpAsyncPost(top.$.rootUrl + "/LR_SystemModule/Annexes/MergeAnnexesFile", param, function (res) { }); | |||||
var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id); | |||||
$fileItem.find('.lr-uploader-progress').remove(); | |||||
$fileItem.append('<div class="lr-msg"><i class="fa fa-exclamation-circle"></i></div>'); | |||||
} | |||||
var page = { | |||||
uploader: null, | |||||
init: function () { | |||||
/*模板下载*/ | |||||
$('#lr_down_file_btn').on('click', function () { | |||||
learun.download({ url: top.$.rootUrl + '/PersonnelManagement/Sal_UserSalary/DownTemplate', param: { keyValue: id, __RequestVerificationToken: $.lrToken }, method: 'POST' }); | |||||
}); | |||||
if (!WebUploader.Uploader.support()) { | |||||
alert('Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器'); | |||||
throw new Error('WebUploader does not support the browser you are using.'); | |||||
} | |||||
page.uploader = WebUploader.create({ | |||||
auto: true, | |||||
swf: top.$.rootUrl + '/Content/webuploader/Uploader.swf', | |||||
// 文件接收服务端。 | |||||
server: top.$.rootUrl + "/LR_SystemModule/Annexes/UploadAnnexesFileChunk", | |||||
// 选择文件的按钮。可选。 | |||||
// 内部根据当前运行是创建,可能是input元素,也可能是flash. | |||||
pick: '#lr_add_file_btn', | |||||
dnd: '#lr_form_file_queue', | |||||
paste: 'document.body', | |||||
disableGlobalDnd: true, | |||||
accept: { | |||||
extensions: "xls,xlsx" | |||||
}, | |||||
multiple: true, | |||||
// 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传! | |||||
resize: false, | |||||
// 文件分片上传 | |||||
chunked: true, | |||||
chunkRetry: 3, | |||||
prepareNextFile: true, | |||||
chunkSize: '1048576', | |||||
// 上传参数 | |||||
formData: { | |||||
__RequestVerificationToken: $.lrToken | |||||
} | |||||
}); | |||||
page.uploader.on('fileQueued', page.fileQueued); | |||||
page.uploader.on('uploadStart', page.uploadStart); | |||||
page.uploader.on('uploadBeforeSend', page.uploadBeforeSend); | |||||
page.uploader.on('uploadProgress', page.uploadProgress); | |||||
page.uploader.on('uploadSuccess', page.uploadSuccess); | |||||
page.uploader.on('uploadError', page.uploadError); | |||||
page.uploader.on('uploadComplete', page.uploadComplete); | |||||
page.uploader.on('error', page.error); | |||||
$('#lr_form_file_queue').lrscroll(); | |||||
}, | |||||
fileQueued: function (file) {// 文件加载到队列 | |||||
fileInfo[file.id] = { name: file.name }; | |||||
$('#lr_form_file_queue .lr-form-file-queue-bg').hide(); | |||||
// 添加一条文件记录 | |||||
var $item = $('<div class="lr-form-file-queue-item" id="lr_filequeue_' + file.id + '" ></div>'); | |||||
$item.append('<div class="lr-file-image"><img src="' + top.$.rootUrl + '/Content/images/filetype/' + file.ext + '.png"></div>'); | |||||
$item.append('<span class="lr-file-name">' + file.name + '(' + learun.countFileSize(file.size) + ')</span>'); | |||||
$('#lr_form_file_queue_list').append($item); | |||||
}, | |||||
uploadStart: function (file) { | |||||
var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id); | |||||
$fileItem.append('<div class="lr-uploader-progress"><div class="lr-uploader-progress-bar" style="width:0%;"></div></div>'); | |||||
}, | |||||
uploadBeforeSend: function (object, data, headers) { | |||||
data.chunk = data.chunk || 0; | |||||
data.chunks = data.chunks || 1; | |||||
fileInfo[data.id].fileGuid = fileInfo[data.id].fileGuid || WebUploader.Base.guid(); | |||||
data.fileGuid = fileInfo[data.id].fileGuid; | |||||
fileInfo[data.id].chunks = data.chunks; | |||||
}, | |||||
uploadProgress: function (file, percentage) { | |||||
var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id); | |||||
$fileItem.find('.lr-uploader-progress-bar').css('width', (percentage * 100 + '%')); | |||||
}, | |||||
uploadSuccess: function (file, res) { | |||||
if (res.code == 200) {// 上传成功 | |||||
mergeFileChunks(file); | |||||
} | |||||
else {// 上传失败 | |||||
reomveFileChunks(file); | |||||
} | |||||
}, | |||||
uploadError: function (file, code) { | |||||
reomveFileChunks(file); | |||||
}, | |||||
uploadComplete: function (file) { | |||||
}, | |||||
error: function (type) { | |||||
switch (type) { | |||||
case 'Q_TYPE_DENIED': | |||||
learun.alert.error('当前文件类型不允许上传'); | |||||
break; | |||||
}; | |||||
} | |||||
}; | |||||
page.init(); | |||||
} |
@@ -46,6 +46,14 @@ | |||||
<div class="lr-form-item-title">户籍县区</div> | <div class="lr-form-item-title">户籍县区</div> | ||||
<div id="RegionNo"></div> | <div id="RegionNo"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">政治面貌</div> | |||||
<div id="PartyFaceNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">文化程度</div> | |||||
<div id="CultureDegreeNo"></div> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -69,7 +77,10 @@ | |||||
<a id="lr_editDept" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改部门、系部</a> | <a id="lr_editDept" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改部门、系部</a> | ||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | <a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | ||||
</div> | </div> | ||||
</div> | |||||
<div class=" btn-group btn-group-sm" learun-authorize="no"> | |||||
<a id="lr_import" class="btn btn-default"><i class="fa fa-print"></i> 导入</a> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
<div class="lr-layout-body" id="gridtable"></div> | <div class="lr-layout-body" id="gridtable"></div> | ||||
</div> | </div> | ||||
@@ -65,6 +65,10 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
} | } | ||||
}); | }); | ||||
//政治面貌 | |||||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||||
//文化程度 | |||||
$('#CultureDegreeNo').lrDataSourceSelect({ code: 'BCdCultureDegree', value: 'culturedegreeno', text: 'culturedegree' }); | |||||
// 部门选择 | // 部门选择 | ||||
$('#F_DepartmentId').lrselect(); | $('#F_DepartmentId').lrselect(); | ||||
// 刷新 | // 刷新 | ||||
@@ -109,6 +113,19 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
//导入 | |||||
$('#lr_import').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '导入', | |||||
url: top.$.rootUrl + '/EducationalAdministration/EmpInfo/ImportForm', | |||||
width: 400, | |||||
height: 300, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
}) | |||||
//查看 | //查看 | ||||
$('#lr_view').on('click', function () { | $('#lr_view').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('EmpId'); | var keyValue = $('#gridtable').jfGridValue('EmpId'); | ||||
@@ -8,6 +8,7 @@ using System.Threading.Tasks; | |||||
using System.Web; | using System.Web; | ||||
using System.Web.Mvc; | using System.Web.Mvc; | ||||
using Learun.Application.Base.AuthorizeModule; | using Learun.Application.Base.AuthorizeModule; | ||||
using Learun.Application.Base.SystemModule; | |||||
using Learun.Application.Organization; | using Learun.Application.Organization; | ||||
using Learun.Application.TwoDevelopment.LR_Desktop; | using Learun.Application.TwoDevelopment.LR_Desktop; | ||||
using Learun.Util.Operat; | using Learun.Util.Operat; | ||||
@@ -31,6 +32,8 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers | |||||
private WeChatTempletIBLL weChatTempletIbll = new WeChatTempletBLL(); | private WeChatTempletIBLL weChatTempletIbll = new WeChatTempletBLL(); | ||||
private UserIBLL userIbll = new UserBLL(); | private UserIBLL userIbll = new UserBLL(); | ||||
private UserRelationIBLL userRelationIBLL = new UserRelationBLL(); | private UserRelationIBLL userRelationIBLL = new UserRelationBLL(); | ||||
private DataItemIBLL dataItemIbll=new DataItemBLL(); | |||||
private DepartmentIBLL departmentIbll=new DepartmentBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
/// <summary> | /// <summary> | ||||
/// 管理页面 | /// 管理页面 | ||||
@@ -51,6 +54,33 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 通知公告(需要审核) | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult IndexFlow() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 通知公告表单(需要审核) | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult FormFlow() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 通知公告表单(需要审核) | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult FormFlowView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 管理页面【查看通知公告】 | /// 管理页面【查看通知公告】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
@@ -158,6 +188,31 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers | |||||
data.F_NewsContent = WebHelper.HtmlDecode(data.F_NewsContent); | data.F_NewsContent = WebHelper.HtmlDecode(data.F_NewsContent); | ||||
return JsonResult(data); | return JsonResult(data); | ||||
} | } | ||||
public ActionResult GetNoticeCategoryByDepartment(string departmentId) | |||||
{ | |||||
var typeList = dataItemIbll.GetDetailList("NoticeCategory"); | |||||
var departmentEntity = departmentIbll.GetEntity(departmentId); | |||||
List<object> list=new List<object>(); | |||||
if (departmentEntity != null) | |||||
{ | |||||
var typetext = departmentEntity.NoticeCategory?.Split(','); | |||||
foreach (var item in typetext) | |||||
{ | |||||
var entity = typeList.FirstOrDefault(a => a.F_ItemValue.Equals(item)); | |||||
if (entity != null) | |||||
{ | |||||
list.Add(new {text=entity.F_ItemName,value=entity.F_ItemValue}); | |||||
} | |||||
} | |||||
} | |||||
return JsonResult(list); | |||||
} | |||||
#endregion | #endregion | ||||
#region 提交数据 | #region 提交数据 | ||||
@@ -341,5 +396,39 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
#region 流程 | |||||
/// <summary> | |||||
/// 提交 | |||||
/// </summary> | |||||
/// <param name="keyValue"></param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult ChangeStatusById(string keyValue, string processId) | |||||
{ | |||||
noticeIBLL.ChangeStatusById(keyValue, 1, processId); | |||||
return Success("操作成功!"); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetFormDataByProcessId(string processId) | |||||
{ | |||||
NewsEntity OANewsData = noticeIBLL.GetEntityByProcessId(processId); | |||||
var jsonData = new | |||||
{ | |||||
OANews = OANewsData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
} | } | ||||
} | } |
@@ -0,0 +1,55 @@ | |||||
@{ | |||||
ViewBag.Title = "发布新闻"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">公告标题<font face="宋体">*</font></div> | |||||
<input id="F_FullHead" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">公告类别<font face="宋体">*</font></div> | |||||
<div id="F_CategoryId" isvalid="yes" checkexpession="NotNull"></div> | |||||
<input type="hidden" id="F_Category" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">发布时间<font face="宋体">*</font></div> | |||||
<input id="F_ReleaseTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">信息来源</div> | |||||
<input id="F_SourceName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">来源地址</div> | |||||
<input id="F_SourceAddress" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">接收部门</div> | |||||
<div id="F_SendDeptId"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">接收岗位</div> | |||||
<div id="F_SendPostId"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">下发飞星</div> | |||||
<div id="F_IsSendFX"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">标题图片</div> | |||||
<div id="F_NewsImage"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">公告内容</div> | |||||
<div id="editor" style="height:300px;"></div> | |||||
@*<script id="editor" type="text/plain" style="height:270px;"> | |||||
</script>*@ | |||||
</div> | |||||
</div> | |||||
@*<script src="~/Content/ueditor/ueditor.config.js"></script> | |||||
<script src="~/Content/ueditor/ueditor.all.js"></script> | |||||
<script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script>*@ | |||||
@Html.AppendJsFile("/Areas/LR_OAModule/Views/Notice/FormFlow.js") |
@@ -0,0 +1,104 @@ | |||||
/* | |||||
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
* 创建人:陈彬彬 | |||||
* 日 期:2017.11.11 | |||||
* 描 述:公告通知 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
// 设置权限 | |||||
var setAuthorize; | |||||
// 设置表单数据 | |||||
var setFormData; | |||||
var isUpdate; | |||||
// 验证数据是否填写完整 | |||||
var validForm; | |||||
// 保存数据 | |||||
var save; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var ue; | |||||
var page = { | |||||
init: function () { | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
var loginInfo = top.learun.clientdata.get(['userinfo']); | |||||
//公告类别 | |||||
$('#F_CategoryId').lrselect({ | |||||
url: top.$.rootUrl + '/LR_OAModule/Notice/GetNoticeCategoryByDepartment?departmentId=' + loginInfo.departmentId, | |||||
text: "text", | |||||
value: "value", | |||||
select: function (item) { | |||||
if (item != null && item != undefined) { | |||||
$("#F_Category").val(item.text); | |||||
} | |||||
} | |||||
}); | |||||
$('#F_NewsImage').lrUploader(); | |||||
$('#F_IsSendFX').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||||
$('#F_SendDeptId').lrDepartmentSelect({ type: 'treemultiple' }); | |||||
$('#F_SendPostId').lrPostSelect({ type: 'treemultiple' }); | |||||
//内容编辑器 | |||||
ue = UE.getEditor('editor'); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
//$('#form').lrSetFormData(selectedRow); | |||||
//$("#F_ReleaseTime").val(learun.formatDate(selectedRow.F_ReleaseTime, 'yyyy/MM/dd hh:mm')); | |||||
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + keyValue, function (data) { | |||||
$('#form').lrSetFormData(data); | |||||
setTimeout(function () { | |||||
ue.setContent(data.F_NewsContent); | |||||
}, 100); | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
// 设置表单数据 | |||||
setFormData = function (processId) { | |||||
if (!!processId) { | |||||
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetFormDataByProcessId?processId=' + processId, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id] && data[id].length > 0) { | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
if (id == 'Sys_ReceiveFile') { | |||||
keyValue = data[id].F_DeptRelationId; | |||||
} | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
// 验证数据是否填写完整 | |||||
validForm = function () { | |||||
if (!$('#form').lrValidform()) { | |||||
return false; | |||||
} | |||||
return true; | |||||
}; | |||||
// 保存数据 | |||||
save = function (processId, callBack, i) { | |||||
var formData = $('body').lrGetFormData(); | |||||
if (!!processId) { | |||||
formData.RProcessId = processId; | |||||
} | |||||
var postData = { | |||||
strEntity: JSON.stringify(formData) | |||||
}; | |||||
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, formData, i); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} | |||||
@@ -0,0 +1,55 @@ | |||||
@{ | |||||
ViewBag.Title = "发布新闻"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">公告标题<font face="宋体">*</font></div> | |||||
<input id="F_FullHead" readonly="readonly" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">公告类别<font face="宋体">*</font></div> | |||||
<div id="F_CategoryId" isvalid="yes" checkexpession="NotNull"></div> | |||||
<input type="hidden" readonly="readonly" id="F_Category" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">发布时间<font face="宋体">*</font></div> | |||||
<input id="F_ReleaseTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" readonly="readonly" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">信息来源</div> | |||||
<input id="F_SourceName" readonly="readonly" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">来源地址</div> | |||||
<input id="F_SourceAddress" readonly="readonly" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">接收部门</div> | |||||
<div id="F_SendDeptId" readonly="readonly"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">接收岗位</div> | |||||
<div id="F_SendPostId" readonly="readonly"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">下发飞星</div> | |||||
<div id="F_IsSendFX" readonly="readonly"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">标题图片</div> | |||||
<div id="F_NewsImage" readonly="readonly"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="OANews"> | |||||
<div class="lr-form-item-title">公告内容</div> | |||||
<div id="editor" readonly="readonly" style="height:300px;"></div> | |||||
@*<script id="editor" type="text/plain" style="height:270px;"> | |||||
</script>*@ | |||||
</div> | |||||
</div> | |||||
@*<script src="~/Content/ueditor/ueditor.config.js"></script> | |||||
<script src="~/Content/ueditor/ueditor.all.js"></script> | |||||
<script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script>*@ | |||||
@Html.AppendJsFile("/Areas/LR_OAModule/Views/Notice/FormFlowView.js") |
@@ -0,0 +1,95 @@ | |||||
/* | |||||
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
* 创建人:陈彬彬 | |||||
* 日 期:2017.11.11 | |||||
* 描 述:公告通知 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
// 设置权限 | |||||
var setAuthorize; | |||||
// 设置表单数据 | |||||
var setFormData; | |||||
var isUpdate; | |||||
// 验证数据是否填写完整 | |||||
var validForm; | |||||
// 保存数据 | |||||
var save; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
// 设置权限 | |||||
setAuthorize = function (data) { | |||||
}; | |||||
var ue; | |||||
var page = { | |||||
init: function () { | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
//公告类别 | |||||
$('#F_CategoryId').lrDataItemSelect({ | |||||
code: 'NoticeCategory', maxHeight: 230, select: function (item) { | |||||
if (item != null && item != undefined) { | |||||
$("#F_Category").val(item.text); | |||||
} | |||||
} | |||||
}); | |||||
$('#F_NewsImage').lrUploader(); | |||||
$('#F_IsSendFX').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||||
$('#F_SendDeptId').lrDepartmentSelect({ type: 'treemultiple' }); | |||||
$('#F_SendPostId').lrPostSelect({ type: 'treemultiple' }); | |||||
//内容编辑器 | |||||
ue = UE.getEditor('editor'); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
//$('#form').lrSetFormData(selectedRow); | |||||
//$("#F_ReleaseTime").val(learun.formatDate(selectedRow.F_ReleaseTime, 'yyyy/MM/dd hh:mm')); | |||||
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + keyValue, function (data) { | |||||
$('#form').lrSetFormData(data); | |||||
setTimeout(function () { | |||||
ue.setContent(data.F_NewsContent); | |||||
}, 100); | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
// 设置表单数据 | |||||
setFormData = function (processId, param, callback) { | |||||
if (!!processId) { | |||||
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetFormDataByProcessId?processId=' + processId, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id] && data[id].length > 0) { | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
callback && callback(); | |||||
} | |||||
// 验证数据是否填写完整 | |||||
validForm = function () { | |||||
if (!$('#form').lrValidform()) { | |||||
return false; | |||||
} | |||||
return true; | |||||
}; | |||||
// 保存数据 | |||||
save = function (processId, callBack, i) { | |||||
var formData = {}; | |||||
var res = {}; | |||||
res.code = 200; | |||||
if (!!processId) { | |||||
formData.RProcessId = processId; | |||||
} | |||||
callBack(res, i); | |||||
}; | |||||
page.init(); | |||||
} | |||||
@@ -0,0 +1,35 @@ | |||||
@{ | |||||
ViewBag.Title = "通知公告"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout"> | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle"> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入标题" /> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlt">查询</span></a> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-right"> | |||||
<div class="btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
<div class="btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> <span class="lrlt">录入</span></a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> <span class="lrlt">修改</span></a> | |||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> <span class="lrlt">查看</span></a> | |||||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> <span class="lrlt">提交</span></a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> <span class="lrlt">删除</span></a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/LR_OAModule/Views/Notice/IndexFlow.js") | |||||
@@ -0,0 +1,195 @@ | |||||
/* | |||||
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
* 创建人:陈彬彬 | |||||
* 日 期:2017.07.11 | |||||
* 描 述:公告通知 | |||||
*/ | |||||
var refreshGirdData; // 更新数据 | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var processId = ''; | |||||
var page = { | |||||
init: function () { | |||||
page.initGrid(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
// 查询 | |||||
$('#btn_Search').on('click', function () { | |||||
var keyword = $('#txt_Keyword').val(); | |||||
page.search({ keyword: keyword }); | |||||
}); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '添加公告', | |||||
url: top.$.rootUrl + '/LR_OAModule/Notice/FormFlow', | |||||
width: 1000, | |||||
height: 650, | |||||
maxmin: true, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('F_NewsId'); | |||||
if (learun.checkrow(keyValue)) { | |||||
if (keyValue.indexOf(",") != -1) { | |||||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||||
return false; | |||||
} | |||||
var SendFlag = $('#gridtable').jfGridValue('F_Status'); | |||||
if (SendFlag == "1" || SendFlag == "2") { | |||||
learun.alert.warning("当前项目已提交不能编辑!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'formedit', | |||||
title: '编辑公告', | |||||
url: top.$.rootUrl + '/LR_OAModule/Notice/FormFlow?keyValue=' + keyValue, | |||||
width: 1000, | |||||
height: 650, | |||||
maxmin: true, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 查看 | |||||
$('#lr_view').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('SFileId'); | |||||
if (learun.checkrow(keyValue)) { | |||||
if (keyValue.indexOf(",") != -1) { | |||||
learun.alert.warning("只能选择一条记录查看!"); | |||||
return false; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '查看', | |||||
url: top.$.rootUrl + '/LR_OAModule/Notice/FormFlow?keyValue=' + keyValue, | |||||
width: 800, | |||||
height: 700, | |||||
btn: null | |||||
}); | |||||
} | |||||
}); | |||||
// 删除 | |||||
$('#lr_delete').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('F_NewsId'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/LR_OAModule/Notice/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 提交 | |||||
$('#lr_submit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('F_NewsId'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var SendFlag = $('#gridtable').jfGridValue('F_Status'); | |||||
if (SendFlag == "1" || SendFlag=="2") { | |||||
learun.alert.warning("当前项目已提交,请耐心等待审批!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||||
if (res) { | |||||
processId = learun.newGuid(); | |||||
learun.postForm(top.$.rootUrl + '/LR_OAModule/Notice/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) { | |||||
refreshGirdData(res, {}); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
}, | |||||
initGrid: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/LR_OAModule/Notice/GetPageList', | |||||
headData: [ | |||||
{ label: '公告标题', name: 'F_FullHead', index: 'F_FullHead', width: 600, align: 'left' }, | |||||
{ label: '公告类别', name: 'F_Category', index: 'F_Category', width: 100, align: 'center' }, | |||||
{ | |||||
label: "发布时间", name: "F_ReleaseTime", index: "F_ReleaseTime", width: 140, align: "center", | |||||
formatter: function (cellvalue) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm'); | |||||
} | |||||
}, | |||||
{ label: '信息来源', name: 'F_SourceName', index: 'F_SourceName', width: 100, align: 'center' }, | |||||
{ label: '阅读次数', name: 'F_PV', index: 'F_PV', width: 80, align: 'center' }, | |||||
{ | |||||
label: "审核状态", name: "F_Status", width: 100, align: "left", | |||||
formatter: function (cellvalue, row) { | |||||
if (cellvalue === "1") { | |||||
return '<span class=\"label label-warning\">审批中</span>'; | |||||
} else if (cellvalue === "2") { | |||||
return '<span class=\"label label-success\">通过</span>'; | |||||
} else { | |||||
return '<span class=\"label label-default\" >草稿</span>'; | |||||
} | |||||
} | |||||
}, | |||||
{ | |||||
label: "发布状态", name: "F_EnabledMark", index: "F_EnabledMark", width: 80, align: "center", autowidth: false, | |||||
formatter: function (cellvalue) { | |||||
if (cellvalue == 1) { | |||||
return "<span class=\"label label-success\">已发布</span>"; | |||||
} else { | |||||
return "<span class=\"label label-danger\">未发布</span>"; | |||||
} | |||||
} | |||||
}, | |||||
{ label: "创建时间", name: "F_CreateDate", index: "F_CreateDate", width: 130, align: "center" } | |||||
], | |||||
mainId: 'F_NewsId', | |||||
reloadSelected: true, | |||||
isMultiselect: true, | |||||
isPage: true, | |||||
sidx: 'F_CreateDate', | |||||
sord: 'desc' | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
$('#gridtable').jfGridSet('reload', param); | |||||
} | |||||
}; | |||||
// 保存数据后回调刷新 | |||||
refreshGirdData = function (res, postData) { | |||||
if (res && res.code && res.code == 200) { | |||||
var postData = { | |||||
schemeCode: 'OA_News',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | |||||
} | |||||
page.init(); | |||||
} | |||||
@@ -36,6 +36,10 @@ | |||||
<div id="F_SchoolMasterId" ></div> | <div id="F_SchoolMasterId" ></div> | ||||
<input type="hidden" id="F_SchoolMaster"/> | <input type="hidden" id="F_SchoolMaster"/> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">公告类别</div> | |||||
<div id="NoticeCategory" ></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">电话号</div> | <div class="lr-form-item-title">电话号</div> | ||||
<input id="F_OuterPhone" type="text" class="form-control" /> | <input id="F_OuterPhone" type="text" class="form-control" /> | ||||
@@ -37,6 +37,8 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
} | } | ||||
}); | }); | ||||
$('#NoticeCategory').lrDataItemSelect({ code: 'NoticeCategory', type: 'multiple', allowSearch:true }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!selectedRow) { | if (!!selectedRow) { | ||||
@@ -98,6 +98,18 @@ var bootstrap = function ($, learun) { | |||||
{ label: "部门性质", name: "F_Nature", width: 100, align: "left" }, | { label: "部门性质", name: "F_Nature", width: 100, align: "left" }, | ||||
{ label: "负责人", name: "F_Manager", width: 100, align: "left" }, | { label: "负责人", name: "F_Manager", width: 100, align: "left" }, | ||||
{ label: "分管校长", name: "F_SchoolMaster", width: 100, align: "left" }, | { label: "分管校长", name: "F_SchoolMaster", width: 100, align: "left" }, | ||||
{ | |||||
label: "公告类别", name: "NoticeCategory", width: 200, align: "left" , | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getsAsync('dataItem', { | |||||
key: value, | |||||
code: 'NoticeCategory', | |||||
callback: function (_data) { | |||||
callback(_data); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "电话号", name: "F_OuterPhone", width: 100, align: "left" }, | { label: "电话号", name: "F_OuterPhone", width: 100, align: "left" }, | ||||
{ label: "分机号", name: "F_InnerPhone", width: 60, align: "center" }, | { label: "分机号", name: "F_InnerPhone", width: 60, align: "center" }, | ||||
{ label: "排序", name: "F_Order", width: 60, align: "center" }, | { label: "排序", name: "F_Order", width: 60, align: "center" }, | ||||
@@ -256,6 +256,36 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers | |||||
return Fail("导入数据失败!"); | return Fail("导入数据失败!"); | ||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 金隅教师信息导入 | |||||
/// </summary> | |||||
/// <param name="templateId">模板Id</param> | |||||
/// <param name="fileId">文件主键</param> | |||||
/// <param name="chunks">分片数</param> | |||||
/// <param name="ext">文件扩展名</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[ValidateAntiForgeryToken] | |||||
public ActionResult EmpInfoImport(string fileId, int chunks,string ext) | |||||
{ | |||||
UserInfo userInfo = LoginUserInfo.Get(); | |||||
string path = annexesFileIBLL.SaveAnnexes(fileId, fileId + "."+ ext, chunks, userInfo); | |||||
if (!string.IsNullOrEmpty(path)) | |||||
{ | |||||
DataTable dt = ExcelHelper.ExcelImport(path); | |||||
string res = excelImportIBLL.EmpInfoImport(dt,fileId); | |||||
var data = new | |||||
{ | |||||
Success = res.Split('|')[0], | |||||
Fail = res.Split('|')[1] | |||||
}; | |||||
return JsonResult(data); | |||||
} | |||||
else | |||||
{ | |||||
return Fail("导入数据失败!"); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 下载文件(导入文件未被导入的数据) | /// 下载文件(导入文件未被导入的数据) | ||||
@@ -118,7 +118,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetAcademicYear() | public ActionResult GetAcademicYear() | ||||
{ | { | ||||
var data = WebHelper.GenerateNearByAcademic(); | |||||
var data = WebHelper.GenerateNearByAcademicTwo(); | |||||
return Success(data); | return Success(data); | ||||
} | } | ||||
@@ -27,7 +27,7 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">上传者</div> | <div class="lr-form-item-title">上传者</div> | ||||
<input id="MPUploader" type="text" class="form-control" /> | <input id="MPUploader" type="text" class="form-control" /> | ||||
@@ -33,10 +33,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -156,6 +157,18 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "是否合格", name: "MPConclusion", width: 100, align: "left", formatter: function (val) { | |||||
if (val === 1) { | |||||
return "合格"; | |||||
} else if (val === 0) { | |||||
return "不合格"; | |||||
} else { | |||||
return ""; | |||||
} | |||||
} | |||||
}, | |||||
//{ label: "说明", name: "MPRemark", width: 200, align: "left" }, | //{ label: "说明", name: "MPRemark", width: 200, align: "left" }, | ||||
], | ], | ||||
mainId: 'MPId', | mainId: 'MPId', | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -42,10 +42,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">部门</div> | <div class="lr-form-item-title">部门</div> | ||||
<div id="MPDepartment"></div> | <div id="MPDepartment"></div> | ||||
@@ -33,10 +33,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
$('#MPDepartment').lrselect({ | $('#MPDepartment').lrselect({ | ||||
type: 'tree', | type: 'tree', | ||||
@@ -27,7 +27,7 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}); | }); | ||||
$('#MPReceiveUser').lrselect({ type: 'default', allowSearch: true, value: 'F_UserId', text: 'F_RealName' }) $('#MPFile').lrUploader(); | |||||
$('#MPReceiveUser').lrselect({ type: 'default', allowSearch: true, value: 'F_UserId', text: 'F_RealName' }); $('#MPFile').lrUploader(); | |||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | $('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | ||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">上传者</div> | <div class="lr-form-item-title">上传者</div> | ||||
<input id="MPUploader" type="text" class="form-control" /> | <input id="MPUploader" type="text" class="form-control" /> | ||||
@@ -29,10 +29,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -142,6 +143,18 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "是否合格", name: "MPConclusion", width: 100, align: "left", formatter: function (val) { | |||||
if (val === 1) { | |||||
return "合格"; | |||||
} else if (val === 0) { | |||||
return "不合格"; | |||||
} else { | |||||
return ""; | |||||
} | |||||
} | |||||
}, | |||||
//{ label: "截止时间", name: "MPOverTime", width: 100, align: "left" }, | //{ label: "截止时间", name: "MPOverTime", width: 100, align: "left" }, | ||||
//{ label: "说明", name: "MPRemark", width: 200, align: "left" }, | //{ label: "说明", name: "MPRemark", width: 200, align: "left" }, | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -38,10 +38,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">部门</div> | <div class="lr-form-item-title">部门</div> | ||||
<div id="MPDepartment"></div> | <div id="MPDepartment"></div> | ||||
@@ -29,10 +29,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
$('#MPDepartment').lrselect({ | $('#MPDepartment').lrselect({ | ||||
type: 'tree', | type: 'tree', | ||||
// 展开最大高度 | // 展开最大高度 | ||||
@@ -27,7 +27,7 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}); | }); | ||||
$('#MPReceiveUser').lrselect({ type: 'default', allowSearch: true, value: 'F_UserId', text: 'F_RealName' }) $('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
$('#MPReceiveUser').lrselect({ type: 'default', allowSearch: true, value: 'F_UserId', text: 'F_RealName' }); $('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
$('#MPFile').lrUploader(); | $('#MPFile').lrUploader(); | ||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">上传者</div> | <div class="lr-form-item-title">上传者</div> | ||||
<input id="MPUploader" type="text" class="form-control" /> | <input id="MPUploader" type="text" class="form-control" /> | ||||
@@ -29,10 +29,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -165,6 +166,18 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "是否合格", name: "MPConclusion", width: 100, align: "left", formatter: function (val) { | |||||
if (val === 1) { | |||||
return "合格"; | |||||
} else if (val === 0) { | |||||
return "不合格"; | |||||
} else { | |||||
return ""; | |||||
} | |||||
} | |||||
}, | |||||
//{ label: "截止时间", name: "MPOverTime", width: 100, align: "left" }, | //{ label: "截止时间", name: "MPOverTime", width: 100, align: "left" }, | ||||
//{ label: "说明", name: "MPRemark", width: 200, align: "left" }, | //{ label: "说明", name: "MPRemark", width: 200, align: "left" }, | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -38,10 +38,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -18,6 +18,10 @@ | |||||
<div class="lr-form-item-title">学期</div> | <div class="lr-form-item-title">学期</div> | ||||
<div id="MPSemester"></div> | <div id="MPSemester"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">月份</div> | |||||
<div id="MPMonth"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">部门</div> | <div class="lr-form-item-title">部门</div> | ||||
<div id="MPDepartment"></div> | <div id="MPDepartment"></div> | ||||
@@ -29,10 +29,11 @@ var bootstrap = function ($, learun) { | |||||
$('#MPSemester').lrselect({ | $('#MPSemester').lrselect({ | ||||
placeholder: "请选择学期", | placeholder: "请选择学期", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); | |||||
$('#MPDepartment').lrselect({ | $('#MPDepartment').lrselect({ | ||||
type: 'tree', | type: 'tree', | ||||
// 展开最大高度 | // 展开最大高度 | ||||
@@ -82,18 +82,19 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
$('#lr_import').on('click',function() { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '导入', | |||||
url: top.$.rootUrl + '/PersonnelManagement/Sal_UserSalary/ImportForm', | |||||
width: 400, | |||||
height: 300, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
$('#lr_import').on('click', | |||||
function() { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '导入', | |||||
url: top.$.rootUrl + '/PersonnelManagement/Sal_UserSalary/ImportForm', | |||||
width: 400, | |||||
height: 300, | |||||
callBack: function(id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
}); | }); | ||||
}) | |||||
//查看 | //查看 | ||||
$('#lr_view').on('click', function () { | $('#lr_view').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('USId'); | var keyValue = $('#gridtable').jfGridValue('USId'); | ||||
@@ -903,6 +903,8 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\EADateArrange\InitByConditionForm.js" /> | <Content Include="Areas\EducationalAdministration\Views\EADateArrange\InitByConditionForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormModify.js" /> | <Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormModify.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormEdit.js" /> | <Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormEdit.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\ImportForm.css" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\ImportForm.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\IndexOfDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\EmpInfo\IndexOfDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\Print.css" /> | <Content Include="Areas\EducationalAdministration\Views\EmpInfo\Print.css" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EvaCodeOfContuct\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\EvaCodeOfContuct\Form.js" /> | ||||
@@ -1259,6 +1261,9 @@ | |||||
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Form.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Form.js" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Index.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Index.js" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\StampDetailIndex.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\StampDetailIndex.js" /> | ||||
<Content Include="Areas\LR_OAModule\Views\Notice\FormFlowView.js" /> | |||||
<Content Include="Areas\LR_OAModule\Views\Notice\FormFlow.js" /> | |||||
<Content Include="Areas\LR_OAModule\Views\Notice\IndexFlow.js" /> | |||||
<Content Include="Areas\LR_OAModule\Views\ResourceFile\BcIndex.js" /> | <Content Include="Areas\LR_OAModule\Views\ResourceFile\BcIndex.js" /> | ||||
<Content Include="Areas\LR_OAModule\Views\Signet\Index.js" /> | <Content Include="Areas\LR_OAModule\Views\Signet\Index.js" /> | ||||
<Content Include="Areas\LR_PortalSite\Views\Article\Form.css" /> | <Content Include="Areas\LR_PortalSite\Views\Article\Form.css" /> | ||||
@@ -6839,6 +6844,10 @@ | |||||
<Content Include="Areas\LR_Desktop\Views\WeChatDevelop\Form.cshtml" /> | <Content Include="Areas\LR_Desktop\Views\WeChatDevelop\Form.cshtml" /> | ||||
<Content Include="Areas\LR_Desktop\Views\WeChatDevelop\Index.cshtml" /> | <Content Include="Areas\LR_Desktop\Views\WeChatDevelop\Index.cshtml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\Sal_UserSalary\ImportForm.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\Sal_UserSalary\ImportForm.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\ImportForm.cshtml" /> | |||||
<Content Include="Areas\LR_OAModule\Views\Notice\IndexFlow.cshtml" /> | |||||
<Content Include="Areas\LR_OAModule\Views\Notice\FormFlow.cshtml" /> | |||||
<Content Include="Areas\LR_OAModule\Views\Notice\FormFlowView.cshtml" /> | |||||
<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" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile1.pubxml" /> | ||||
@@ -400,7 +400,7 @@ | |||||
else { | else { | ||||
var data = storage.get("dataItemData").data || {}; | var data = storage.get("dataItemData").data || {}; | ||||
var keyList = op.key.split(','); | |||||
var keyList = (op.key || "").split(','); | |||||
var _text = [] | var _text = [] | ||||
$.each(keyList, function (_index, _item) { | $.each(keyList, function (_index, _item) { | ||||
var _item = clientAsyncData.dataItem.find(_item, data[op.code] || {}); | var _item = clientAsyncData.dataItem.find(_item, data[op.code] || {}); | ||||
@@ -34,6 +34,7 @@ | |||||
<script src="~/Content/laydate/laydate.js"></script> | <script src="~/Content/laydate/laydate.js"></script> | ||||
@*<script src="~/Content/datepicker/WdatePicker.js"></script>*@ | @*<script src="~/Content/datepicker/WdatePicker.js"></script>*@ | ||||
<script src="~/Content/ueditor/ueditor.config.js"></script> | <script src="~/Content/ueditor/ueditor.config.js"></script> | ||||
<script src="~/Content/jquery/plugin/jqprint/jQuery.print.js"></script> | |||||
<script src="~/Content/ueditor/ueditor.all.min.js"></script> | <script src="~/Content/ueditor/ueditor.all.min.js"></script> | ||||
<script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script> | <script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script> | ||||
@@ -25,6 +25,7 @@ | |||||
<typeAlias alias="Sys_SendFilePartyMethod" type="Learun.Application.WorkFlow.Sys_SendFilePartyMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="Sys_SendFilePartyMethod" type="Learun.Application.WorkFlow.Sys_SendFilePartyMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="Ass_ReceiveMethod" type="Learun.Application.WorkFlow.Ass_ReceiveMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="Ass_ReceiveMethod" type="Learun.Application.WorkFlow.Ass_ReceiveMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="ADR_AddApplyMethod" type="Learun.Application.WorkFlow.ADR_AddApplyMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="ADR_AddApplyMethod" type="Learun.Application.WorkFlow.ADR_AddApplyMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="OA_NewsMethod" type="Learun.Application.WorkFlow.OA_NewsMethod,Learun.Application.WorkFlow" /> | |||||
<!--任务调度器--> | <!--任务调度器--> | ||||
<typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" /> | <typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" /> | ||||
@@ -60,6 +61,7 @@ | |||||
<type type="IWorkFlowMethod" mapTo="Ass_ReceiveMethod" name="Ass_ReceiveMethod"></type> | <type type="IWorkFlowMethod" mapTo="Ass_ReceiveMethod" name="Ass_ReceiveMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="ADR_AddApplyMethod" name="ADR_AddApplyMethod"></type> | <type type="IWorkFlowMethod" mapTo="ADR_AddApplyMethod" name="ADR_AddApplyMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="WFFileRelease" name="wfFileRelease"></type> | <type type="IWorkFlowMethod" mapTo="WFFileRelease" name="wfFileRelease"></type> | ||||
<type type="IWorkFlowMethod" mapTo="OA_NewsMethod" name="OA_NewsMethod"></type> | |||||
</container> | </container> | ||||
@@ -330,6 +330,21 @@ namespace Learun.Application.Base.SystemModule | |||||
} | } | ||||
} | } | ||||
public string GetKeyByValue(string code, string key, string keyText, string value) | |||||
{ | |||||
string strWhere = " " + key + " =@" + key; | |||||
string queryJson = "{" + key + ":\"" + keyText + "\"}"; | |||||
DataTable sourceDt = GetDataTable(code, strWhere, queryJson); | |||||
if (sourceDt.Rows.Count > 0) | |||||
{ | |||||
return sourceDt.Rows[0][value].ToString(); | |||||
} | |||||
else | |||||
{ | |||||
return ""; | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||
} | } |
@@ -83,6 +83,9 @@ namespace Learun.Application.Base.SystemModule | |||||
/// <param name="code">数据源编码</param> | /// <param name="code">数据源编码</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
List<string> GetDataColName(string code); | List<string> GetDataColName(string code); | ||||
string GetKeyByValue(string code, string key, string keyText, string value); | |||||
#endregion | #endregion | ||||
} | } | ||||
} | } |
@@ -33,8 +33,9 @@ namespace Learun.Application.Excel | |||||
private StuEnrollIBLL stuEnrollIBLL = new StuEnrollBLL(); | private StuEnrollIBLL stuEnrollIBLL = new StuEnrollBLL(); | ||||
private DataSourceIBLL dataSourceIBLL = new DataSourceBLL(); | private DataSourceIBLL dataSourceIBLL = new DataSourceBLL(); | ||||
private Sal_UserSalaryIBLL sal_UserSalaryIBLL = new Sal_UserSalaryBLL(); | private Sal_UserSalaryIBLL sal_UserSalaryIBLL = new Sal_UserSalaryBLL(); | ||||
private Sal_UserSalaryItemIBLL sal_UserSalaryItemIBLL=new Sal_UserSalaryItemBLL(); | |||||
private Sal_UserSalaryItemIBLL sal_UserSalaryItemIBLL = new Sal_UserSalaryItemBLL(); | |||||
private UserIBLL userIBLL = new UserBLL(); | private UserIBLL userIBLL = new UserBLL(); | ||||
private EmpInfoIBLL empInfoIBLL = new EmpInfoBLL(); | |||||
#region 缓存定义 | #region 缓存定义 | ||||
private ICache cache = CacheFactory.CaChe(); | private ICache cache = CacheFactory.CaChe(); | ||||
@@ -724,12 +725,12 @@ namespace Learun.Application.Excel | |||||
{ | { | ||||
var stiValue = Convert.ToDecimal(dr[templateItem.STIName].ToString()); | var stiValue = Convert.ToDecimal(dr[templateItem.STIName].ToString()); | ||||
//工资详细添加 | //工资详细添加 | ||||
Sal_UserSalaryItemEntity sal_UserSalaryItemEntity=new Sal_UserSalaryItemEntity | |||||
Sal_UserSalaryItemEntity sal_UserSalaryItemEntity = new Sal_UserSalaryItemEntity | |||||
{ | { | ||||
USIId = Guid.NewGuid().ToString(), | USIId = Guid.NewGuid().ToString(), | ||||
USId=sal_UserSalaryEntity.USId, | |||||
STIId=templateItem.STIId, | |||||
STIValue = Convert.ToDecimal(stiValue) | |||||
USId = sal_UserSalaryEntity.USId, | |||||
STIId = templateItem.STIId, | |||||
STIValue = Convert.ToDecimal(stiValue) | |||||
}; | }; | ||||
sal_UserSalaryItemIBLL.SaveEntity("", sal_UserSalaryItemEntity); | sal_UserSalaryItemIBLL.SaveEntity("", sal_UserSalaryItemEntity); | ||||
@@ -757,7 +758,7 @@ namespace Learun.Application.Excel | |||||
sal_UserSalaryEntity.STAll = stall; | sal_UserSalaryEntity.STAll = stall; | ||||
sal_UserSalaryEntity.STActual = stactual; | sal_UserSalaryEntity.STActual = stactual; | ||||
sal_UserSalaryIBLL.SaveEntity("",sal_UserSalaryEntity); | |||||
sal_UserSalaryIBLL.SaveEntity("", sal_UserSalaryEntity); | |||||
snum++; | snum++; | ||||
} | } | ||||
catch (Exception e) | catch (Exception e) | ||||
@@ -770,6 +771,108 @@ namespace Learun.Application.Excel | |||||
} | |||||
// 写入缓存如果有未导入的数据 | |||||
if (failDt.Rows.Count > 0) | |||||
{ | |||||
string errordt = failDt.ToJson(); | |||||
cache.Write<string>(cacheKey + fileId, errordt, CacheId.excel); | |||||
} | |||||
return snum + "|" + fnum; | |||||
} | |||||
/// <summary> | |||||
/// 教师信息导入 | |||||
/// </summary> | |||||
/// <param name="dt"></param> | |||||
/// <param name="fileId"></param> | |||||
/// <returns></returns> | |||||
public string EmpInfoImport(DataTable dt, string fileId) | |||||
{ | |||||
int snum = 0; | |||||
int fnum = 0; | |||||
// 创建一个datatable容器用于保存导入失败的数据 | |||||
DataTable failDt = new DataTable(); | |||||
dt.Columns.Add("导入错误", typeof(string)); | |||||
foreach (DataColumn dc in dt.Columns) | |||||
{ | |||||
failDt.Columns.Add(dc.ColumnName, dc.DataType); | |||||
} | |||||
// 数据字典数据 | |||||
Dictionary<string, List<DataItemDetailEntity>> dataItemMap = new Dictionary<string, List<DataItemDetailEntity>>(); | |||||
foreach (DataRow dr in dt.Rows) | |||||
{ | |||||
try | |||||
{ | |||||
var empinfoEntity = empInfoIBLL.GetEmpInfoEntityByEmpNo(dr["工号"].ToString()); | |||||
if (empinfoEntity != null && empinfoEntity.EmpName == dr["姓名"].ToString()) | |||||
{ | |||||
empinfoEntity.IdentityCardNo = dr["身份证号"].ToString(); | |||||
empinfoEntity.Birthday = Convert.ToDateTime(dr["出生日期"].ToString()); | |||||
empinfoEntity.NationalityNo = dataSourceIBLL.GetKeyByValue("BCdNationality", "nationality", dr["民族"].ToString(), "nationalityno"); | |||||
empinfoEntity.LocusOfResidence = dr["籍贯"].ToString(); | |||||
empinfoEntity.PartyFaceNo = dataSourceIBLL.GetKeyByValue("BCdPartyFace", "partyface", dr["政治面貌"].ToString(), "partyfaceno"); | |||||
empinfoEntity.JoinPartyTime = dr["入党(团)时间"].ToString(); | |||||
empinfoEntity.mobile = dr["联系电话"].ToString(); | |||||
empinfoEntity.EMail = dr["电子邮箱"].ToString(); | |||||
empinfoEntity.Linkman = dr["联系人"].ToString(); | |||||
empinfoEntity.PhoneOfLinkman = dr["联系人电话"].ToString(); | |||||
empinfoEntity.Homeaddress = dr["家庭住址"].ToString(); | |||||
empinfoEntity.EmpSortNo = FindDataItemValue(dataItemIBLL.GetDetailList("jsgw"), dr["岗位类别"].ToString(), "岗位类别", false); | |||||
empinfoEntity.TitleOfTechPostNo = dr["岗位名称"].ToString(); | |||||
empinfoEntity.PositionLevel = FindDataItemValue(dataItemIBLL.GetDetailList("PositionLevel"), dr["现聘工资级别"].ToString(), "现聘工资级别", false); | |||||
empinfoEntity.InSchoolDate = Convert.ToDateTime(dr["聘任时间"].ToString()); | |||||
empinfoEntity.CompilationCategory = FindDataItemValue(dataItemIBLL.GetDetailList("CompilationCategory"), dr["编制类别"].ToString(), "编制类别", false); | |||||
empinfoEntity.AddWorkDate = Convert.ToDateTime(dr["参加工作时间"].ToString()); | |||||
empinfoEntity.AddWorkOffset = dr["工龄偏移量(月)"].ToString(); | |||||
empinfoEntity.AddWorkHours = dr["工龄(减去偏移量)"].ToString(); | |||||
empinfoEntity.GroupDate = Convert.ToDateTime(dr["进入集团时间"].ToString()); | |||||
empinfoEntity.GroupOffset = dr["集团龄偏移量(月)"].ToString(); | |||||
empinfoEntity.GroupHours = dr["集团龄(减去偏移量)"].ToString(); | |||||
empinfoEntity.EducationalDate = Convert.ToDateTime(dr["进入教育系统时间"].ToString()); | |||||
empinfoEntity.EducationalOffset = dr["教龄偏移量(月)"].ToString(); | |||||
empinfoEntity.EducationalHours = dr["校龄(减去偏移量)"].ToString(); | |||||
empinfoEntity.SchoolDate = Convert.ToDateTime(dr["来校时间"].ToString()); | |||||
empinfoEntity.SchoolOffset = dr["校龄偏移量(月)"].ToString(); | |||||
empinfoEntity.SchoolHours = dr["校龄(减去偏移量)"].ToString(); | |||||
empinfoEntity.FictitiousRetireTime = Convert.ToDateTime(dr["拟退休时间"].ToString()); | |||||
empinfoEntity.FormalTime= dr["转正日期"].ToString(); | |||||
empinfoEntity.CommendationYear = dr["从教三十年表彰年度"].ToString(); | |||||
empinfoEntity.Remark = dr["备注"].ToString(); | |||||
empinfoEntity.HighestRecord = dataSourceIBLL.GetKeyByValue("BCdCultureDegree", "culturedegree", dr["最高学历"].ToString(), "culturedegreeno"); | |||||
empinfoEntity.HighestRecordGetTime = Convert.ToDateTime(dr["最高学历取得时间"].ToString()); | |||||
empinfoEntity.EducationalSystem = dr["学制(最高学历)"].ToString(); | |||||
empinfoEntity.DegreeNo = dataSourceIBLL.GetKeyByValue("BCdDegree", "degreename", dr["最高学位"].ToString(), "degreeno"); | |||||
empinfoEntity.HighestDegreeGetTime = dr["最高学位取得时间"].ToString(); | |||||
empinfoEntity.JobRank = FindDataItemValue(dataItemIBLL.GetDetailList("TechnicalPost"), dr["专业技术职务等级"].ToString(), "专业技术职务等级", false); | |||||
empinfoEntity.JobTitle = dr["专业技术职务名称"].ToString(); | |||||
empinfoEntity.JobRankGetTime = dr["专业技术职务取得时间"].ToString(); | |||||
empinfoEntity.WorkLevel = FindDataItemValue(dataItemIBLL.GetDetailList("TechnicalLevelOfWorker"), dr["工人技术等级"].ToString(), "工人技术等级", false); | |||||
empinfoEntity.WorkLevelGetTime =dr["工人技术等级取得时间"].ToString(); | |||||
empInfoIBLL.SaveEntity(empinfoEntity.EmpId,empinfoEntity); | |||||
snum++; | |||||
} | |||||
else | |||||
{ | |||||
dr["导入错误"] = dr["姓名"] + "导入错误"; | |||||
fnum++; | |||||
failDt.Rows.Add(dr.ItemArray); | |||||
} | |||||
} | |||||
catch (Exception e) | |||||
{ | |||||
dr["导入错误"] = dr["姓名"] + "导入错误"; | |||||
fnum++; | |||||
failDt.Rows.Add(dr.ItemArray); | |||||
continue; | |||||
} | |||||
} | } | ||||
// 写入缓存如果有未导入的数据 | // 写入缓存如果有未导入的数据 | ||||
if (failDt.Rows.Count > 0) | if (failDt.Rows.Count > 0) | ||||
@@ -858,6 +961,9 @@ namespace Learun.Application.Excel | |||||
} | } | ||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
} | } | ||||
} | } |
@@ -73,6 +73,7 @@ namespace Learun.Application.Excel | |||||
/// <returns></returns> | /// <returns></returns> | ||||
string ImportTable(string templateId, string fileId, DataTable dt); | string ImportTable(string templateId, string fileId, DataTable dt); | ||||
string ImportSalaryInfo(DataTable dt, string fileId); | string ImportSalaryInfo(DataTable dt, string fileId); | ||||
string EmpInfoImport(DataTable dt, string fileId); | |||||
/// <summary> | /// <summary> | ||||
/// 获取excel导入的错误数据 | /// 获取excel导入的错误数据 | ||||
/// </summary> | /// </summary> | ||||
@@ -150,6 +150,26 @@ namespace Learun.Application.OA | |||||
} | } | ||||
} | } | ||||
} | } | ||||
public void ChangeStatusByProcessId(string parameterProcessId, int p1) | |||||
{ | |||||
try | |||||
{ | |||||
newsService.ChangeStatusByProcessId(parameterProcessId, p1); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||
} | } |
@@ -182,6 +182,18 @@ namespace Learun.Application.OA | |||||
[Column("F_ISSENDFX")] | [Column("F_ISSENDFX")] | ||||
public bool? F_IsSendFX { get; set; } | public bool? F_IsSendFX { get; set; } | ||||
/// <summary> | |||||
/// 流程id | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("F_PROGRESSID")] | |||||
public string F_ProgressId { get; set; } | |||||
/// <summary> | |||||
/// 审核状态 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("F_STATUS")] | |||||
public string F_Status { get; set; } | |||||
/// <summary> | /// <summary> | ||||
@@ -46,5 +46,7 @@ namespace Learun.Application.OA | |||||
/// <returns></returns> | /// <returns></returns> | ||||
void SaveEntity(string keyValue, NewsEntity newsEntity); | void SaveEntity(string keyValue, NewsEntity newsEntity); | ||||
#endregion | #endregion | ||||
void ChangeStatusByProcessId(string parameterProcessId, int p1); | |||||
} | } | ||||
} | } |
@@ -3,6 +3,7 @@ using Learun.Util; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Spire.Pdf.General.Render.Decode.Jpeg2000.Icc; | |||||
namespace Learun.Application.OA | namespace Learun.Application.OA | ||||
{ | { | ||||
@@ -171,5 +172,34 @@ namespace Learun.Application.OA | |||||
} | } | ||||
#endregion | #endregion | ||||
public void ChangeStatusByProcessId(string parameterProcessId, int status) | |||||
{ | |||||
if (status == 2) | |||||
{ | |||||
try | |||||
{ | |||||
var newEntity = this.BaseRepository() | |||||
.FindEntity<NewsEntity>(a => a.F_ProgressId == parameterProcessId); | |||||
if (null != newEntity) | |||||
{ | |||||
newEntity.F_Status = "2"; | |||||
} | |||||
this.BaseRepository().Update(newEntity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
} | } | ||||
} | } |
@@ -121,11 +121,52 @@ namespace Learun.Application.OA | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyword">关键词</param> | /// <param name="keyword">关键词</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<NewsEntity> GetList(string keyword, string userId,string categoryId=null) | |||||
public IEnumerable<NewsEntity> GetList(string keyword, string userId, string categoryId = null) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return noticeService.GetList(keyword, userId,categoryId); | |||||
return noticeService.GetList(keyword, userId, categoryId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 流程 | |||||
public void ChangeStatusById(string keyValue, int status, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
noticeService.ChangeStatusById(keyValue, status, processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
public NewsEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return noticeService.GetEntityByProcessId(processId); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -52,5 +52,8 @@ namespace Learun.Application.OA | |||||
IEnumerable<NewsEntity> GetList(string keyword, string userId,string categoryId=null); | IEnumerable<NewsEntity> GetList(string keyword, string userId,string categoryId=null); | ||||
#endregion | #endregion | ||||
void ChangeStatusById(string keyValue, int i, string processId); | |||||
NewsEntity GetEntityByProcessId(string processId); | |||||
} | } | ||||
} | } |
@@ -182,5 +182,36 @@ namespace Learun.Application.OA | |||||
} | } | ||||
#endregion | #endregion | ||||
public void ChangeStatusById(string keyValue, int status, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
BaseRepository().ExecuteBySql($"UPDATE dbo.LR_OA_News SET F_Status='{status}',F_ProgressId='{processId}' WHERE F_NewsId='{keyValue}'", null); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
public NewsEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository().FindEntity<NewsEntity>(t => t.F_ProgressId == processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
} | } | ||||
} | } |
@@ -350,7 +350,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 入党(团)时间 | /// 入党(团)时间 | ||||
/// </summary> | /// </summary> | ||||
[Column("JOINPARTYTIME")] | [Column("JOINPARTYTIME")] | ||||
public DateTime? JoinPartyTime { get; set; } | |||||
public string JoinPartyTime { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 岗位职级 | /// 岗位职级 | ||||
@@ -446,7 +446,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 转正时间 | /// 转正时间 | ||||
/// </summary> | /// </summary> | ||||
[Column("FORMALTIME")] | [Column("FORMALTIME")] | ||||
public DateTime? FormalTime { get; set; } | |||||
public string FormalTime { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 从教三十年表彰年度 | /// 从教三十年表彰年度 | ||||
@@ -470,7 +470,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 最高学位取得时间 | /// 最高学位取得时间 | ||||
/// </summary> | /// </summary> | ||||
[Column("HIGHESTDEGREEGETTIME")] | [Column("HIGHESTDEGREEGETTIME")] | ||||
public DateTime? HighestDegreeGetTime { get; set; } | |||||
public string HighestDegreeGetTime { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 备注 | /// 备注 | ||||
@@ -488,7 +488,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 专业技术职务取得时间 | /// 专业技术职务取得时间 | ||||
/// </summary> | /// </summary> | ||||
[Column("JOBRANKGETTIME")] | [Column("JOBRANKGETTIME")] | ||||
public DateTime? JobRankGetTime { get; set; } | |||||
public string JobRankGetTime { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 专业技术职务名称 | /// 专业技术职务名称 | ||||
@@ -506,7 +506,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 工人技术等级取得时间 | /// 工人技术等级取得时间 | ||||
/// </summary> | /// </summary> | ||||
[Column("WORKLEVELGETTIME")] | [Column("WORKLEVELGETTIME")] | ||||
public DateTime? WorkLevelGetTime { get; set; } | |||||
public string WorkLevelGetTime { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 教育经历提交状态 | /// 教育经历提交状态 | ||||
/// </summary> | /// </summary> | ||||
@@ -82,6 +82,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("F_DepartmentId", queryParam["F_DepartmentId"].ToString(), DbType.String); | dp.Add("F_DepartmentId", queryParam["F_DepartmentId"].ToString(), DbType.String); | ||||
strSql.Append(" AND t.F_DepartmentId = @F_DepartmentId "); | strSql.Append(" AND t.F_DepartmentId = @F_DepartmentId "); | ||||
} | } | ||||
if (!queryParam["BCdCultureDegree"].IsEmpty()) | |||||
{ | |||||
dp.Add("BCdCultureDegree", queryParam["BCdCultureDegree"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.BCdCultureDegree = @BCdCultureDegree "); | |||||
} | |||||
if (!queryParam["BCdPartyFace"].IsEmpty()) | |||||
{ | |||||
dp.Add("BCdPartyFace", queryParam["BCdPartyFace"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.BCdPartyFace = @BCdPartyFace "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<EmpInfoEntity>(strSql.ToString(), dp, pagination); | return this.BaseRepository("CollegeMIS").FindList<EmpInfoEntity>(strSql.ToString(), dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
@@ -110,6 +110,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
dp.Add("MPUploader", "%" + queryParam["MPUploader"].ToString() + "%", DbType.String); | dp.Add("MPUploader", "%" + queryParam["MPUploader"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.MPUploader Like @MPUploader "); | strSql.Append(" AND t.MPUploader Like @MPUploader "); | ||||
} | } | ||||
if (!queryParam["MPMonth"].IsEmpty()) | |||||
{ | |||||
dp.Add("MPMonth", "%" + queryParam["MPMonth"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.MPMonth Like @MPMonth "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<MP_ManageMentPlanEntity>(strSql.ToString(), dp, pagination); | return this.BaseRepository("CollegeMIS").FindList<MP_ManageMentPlanEntity>(strSql.ToString(), dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
@@ -106,6 +106,7 @@ | |||||
<Compile Include="NodeMethod\Ass_AllocationMethod.cs" /> | <Compile Include="NodeMethod\Ass_AllocationMethod.cs" /> | ||||
<Compile Include="NodeMethod\IWorkFlowMethod.cs" /> | <Compile Include="NodeMethod\IWorkFlowMethod.cs" /> | ||||
<Compile Include="NodeMethod\Sys_ReceiveDocumentMethod.cs" /> | <Compile Include="NodeMethod\Sys_ReceiveDocumentMethod.cs" /> | ||||
<Compile Include="NodeMethod\OA_NewsMethod.cs" /> | |||||
<Compile Include="NodeMethod\Sys_SendFilePartyMethod.cs" /> | <Compile Include="NodeMethod\Sys_SendFilePartyMethod.cs" /> | ||||
<Compile Include="NodeMethod\Sys_SendFileMethod.cs" /> | <Compile Include="NodeMethod\Sys_SendFileMethod.cs" /> | ||||
<Compile Include="NodeMethod\Ass_RepairItemMethod.cs" /> | <Compile Include="NodeMethod\Ass_RepairItemMethod.cs" /> | ||||
@@ -227,6 +228,10 @@ | |||||
<Project>{211fa31a-b9d8-4f48-80cc-573b9410828e}</Project> | <Project>{211fa31a-b9d8-4f48-80cc-573b9410828e}</Project> | ||||
<Name>Learun.Application.Message</Name> | <Name>Learun.Application.Message</Name> | ||||
</ProjectReference> | </ProjectReference> | ||||
<ProjectReference Include="..\Learun.Application.OA\Learun.Application.OA.csproj"> | |||||
<Project>{5F3FDF79-A47E-4782-A090-DD0DC2D5CDC1}</Project> | |||||
<Name>Learun.Application.OA</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Application.TwoDevelopment\Learun.Application.TwoDevelopment.csproj"> | <ProjectReference Include="..\Learun.Application.TwoDevelopment\Learun.Application.TwoDevelopment.csproj"> | ||||
<Project>{56f9a112-fd96-4809-98f4-0d7c5de0711b}</Project> | <Project>{56f9a112-fd96-4809-98f4-0d7c5de0711b}</Project> | ||||
<Name>Learun.Application.TwoDevelopment</Name> | <Name>Learun.Application.TwoDevelopment</Name> | ||||
@@ -0,0 +1,26 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Linq; | |||||
using System.Text; | |||||
using System.Threading.Tasks; | |||||
using Learun.Application.OA; | |||||
namespace Learun.Application.WorkFlow | |||||
{ | |||||
public class OA_NewsMethod : IWorkFlowMethod | |||||
{ | |||||
NewsIBLL newsIBLL=new NewsBLL(); | |||||
public void Execute(WfMethodParameter parameter) | |||||
{ | |||||
if (parameter.code == "agree") | |||||
{ | |||||
newsIBLL.ChangeStatusByProcessId(parameter.processId, 2); | |||||
} | |||||
else | |||||
{ | |||||
newsIBLL.ChangeStatusByProcessId(parameter.processId, 0); | |||||
} | |||||
} | |||||
} | |||||
} |
@@ -517,6 +517,27 @@ namespace Learun.Util | |||||
} | } | ||||
return nearbyyear; | return nearbyyear; | ||||
} | } | ||||
/// <summary> | |||||
/// 返回前五年+后五年的学年yyyy-yyyy | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public static List<YearGrade> GenerateNearByAcademicTwo() | |||||
{ | |||||
int forwardfive = DateTime.Now.AddYears(-5).Year; | |||||
int afterfive = DateTime.Now.AddYears(5).Year; | |||||
List<YearGrade> nearbyyear = new List<YearGrade>(); | |||||
for (int i = forwardfive; i <= afterfive; i++) | |||||
{ | |||||
nearbyyear.Add(new YearGrade | |||||
{ | |||||
text = string.Format("{0}-{1}", i.ToString(), (i + 1).ToString()), | |||||
value = string.Format("{0}-{1}", i.ToString(), (i + 1).ToString()) | |||||
}); | |||||
} | |||||
return nearbyyear; | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 返回学期 | /// 返回学期 | ||||
/// </summary> | /// </summary> | ||||
@@ -535,6 +556,25 @@ namespace Learun.Util | |||||
return nearbyyear; | return nearbyyear; | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 返回学期 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public static List<YearGrade> GenerateNearBySemeterTwo() | |||||
{ | |||||
List<YearGrade> nearbyyear = new List<YearGrade>(); | |||||
nearbyyear.Add(new YearGrade | |||||
{ | |||||
text = "一", | |||||
value = "一" | |||||
}); | |||||
nearbyyear.Add(new YearGrade | |||||
{ | |||||
text = "二", | |||||
value = "二" | |||||
}); | |||||
return nearbyyear; | |||||
} | |||||
/// <summary> | |||||
/// 返回星期 | /// 返回星期 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
@@ -5,16 +5,16 @@ export default { | |||||
"appVersion": "2.0", | "appVersion": "2.0", | ||||
// 是否允许用户注册 | // 是否允许用户注册 | ||||
"enableSignUp": true, | "enableSignUp": true, | ||||
// 请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | |||||
//请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | |||||
"apiHost": [ | |||||
"https://wx.qjkjedu.com/learun/adms" | |||||
], | |||||
// "apiHost": [ | // "apiHost": [ | ||||
// "https://wx.qjkjedu.com/learun/adms" | |||||
// "http://192.168.2.202:8083/learun/adms" | |||||
// ], | // ], | ||||
// "apiHost": [ | // "apiHost": [ | ||||
// "http://192.168.2.202:8083/learun/adms" | |||||
// "http://localhost:8088/learun/adms" | |||||
// ], | // ], | ||||
"apiHost": [ | |||||
"http://localhost:8088/learun/adms" | |||||
], | |||||
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | // 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | ||||
"devAccount": [ | "devAccount": [ | ||||
{ username: "System", password: "0000" } | { username: "System", password: "0000" } | ||||