@@ -1,15 +1,15 @@ | |||
//var config = { | |||
// webapi: 'http://localhost:8088/', | |||
// web: "http://localhost:8087/"//web地址,用于配置logo | |||
//}; | |||
var config = { | |||
webapi: 'http://localhost:8088/', | |||
web: "http://localhost:8087/"//web地址,用于配置logo | |||
}; | |||
//var config = { | |||
// webapi: 'http://112.230.201.53:31173/', | |||
// web:"http://112.230.201.53/:8081/"//web地址,用于配置logo | |||
//}; | |||
var config = { | |||
webapi: 'http://localhost:31173/', | |||
web: "http://localhost:20472/"//web地址,用于配置logo | |||
}; | |||
//var config = { | |||
// webapi: 'http://localhost:31173/', | |||
// web: "http://localhost:20472/"//web地址,用于配置logo | |||
//}; | |||
//var config = { | |||
@@ -46,7 +46,6 @@ | |||
$desktop.append(_html); | |||
learun.httpget(config.webapi + "learun/adms/desktop/data", { type: 'list', id: _item.F_Id }, function (data) { | |||
console.log(data); | |||
if (data) { | |||
var $list = $('[data-desktop="' + data.Id + '"]'); | |||
//待办 | |||
@@ -202,11 +201,11 @@ | |||
var $desktop = $('#lr_desktop_msg_content'); | |||
$desktop.html(''); | |||
var logininfo = learun.storage.get('userinfo'); | |||
//if (logininfo.baseinfo.Description != "学生") { | |||
// target(data.target || [], $desktop); | |||
// chart(data.chart || [], $desktop); | |||
//} | |||
list(data.list || [], $desktop); | |||
if (logininfo.baseinfo.Description != "学生") { | |||
//target(data.target || [], $desktop); | |||
//chart(data.chart || [], $desktop); | |||
list(data.list || [], $desktop); | |||
} | |||
if (self) { | |||
self.refresh(true); | |||
@@ -83,6 +83,33 @@ namespace Learun.Application.Web.Areas.AdmissionsPlatform.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面【缴费信息】 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult PaymentIndex() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面【报到信息】 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult ReportIndex() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面【退学信息】 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult DropOutIndex() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -261,9 +288,9 @@ namespace Learun.Application.Web.Areas.AdmissionsPlatform.Controllers | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DoDropOut(string keyValue) | |||
public ActionResult DoDropOut(string keyValue, string status) | |||
{ | |||
onlineUserInfoIBLL.DoDropOut(keyValue); | |||
onlineUserInfoIBLL.DoDropOut(keyValue, status); | |||
return Success("操作成功!"); | |||
} | |||
/// <summary> | |||
@@ -0,0 +1,59 @@ | |||
@{ | |||
ViewBag.Title = "退学信息"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout" id="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"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="RealName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">手机号</div> | |||
<input id="Mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别</div> | |||
<div id="SexId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报名方式</div> | |||
<div id="EnrollMode"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">推荐老师</div> | |||
<div id="UserTeacherId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核状态</div> | |||
<div id="AppStatus"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</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_Drop" class="btn btn-default"><i class="fa fa-trash"></i> 退学</a> | |||
<a id="lr_DropCancel" class="btn btn-default"><i class="fa fa-trash"></i> 取消退学</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/AP_OnlineUserInfo/DropOutIndex.js") |
@@ -0,0 +1,328 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:45 | |||
* 描 述:退学信息 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
// 查询 | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 250, 400); | |||
$("#SexId").lrDataItemSelect({ code: 'usersex' }); | |||
$('#MajorId').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#UserTeacherId').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||
param: { strWhere: "1=1 " }, | |||
value: "empid", | |||
text: "empname" | |||
}); | |||
$("#EnrollMode").lrDataItemSelect({ code: 'EnrollMode' }); | |||
$("#AppStatus").lrDataItemSelect({ code: 'AdmissionsAppStatus' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
//退学 | |||
$('#lr_Drop').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
if (learun.checkrow(keyValue)) { | |||
var IsDropOut = $('#gridtable').jfGridValue('IsDropOut'); | |||
if (IsDropOut.indexOf('1') != -1) { | |||
learun.alert.warning("选中记录中包含已退学项目!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认退学该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/DoDropOut', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//取消退学 | |||
$('#lr_DropCancel').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
if (learun.checkrow(keyValue)) { | |||
var IsDropOut = $('#gridtable').jfGridValue('IsDropOut'); | |||
if (IsDropOut.indexOf('0') != -1) { | |||
learun.alert.warning("选中记录中包含未退学项目!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认取消退学该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/DoDropOut', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/GetPageListOfRegistrate', | |||
headData: [ | |||
{ | |||
label: '审核状态', name: 'AppStatus', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'AdmissionsAppStatus', | |||
callback: function (_data) { | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "通过") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else if (_data.text == "未通过") { | |||
callback('<span class=\"label label-danger\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-default\">' + _data.text + '</span>'); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '创建时间', name: 'CreateDate', width: 130, align: "left" }, | |||
{ label: '姓名', name: 'RealName', width: 100, align: "left" }, | |||
{ label: '手机号码', name: 'Mobile', width: 100, align: "left" }, | |||
{ | |||
label: '是否退学', name: 'IsDropOut', width: 100, align: "left", formatter: function (cellvalue) { | |||
return cellvalue == "1" ? "<span class=\"label label-success\">是</span>" : "<span class=\"label label-warning\">否</span>"; | |||
} | |||
}, | |||
{ label: '身份证号', name: 'CertNum', width: 100, align: "left" }, | |||
{ | |||
label: '性别', name: 'SexId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'usersex', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '出生日期', name: 'BirthDate', width: 100, align: "left" }, | |||
{ | |||
label: '民族', name: 'Nation', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality', | |||
key: value, | |||
keyId: 'nationalityno', | |||
callback: function (_data) { | |||
callback(_data['nationality']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
key: value, | |||
keyId: 'partyfaceno', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '现户籍所在地', name: 'OriginAddress', width: 100, align: "left" }, | |||
{ | |||
label: '户口性质', name: 'OriginId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'ResidenceNo', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '在籍年份', name: 'SchoolDate', width: 100, align: "left" }, | |||
{ label: '详细地址', name: 'DetailedAddress', width: 100, align: "left" }, | |||
{ label: '邮政编码', name: 'ZipCode', width: 100, align: "left" }, | |||
{ | |||
label: '学习形式', name: 'YearFormId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'StudyModality', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '招生季度', name: 'QuarterId', width: 100, align: "left" }, | |||
{ label: '毕业学校', name: 'GraduateSchool', width: 100, align: "left" }, | |||
{ label: '爱好特长', name: 'Hobbies', width: 100, align: "left" }, | |||
{ | |||
label: '文化程度', name: 'CultureId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree', | |||
key: value, | |||
keyId: 'culturedegreeno', | |||
callback: function (_data) { | |||
callback(_data['culturedegree']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '银行卡号', name: 'BankNumber', width: 100, align: "left" }, | |||
{ | |||
label: '学制', name: 'LearnLength', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EduSystem', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '家庭联系人', name: 'FamilyLinkman', width: 100, align: "left" }, | |||
{ label: '家庭联系电话', name: 'FamilyPhone', width: 100, align: "left" }, | |||
{ label: '家庭年总收入', name: 'FamilyIncome', width: 100, align: "left" }, | |||
{ label: '家庭人均收入', name: 'FamilyFenIncome', width: 100, align: "left" }, | |||
{ | |||
label: '是否十万以下民族', name: 'IsTenId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否家庭困难', name: 'IsHardId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否低保', name: 'IsBasicId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '收入来源', name: 'IncomeSourceId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'IncomeSource', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考校区', name: 'SchoolId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||
key: value, | |||
keyId: 'f_companyid', | |||
callback: function (_data) { | |||
callback(_data['f_fullname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考专业', name: 'MajorId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '推荐老师', name: 'UserTeacherId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | |||
key: value, | |||
keyId: 'f_userid', | |||
callback: function (_data) { | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '缴费额度', name: 'PaymentQuota', width: 100, align: "left" }, | |||
{ label: '报名时间', name: 'EnrollDate', width: 100, align: "left" }, | |||
{ | |||
label: '报名方式', name: 'EnrollMode', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EnrollMode', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
], | |||
mainId: 'Id', | |||
isPage: true, | |||
isMultiselect: true, | |||
sord: 'desc', | |||
sidx: 'CreateDate' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,66 @@ | |||
@{ | |||
ViewBag.Title = "缴费信息"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout" id="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"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="RealName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">手机号</div> | |||
<input id="Mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别</div> | |||
<div id="SexId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否缴费</div> | |||
<div id="IsPaymentId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">缴费方式</div> | |||
<div id="PaymentMode"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报名方式</div> | |||
<div id="EnrollMode"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">推荐老师</div> | |||
<div id="UserTeacherId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核状态</div> | |||
<div id="AppStatus"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</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_Pay" class="btn btn-default"><i class="fa fa-dollar"></i> 缴费</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/AP_OnlineUserInfo/PaymentIndex.js") |
@@ -0,0 +1,324 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:45 | |||
* 描 述:缴费信息 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
// 查询 | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 250, 400); | |||
$("#SexId").lrDataItemSelect({ code: 'usersex' }); | |||
$('#MajorId').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#UserTeacherId').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||
param: { strWhere: "1=1 " }, | |||
value: "empid", | |||
text: "empname" | |||
}); | |||
$("#IsPaymentId").lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$("#PaymentMode").lrDataItemSelect({ code: 'PaymentMode' }); | |||
$("#EnrollMode").lrDataItemSelect({ code: 'EnrollMode' }); | |||
$("#AppStatus").lrDataItemSelect({ code: 'AdmissionsAppStatus' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
//缴费 | |||
$('#lr_Pay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'PaymentForm', | |||
title: '缴费', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/PaymentForm?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/GetPageListOfRegistrate', | |||
headData: [ | |||
{ | |||
label: '审核状态', name: 'AppStatus', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'AdmissionsAppStatus', | |||
callback: function (_data) { | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "通过") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else if (_data.text == "未通过") { | |||
callback('<span class=\"label label-danger\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-default\">' + _data.text + '</span>'); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '创建时间', name: 'CreateDate', width: 130, align: "left" }, | |||
{ label: '姓名', name: 'RealName', width: 100, align: "left" }, | |||
{ label: '手机号码', name: 'Mobile', width: 100, align: "left" }, | |||
{ | |||
label: '是否缴费', name: 'IsPaymentId', width: 100, align: "left", formatter: function (cellvalue) { | |||
return cellvalue == "1" ? "<span class=\"label label-success\">是</span>" : "<span class=\"label label-warning\">否</span>"; | |||
} | |||
}, | |||
{ label: '缴费时间', name: 'PaymentDate', width: 100, align: "left" }, | |||
{ | |||
label: '缴费方式', name: 'PaymentMode', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'PaymentMode', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '身份证号', name: 'CertNum', width: 100, align: "left" }, | |||
{ | |||
label: '性别', name: 'SexId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'usersex', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '出生日期', name: 'BirthDate', width: 100, align: "left" }, | |||
{ | |||
label: '民族', name: 'Nation', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality', | |||
key: value, | |||
keyId: 'nationalityno', | |||
callback: function (_data) { | |||
callback(_data['nationality']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
key: value, | |||
keyId: 'partyfaceno', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '现户籍所在地', name: 'OriginAddress', width: 100, align: "left" }, | |||
{ | |||
label: '户口性质', name: 'OriginId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'ResidenceNo', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '在籍年份', name: 'SchoolDate', width: 100, align: "left" }, | |||
{ label: '详细地址', name: 'DetailedAddress', width: 100, align: "left" }, | |||
{ label: '邮政编码', name: 'ZipCode', width: 100, align: "left" }, | |||
{ | |||
label: '学习形式', name: 'YearFormId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'StudyModality', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '招生季度', name: 'QuarterId', width: 100, align: "left" }, | |||
{ label: '毕业学校', name: 'GraduateSchool', width: 100, align: "left" }, | |||
{ label: '爱好特长', name: 'Hobbies', width: 100, align: "left" }, | |||
{ | |||
label: '文化程度', name: 'CultureId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree', | |||
key: value, | |||
keyId: 'culturedegreeno', | |||
callback: function (_data) { | |||
callback(_data['culturedegree']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '银行卡号', name: 'BankNumber', width: 100, align: "left" }, | |||
{ | |||
label: '学制', name: 'LearnLength', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EduSystem', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '家庭联系人', name: 'FamilyLinkman', width: 100, align: "left" }, | |||
{ label: '家庭联系电话', name: 'FamilyPhone', width: 100, align: "left" }, | |||
{ label: '家庭年总收入', name: 'FamilyIncome', width: 100, align: "left" }, | |||
{ label: '家庭人均收入', name: 'FamilyFenIncome', width: 100, align: "left" }, | |||
{ | |||
label: '是否十万以下民族', name: 'IsTenId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否家庭困难', name: 'IsHardId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否低保', name: 'IsBasicId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '收入来源', name: 'IncomeSourceId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'IncomeSource', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考校区', name: 'SchoolId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||
key: value, | |||
keyId: 'f_companyid', | |||
callback: function (_data) { | |||
callback(_data['f_fullname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考专业', name: 'MajorId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '推荐老师', name: 'UserTeacherId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | |||
key: value, | |||
keyId: 'f_userid', | |||
callback: function (_data) { | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '缴费额度', name: 'PaymentQuota', width: 100, align: "left" }, | |||
{ label: '报名时间', name: 'EnrollDate', width: 100, align: "left" }, | |||
{ | |||
label: '报名方式', name: 'EnrollMode', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EnrollMode', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
], | |||
mainId: 'Id', | |||
isPage: true, | |||
isMultiselect: true, | |||
sord: 'desc', | |||
sidx: 'CreateDate' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -65,9 +65,6 @@ | |||
<a id="lr_checkYes" class="btn btn-default"><i class="fa fa-check"></i> 审核通过</a> | |||
<a id="lr_checkNo" class="btn btn-default"><i class="fa fa-close"></i> 审核不通过</a> | |||
<a id="lr_bindTeacher" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 关联教师</a> | |||
<a id="lr_Pay" class="btn btn-default"><i class="fa fa-dollar"></i> 缴费</a> | |||
<a id="lr_Report" class="btn btn-default"><i class="fa fa-clock-o"></i> 报到</a> | |||
<a id="lr_Drop" class="btn btn-default"><i class="fa fa-trash"></i> 退学</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -142,58 +142,6 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
//缴费 | |||
$('#lr_Pay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'PaymentForm', | |||
title: '缴费', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/PaymentForm?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
//报到 | |||
$('#lr_Report').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'ReportForm', | |||
title: '报到', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/ReportForm?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
//退学 | |||
$('#lr_Drop').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
if (learun.checkrow(keyValue)) { | |||
var IsDropOut = $('#gridtable').jfGridValue('IsDropOut'); | |||
if (IsDropOut.indexOf('1') != -1) { | |||
learun.alert.warning("选中记录中包含已退学项目!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认退学该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/DoDropOut', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
@@ -207,7 +155,16 @@ var bootstrap = function ($, learun) { | |||
key: value, | |||
code: 'AdmissionsAppStatus', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "通过") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else if (_data.text == "未通过") { | |||
callback('<span class=\"label label-danger\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-default\">' + _data.text + '</span>'); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
@@ -405,15 +362,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
{ label: '缴费额度', name: 'PaymentQuota', width: 100, align: "left" }, | |||
{ | |||
label: '是否缴费', name: 'IsPaymentId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
label: '是否缴费', name: 'IsPaymentId', width: 100, align: "left", formatter: function (cellvalue) { | |||
return cellvalue == "1" ? "<span class=\"label label-success\">是</span>" : "<span class=\"label label-warning\">否</span>"; | |||
} | |||
}, | |||
{ label: '缴费时间', name: 'PaymentDate', width: 100, align: "left" }, | |||
@@ -436,7 +386,16 @@ var bootstrap = function ($, learun) { | |||
key: value, | |||
code: 'IsReport', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "正常报到") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else if (_data.text == "异常报到") { | |||
callback('<span class=\"label label-danger\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-default\">' + _data.text + '</span>'); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
@@ -455,15 +414,8 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '是否退学', name: 'IsDropOut', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
label: '是否退学', name: 'IsDropOut', width: 100, align: "left", formatter: function (cellvalue) { | |||
return cellvalue == "1" ? "<span class=\"label label-success\">是</span>" : "<span class=\"label label-warning\">否</span>"; | |||
} | |||
}, | |||
@@ -0,0 +1,62 @@ | |||
@{ | |||
ViewBag.Title = "报到信息"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout" id="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"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="RealName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">手机号</div> | |||
<input id="Mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别</div> | |||
<div id="SexId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否报到</div> | |||
<div id="IsReportId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报名方式</div> | |||
<div id="EnrollMode"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">推荐老师</div> | |||
<div id="UserTeacherId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核状态</div> | |||
<div id="AppStatus"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</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_Report" class="btn btn-default"><i class="fa fa-clock-o"></i> 报到</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/AP_OnlineUserInfo/ReportIndex.js") |
@@ -0,0 +1,326 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:45 | |||
* 描 述:报到信息 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
// 查询 | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 250, 400); | |||
$("#SexId").lrDataItemSelect({ code: 'usersex' }); | |||
$('#MajorId').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#UserTeacherId').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||
param: { strWhere: "1=1 " }, | |||
value: "empid", | |||
text: "empname" | |||
}); | |||
$("#IsReportId").lrDataItemSelect({ code: 'IsReport' }); | |||
$("#EnrollMode").lrDataItemSelect({ code: 'EnrollMode' }); | |||
$("#AppStatus").lrDataItemSelect({ code: 'AdmissionsAppStatus' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
//报到 | |||
$('#lr_Report').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'ReportForm', | |||
title: '报到', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/ReportForm?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AdmissionsPlatform/AP_OnlineUserInfo/GetPageListOfRegistrate', | |||
headData: [ | |||
{ | |||
label: '审核状态', name: 'AppStatus', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'AdmissionsAppStatus', | |||
callback: function (_data) { | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "通过") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else if (_data.text == "未通过") { | |||
callback('<span class=\"label label-danger\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-default\">' + _data.text + '</span>'); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '创建时间', name: 'CreateDate', width: 130, align: "left" }, | |||
{ label: '姓名', name: 'RealName', width: 100, align: "left" }, | |||
{ label: '手机号码', name: 'Mobile', width: 100, align: "left" }, | |||
{ | |||
label: '是否报到', name: 'IsReportId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'IsReport', | |||
callback: function (_data) { | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "正常报到") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else if (_data.text == "异常报到") { | |||
callback('<span class=\"label label-danger\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-default\">' + _data.text + '</span>'); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '身份证号', name: 'CertNum', width: 100, align: "left" }, | |||
{ | |||
label: '性别', name: 'SexId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'usersex', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '出生日期', name: 'BirthDate', width: 100, align: "left" }, | |||
{ | |||
label: '民族', name: 'Nation', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality', | |||
key: value, | |||
keyId: 'nationalityno', | |||
callback: function (_data) { | |||
callback(_data['nationality']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
key: value, | |||
keyId: 'partyfaceno', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '现户籍所在地', name: 'OriginAddress', width: 100, align: "left" }, | |||
{ | |||
label: '户口性质', name: 'OriginId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'ResidenceNo', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '在籍年份', name: 'SchoolDate', width: 100, align: "left" }, | |||
{ label: '详细地址', name: 'DetailedAddress', width: 100, align: "left" }, | |||
{ label: '邮政编码', name: 'ZipCode', width: 100, align: "left" }, | |||
{ | |||
label: '学习形式', name: 'YearFormId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'StudyModality', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '招生季度', name: 'QuarterId', width: 100, align: "left" }, | |||
{ label: '毕业学校', name: 'GraduateSchool', width: 100, align: "left" }, | |||
{ label: '爱好特长', name: 'Hobbies', width: 100, align: "left" }, | |||
{ | |||
label: '文化程度', name: 'CultureId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree', | |||
key: value, | |||
keyId: 'culturedegreeno', | |||
callback: function (_data) { | |||
callback(_data['culturedegree']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '银行卡号', name: 'BankNumber', width: 100, align: "left" }, | |||
{ | |||
label: '学制', name: 'LearnLength', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EduSystem', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '家庭联系人', name: 'FamilyLinkman', width: 100, align: "left" }, | |||
{ label: '家庭联系电话', name: 'FamilyPhone', width: 100, align: "left" }, | |||
{ label: '家庭年总收入', name: 'FamilyIncome', width: 100, align: "left" }, | |||
{ label: '家庭人均收入', name: 'FamilyFenIncome', width: 100, align: "left" }, | |||
{ | |||
label: '是否十万以下民族', name: 'IsTenId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否家庭困难', name: 'IsHardId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否低保', name: 'IsBasicId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '收入来源', name: 'IncomeSourceId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'IncomeSource', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考校区', name: 'SchoolId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||
key: value, | |||
keyId: 'f_companyid', | |||
callback: function (_data) { | |||
callback(_data['f_fullname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考专业', name: 'MajorId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '推荐老师', name: 'UserTeacherId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | |||
key: value, | |||
keyId: 'f_userid', | |||
callback: function (_data) { | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '缴费额度', name: 'PaymentQuota', width: 100, align: "left" }, | |||
{ label: '报名时间', name: 'EnrollDate', width: 100, align: "left" }, | |||
{ | |||
label: '报名方式', name: 'EnrollMode', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'EnrollMode', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
], | |||
mainId: 'Id', | |||
isPage: true, | |||
isMultiselect: true, | |||
sord: 'desc', | |||
sidx: 'CreateDate' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -1,187 +0,0 @@ | |||
@{ | |||
ViewBag.Title = "招生学生信息"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学生ID<font face="宋体">*</font></div> | |||
<input id="Id" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">人员ID<font face="宋体">*</font></div> | |||
<input id="UserId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学员编号<font face="宋体">*</font></div> | |||
<input id="StudentNumber" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报考类别(字典)<font face="宋体">*</font></div> | |||
<input id="ExamineTypeId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">考生类别(字典)<font face="宋体">*</font></div> | |||
<input id="ExamineeTypeId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">考生情况(字典)<font face="宋体">*</font></div> | |||
<input id="ExamineeConditionId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">家庭出生(字典):农民、工人、干部<font face="宋体">*</font></div> | |||
<input id="FamilyBirthId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">本人成分(字典)<font face="宋体">*</font></div> | |||
<input id="OneselfComponent" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">文化程度(字典)<font face="宋体">*</font></div> | |||
<input id="CultureId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">婚否(字典)<font face="宋体">*</font></div> | |||
<input id="MarriageId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">属何种照顾对象<font face="宋体">*</font></div> | |||
<input id="WhichCareObject" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">爱好特长<font face="宋体">*</font></div> | |||
<input id="Hobbies" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否城镇户口<font face="宋体">*</font></div> | |||
<input id="IsTownId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现学习或工作单位<font face="宋体">*</font></div> | |||
<input id="WorkUnit" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">任何职务<font face="宋体">*</font></div> | |||
<input id="PostDuties" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">工种(字典)<font face="宋体">*</font></div> | |||
<input id="WorkTypeId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">证书编号<font face="宋体">*</font></div> | |||
<input id="CertificateNumber" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">何时何地受过何种奖励或处分<font face="宋体">*</font></div> | |||
<input id="RewardOrPunish" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">招生季度(字典)<font face="宋体">*</font></div> | |||
<input id="QuarterId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学习形式(字典):全日制<font face="宋体">*</font></div> | |||
<input id="YearFormId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">毕业学校<font face="宋体">*</font></div> | |||
<input id="GraduateSchool" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||
<input id="Class" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">银行卡号<font face="宋体">*</font></div> | |||
<input id="BankNumber" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学制(字典)<font face="宋体">*</font></div> | |||
<input id="LearnLength" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">家庭联系人<font face="宋体">*</font></div> | |||
<input id="FamilyLinkman" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">家庭联系电话<font face="宋体">*</font></div> | |||
<input id="FamilyPhone" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">家庭年总收入<font face="宋体">*</font></div> | |||
<input id="FamilyIncome" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">家庭人均收入<font face="宋体">*</font></div> | |||
<input id="FamilyFenIncome" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否十万以下民族(字典):是、否<font face="宋体">*</font></div> | |||
<input id="IsTenId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否家庭困难(字典)<font face="宋体">*</font></div> | |||
<input id="IsHardId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否低保(字典)<font face="宋体">*</font></div> | |||
<input id="IsBasicId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">收入来源(字典):务农、工人、职员、教师<font face="宋体">*</font></div> | |||
<input id="IncomeSourceId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">备注<font face="宋体">*</font></div> | |||
<input id="Remarks" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报考校区(字典)<font face="宋体">*</font></div> | |||
<input id="SchoolId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">关联老师ID<font face="宋体">*</font></div> | |||
<input id="UserTeacherId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否缴费(字典)<font face="宋体">*</font></div> | |||
<input id="IsPaymentId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">缴费额度<font face="宋体">*</font></div> | |||
<input id="PaymentQuota" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">缴费时间<font face="宋体">*</font></div> | |||
<input id="PaymentDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">缴费方式(字典):1现金交费、0网上交费<font face="宋体">*</font></div> | |||
<input id="PaymentMode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否报到(字典):1正常报到,0未报到,2异常报到<font face="宋体">*</font></div> | |||
<input id="IsReportId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报名时间<font face="宋体">*</font></div> | |||
<input id="EnrollDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">报名方式(字典):1现场报名、0网上报名<font face="宋体">*</font></div> | |||
<input id="EnrollMode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">创建时间<font face="宋体">*</font></div> | |||
<input id="CreateDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">身体状况:问卷调查<font face="宋体">*</font></div> | |||
<input id="BodyRemarks" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">异常报到原因<font face="宋体">*</font></div> | |||
<input id="ReportReason" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/OnlineStudentInfo/Form.js") |
@@ -1,38 +0,0 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:56 | |||
* 描 述:招生学生信息 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var selectedRow =learun.frameTab.currentIframe().selectedRow; | |||
var page = { | |||
init: function () { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
}, | |||
initData: function () { | |||
if (!!selectedRow) { | |||
$('#form').lrSetFormData(selectedRow); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
$.lrSaveForm(top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -1,39 +0,0 @@ | |||
@{ | |||
ViewBag.Title = "招生学生信息"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center" id="lr_layout"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title">树形目录</div> | |||
<div id="tree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title">标题</div> | |||
<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> 查询</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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/OnlineStudentInfo/Index.js") |
@@ -1,134 +0,0 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:56 | |||
* 描 述:招生学生信息 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
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 () { | |||
selectedRow = null; | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/Form', | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/Form?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/DeleteForm', { keyValue: keyValue}, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/GetPageList', | |||
headData: [ | |||
{ label: '学生ID', name: 'Id', width: 200, align: "left" }, | |||
{ label: '人员ID', name: 'UserId', width: 200, align: "left" }, | |||
{ label: '学员编号', name: 'StudentNumber', width: 200, align: "left" }, | |||
{ label: '报考类别(字典)', name: 'ExamineTypeId', width: 200, align: "left" }, | |||
{ label: '考生类别(字典)', name: 'ExamineeTypeId', width: 200, align: "left" }, | |||
{ label: '考生情况(字典)', name: 'ExamineeConditionId', width: 200, align: "left" }, | |||
{ label: '家庭出生(字典):农民、工人、干部', name: 'FamilyBirthId', width: 200, align: "left" }, | |||
{ label: '本人成分(字典)', name: 'OneselfComponent', width: 200, align: "left" }, | |||
{ label: '文化程度(字典)', name: 'CultureId', width: 200, align: "left" }, | |||
{ label: '婚否(字典)', name: 'MarriageId', width: 200, align: "left" }, | |||
{ label: '属何种照顾对象', name: 'WhichCareObject', width: 200, align: "left" }, | |||
{ label: '爱好特长', name: 'Hobbies', width: 200, align: "left" }, | |||
{ label: '是否城镇户口', name: 'IsTownId', width: 200, align: "left" }, | |||
{ label: '现学习或工作单位', name: 'WorkUnit', width: 200, align: "left" }, | |||
{ label: '任何职务', name: 'PostDuties', width: 200, align: "left" }, | |||
{ label: '工种(字典)', name: 'WorkTypeId', width: 200, align: "left" }, | |||
{ label: '证书编号', name: 'CertificateNumber', width: 200, align: "left" }, | |||
{ label: '何时何地受过何种奖励或处分', name: 'RewardOrPunish', width: 200, align: "left" }, | |||
{ label: '招生季度(字典)', name: 'QuarterId', width: 200, align: "left" }, | |||
{ label: '学习形式(字典):全日制', name: 'YearFormId', width: 200, align: "left" }, | |||
{ label: '毕业学校', name: 'GraduateSchool', width: 200, align: "left" }, | |||
{ label: '班级', name: 'Class', width: 200, align: "left" }, | |||
{ label: '银行卡号', name: 'BankNumber', width: 200, align: "left" }, | |||
{ label: '学制(字典)', name: 'LearnLength', width: 200, align: "left" }, | |||
{ label: '家庭联系人', name: 'FamilyLinkman', width: 200, align: "left" }, | |||
{ label: '家庭联系电话', name: 'FamilyPhone', width: 200, align: "left" }, | |||
{ label: '家庭年总收入', name: 'FamilyIncome', width: 200, align: "left" }, | |||
{ label: '家庭人均收入', name: 'FamilyFenIncome', width: 200, align: "left" }, | |||
{ label: '是否十万以下民族(字典):是、否', name: 'IsTenId', width: 200, align: "left" }, | |||
{ label: '是否家庭困难(字典)', name: 'IsHardId', width: 200, align: "left" }, | |||
{ label: '是否低保(字典)', name: 'IsBasicId', width: 200, align: "left" }, | |||
{ label: '收入来源(字典):务农、工人、职员、教师', name: 'IncomeSourceId', width: 200, align: "left" }, | |||
{ label: '备注', name: 'Remarks', width: 200, align: "left" }, | |||
{ label: '报考校区(字典)', name: 'SchoolId', width: 200, align: "left" }, | |||
{ label: '关联老师ID', name: 'UserTeacherId', width: 200, align: "left" }, | |||
{ label: '是否缴费(字典)', name: 'IsPaymentId', width: 200, align: "left" }, | |||
{ label: '缴费额度', name: 'PaymentQuota', width: 200, align: "left" }, | |||
{ label: '缴费时间', name: 'PaymentDate', width: 200, align: "left" }, | |||
{ label: '缴费方式(字典):1现金交费、0网上交费', name: 'PaymentMode', width: 200, align: "left" }, | |||
{ label: '是否报到(字典):1正常报到,0未报到,2异常报到', name: 'IsReportId', width: 200, align: "left" }, | |||
{ label: '报名时间', name: 'EnrollDate', width: 200, align: "left" }, | |||
{ label: '报名方式(字典):1现场报名、0网上报名', name: 'EnrollMode', width: 200, align: "left" }, | |||
{ label: '创建时间', name: 'CreateDate', width: 200, align: "left" }, | |||
{ label: '身体状况:问卷调查', name: 'BodyRemarks', width: 200, align: "left" }, | |||
{ label: '异常报到原因', name: 'ReportReason', width: 200, align: "left" }, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -1,127 +0,0 @@ | |||
@{ | |||
ViewBag.Title = "招生人员信息"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">人员ID<font face="宋体">*</font></div> | |||
<input id="Id" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">手机号码<font face="宋体">*</font></div> | |||
<input id="Mobile" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">密码<font face="宋体">*</font></div> | |||
<input id="Password" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">人员类型(字典)(1学生、2老师、3下乡老师)<font face="宋体">*</font></div> | |||
<input id="TypeId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | |||
<input id="RealName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别(字典)<font face="宋体">*</font></div> | |||
<input id="SexId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">年龄<font face="宋体">*</font></div> | |||
<input id="Age" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">民族<font face="宋体">*</font></div> | |||
<input id="Nation" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">出生日期<font face="宋体">*</font></div> | |||
<input id="BirthDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">身份证号<font face="宋体">*</font></div> | |||
<input id="CertNum" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">联系电话<font face="宋体">*</font></div> | |||
<input id="Phone" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">头像<font face="宋体">*</font></div> | |||
<input id="PhotoUrl" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">邮箱<font face="宋体">*</font></div> | |||
<input id="MailBox" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">省份<font face="宋体">*</font></div> | |||
<input id="Province" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">市<font face="宋体">*</font></div> | |||
<input id="City" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">县市、区<font face="宋体">*</font></div> | |||
<input id="Country" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">政治面貌(字典)<font face="宋体">*</font></div> | |||
<input id="PoliticsFace" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">邮政编码<font face="宋体">*</font></div> | |||
<input id="ZipCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">籍贯<font face="宋体">*</font></div> | |||
<input id="Origin" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">户口性质(字典)<font face="宋体">*</font></div> | |||
<input id="OriginId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现户籍所在地<font face="宋体">*</font></div> | |||
<input id="OriginAddress" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">详细地址<font face="宋体">*</font></div> | |||
<input id="DetailedAddress" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">在籍年份<font face="宋体">*</font></div> | |||
<input id="SchoolDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">状态(字典)(启用、锁定)<font face="宋体">*</font></div> | |||
<input id="StatusId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">创建时间<font face="宋体">*</font></div> | |||
<input id="CreateDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">排序串<font face="宋体">*</font></div> | |||
<input id="LayOrder" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">微信号<font face="宋体">*</font></div> | |||
<input id="WXNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核状态1通过,2未审核,3未通过<font face="宋体">*</font></div> | |||
<input id="AppStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">校区ID<font face="宋体">*</font></div> | |||
<input id="CampusId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">数据来源(0、电脑1、安卓2、学生扫老师)<font face="宋体">*</font></div> | |||
<input id="DataSource" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/OnlineUserInfo/Form.js") |
@@ -1,38 +0,0 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:45 | |||
* 描 述:招生人员信息 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var selectedRow =learun.frameTab.currentIframe().selectedRow; | |||
var page = { | |||
init: function () { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
}, | |||
initData: function () { | |||
if (!!selectedRow) { | |||
$('#form').lrSetFormData(selectedRow); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
$.lrSaveForm(top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -1,39 +0,0 @@ | |||
@{ | |||
ViewBag.Title = "招生人员信息"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center" id="lr_layout"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title">树形目录</div> | |||
<div id="tree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title">标题</div> | |||
<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> 查询</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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/OnlineUserInfo/Index.js") |
@@ -1,119 +0,0 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:45 | |||
* 描 述:招生人员信息 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
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 () { | |||
selectedRow = null; | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/Form', | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/Form?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/DeleteForm', { keyValue: keyValue}, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/GetPageList', | |||
headData: [ | |||
{ label: '人员ID', name: 'Id', width: 200, align: "left" }, | |||
{ label: '手机号码', name: 'Mobile', width: 200, align: "left" }, | |||
{ label: '密码', name: 'Password', width: 200, align: "left" }, | |||
{ label: '人员类型(字典)(1学生、2老师、3下乡老师)', name: 'TypeId', width: 200, align: "left" }, | |||
{ label: '姓名', name: 'RealName', width: 200, align: "left" }, | |||
{ label: '性别(字典)', name: 'SexId', width: 200, align: "left" }, | |||
{ label: '年龄', name: 'Age', width: 200, align: "left" }, | |||
{ label: '民族', name: 'Nation', width: 200, align: "left" }, | |||
{ label: '出生日期', name: 'BirthDate', width: 200, align: "left" }, | |||
{ label: '身份证号', name: 'CertNum', width: 200, align: "left" }, | |||
{ label: '联系电话', name: 'Phone', width: 200, align: "left" }, | |||
{ label: '头像', name: 'PhotoUrl', width: 200, align: "left" }, | |||
{ label: '邮箱', name: 'MailBox', width: 200, align: "left" }, | |||
{ label: '省份', name: 'Province', width: 200, align: "left" }, | |||
{ label: '市', name: 'City', width: 200, align: "left" }, | |||
{ label: '县市、区', name: 'Country', width: 200, align: "left" }, | |||
{ label: '政治面貌(字典)', name: 'PoliticsFace', width: 200, align: "left" }, | |||
{ label: '邮政编码', name: 'ZipCode', width: 200, align: "left" }, | |||
{ label: '籍贯', name: 'Origin', width: 200, align: "left" }, | |||
{ label: '户口性质(字典)', name: 'OriginId', width: 200, align: "left" }, | |||
{ label: '现户籍所在地', name: 'OriginAddress', width: 200, align: "left" }, | |||
{ label: '详细地址', name: 'DetailedAddress', width: 200, align: "left" }, | |||
{ label: '在籍年份', name: 'SchoolDate', width: 200, align: "left" }, | |||
{ label: '状态(字典)(启用、锁定)', name: 'StatusId', width: 200, align: "left" }, | |||
{ label: '创建时间', name: 'CreateDate', width: 200, align: "left" }, | |||
{ label: '排序串', name: 'LayOrder', width: 200, align: "left" }, | |||
{ label: '微信号', name: 'WXNo', width: 200, align: "left" }, | |||
{ label: '审核状态1通过,2未审核,3未通过', name: 'AppStatus', width: 200, align: "left" }, | |||
{ label: '校区ID', name: 'CampusId', width: 200, align: "left" }, | |||
{ label: '数据来源(0、电脑1、安卓2、学生扫老师)', name: 'DataSource', width: 200, align: "left" }, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -1,36 +0,0 @@ | |||
@{ | |||
ViewBag.Title = "报名信息"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout" id="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> 查询</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> 新增</a>*@ | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_checkYes" class="btn btn-default"><i class="fa fa-check"></i> 审核通过</a> | |||
<a id="lr_checkNo" class="btn btn-default"><i class="fa fa-close"></i> 审核不通过</a> | |||
<a id="lr_bindTeacher" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 关联教师</a> | |||
<a id="lr_Pay" class="btn btn-default"><i class="fa fa-dollar"></i> 缴费</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/OnlineUserInfo/RegistrateIndex.js") |
@@ -1,174 +0,0 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-17 15:45 | |||
* 描 述:报名信息 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
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 () { | |||
selectedRow = null; | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/Form', | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/Form?keyValue=' + keyValue, | |||
width: 700, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/DeleteForm', { keyValue: keyValue }, function () { | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/GetPageListOfRegistrate', | |||
headData: [ | |||
{ | |||
label: '审核状态', name: 'AppStatus', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'AdmissionsAppStatus', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '创建时间', name: 'CreateDate', width: 100, align: "left" }, | |||
{ label: '姓名', name: 'RealName', width: 100, align: "left" }, | |||
{ label: '身份证号', name: 'CertNum', width: 100, align: "left" }, | |||
{ | |||
label: '性别', name: 'SexId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'usersexbit', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '出生日期', name: 'BirthDate', width: 100, align: "left" }, | |||
{ label: '民族', name: 'Nation', width: 100, align: "left" }, | |||
{ label: '手机号码', name: 'Mobile', width: 100, align: "left" }, | |||
{ label: '政治面貌(字典)', name: 'PoliticsFace', width: 100, align: "left" }, | |||
{ label: '现户籍所在地', name: 'OriginAddress', width: 100, align: "left" }, | |||
{ label: '户口性质(字典)', name: 'OriginId', width: 100, align: "left" }, | |||
{ label: '在籍年份', name: 'SchoolDate', width: 100, align: "left" }, | |||
{ label: '详细地址', name: 'DetailedAddress', width: 100, align: "left" }, | |||
{ label: '邮政编码', name: 'ZipCode', width: 100, align: "left" }, | |||
//专业级别? | |||
{ label: '学习形式(字典):全日制', name: 'YearFormId', width: 100, align: "left" }, | |||
{ label: '招生季度(字典)', name: 'QuarterId', width: 100, align: "left" }, | |||
{ label: '毕业学校', name: 'GraduateSchool', width: 100, align: "left" }, | |||
{ label: '班级', name: 'Class', width: 100, align: "left" }, | |||
{ label: '工种(字典)', name: 'WorkTypeId', width: 100, align: "left" }, | |||
{ label: '爱好特长', name: 'Hobbies', width: 100, align: "left" }, | |||
{ label: '文化程度(字典)', name: 'CultureId', width: 100, align: "left" }, | |||
{ label: '银行卡号', name: 'BankNumber', width: 100, align: "left" }, | |||
{ label: '学制(字典)', name: 'LearnLength', width: 100, align: "left" }, | |||
{ label: '家庭联系人', name: 'FamilyLinkman', width: 100, align: "left" }, | |||
{ label: '家庭联系电话', name: 'FamilyPhone', width: 100, align: "left" }, | |||
{ label: '家庭年总收入', name: 'FamilyIncome', width: 100, align: "left" }, | |||
{ label: '家庭人均收入', name: 'FamilyFenIncome', width: 100, align: "left" }, | |||
{ label: '是否十万以下民族(字典):是、否', name: 'IsTenId', width: 100, align: "left" }, | |||
{ label: '是否家庭困难(字典)', name: 'IsHardId', width: 100, align: "left" }, | |||
{ label: '是否低保(字典)', name: 'IsBasicId', width: 100, align: "left" }, | |||
{ label: '收入来源(字典):务农、工人、职员、教师', name: 'IncomeSourceId', width: 100, align: "left" }, | |||
{ | |||
label: '报考校区', name: 'SchoolId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||
key: value, | |||
keyId: 'f_companyid', | |||
callback: function (_data) { | |||
callback(_data['f_fullname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '报考专业', name: 'MajorId', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '关联老师ID', name: 'UserTeacherId', width: 100, align: "left" }, | |||
{ label: '缴费额度', name: 'PaymentQuota', width: 100, align: "left" }, | |||
], | |||
mainId: 'Id', | |||
isPage: true, | |||
sord: 'desc', | |||
sidx: 'CreateDate' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -146,18 +146,18 @@ var bootstrap = function ($, learun) { | |||
$('#lr_viewcg').on('click', function () { | |||
var PId = $('#gridtable').jfGridValue('PId'); | |||
//if (learun.checkrow(PId)) { | |||
if (PId == null || PId === undefined || PId === "") { | |||
learun.alert.warning("当前项目不含采购单!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formAss_Purchase', | |||
title: '查看采购单', | |||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Purchase/FormViewJY?keyValue=' + PId, | |||
width: 1000, | |||
height: 600, | |||
btn: null | |||
}); | |||
if (PId == null || PId === undefined || PId === "") { | |||
learun.alert.warning("当前项目不含采购单!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formAss_Purchase', | |||
title: '查看采购单', | |||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Purchase/FormViewJY?keyValue=' + PId, | |||
width: 1000, | |||
height: 600, | |||
btn: null | |||
}); | |||
//} | |||
}); | |||
// 删除 | |||
@@ -233,8 +233,8 @@ var bootstrap = function ($, learun) { | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
}, | |||
{ | |||
label: "审批状态", name: "AAStatus", width: 100, align: "left", | |||
formatter: function (cellvalue, row) { | |||
if (cellvalue === 1) { | |||
@@ -258,13 +258,15 @@ var bootstrap = function ($, learun) { | |||
param.StartTime = startTime; | |||
param.EndTime = endTime; | |||
param.AssType = '1';//普通 低值 | |||
var loginInfo = top.learun.clientdata.get(['userinfo']); | |||
param.AACreateUserId = loginInfo.userId; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function (res, postData) { | |||
if (res && res.code && res.code == 200) { | |||
// 发起流程 | |||
var postData = { | |||
schemeCode: 'Ass_PurchaseApply',// 填写流程对应模板编号 | |||
processId: processId, | |||
@@ -214,10 +214,12 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "申请人", name: "AACreateUserId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | |||
key: value, | |||
keyId: 'f_account', | |||
callback: function (_data) { | |||
callback(_data.name); | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
@@ -258,6 +260,8 @@ var bootstrap = function ($, learun) { | |||
param.StartTime = startTime; | |||
param.EndTime = endTime; | |||
param.AssType = '2';//耗材 | |||
var loginInfo = top.learun.clientdata.get(['userinfo']); | |||
param.AACreateUserId = loginInfo.userId; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -44,6 +44,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 指定接收人表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult SpecifyReceiverForm() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面【党政公文查阅】 | |||
/// </summary> | |||
/// <returns></returns> | |||
@@ -211,6 +220,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
sys_ReceiveFileIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult Issue(string strEntity) | |||
{ | |||
Sys_IssueEntity entity = strEntity.ToObject<Sys_IssueEntity>(); | |||
sys_ReceiveFileIBLL.Issue(entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 查看实体数据 | |||
/// <param name="keyValue">主键</param> | |||
@@ -30,12 +30,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult IndexDocument() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 公文下发表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IssueForm() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面【党政公文下发】 | |||
@@ -49,7 +59,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult FormDocument() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
@@ -58,7 +68,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页【党政公文下发】 | |||
@@ -73,13 +83,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult FormView() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult FormDocumentView() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 【党政公文下发】 | |||
@@ -93,7 +103,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult ReadList() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
[HttpGet] | |||
@@ -124,7 +134,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = sys_SendFileIBLL.GetPageList(paginationobj, queryJson).Where(m=>m.STypeId==1); | |||
var data = sys_SendFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 1); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
@@ -172,9 +182,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Sys_SendFileData = sys_SendFileIBLL.GetSys_SendFileEntity( keyValue ); | |||
var Sys_SendFileData = sys_SendFileIBLL.GetSys_SendFileEntity(keyValue); | |||
Sys_SendFileData.Contents = HttpUtility.HtmlDecode(Sys_SendFileData.Contents); | |||
var jsonData = new { | |||
var jsonData = new | |||
{ | |||
Sys_SendFile = Sys_SendFileData, | |||
}; | |||
return Success(jsonData); | |||
@@ -199,8 +210,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormDataByProcessId(string processId) | |||
{ | |||
var Sys_SendFileData = sys_SendFileIBLL.GetEntityByProcessId( processId ); | |||
var jsonData = new { | |||
var Sys_SendFileData = sys_SendFileIBLL.GetEntityByProcessId(processId); | |||
var jsonData = new | |||
{ | |||
Sys_SendFile = Sys_SendFileData, | |||
}; | |||
return Success(jsonData); | |||
@@ -233,12 +245,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
Sys_SendFileEntity entity = strEntity.ToObject<Sys_SendFileEntity>(); | |||
entity.DelFlag = false; | |||
entity.SendFlag = 0; | |||
entity.SenderId = LoginUserInfo.Get().userId; | |||
entity.Sender = LoginUserInfo.Get().realName; | |||
entity.STypeId = 1; | |||
sys_SendFileIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.STypeId = 1; | |||
} | |||
sys_SendFileIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
@@ -249,12 +260,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
public ActionResult SaveFormDocument(string keyValue, string strEntity) | |||
{ | |||
Sys_SendFileEntity entity = strEntity.ToObject<Sys_SendFileEntity>(); | |||
entity.DelFlag = false; | |||
entity.SendFlag = 0; | |||
entity.SenderId = LoginUserInfo.Get().userId; | |||
entity.Sender = LoginUserInfo.Get().realName; | |||
entity.STypeId = 2; | |||
sys_SendFileIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.STypeId = 2; | |||
} | |||
sys_SendFileIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
@@ -265,11 +275,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
public ActionResult SaveFormParty(string keyValue, string strEntity) | |||
{ | |||
Sys_SendFileEntity entity = strEntity.ToObject<Sys_SendFileEntity>(); | |||
entity.DelFlag = false; | |||
entity.SendFlag = 0; | |||
entity.SenderId = LoginUserInfo.Get().userId; | |||
entity.Sender = LoginUserInfo.Get().realName; | |||
entity.STypeId = 3; | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.STypeId = 3; | |||
} | |||
sys_SendFileIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
@@ -291,9 +300,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
string guid = Guid.NewGuid().ToString(); | |||
sys_SendFileIBLL.ChangeStatusById(keyValue, 2, guid); | |||
sys_SendFileIBLL.ChangeStatusByProcessId(guid,2); | |||
sys_SendFileIBLL.ChangeStatusByProcessId(guid, 2); | |||
return Success("操作成功!"); | |||
} | |||
/// <summary> | |||
/// 结束下发 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult OverIssue(string keyValue) | |||
{ | |||
string guid = Guid.NewGuid().ToString(); | |||
sys_SendFileIBLL.OverIssue(keyValue); | |||
return Success("下发成功!"); | |||
} | |||
#endregion | |||
} | |||
@@ -27,6 +27,7 @@ | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_Read" class="btn btn-default"><i class="fa fa-plus"></i> 查阅</a> | |||
<a id="lr_SpecifyReceiver" class="btn btn-default"><i class="fa fa-plus"></i> 指定接收人</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
</div> | |||
@@ -79,6 +79,22 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 指定接收人 | |||
$('#lr_SpecifyReceiver').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('RFileId'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formSys_ReceiveFile', | |||
title: '指定接收人', | |||
url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/SpecifyReceiverForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('RFileId'); | |||
@@ -152,6 +168,30 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "指定接收人", name: "SpecifyReceiver", width: 150, align: "left", formatterAsync: | |||
function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', | |||
{ | |||
key: value, | |||
callback: function (_data) { | |||
if (_data.length > 0) { | |||
var text = ''; | |||
$.each(_data, | |||
function (i, item) { | |||
if (item) { | |||
text += item.name + ','; | |||
} | |||
}); | |||
text = text.substring(0, text.lastIndexOf(',')); | |||
callback(text); | |||
} else { | |||
callback(_data.name); | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "状态", name: "ReadFlag", width: 100, align: "left", | |||
formatter: function (cellvalue, row) { | |||
@@ -0,0 +1,11 @@ | |||
@{ | |||
ViewBag.Title = "公文收发"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_ReceiveFile"> | |||
<div class="lr-form-item-title">发送人</div> | |||
<div id="SpecifyReceiver" class="form-control"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveFile/SpecifyReceiverForm.js") |
@@ -0,0 +1,54 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-11 10:08 | |||
* 描 述:公文收发 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var selectedRow = learun.frameTab.currentIframe().selectedRow; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#SpecifyReceiver').lrUserSelect({ type: '1' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetFormData?keyValue=' + keyValue, function (data) { | |||
for (var id in data) { | |||
if (!!data[id].length && data[id].length > 0) { | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
$('#Contents').html(data[id].Contents); | |||
} | |||
} | |||
$("#lrUploader_uploadBtn_Url").hide(); | |||
}); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -7,26 +7,14 @@ | |||
<div class="lr-form-item-title">主题<font face="宋体">*</font></div> | |||
<input id="Title" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" > | |||
<div class="lr-form-item-title">接收对象<font face="宋体">*</font></div> | |||
<div id="SendType" isvalid="yes" checkexpession="NotNull" ></div> | |||
@*<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="ReceiverIddiv"> | |||
<div class="lr-form-item-title">已接收人<font face="宋体">*</font></div> | |||
<div id="ReceiverId" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="ReceiverIddiv"> | |||
<div class="lr-form-item-title">接收人<font face="宋体">*</font></div> | |||
<div id="ReceiverUserId" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="DeptIddiv"> | |||
<div class="lr-form-item-title">接收部门<font face="宋体">*</font></div> | |||
<div id="DeptId" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="PostIddiv"> | |||
<div class="lr-form-item-title">接收岗位<font face="宋体">*</font></div> | |||
<div id="PostId" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="CompanyIddiv"> | |||
<div class="lr-form-item-title">接收校区<font face="宋体">*</font></div> | |||
<div id="CompanyId" ></div> | |||
</div> | |||
<div class="lr-form-item-title">未接收人<font face="宋体">*</font></div> | |||
<div id="NoReceiver" ></div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" > | |||
<div class="lr-form-item-title">文件</div> | |||
<div id="Url" ></div> | |||
@@ -26,70 +26,8 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#CompanyId').lrCompanySelect({ type: 'multiple' }); | |||
$('#DeptId').lrDepartmentSelect({ type: 'treemultiple' }); | |||
$('#PostId').lrPostSelect({ type: 'treemultiple' }); | |||
$('#ReceiverUserId').lrUserSelect({ type: '1' }); | |||
$('#SendType').lrDataItemSelect({ | |||
code: 'FileSendType', select: function (item) { | |||
if (item != null && item != undefined) { | |||
if (item.id === 1 || item.id === "1") { | |||
$("#CompanyIddiv").show(); | |||
$("#CompanyId").attr("isvalid", "yes"); | |||
$("#CompanyId").attr("checkexpession", "NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
} else if (item.id === 2 || item.id === "2") { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").show(); | |||
$("#DeptId").attr("isvalid", "yes"); | |||
$("#DeptId").attr("checkexpession", "NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
} else if (item.id === 3 || item.id === "3") { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").show(); | |||
$("#PostId").attr("isvalid", "yes"); | |||
$("#PostId").attr("checkexpession", "NotNull"); | |||
} else { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").show(); | |||
$("#ReceiverUserId").attr("isvalid", "yes"); | |||
$("#ReceiverUserId").attr("checkexpession", "NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
} | |||
} | |||
} | |||
}); | |||
$('#SendType').lrselectSet("1"); | |||
//$('#ReceiverId').lrUserSelect({ type: '1' }); | |||
//$('#NoReceiver').lrUserSelect({ type: '1' }); | |||
$('#Url').lrUploader(); | |||
var ContentsUE = UE.getEditor('Contents'); | |||
$('#Contents')[0].ue = ContentsUE; | |||
@@ -103,63 +41,6 @@ var bootstrap = function ($, learun) { | |||
} | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
if (data[id].SendType === 1 || data[id].SendType == "1") { | |||
$("#CompanyIddiv").show(); | |||
$("#CompanyId").attr("isvalid", "yes"); | |||
$("#CompanyId").attr("checkexpession", "NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
$("#CompanyId").lrselectSet(data[id].ReceiverId); | |||
} else if (data[id].SendType === 2 || data[id].SendType == "2") { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").show(); | |||
$("#DeptId").attr("isvalid", "yes"); | |||
$("#DeptId").attr("checkexpession", "NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
$("#DeptId").lrselectSet(data[id].ReceiverId); | |||
} else if (data[id].SendType === 3 || data[id].SendType === "3") { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").show(); | |||
$("#PostId").attr("isvalid", "yes"); | |||
$("#PostId").attr("checkexpession", "NotNull"); | |||
$("#PostId").lrselectSet(data[id].ReceiverId); | |||
} else { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").show(); | |||
$("#ReceiverUserId").attr("isvalid", "yes"); | |||
$("#ReceiverUserId").attr("checkexpession", "NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
$("#ReceiverUserId").lrformselectSet(data[id].ReceiverId); | |||
} | |||
} | |||
} | |||
@@ -180,63 +61,6 @@ var bootstrap = function ($, learun) { | |||
keyValue = data[id].SFileId; | |||
} | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
if (data[id].SendType === 1 || data[id].SendType == "1") { | |||
$("#CompanyIddiv").show(); | |||
$("#CompanyId").attr("isvalid", "yes"); | |||
$("#CompanyId").attr("checkexpession", "NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
$("#CompanyId").lrselectSet(data[id].ReceiverId); | |||
} else if (data[id].SendType === 2 || data[id].SendType == "2") { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").show(); | |||
$("#DeptId").attr("isvalid", "yes"); | |||
$("#DeptId").attr("checkexpession", "NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
$("#DeptId").lrselectSet(data[id].ReceiverId); | |||
} else if (data[id].SendType === 3 || data[id].SendType === "3") { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").hide(); | |||
$("#ReceiverUserId").removeAttr("isvalid"); | |||
$("#ReceiverUserId").removeAttr("NotNull"); | |||
$("#PostIddiv").show(); | |||
$("#PostId").attr("isvalid", "yes"); | |||
$("#PostId").attr("checkexpession", "NotNull"); | |||
$("#PostId").lrselectSet(data[id].ReceiverId); | |||
} else { | |||
$("#CompanyIddiv").hide(); | |||
$("#CompanyId").removeAttr("isvalid"); | |||
$("#CompanyId").removeAttr("NotNull"); | |||
$("#DeptIddiv").hide(); | |||
$("#DeptId").removeAttr("isvalid"); | |||
$("#DeptId").removeAttr("NotNull"); | |||
$("#ReceiverIddiv").show(); | |||
$("#ReceiverUserId").attr("isvalid", "yes"); | |||
$("#ReceiverUserId").attr("checkexpession", "NotNull"); | |||
$("#PostIddiv").hide(); | |||
$("#PostId").removeAttr("isvalid"); | |||
$("#PostId").removeAttr("NotNull"); | |||
$("#ReceiverUserId").lrformselectSet(data[id].ReceiverId); | |||
} | |||
} | |||
} | |||
}); | |||
@@ -252,20 +76,6 @@ var bootstrap = function ($, learun) { | |||
// 保存数据 | |||
save = function (processId, callBack, i) { | |||
var formData = $('body').lrGetFormData(); | |||
var sendtype = $('#SendType').lrselectGet(); | |||
if (sendtype == "1") { | |||
formData.ReceiverId = $("#CompanyId").lrselectGet(); | |||
formData.Receiver = $("#CompanyId").find(".lr-select-placeholder").text(); | |||
} else if (sendtype == "2") { | |||
formData.ReceiverId = $("#DeptId").lrselectGet(); | |||
formData.Receiver = $("#DeptId").find(".lr-select-placeholder").text(); | |||
} else if (sendtype == "3") { | |||
formData.ReceiverId = $("#PostId").lrselectGet(); | |||
formData.Receiver = $("#PostId").find(".lr-select-placeholder").text(); | |||
} else { | |||
formData.ReceiverId = $("#ReceiverUserId").lrformselectGet(); | |||
formData.Receiver = $("#ReceiverUserId").find("span").text(); | |||
} | |||
if (!!processId) { | |||
formData.SProcessId = processId; | |||
} | |||
@@ -3,23 +3,19 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" > | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile"> | |||
<div class="lr-form-item-title">主题<font face="宋体">*</font></div> | |||
<input id="Title" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> | |||
<input id="Title" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" > | |||
<div class="lr-form-item-title">接收对象<font face="宋体">*</font></div> | |||
<div id="SendType" isvalid="yes" checkexpession="NotNull" readonly="readonly" ></div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="ReceiverIddiv"> | |||
<div class="lr-form-item-title">指定接收人<font face="宋体">*</font></div> | |||
<div id="SpecifyReceiver" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="ReceiverIddiv"> | |||
<div class="lr-form-item-title">接收人<font face="宋体">*</font></div> | |||
<input id="Receiver" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" > | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile"> | |||
<div class="lr-form-item-title">文件</div> | |||
<div id="Url" readonly="readonly" style="padding-right: 60px;"></div> | |||
<div id="Url" readonly="readonly" style="padding-right: 60px;"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" > | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile"> | |||
<div class="lr-form-item-title">正文</div> | |||
<div id="Contents" style="height:300px; margin-top: 6px;"></div> | |||
</div> | |||
@@ -27,9 +27,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#SendType').lrDataItemSelect({ | |||
code: 'FileSendType' | |||
}); | |||
$('#SpecifyReceiver').lrUserSelect({ type: '1' }); | |||
$('#Url').lrUploader(); | |||
var ContentsUE = UE.getEditor('Contents'); | |||
$('#Contents')[0].ue = ContentsUE; | |||
@@ -44,7 +42,7 @@ var bootstrap = function ($, learun) { | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
$("#lrUploader_uploadBtn_Url").hide(); | |||
// $('#Contents').html(data[id].Contents); | |||
// $('#Contents').html(data[id].Contents); | |||
} | |||
} | |||
}); | |||
@@ -52,7 +50,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
// 设置表单数据 | |||
setFormData = function (processId,param,callback) { | |||
setFormData = function (processId, param, callback) { | |||
if (!!processId) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/GetFormDataByProcessId?processId=' + processId, function (data) { | |||
for (var id in data) { | |||
@@ -70,7 +68,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}); | |||
} | |||
callback && callback(); | |||
callback && callback(); | |||
} | |||
// 验证数据是否填写完整 | |||
validForm = function () { | |||
@@ -81,13 +79,21 @@ var bootstrap = function ($, learun) { | |||
}; | |||
// 保存数据 | |||
save = function (processId, callBack, i) { | |||
var formData = {}; | |||
var res = {}; | |||
res.code = 200; | |||
if (!!processId) { | |||
formData.SProcessId = processId; | |||
} | |||
callBack(res, i); | |||
var formData = $('body').lrGetFormData(); | |||
var postData = { | |||
strEntity: JSON.stringify(formData) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(res, i); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -30,6 +30,8 @@ | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||
<a id="lr_IssueSpecifyReceiver" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 下发审批指定接收人</a> | |||
<a id="lr_OverIssue" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 结束下发</a> | |||
<a id="lr_read" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查阅情况</a> | |||
</div> | |||
</div> | |||
@@ -138,6 +138,52 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 下发审批指定接收人 | |||
$('#lr_IssueSpecifyReceiver').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('SFileId'); | |||
var specifyReceiver = $('#gridtable').jfGridValue('SpecifyReceiver'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '下发审批指定接收人', | |||
url: top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/IssueForm?keyValue=' + keyValue + '&specifyReceiver=' + specifyReceiver, | |||
width: 800, | |||
height: 200, | |||
callBack: function (id) { | |||
var res = false; | |||
// 验证数据 | |||
res = top[id].validForm(); | |||
// 保存数据 | |||
if (res) { | |||
res = top[id].save('', function () { | |||
page.search(); | |||
}); | |||
} | |||
return res; | |||
} | |||
}); | |||
} | |||
}); | |||
// 结束 | |||
$('#lr_OverIssue').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('SFileId'); | |||
if (learun.checkrow(keyValue)) { | |||
var SendFlag = $('#gridtable').jfGridValue('SendFlag'); | |||
if (SendFlag !== 2) { | |||
learun.alert.warning("当前公文未审批通过,请耐心等待审批!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否结束下发!', function (res) { | |||
if (res) { | |||
processId = learun.newGuid(); | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/OverIssue', { keyValue: keyValue, }, function (res) { | |||
refreshGirdData(res, {}); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -146,19 +192,31 @@ var bootstrap = function ($, learun) { | |||
headData: [ | |||
{ label: "主题", name: "Title", width: 300, align: "left" }, | |||
{ | |||
label: "接收对象", name: "SendType", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'FileSendType', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
label: "已接收", name: "Receiver", width: 300, align: "left" | |||
}, | |||
{ | |||
label: "接收人", name: "Receiver", width: 300, align: "left" | |||
label: "审批指定接收人", name: "SpecifyReceiver", width: 150, align: "left", formatterAsync: | |||
function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', | |||
{ | |||
key: value, | |||
callback: function (_data) { | |||
if (_data.length > 0) { | |||
var text = ''; | |||
$.each(_data, | |||
function (i, item) { | |||
if (item) { | |||
text += item.name + ','; | |||
} | |||
}); | |||
text = text.substring(0, text.lastIndexOf(',')); | |||
callback(text); | |||
} else { | |||
callback(_data.name); | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "下发人", name: "Sender", width: 100, align: "left" | |||
@@ -172,7 +230,11 @@ var bootstrap = function ($, learun) { | |||
if (cellvalue === 1) { | |||
return '<span class=\"label label-warning\">审批中</span>'; | |||
} else if (cellvalue === 2) { | |||
return '<span class=\"label label-success\">已下发</span>'; | |||
return '<span class=\"label label-info\">审批通过</span>'; | |||
} else if (cellvalue === 3) { | |||
return '<span class=\"label label-danger\" >审批失败</span>'; | |||
} else if (cellvalue === 4) { | |||
return '<span class=\"label label-success\" >下发完毕</span>'; | |||
} else { | |||
return '<span class=\"label label-default\" >草稿</span>'; | |||
} | |||
@@ -0,0 +1,11 @@ | |||
@{ | |||
ViewBag.Title = "公文发送"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="Sys_SendFile" id="ReceiverIddiv"> | |||
<div class="lr-form-item-title">接收人<font face="宋体">*</font></div> | |||
<div id="SpecifyReceiver" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_SendFile/IssueForm.js") |
@@ -0,0 +1,96 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-11 10:31 | |||
* 描 述:公文发送 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var rFileId = request('rFileId'); | |||
var specifyReceiver = request('specifyReceiver'); | |||
// 设置权限 | |||
var setAuthorize; | |||
// 设置表单数据 | |||
var setFormData; | |||
// 验证数据是否填写完整 | |||
var validForm; | |||
// 保存数据 | |||
var save; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
// 设置权限 | |||
setAuthorize = function (data) { | |||
}; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#SpecifyReceiver').lrUserSelect({ type: '1' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/GetFormData?keyValue=' + keyValue, function (data) { | |||
for (var id in data) { | |||
if (!!data[id].length && data[id].length > 0) { | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
if (rFileId) { | |||
$('#SpecifyReceiver').lrformselectSet(specifyReceiver); | |||
} else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
} | |||
}; | |||
// 设置表单数据 | |||
setFormData = function (processId) { | |||
if (!!processId) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/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_SendFile') { | |||
keyValue = data[id].SFileId; | |||
} | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
} | |||
}); | |||
} | |||
} | |||
// 验证数据是否填写完整 | |||
validForm = function () { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
return true; | |||
}; | |||
// 保存数据 | |||
save = function (processId, callBack, i) { | |||
var formData = $('body').lrGetFormData(); | |||
formData.RFileId = rFileId; | |||
formData.SFileId = keyValue; | |||
var postData = { | |||
strEntity: JSON.stringify(formData) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/Issue', postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(res, formData, i); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -17,6 +17,7 @@ | |||
<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> | |||
<a id="lr_Issue" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 下发</a> | |||
</div> | |||
</div> | |||
@@ -24,6 +24,40 @@ var bootstrap = function ($, learun) { | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
$('#lr_Issue').on('click', | |||
function () { | |||
var keyValue = $('#gridtable').jfGridValue('SFileId'); | |||
var rFileId = $('#gridtable').jfGridValue('RFileId'); | |||
var specifyReceiver = $('#gridtable').jfGridValue('SpecifyReceiver'); | |||
if (learun.checkrow(rFileId)) { | |||
var SendStatus = $('#gridtable').jfGridValue('SendStatus'); | |||
if (SendStatus) { | |||
learun.alert.warning("已下发!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formIssue', | |||
title: '下发', | |||
url: top.$.rootUrl + '/EducationalAdministration/Sys_SendFile/IssueForm?keyValue=' + keyValue + '&rFileId=' + rFileId + '&specifyReceiver=' + specifyReceiver, | |||
width: 500, | |||
height: 500, | |||
callBack: function (id) { | |||
var res = false; | |||
// 验证数据 | |||
res = top[id].validForm(); | |||
// 保存数据 | |||
if (res) { | |||
res = top[id].save('', function () { | |||
page.search(); | |||
}); | |||
} | |||
return res; | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -36,6 +70,30 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "查阅时间", name: "ReadTime", width: 150, align: "left" | |||
}, | |||
{ | |||
label: "指定接收人", name: "SpecifyReceiver", width: 150, align: "left", formatterAsync: | |||
function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', | |||
{ | |||
key: value, | |||
callback: function (_data) { | |||
if (_data.length > 0) { | |||
var text = ''; | |||
$.each(_data, | |||
function (i, item) { | |||
if (item) { | |||
text += item.name + ','; | |||
} | |||
}); | |||
text = text.substring(0, text.lastIndexOf(',')); | |||
callback(text); | |||
} else { | |||
callback(_data.name); | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "状态", name: "ReadFlag", width: 100, align: "left", | |||
formatter: function (cellvalue, row) { | |||
@@ -45,6 +103,16 @@ var bootstrap = function ($, learun) { | |||
return '<span class=\"label label-warning\">未读</span>'; | |||
} | |||
} | |||
}, | |||
{ | |||
label: "下发状态", name: "SendStatus", width: 100, align: "left", | |||
formatter: function (cellvalue, row) { | |||
if (cellvalue === true) { | |||
return '<span class=\"label label-success\">已下发</span>'; | |||
} else { | |||
return '<span class=\"label label-warning\">未下发</span>'; | |||
} | |||
} | |||
} | |||
], | |||
mainId: 'RFileId', | |||
@@ -2,7 +2,18 @@ | |||
ViewBag.Title = "流程监控"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div id="lr_layout" class="lr-layout lr-layout-center"> | |||
<div id="lr_layout" class="lr-layout lr-layout-left-center"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle" style="padding-top:10px;"> | |||
<div class="lr-layout-body"> | |||
<ul class="lr-left-list" id="lr_left_list"> | |||
<li class="active lrlg" data-value="1">未完成</li> | |||
<li data-value="2" class="lrlg">已完成</li> | |||
</ul> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle"> | |||
<div class="lr-layout-tool"> | |||
@@ -177,7 +177,7 @@ var bootstrap = function ($, learun) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
param.categoryId = '2'; | |||
param.categoryId = categoryId; | |||
param.F_Category = '合同类'; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
}, | |||
@@ -9,7 +9,7 @@ | |||
<ul class="lr-left-list" id="lr_left_list"> | |||
<li data-value="2" class="lrlg active">待办任务</li> | |||
<li data-value="3" class="lrlg">已办任务</li> | |||
<li class="lrlg" data-value="1">我的流程</li> | |||
<li data-value="1" class="lrlg">我的流程</li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -252,7 +252,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
if (categoryId == '3' && row.F_TaskType == 1 && row.F_IsFinished == 0) {// 已完成任务,添加一个撤销按钮 | |||
if (categoryId == '3' && row.F_TaskType == 1 && row.F_IsFinished == 0 && !row.NextNodeIsAudited) {// 已完成任务,添加一个撤销按钮 | |||
cellvalue = '<span class="label label-warning revoke2" style="margin-left:5px;margin-right:5px;" title="撤销审核" >撤销审核</span>' + cellvalue; | |||
$cell.on('click', '.revoke2', function () {// 删除 | |||
@@ -324,12 +324,17 @@ var bootstrap = function ($, learun) { | |||
return "<span class=\"label label-success\">运行中</span>"; | |||
} else if (cellvalue == 2) { | |||
return "<span class=\"label label-primary\">草稿</span>"; | |||
} else { | |||
} | |||
else { | |||
return "<span class=\"label label-danger\">作废</span>"; | |||
} | |||
} | |||
else { | |||
return "<span class=\"label label-warning\">结束</span>"; | |||
if (cellvalue == 4) { | |||
return "<span class=\"label label-default\">终止</span>"; | |||
} else { | |||
return "<span class=\"label label-warning\">结束</span>"; | |||
} | |||
} | |||
} | |||
@@ -7,6 +7,9 @@ | |||
*/ | |||
var dfopid = request('dfopid'); | |||
var selectValue = request('selectValue'); | |||
if (selectValue == "null") { | |||
selectValue = null; | |||
} | |||
var acceptClick; | |||
var bootstrap = function ($, learun) { | |||
@@ -45,7 +48,7 @@ var bootstrap = function ($, learun) { | |||
$warp.append($cardbox); | |||
learun.clientdata.getAsync('department', { | |||
key: item.F_DepartmentId, | |||
callback: function (_data,op) { | |||
callback: function (_data, op) { | |||
$warp.find('[data-id="' + op.key + '"]').text(_data.name); | |||
} | |||
}); | |||
@@ -82,8 +85,7 @@ var bootstrap = function ($, learun) { | |||
$('#user_list').find('[data-value="' + userid + '"]').removeClass('active'); | |||
} | |||
}); | |||
if (!!selectValue) | |||
{ | |||
if (!!selectValue) { | |||
learun.httpAsync('GET', top.$.rootUrl + '/LR_OrganizationModule/User/GetEntityListByUserIds', { keyValue: selectValue }, function (data) { | |||
if (!!data) { | |||
$.each(data, function (id, item) { | |||
@@ -100,13 +102,13 @@ var bootstrap = function ($, learun) { | |||
$warp.append($(_html)); | |||
learun.clientdata.getAsync('department', { | |||
key: item.F_DepartmentId, | |||
callback: function (_data,op) { | |||
callback: function (_data, op) { | |||
$warp.find('[data-id="' + op.key + '"]').text(_data.name); | |||
} | |||
}); | |||
learun.clientdata.getAsync('company', { | |||
key: item.F_CompanyId, | |||
callback: function (_data,op) { | |||
callback: function (_data, op) { | |||
$warp.find('[data-id="' + op.key + '"]').text(_data.name); | |||
} | |||
}); | |||
@@ -114,7 +116,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}); | |||
} | |||
}; | |||
function addUser(useritem) { | |||
var $warp = $('#selected_user_list'); | |||
@@ -126,13 +128,13 @@ var bootstrap = function ($, learun) { | |||
$warp.append(_html); | |||
learun.clientdata.getAsync('department', { | |||
key: useritem.F_DepartmentId, | |||
callback: function (_data,op) { | |||
callback: function (_data, op) { | |||
$warp.find('[data-id="' + op.key + '"]').text(_data.name); | |||
} | |||
}); | |||
learun.clientdata.getAsync('company', { | |||
key: useritem.F_CompanyId, | |||
callback: function (_data,op) { | |||
callback: function (_data, op) { | |||
$warp.find('[data-id="' + op.key + '"]').text(_data.name); | |||
} | |||
}); | |||
@@ -172,7 +174,7 @@ var bootstrap = function ($, learun) { | |||
$('#department_tree').lrtreeSet('refresh', { | |||
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', | |||
// 访问数据接口参数 | |||
param: { companyId: companyId}, | |||
param: { companyId: companyId }, | |||
}); | |||
}); | |||
@@ -198,7 +200,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
} | |||
}) | |||
// 滚动条 | |||
$('#user_list_warp').lrscroll(); | |||
@@ -229,7 +231,9 @@ var bootstrap = function ($, learun) { | |||
if (postitem.text != "") { | |||
postitem.text += ","; | |||
} | |||
postitem.text += userlistselectedobj[userlistselected[i]].F_RealName; | |||
if (userlistselected[i] != 'null') { | |||
postitem.text += userlistselectedobj[userlistselected[i]].F_RealName; | |||
} | |||
} | |||
callBack(postitem, dfopid); | |||
return true; | |||
@@ -13,11 +13,11 @@ | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | |||
<div class="lr-form-item-title">考勤时间</div> | |||
<input id="ADTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#ADTime').trigger('change'); } })" /> | |||
<input id="ADTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked: function () { $('#ADTime').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | |||
<div class="lr-form-item-title">打卡时间</div> | |||
<input id="ClockTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#ClockTime').trigger('change'); } })" /> | |||
<input id="ClockTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked: function () { $('#ClockTime').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | |||
<div class="lr-form-item-title">打卡状态</div> | |||
@@ -21,7 +21,7 @@ var bootstrap = function ($, learun) { | |||
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', | |||
param: {} | |||
}); | |||
$('#ADType').lrDataItemSelect({ code: 'ADType' }); | |||
$('#UserNo').lrDataSourceSelect({ code: 'BaseUser', value: 'f_account', text: 'f_realname' }); | |||
}, | |||
initData: function () { | |||
@@ -34,6 +34,8 @@ var bootstrap = function ($, learun) { | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
$("#ADTime").val(data[id].ADTime); | |||
$("#ClockTime").val(data[id].ClockTime); | |||
} | |||
}); | |||
} | |||
@@ -14,9 +14,13 @@ | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">员工名字</div> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="UserName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">职工编号</div> | |||
<input id="UserNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">部门</div> | |||
<div id="Department"></div> | |||
@@ -44,7 +44,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
}, 250, 400); | |||
$('#Department').lrDepartmentSelect(); | |||
$('#ADR_Device').lrDataSourceSelect({ code: 'ADR_Device', value: 'dname', text: 'dname' }); | |||
$('#ADStatus').lrDataItemSelect({ code: 'ADStatus'}); | |||
@@ -0,0 +1,447 @@ | |||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |||
<StiSerializer version="1.02" type="Net" application="StiReport"> | |||
<Dictionary Ref="1" type="Dictionary" isKey="true"> | |||
<BusinessObjects isList="true" count="0" /> | |||
<Databases isList="true" count="0" /> | |||
<DataSources isList="true" count="1"> | |||
<数据源1 Ref="2" type="DataTableSource" isKey="true"> | |||
<Alias>数据源1</Alias> | |||
<Columns isList="true" count="7"> | |||
<value>UserName,System.String</value> | |||
<value>Department,System.String</value> | |||
<value>ADType,System.String</value> | |||
<value>ADTime,System.DateTime</value> | |||
<value>ClockTime,System.DateTime</value> | |||
<value>ClockStatus,System.String</value> | |||
<value>ClockPlace,System.String</value> | |||
</Columns> | |||
<Dictionary isRef="1" /> | |||
<Key>7291a4d177ac43eeba3521446487f520</Key> | |||
<Name>数据源1</Name> | |||
<NameInSource>ADR_Record</NameInSource> | |||
</数据源1> | |||
</DataSources> | |||
<Relations isList="true" count="0" /> | |||
<Report isRef="0" /> | |||
<Resources isList="true" count="0" /> | |||
<Variables isList="true" count="1"> | |||
<value>,Monday,Monday,Monday,System.String,,True,False,False,False</value> | |||
</Variables> | |||
</Dictionary> | |||
<EngineVersion>EngineV2</EngineVersion> | |||
<GlobalizationStrings isList="true" count="0" /> | |||
<Key>60b550cbd9f1400a90a18ac579ad7cd0</Key> | |||
<MetaTags isList="true" count="0" /> | |||
<Pages isList="true" count="1"> | |||
<Page1 Ref="3" type="Page" isKey="true"> | |||
<Border>None;Black;2;Solid;False;4;Black</Border> | |||
<Brush>Transparent</Brush> | |||
<Components isList="true" count="10"> | |||
<PageHeaderBand1 Ref="4" type="PageHeaderBand" isKey="true"> | |||
<Border>All;Black;1;Solid;False;4;Black</Border> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>0,0.4,19,2</ClientRectangle> | |||
<Components isList="true" count="23"> | |||
<Shape3 Ref="5" type="Shape" isKey="true"> | |||
<BorderColor>Black</BorderColor> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>2.8,0,2.2,2</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>Shape3</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ShapeType Ref="6" type="Stimulsoft.Report.Components.ShapeTypes.StiDiagonalDownLineShapeType" isKey="true" /> | |||
</Shape3> | |||
<Text4 Ref="7" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>3.8,0.2,1,1</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,10</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text4</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<Text>日 期</Text> | |||
<TextBrush>Black</TextBrush> | |||
<TextOptions>,,,,,Angle=-50</TextOptions> | |||
<Type>Expression</Type> | |||
</Text4> | |||
<Text3 Ref="8" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>1.8,0.2,2.2,1</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,10</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text3</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<Text>打卡结果</Text> | |||
<TextBrush>Black</TextBrush> | |||
<TextOptions>,,,,,Angle=-30</TextOptions> | |||
<Type>Expression</Type> | |||
</Text3> | |||
<Text1 Ref="9" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>0.6,1.55,1.6,0.4</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,10</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<Text>人 员</Text> | |||
<TextBrush>Black</TextBrush> | |||
<Type>Expression</Type> | |||
</Text1> | |||
<Shape2 Ref="10" type="Shape" isKey="true"> | |||
<BorderColor>Black</BorderColor> | |||
<Brush>EmptyBrush</Brush> | |||
<ClientRectangle>0.2,0,4.8,2</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>Shape2</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ShapeType Ref="11" type="Stimulsoft.Report.Components.ShapeTypes.StiDiagonalDownLineShapeType" isKey="true" /> | |||
</Shape2> | |||
<Shape1 Ref="12" type="Shape" isKey="true"> | |||
<BorderColor>Black</BorderColor> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>2.2,1,2.8,1</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>Shape1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ShapeType Ref="13" type="Stimulsoft.Report.Components.ShapeTypes.StiDiagonalDownLineShapeType" isKey="true" /> | |||
</Shape1> | |||
<Text2 Ref="14" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>0.56,0.07,1.2,0.8</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,10</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text2</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<Text>考勤类型</Text> | |||
<TextBrush>Black</TextBrush> | |||
<TextOptions>,,,,,Angle=-28</TextOptions> | |||
<Type>Expression</Type> | |||
</Text2> | |||
<StartPointPrimitive1 Ref="15" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>5,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>6f1bc255e6204946825c21d6e7a14efa</ReferenceToGuid> | |||
</StartPointPrimitive1> | |||
<EndPointPrimitive1 Ref="16" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>5,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>6f1bc255e6204946825c21d6e7a14efa</ReferenceToGuid> | |||
</EndPointPrimitive1> | |||
<StartPointPrimitive8 Ref="17" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>17,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive8</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>ef3e0b0ec7af4e37bfe8a43076b7cd30</ReferenceToGuid> | |||
</StartPointPrimitive8> | |||
<EndPointPrimitive8 Ref="18" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>19,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive8</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>ef3e0b0ec7af4e37bfe8a43076b7cd30</ReferenceToGuid> | |||
</EndPointPrimitive8> | |||
<StartPointPrimitive7 Ref="19" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>15,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive7</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>2d746f4748134ce0a58f133581ce35de</ReferenceToGuid> | |||
</StartPointPrimitive7> | |||
<EndPointPrimitive7 Ref="20" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>17,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive7</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>2d746f4748134ce0a58f133581ce35de</ReferenceToGuid> | |||
</EndPointPrimitive7> | |||
<StartPointPrimitive6 Ref="21" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>13,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive6</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>3ea18cee2e5845f2bffa9729b80e5f29</ReferenceToGuid> | |||
</StartPointPrimitive6> | |||
<EndPointPrimitive6 Ref="22" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>15,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive6</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>3ea18cee2e5845f2bffa9729b80e5f29</ReferenceToGuid> | |||
</EndPointPrimitive6> | |||
<StartPointPrimitive5 Ref="23" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>11,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive5</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>d1cab23d65cb4cbf87889dc2f5fb4900</ReferenceToGuid> | |||
</StartPointPrimitive5> | |||
<EndPointPrimitive5 Ref="24" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>13,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive5</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>d1cab23d65cb4cbf87889dc2f5fb4900</ReferenceToGuid> | |||
</EndPointPrimitive5> | |||
<StartPointPrimitive4 Ref="25" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>9,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive4</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>82a36abe322c4390958d192e59591218</ReferenceToGuid> | |||
</StartPointPrimitive4> | |||
<EndPointPrimitive4 Ref="26" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>11,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive4</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>82a36abe322c4390958d192e59591218</ReferenceToGuid> | |||
</EndPointPrimitive4> | |||
<StartPointPrimitive3 Ref="27" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>7,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive3</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>3b9fa7de8f11436484b1a16553af09c9</ReferenceToGuid> | |||
</StartPointPrimitive3> | |||
<EndPointPrimitive3 Ref="28" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>9,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive3</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>3b9fa7de8f11436484b1a16553af09c9</ReferenceToGuid> | |||
</EndPointPrimitive3> | |||
<StartPointPrimitive2 Ref="29" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true"> | |||
<ClientRectangle>5,0,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>StartPointPrimitive2</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>85559f8f8dd547cf9f94f6bcba15184e</ReferenceToGuid> | |||
</StartPointPrimitive2> | |||
<EndPointPrimitive2 Ref="30" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true"> | |||
<ClientRectangle>7,2,0,0</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Name>EndPointPrimitive2</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="4" /> | |||
<ReferenceToGuid>85559f8f8dd547cf9f94f6bcba15184e</ReferenceToGuid> | |||
</EndPointPrimitive2> | |||
</Components> | |||
<Conditions isList="true" count="0" /> | |||
<Name>PageHeaderBand1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</PageHeaderBand1> | |||
<DataBand1 Ref="31" type="DataBand" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<BusinessObjectGuid isNull="true" /> | |||
<ClientRectangle>0,3.2,19,0.8</ClientRectangle> | |||
<Components isList="true" count="3"> | |||
<Text5 Ref="32" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>0,0,1.6,0.6</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,8</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text5</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="31" /> | |||
<Text>{数据源1.UserName}</Text> | |||
<TextBrush>Black</TextBrush> | |||
</Text5> | |||
<Text6 Ref="33" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>1.8,0,1.6,0.6</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,8</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text6</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="31" /> | |||
<Text>{数据源1.Department}</Text> | |||
<TextBrush>Black</TextBrush> | |||
</Text6> | |||
<Text7 Ref="34" type="Text" isKey="true"> | |||
<Brush>Transparent</Brush> | |||
<ClientRectangle>3.6,0,1.6,0.6</ClientRectangle> | |||
<Conditions isList="true" count="0" /> | |||
<Font>Arial,8</Font> | |||
<Margins>0,0,0,0</Margins> | |||
<Name>Text7</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="31" /> | |||
<Text>{数据源1.ADType}</Text> | |||
<TextBrush>Black</TextBrush> | |||
</Text7> | |||
</Components> | |||
<Conditions isList="true" count="0" /> | |||
<DataRelationName isNull="true" /> | |||
<DataSourceName>数据源1</DataSourceName> | |||
<Filters isList="true" count="0" /> | |||
<Name>DataBand1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
<Sort isList="true" count="0" /> | |||
</DataBand1> | |||
<VerticalLinePrimitive1 Ref="35" type="VerticalLinePrimitive" isKey="true"> | |||
<ClientRectangle>5,0.4,0.0254,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<EndCap Ref="36" type="Cap" isKey="true"> | |||
<Color>Black</Color> | |||
</EndCap> | |||
<Guid>6f1bc255e6204946825c21d6e7a14efa</Guid> | |||
<Name>VerticalLinePrimitive1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
<StartCap Ref="37" type="Cap" isKey="true"> | |||
<Color>Black</Color> | |||
</StartCap> | |||
</VerticalLinePrimitive1> | |||
<RectanglePrimitive7 Ref="38" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>17,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>ef3e0b0ec7af4e37bfe8a43076b7cd30</Guid> | |||
<Name>RectanglePrimitive7</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive7> | |||
<RectanglePrimitive6 Ref="39" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>15,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>2d746f4748134ce0a58f133581ce35de</Guid> | |||
<Name>RectanglePrimitive6</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive6> | |||
<RectanglePrimitive5 Ref="40" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>13,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>3ea18cee2e5845f2bffa9729b80e5f29</Guid> | |||
<Name>RectanglePrimitive5</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive5> | |||
<RectanglePrimitive4 Ref="41" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>11,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>d1cab23d65cb4cbf87889dc2f5fb4900</Guid> | |||
<Name>RectanglePrimitive4</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive4> | |||
<RectanglePrimitive3 Ref="42" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>9,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>82a36abe322c4390958d192e59591218</Guid> | |||
<Name>RectanglePrimitive3</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive3> | |||
<RectanglePrimitive2 Ref="43" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>7,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>3b9fa7de8f11436484b1a16553af09c9</Guid> | |||
<Name>RectanglePrimitive2</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive2> | |||
<RectanglePrimitive1 Ref="44" type="RectanglePrimitive" isKey="true"> | |||
<ClientRectangle>5,0.4,2,2</ClientRectangle> | |||
<Color>Black</Color> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>85559f8f8dd547cf9f94f6bcba15184e</Guid> | |||
<Name>RectanglePrimitive1</Name> | |||
<Page isRef="3" /> | |||
<Parent isRef="3" /> | |||
</RectanglePrimitive1> | |||
</Components> | |||
<Conditions isList="true" count="0" /> | |||
<Guid>403b1f2049dd4a979599f69c93987a2d</Guid> | |||
<Margins>1,1,1,1</Margins> | |||
<Name>Page1</Name> | |||
<PageHeight>29.7</PageHeight> | |||
<PageWidth>21</PageWidth> | |||
<PaperSize>A4</PaperSize> | |||
<Report isRef="0" /> | |||
</Page1> | |||
</Pages> | |||
<ReferencedAssemblies isList="true" count="8"> | |||
<value>System.Dll</value> | |||
<value>System.Drawing.Dll</value> | |||
<value>System.Windows.Forms.Dll</value> | |||
<value>System.Data.Dll</value> | |||
<value>System.Xml.Dll</value> | |||
<value>Stimulsoft.Controls.Dll</value> | |||
<value>Stimulsoft.Base.Dll</value> | |||
<value>Stimulsoft.Report.Dll</value> | |||
</ReferencedAssemblies> | |||
<ReportAlias>Report</ReportAlias> | |||
<ReportChanged>9/16/2020 12:03:28 PM</ReportChanged> | |||
<ReportCreated>9/15/2020 2:53:21 PM</ReportCreated> | |||
<ReportFile>D:\gitLocalRepositories\DigitalScholl\Learun.Framework.Ultimate V7\Learun.Application.Web\Areas\LogisticsManagement\Views\ADR_Record\Report.mrt</ReportFile> | |||
<ReportGuid>2f0af1b2cf104a0dbe8b6b7c1a035f6a</ReportGuid> | |||
<ReportName>Report</ReportName> | |||
<ReportUnit>Centimeters</ReportUnit> | |||
<ReportVersion>2020.2.1.0</ReportVersion> | |||
<Script>using System; | |||
using System.Drawing; | |||
using System.Windows.Forms; | |||
using System.Data; | |||
using Stimulsoft.Controls; | |||
using Stimulsoft.Base.Drawing; | |||
using Stimulsoft.Report; | |||
using Stimulsoft.Report.Dialogs; | |||
using Stimulsoft.Report.Components; | |||
namespace Reports | |||
{ | |||
public class Report : Stimulsoft.Report.StiReport | |||
{ | |||
public Report() { | |||
this.InitializeComponent(); | |||
} | |||
#region StiReport Designer generated code - do not modify | |||
#endregion StiReport Designer generated code - do not modify | |||
} | |||
} | |||
</Script> | |||
<ScriptLanguage>CSharp</ScriptLanguage> | |||
<Styles isList="true" count="0" /> | |||
</StiSerializer> |
@@ -788,11 +788,14 @@ | |||
<Compile Include="Areas\PersonnelManagement\Controllers\ADR_AddApplyController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\PaymentIndex.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\RegistrateForm.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\ReportForm.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\PaymentForm.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\BindTeacherForm.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\RegistrateIndex.js" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\ReportIndex.js" /> | |||
<Content Include="Areas\AppManager\Views\DTImg\Form.css" /> | |||
<Content Include="Areas\AppManager\Views\DTImg\Form.js" /> | |||
<Content Include="Areas\AppManager\Views\DTImg\Index.js" /> | |||
@@ -6796,6 +6799,9 @@ | |||
<Content Include="Areas\LogisticsManagement\Views\ADR_Record\StatisticIndex.cshtml" /> | |||
<Content Include="Areas\LogisticsManagement\Views\ADR_Record\StatisticDetailIndex.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\StuScoreQueryIndex.cshtml" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.cshtml" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\PaymentIndex.cshtml" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\ReportIndex.cshtml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | |||
<Content Include="Views\Login\Default-beifen.cshtml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" /> | |||
@@ -120,6 +120,11 @@ | |||
var dfop = $self[0]._lrformselect.dfop; | |||
return dfop._itemValue ? dfop._itemValue.value : ""; | |||
}; | |||
$.fn.lrformselectGetText = function () { | |||
var $self = $(this); | |||
var dfop = $self[0]._lrformselect.dfop; | |||
return dfop._itemValue ? dfop._itemValue.text : ""; | |||
}; | |||
$.fn.lrformselectSet = function (value) { | |||
var $self = $(this); | |||
var dfop = $self[0]._lrformselect.dfop; | |||
@@ -610,6 +610,44 @@ | |||
} | |||
return value; | |||
}; | |||
$.fn.lrselectGetText = function () { | |||
var $this = $(this); | |||
if ($this.length == 0) { | |||
return $this; | |||
} | |||
var dfop = $this[0]._lrselect.dfop; | |||
var value = ''; | |||
switch (dfop.type) { | |||
case 'default': | |||
if (dfop.data[dfop._index]) { | |||
value = dfop.data[dfop._index][dfop.text]; | |||
} | |||
break; | |||
case 'tree': | |||
if (dfop.currtentItem) { | |||
value = dfop.currtentItem[dfop.text]; | |||
} | |||
break; | |||
case 'treemultiple': | |||
if (dfop.currtentItems) { | |||
for (var i = 0, l = dfop.currtentItems.length; i < l; i++) { | |||
if (value != "") { | |||
value += ","; | |||
} | |||
value += dfop.currtentItems[i][dfop.text]; | |||
} | |||
} | |||
break; | |||
case 'gird': | |||
break; | |||
case 'multiple': | |||
dfop.multipleValue = dfop.multipleValue || []; | |||
return String(dfop.multipleValue); | |||
default: | |||
break; | |||
} | |||
return value; | |||
}; | |||
$.fn.lrselectSet = function (value) { | |||
// 设置数据的值 | |||
@@ -297,7 +297,20 @@ | |||
} | |||
else { | |||
var data = storage.get("userData").data || {}; | |||
op.callback(data[op.key] || {}, op); | |||
var keys = op.key.split(','); | |||
var array=new Array(); | |||
if (keys.length > 0) { | |||
$.each(keys, | |||
function (i, item) { | |||
array.push(data[item]); | |||
}) | |||
op.callback(array || {}, op); | |||
} else { | |||
op.callback(data[op.key] || {}, op); | |||
} | |||
} | |||
}, | |||
getAll: function (op) { | |||
@@ -154,4 +154,6 @@ | |||
<add key="EpidemicControlTeamRoleId" value="87f38e4e-b0a6-472c-b01a-2620b8f1ec46" /> | |||
<!--注册教师生成编号 金隅:jy;西昌:xc;大厂:dc--> | |||
<add key="EmpNoRule" value="jy"/> | |||
<!--考勤明细统计时查询的职工编号前缀 大厂:DCZZ--> | |||
<add key="ADR_RecordUserNoPrev" value="DCZZ"/> | |||
</appSettings> |
@@ -379,11 +379,11 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void DoDropOut(string keyValue) | |||
public void DoDropOut(string keyValue, string status) | |||
{ | |||
try | |||
{ | |||
onlineUserInfoService.DoDropOut(keyValue); | |||
onlineUserInfoService.DoDropOut(keyValue, status); | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -478,7 +478,7 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
try | |||
{ | |||
onlineUserInfoService.SaveReselectMajor(userId, majorNo); | |||
onlineUserInfoService.SaveReselectMajor(userId, majorNo); | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -113,7 +113,7 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void DoDropOut(string keyValue); | |||
void DoDropOut(string keyValue, string status); | |||
/// <summary> | |||
/// 关联教师 | |||
@@ -627,7 +627,7 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void DoDropOut(string keyValue) | |||
public void DoDropOut(string keyValue, string status) | |||
{ | |||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | |||
try | |||
@@ -636,13 +636,13 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
if (keyValue.IndexOf(",") == -1) | |||
{ | |||
db.ExecuteBySql("update AP_OnlineStudentInfo set IsDropOut='1' where UserId='" + keyValue + "' "); | |||
db.ExecuteBySql("update AP_OnlineStudentInfo set IsDropOut='" + status + "' where UserId='" + keyValue + "' "); | |||
} | |||
else | |||
{ | |||
foreach (var item in keyValue.Split(',')) | |||
{ | |||
db.ExecuteBySql("update AP_OnlineStudentInfo set IsDropOut='1' where UserId='" + item + "' "); | |||
db.ExecuteBySql("update AP_OnlineStudentInfo set IsDropOut='" + status + "' where UserId='" + item + "' "); | |||
} | |||
} | |||
} | |||
@@ -1,171 +0,0 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:56 | |||
/// 描 述:招生学生信息 | |||
/// </summary> | |||
public class OnlineStudentInfoBLL : OnlineStudentInfoIBLL | |||
{ | |||
private OnlineStudentInfoService onlineStudentInfoService = new OnlineStudentInfoService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineStudentInfoEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
return onlineStudentInfoService.GetList(queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineStudentInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return onlineStudentInfoService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineStudentInfoEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return onlineStudentInfoService.GetEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineStudentInfoEntity GetEntityByUserId(string userId) | |||
{ | |||
try | |||
{ | |||
return onlineStudentInfoService.GetEntityByUserId(userId); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
onlineStudentInfoService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, OnlineStudentInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
onlineStudentInfoService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1,314 +0,0 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:56 | |||
/// 描 述:招生学生信息 | |||
/// </summary> | |||
public class OnlineStudentInfoEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// 学生ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ID")] | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 人员ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("USERID")] | |||
public string UserId { get; set; } | |||
/// <summary> | |||
/// 学员编号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STUDENTNUMBER")] | |||
public string StudentNumber { get; set; } | |||
/// <summary> | |||
/// 报考类别(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("EXAMINETYPEID")] | |||
public string ExamineTypeId { get; set; } | |||
/// <summary> | |||
/// 考生类别(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("EXAMINEETYPEID")] | |||
public string ExamineeTypeId { get; set; } | |||
/// <summary> | |||
/// 考生情况(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("EXAMINEECONDITIONID")] | |||
public string ExamineeConditionId { get; set; } | |||
/// <summary> | |||
/// 家庭出生(字典):农民、工人、干部 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("FAMILYBIRTHID")] | |||
public string FamilyBirthId { get; set; } | |||
/// <summary> | |||
/// 本人成分(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ONESELFCOMPONENT")] | |||
public string OneselfComponent { get; set; } | |||
/// <summary> | |||
/// 文化程度(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CULTUREID")] | |||
public string CultureId { get; set; } | |||
/// <summary> | |||
/// 婚否(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MARRIAGEID")] | |||
public string MarriageId { get; set; } | |||
/// <summary> | |||
/// 属何种照顾对象 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("WHICHCAREOBJECT")] | |||
public string WhichCareObject { get; set; } | |||
/// <summary> | |||
/// 爱好特长 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("HOBBIES")] | |||
public string Hobbies { get; set; } | |||
/// <summary> | |||
/// 是否城镇户口 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ISTOWNID")] | |||
public string IsTownId { get; set; } | |||
/// <summary> | |||
/// 现学习或工作单位 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("WORKUNIT")] | |||
public string WorkUnit { get; set; } | |||
/// <summary> | |||
/// 任何职务 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("POSTDUTIES")] | |||
public string PostDuties { get; set; } | |||
/// <summary> | |||
/// 工种(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("WORKTYPEID")] | |||
public string WorkTypeId { get; set; } | |||
/// <summary> | |||
/// 证书编号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CERTIFICATENUMBER")] | |||
public string CertificateNumber { get; set; } | |||
/// <summary> | |||
/// 何时何地受过何种奖励或处分 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("REWARDORPUNISH")] | |||
public string RewardOrPunish { get; set; } | |||
/// <summary> | |||
/// 招生季度(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("QUARTERID")] | |||
public string QuarterId { get; set; } | |||
/// <summary> | |||
/// 学习形式(字典):全日制 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("YEARFORMID")] | |||
public string YearFormId { get; set; } | |||
/// <summary> | |||
/// 毕业学校 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GRADUATESCHOOL")] | |||
public string GraduateSchool { get; set; } | |||
/// <summary> | |||
/// 班级 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CLASS")] | |||
public string Class { get; set; } | |||
/// <summary> | |||
/// 银行卡号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("BANKNUMBER")] | |||
public string BankNumber { get; set; } | |||
/// <summary> | |||
/// 学制(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("LEARNLENGTH")] | |||
public string LearnLength { get; set; } | |||
/// <summary> | |||
/// 家庭联系人 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("FAMILYLINKMAN")] | |||
public string FamilyLinkman { get; set; } | |||
/// <summary> | |||
/// 家庭联系电话 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("FAMILYPHONE")] | |||
public string FamilyPhone { get; set; } | |||
/// <summary> | |||
/// 家庭年总收入 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("FAMILYINCOME")] | |||
public decimal? FamilyIncome { get; set; } | |||
/// <summary> | |||
/// 家庭人均收入 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("FAMILYFENINCOME")] | |||
public decimal? FamilyFenIncome { get; set; } | |||
/// <summary> | |||
/// 是否十万以下民族(字典):是、否 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ISTENID")] | |||
public string IsTenId { get; set; } | |||
/// <summary> | |||
/// 是否家庭困难(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ISHARDID")] | |||
public string IsHardId { get; set; } | |||
/// <summary> | |||
/// 是否低保(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ISBASICID")] | |||
public string IsBasicId { get; set; } | |||
/// <summary> | |||
/// 收入来源(字典):务农、工人、职员、教师 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("INCOMESOURCEID")] | |||
public string IncomeSourceId { get; set; } | |||
/// <summary> | |||
/// 备注 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("REMARKS")] | |||
public string Remarks { get; set; } | |||
/// <summary> | |||
/// 报考校区(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("SCHOOLID")] | |||
public string SchoolId { get; set; } | |||
/// <summary> | |||
/// 报考专业 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MAJORID")] | |||
public string MajorId { get; set; } | |||
/// <summary> | |||
/// 关联老师ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("USERTEACHERID")] | |||
public string UserTeacherId { get; set; } | |||
/// <summary> | |||
/// 是否缴费(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ISPAYMENTID")] | |||
public string IsPaymentId { get; set; } | |||
/// <summary> | |||
/// 缴费额度 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PAYMENTQUOTA")] | |||
public decimal? PaymentQuota { get; set; } | |||
/// <summary> | |||
/// 缴费时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PAYMENTDATE")] | |||
public DateTime? PaymentDate { get; set; } | |||
/// <summary> | |||
/// 缴费方式(字典):1现金交费、0网上交费 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PAYMENTMODE")] | |||
public string PaymentMode { get; set; } | |||
/// <summary> | |||
/// 是否报到(字典):1正常报到,0未报到,2异常报到 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ISREPORTID")] | |||
public string IsReportId { get; set; } | |||
/// <summary> | |||
/// 报名时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ENROLLDATE")] | |||
public DateTime? EnrollDate { get; set; } | |||
/// <summary> | |||
/// 报名方式(字典):1现场报名、0网上报名 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ENROLLMODE")] | |||
public string EnrollMode { get; set; } | |||
/// <summary> | |||
/// 创建时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CREATEDATE")] | |||
public DateTime? CreateDate { get; set; } | |||
/// <summary> | |||
/// 身体状况:问卷调查 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("BODYREMARKS")] | |||
public string BodyRemarks { get; set; } | |||
/// <summary> | |||
/// 异常报到原因 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("REPORTREASON")] | |||
public string ReportReason { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.Id = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.Id = keyValue; | |||
} | |||
#endregion | |||
} | |||
} | |||
@@ -1,60 +0,0 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:56 | |||
/// 描 述:招生学生信息 | |||
/// </summary> | |||
public interface OnlineStudentInfoIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
IEnumerable<OnlineStudentInfoEntity> GetList(string queryJson); | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
IEnumerable<OnlineStudentInfoEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
OnlineStudentInfoEntity GetEntity(string keyValue); | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
OnlineStudentInfoEntity GetEntityByUserId(string userId); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void SaveEntity(string keyValue, OnlineStudentInfoEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -1,249 +0,0 @@ | |||
using Dapper; | |||
using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Text; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:56 | |||
/// 描 述:招生学生信息 | |||
/// </summary> | |||
public class OnlineStudentInfoService : RepositoryFactory | |||
{ | |||
#region 构造函数和属性 | |||
private string fieldSql; | |||
public OnlineStudentInfoService() | |||
{ | |||
fieldSql = @" | |||
t.Id, | |||
t.UserId, | |||
t.StudentNumber, | |||
t.ExamineTypeId, | |||
t.ExamineeTypeId, | |||
t.ExamineeConditionId, | |||
t.FamilyBirthId, | |||
t.OneselfComponent, | |||
t.CultureId, | |||
t.MarriageId, | |||
t.WhichCareObject, | |||
t.Hobbies, | |||
t.IsTownId, | |||
t.WorkUnit, | |||
t.PostDuties, | |||
t.WorkTypeId, | |||
t.CertificateNumber, | |||
t.RewardOrPunish, | |||
t.QuarterId, | |||
t.YearFormId, | |||
t.GraduateSchool, | |||
t.Class, | |||
t.BankNumber, | |||
t.LearnLength, | |||
t.FamilyLinkman, | |||
t.FamilyPhone, | |||
t.FamilyIncome, | |||
t.FamilyFenIncome, | |||
t.IsTenId, | |||
t.IsHardId, | |||
t.IsBasicId, | |||
t.IncomeSourceId, | |||
t.Remarks, | |||
t.SchoolId, | |||
t.UserTeacherId, | |||
t.IsPaymentId, | |||
t.PaymentQuota, | |||
t.PaymentDate, | |||
t.PaymentMode, | |||
t.IsReportId, | |||
t.EnrollDate, | |||
t.EnrollMode, | |||
t.CreateDate, | |||
t.BodyRemarks, | |||
t.ReportReason | |||
"; | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineStudentInfoEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
//参考写法 | |||
//var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
//var dp = new DynamicParameters(new { }); | |||
//dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(fieldSql); | |||
strSql.Append(" FROM OnlineStudentInfo t "); | |||
return this.BaseRepository("CollegeMIS").FindList<OnlineStudentInfoEntity>(strSql.ToString()); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineStudentInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(fieldSql); | |||
strSql.Append(" FROM OnlineStudentInfo t "); | |||
return this.BaseRepository("CollegeMIS").FindList<OnlineStudentInfoEntity>(strSql.ToString(), pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineStudentInfoEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<OnlineStudentInfoEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineStudentInfoEntity GetEntityByUserId(string userId) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<OnlineStudentInfoEntity>(x => x.UserId == userId); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<OnlineStudentInfoEntity>(t => t.Id == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, OnlineStudentInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1,236 +0,0 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:45 | |||
/// 描 述:招生人员信息 | |||
/// </summary> | |||
public class OnlineUserInfoBLL : OnlineUserInfoIBLL | |||
{ | |||
private OnlineUserInfoService onlineUserInfoService = new OnlineUserInfoService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineUserInfoEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
return onlineUserInfoService.GetList(queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
public IEnumerable<OnlineUserInfoEntity> GetAllList() | |||
{ | |||
try | |||
{ | |||
return onlineUserInfoService.GetAllList(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineUserInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return onlineUserInfoService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineUserInfoEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return onlineUserInfoService.GetEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineUserInfoEntity> GetPageListOfRegistrate(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return onlineUserInfoService.GetPageListOfRegistrate(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineUserInfoEntity GetEntityByMobile(string mobile) | |||
{ | |||
try | |||
{ | |||
return onlineUserInfoService.GetEntityByMobile(mobile); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
onlineUserInfoService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, OnlineUserInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
onlineUserInfoService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveOnlineRegistrate(OnlineUserInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
onlineUserInfoService.SaveOnlineRegistrate(entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1,358 +0,0 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:45 | |||
/// 描 述:招生人员信息 | |||
/// </summary> | |||
public class OnlineUserInfoEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// 人员ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ID")] | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 手机号码 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MOBILE")] | |||
public string Mobile { get; set; } | |||
/// <summary> | |||
/// 密码 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PASSWORD")] | |||
public string Password { get; set; } | |||
/// <summary> | |||
/// 人员类型(字典)(1学生、2老师、3下乡老师) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("TYPEID")] | |||
public string TypeId { get; set; } | |||
/// <summary> | |||
/// 姓名 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("REALNAME")] | |||
public string RealName { get; set; } | |||
/// <summary> | |||
/// 性别(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("SEXID")] | |||
public string SexId { get; set; } | |||
/// <summary> | |||
/// 年龄 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("AGE")] | |||
public int? Age { get; set; } | |||
/// <summary> | |||
/// 民族 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NATION")] | |||
public string Nation { get; set; } | |||
/// <summary> | |||
/// 出生日期 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("BIRTHDATE")] | |||
public DateTime? BirthDate { get; set; } | |||
/// <summary> | |||
/// 身份证号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CERTNUM")] | |||
public string CertNum { get; set; } | |||
/// <summary> | |||
/// 联系电话 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PHONE")] | |||
public string Phone { get; set; } | |||
/// <summary> | |||
/// 头像 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PHOTOURL")] | |||
public string PhotoUrl { get; set; } | |||
/// <summary> | |||
/// 邮箱 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MAILBOX")] | |||
public string MailBox { get; set; } | |||
/// <summary> | |||
/// 省份 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PROVINCE")] | |||
public string Province { get; set; } | |||
/// <summary> | |||
/// 市 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CITY")] | |||
public string City { get; set; } | |||
/// <summary> | |||
/// 县市、区 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("COUNTRY")] | |||
public string Country { get; set; } | |||
/// <summary> | |||
/// 政治面貌(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("POLITICSFACE")] | |||
public string PoliticsFace { get; set; } | |||
/// <summary> | |||
/// 邮政编码 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ZIPCODE")] | |||
public string ZipCode { get; set; } | |||
/// <summary> | |||
/// 籍贯 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ORIGIN")] | |||
public string Origin { get; set; } | |||
/// <summary> | |||
/// 户口性质(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ORIGINID")] | |||
public string OriginId { get; set; } | |||
/// <summary> | |||
/// 现户籍所在地 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ORIGINADDRESS")] | |||
public string OriginAddress { get; set; } | |||
/// <summary> | |||
/// 详细地址 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("DETAILEDADDRESS")] | |||
public string DetailedAddress { get; set; } | |||
/// <summary> | |||
/// 在籍年份 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("SCHOOLDATE")] | |||
public DateTime? SchoolDate { get; set; } | |||
/// <summary> | |||
/// 状态(字典)(启用、锁定) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STATUSID")] | |||
public string StatusId { get; set; } | |||
/// <summary> | |||
/// 创建时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CREATEDATE")] | |||
public DateTime? CreateDate { get; set; } | |||
/// <summary> | |||
/// 排序串 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("LAYORDER")] | |||
public string LayOrder { get; set; } | |||
/// <summary> | |||
/// 微信号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("WXNO")] | |||
public string WXNo { get; set; } | |||
/// <summary> | |||
/// 审核状态0未审核,1通过,2未通过 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("APPSTATUS")] | |||
public string AppStatus { get; set; } | |||
/// <summary> | |||
/// 校区ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CAMPUSID")] | |||
public string CampusId { get; set; } | |||
/// <summary> | |||
/// 数据来源(0、电脑1、安卓2、学生扫老师) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("DATASOURCE")] | |||
public string DataSource { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.Id = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.Id = keyValue; | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 文化程度(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string CultureId { get; set; } | |||
/// <summary> | |||
/// 爱好特长 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string Hobbies { get; set; } | |||
/// <summary> | |||
/// 工种(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string WorkTypeId { get; set; } | |||
/// <summary> | |||
/// 招生季度(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string QuarterId { get; set; } | |||
/// <summary> | |||
/// 学习形式(字典):全日制 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string YearFormId { get; set; } | |||
/// <summary> | |||
/// 毕业学校 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string GraduateSchool { get; set; } | |||
/// <summary> | |||
/// 班级 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string Class { get; set; } | |||
/// <summary> | |||
/// 银行卡号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string BankNumber { get; set; } | |||
/// <summary> | |||
/// 学制(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string LearnLength { get; set; } | |||
/// <summary> | |||
/// 家庭联系人 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string FamilyLinkman { get; set; } | |||
/// <summary> | |||
/// 家庭联系电话 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string FamilyPhone { get; set; } | |||
/// <summary> | |||
/// 家庭年总收入 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public decimal? FamilyIncome { get; set; } | |||
/// <summary> | |||
/// 家庭人均收入 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public decimal? FamilyFenIncome { get; set; } | |||
/// <summary> | |||
/// 是否十万以下民族(字典):是、否 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string IsTenId { get; set; } | |||
/// <summary> | |||
/// 是否家庭困难(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string IsHardId { get; set; } | |||
/// <summary> | |||
/// 是否低保(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string IsBasicId { get; set; } | |||
/// <summary> | |||
/// 收入来源(字典):务农、工人、职员、教师 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string IncomeSourceId { get; set; } | |||
/// <summary> | |||
/// 关联老师ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string UserTeacherId { get; set; } | |||
/// <summary> | |||
/// 缴费额度 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public decimal? PaymentQuota { get; set; } | |||
/// <summary> | |||
/// 报考校区(字典) | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string SchoolId { get; set; } | |||
/// <summary> | |||
/// 报考专业 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string MajorId { get; set; } | |||
/// <summary> | |||
/// 报考校区名称 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string SchoolName { get; set; } | |||
/// <summary> | |||
/// 报考专业名称 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string MajorName { get; set; } | |||
#endregion | |||
} | |||
} | |||
@@ -1,76 +0,0 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:45 | |||
/// 描 述:招生人员信息 | |||
/// </summary> | |||
public interface OnlineUserInfoIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
IEnumerable<OnlineUserInfoEntity> GetList(string queryJson); | |||
IEnumerable<OnlineUserInfoEntity> GetAllList(); | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
IEnumerable<OnlineUserInfoEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
OnlineUserInfoEntity GetEntity(string keyValue); | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
IEnumerable<OnlineUserInfoEntity> GetPageListOfRegistrate(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
OnlineUserInfoEntity GetEntityByMobile(string mobile); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void SaveEntity(string keyValue, OnlineUserInfoEntity entity); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void SaveOnlineRegistrate(OnlineUserInfoEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -1,334 +0,0 @@ | |||
using Dapper; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Text; | |||
namespace Learun.Application.TwoDevelopment.AdmissionsPlatform | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-04-17 15:45 | |||
/// 描 述:招生人员信息 | |||
/// </summary> | |||
public class OnlineUserInfoService : RepositoryFactory | |||
{ | |||
#region 构造函数和属性 | |||
private string fieldSql; | |||
public OnlineUserInfoService() | |||
{ | |||
fieldSql = @" | |||
t.Id, | |||
t.Mobile, | |||
t.Password, | |||
t.TypeId, | |||
t.RealName, | |||
t.SexId, | |||
t.Age, | |||
t.Nation, | |||
t.BirthDate, | |||
t.CertNum, | |||
t.Phone, | |||
t.PhotoUrl, | |||
t.MailBox, | |||
t.Province, | |||
t.City, | |||
t.Country, | |||
t.PoliticsFace, | |||
t.ZipCode, | |||
t.Origin, | |||
t.OriginId, | |||
t.OriginAddress, | |||
t.DetailedAddress, | |||
t.SchoolDate, | |||
t.StatusId, | |||
t.CreateDate, | |||
t.LayOrder, | |||
t.WXNo, | |||
t.AppStatus, | |||
t.CampusId, | |||
t.DataSource | |||
"; | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineUserInfoEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
//参考写法 | |||
//var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
//var dp = new DynamicParameters(new { }); | |||
//dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(fieldSql); | |||
strSql.Append(" FROM OnlineUserInfo t "); | |||
return this.BaseRepository("CollegeMIS").FindList<OnlineUserInfoEntity>(strSql.ToString()); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public IEnumerable<OnlineUserInfoEntity> GetAllList() | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindList<OnlineUserInfoEntity>(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineUserInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(fieldSql); | |||
strSql.Append(" FROM OnlineUserInfo t "); | |||
return this.BaseRepository("CollegeMIS").FindList<OnlineUserInfoEntity>(strSql.ToString(), pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineUserInfoEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<OnlineUserInfoEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// <param name="pagination">分页参数</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public IEnumerable<OnlineUserInfoEntity> GetPageListOfRegistrate(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT t.*,s.CultureId,s.Hobbies,s.WorkTypeId,s.QuarterId,s.YearFormId,s.GraduateSchool,s.Class,s.BankNumber,s.LearnLength,s.FamilyLinkman,s.FamilyPhone,s.FamilyIncome,s.FamilyFenIncome,s.IsTenId,s.IsHardId,s.IsBasicId,s.IncomeSourceId,s.UserTeacherId,s.PaymentQuota,s.SchoolId,s.MajorId "); | |||
strSql.Append(" FROM OnlineUserInfo t "); | |||
strSql.Append(" left join OnlineStudentInfo s on t.Id=s.UserId "); | |||
return this.BaseRepository("CollegeMIS").FindList<OnlineUserInfoEntity>(strSql.ToString(), pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public OnlineUserInfoEntity GetEntityByMobile(string mobile) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<OnlineUserInfoEntity>(x => x.Mobile == mobile); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<OnlineUserInfoEntity>(t => t.Id == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, OnlineUserInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveOnlineRegistrate(OnlineUserInfoEntity entity) | |||
{ | |||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | |||
try | |||
{ | |||
if (entity != null) | |||
{ | |||
var now = DateTime.Now; | |||
//招生人员信息表 | |||
entity.Id = Guid.NewGuid().ToString(); | |||
entity.Password = "123456"; | |||
entity.TypeId = "1"; | |||
entity.CreateDate = now; | |||
entity.AppStatus = "0"; | |||
entity.CampusId = db.FindEntity<CdMajorEntity>(x => x.MajorNo == entity.MajorId)?.F_SchoolId; | |||
entity.DataSource = "0"; | |||
db.Insert(entity); | |||
//招生学生信息表 | |||
var onlineStudentInfo = new OnlineStudentInfoEntity() | |||
{ | |||
Id = Guid.NewGuid().ToString(), | |||
UserId = entity.Id, | |||
SchoolId = entity.CampusId, | |||
MajorId = entity.MajorId, | |||
EnrollDate = now, | |||
EnrollMode = "0", | |||
CreateDate = now, | |||
}; | |||
db.Insert(onlineStudentInfo); | |||
} | |||
db.Commit(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
db.Rollback(); | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -35,6 +35,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||
t.AAId, | |||
t.AACode, | |||
t.AAPrice, | |||
t.AAAssType, | |||
t.AACreateTime, | |||
t.AACreateDeptId, | |||
t.AACreateUserId,t.AAStatus, | |||
@@ -0,0 +1,22 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2019-04-11 10:08 | |||
/// 描 述:公文收发 | |||
/// </summary> | |||
public class Sys_IssueEntity | |||
{ | |||
public string RFileId { get; set; } | |||
public string SFileId { get; set; } | |||
public string SpecifyReceiver { get; set; } | |||
} | |||
} | |||
@@ -239,6 +239,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
public void Issue(Sys_IssueEntity entity) | |||
{ | |||
try | |||
{ | |||
sys_ReceiveFileService.Issue(entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
@@ -45,6 +45,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
[Column("RECEIVER")] | |||
public string Receiver { get; set; } | |||
/// <summary> | |||
/// 指定接收人 | |||
/// </summary> | |||
[Column("SPECIFYRECEIVER")] | |||
public string SpecifyReceiver { get; set; } | |||
/// <summary> | |||
/// 指定接收人的下发状态 | |||
/// </summary> | |||
[Column("SENDSTATUS")] | |||
public bool? SendStatus { get; set; } | |||
/// <summary> | |||
/// 标题 | |||
/// </summary> | |||
[Column("TITLE")] | |||
@@ -77,5 +77,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
#endregion | |||
void Issue(Sys_IssueEntity entity); | |||
} | |||
} |
@@ -3,8 +3,16 @@ using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Configuration; | |||
using System.Data; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Web; | |||
using Learun.Application.Organization; | |||
using Learun.Application.TwoDevelopment.LR_Desktop; | |||
using Microsoft.AspNet.SignalR.Client; | |||
using Newtonsoft.Json; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
@@ -226,7 +234,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
var oldentity = GetSys_ReceiveFileEntity(keyValue); | |||
oldentity.RUrl = entity.RUrl; | |||
oldentity.ReplyFlag = true; | |||
oldentity.ReplyTime=DateTime.Now; | |||
oldentity.ReplyTime = DateTime.Now; | |||
oldentity.SpecifyReceiver = entity.SpecifyReceiver; | |||
this.BaseRepository().Update(oldentity); | |||
} | |||
else | |||
@@ -330,5 +339,142 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
#endregion | |||
public void Issue(Sys_IssueEntity entity) | |||
{ | |||
var db = this.BaseRepository().BeginTrans(); | |||
try | |||
{ | |||
//从‘查阅情况’ 列表中跳转 将发送情况改变 | |||
if (!string.IsNullOrEmpty(entity.RFileId)) | |||
{ | |||
var rEntity = db.FindEntity<Sys_ReceiveFileEntity>(a => a.RFileId == entity.RFileId); | |||
rEntity.SendStatus = true; | |||
db.Update(rEntity); | |||
} | |||
var Sys_SendFile = db.FindEntity<Sys_SendFileEntity>(a => a.SFileId == entity.SFileId); | |||
var teacherlist = db.FindList<UserEntity>(a => entity.SpecifyReceiver.Contains(a.F_UserId)).ToList(); | |||
foreach (var tEntity in teacherlist) | |||
{ | |||
Sys_ReceiveFileEntity receiveFile = new Sys_ReceiveFileEntity(); | |||
receiveFile.Create(); | |||
receiveFile.SFileId = Sys_SendFile.SFileId; | |||
receiveFile.SenderId = Sys_SendFile.SenderId; | |||
receiveFile.Sender = Sys_SendFile.Sender; | |||
receiveFile.ReceiverId = tEntity.F_UserId; | |||
receiveFile.Receiver = tEntity.F_RealName; | |||
receiveFile.Title = Sys_SendFile.Title; | |||
receiveFile.Contents = Sys_SendFile.Contents; | |||
receiveFile.Url = Sys_SendFile.Url; | |||
receiveFile.ReadFlag = false; | |||
receiveFile.SendTime = DateTime.Now; | |||
receiveFile.SendType = Sys_SendFile.SendType; | |||
receiveFile.DelFlag = false; | |||
receiveFile.STypeId = Sys_SendFile.STypeId; | |||
receiveFile.ReplyFlag = false; | |||
receiveFile.SLastDate = Sys_SendFile.SLastDate; | |||
receiveFile.RUrl = Guid.NewGuid().ToString(); | |||
db.Insert(receiveFile); | |||
} | |||
Sys_SendFile.SendTime = DateTime.Now; | |||
var listReceive = Sys_SendFile.ReceiverId?.Split(',').ToList(); | |||
if (listReceive == null) | |||
{ | |||
listReceive = new List<string>(); | |||
} | |||
foreach (var item in teacherlist) | |||
{ | |||
if (listReceive?.Contains(item.F_Account) != true) | |||
{ | |||
listReceive.Add(item.F_Account); | |||
Sys_SendFile.Receiver += "," + item.F_RealName; | |||
} | |||
} | |||
Sys_SendFile.Receiver = Sys_SendFile.Receiver.TrimStart(','); | |||
StringBuilder stringBuilder = new StringBuilder(); | |||
foreach (var item in listReceive) | |||
{ | |||
stringBuilder.Append(item + ","); | |||
} | |||
Sys_SendFile.ReceiverId = stringBuilder.ToString().TrimEnd(','); | |||
db.Update(Sys_SendFile); | |||
db.Commit(); | |||
//微信推送 | |||
try | |||
{ | |||
PushWeixin(teacherlist, Sys_SendFile.Title); | |||
} | |||
catch (Exception e) | |||
{ | |||
} | |||
//飞星推送 | |||
Task.Run(async () => | |||
{ | |||
using (var hubConnection = new HubConnection(ConfigurationManager.AppSettings["CommunicationServeraddress"])) | |||
{ | |||
var hubProxy = hubConnection.CreateHubProxy("SignalRHub"); | |||
await hubConnection.Start(); | |||
await hubProxy.Invoke("PushAnnouncement", Sys_SendFile.SenderId, Sys_SendFile.Title, Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_SendFile.Contents)).Length < 20 ? Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_SendFile.Contents)) : Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_SendFile.Contents)).Substring(0, 20), "sendfile", string.Join(",", teacherlist.Select(m => m.F_UserId)), ""); | |||
} | |||
}); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public void PushWeixin(List<UserEntity> needpostuserlist, string title) | |||
{ | |||
var WeChatConfigentity = BaseRepository().FindEntity<WeChatConfigEntity>(m => m.IsEnable == true); | |||
string appid = WeChatConfigentity.APPId; | |||
string secret = WeChatConfigentity.secret; | |||
var wechatemplete = BaseRepository() | |||
.FindEntity<WeChatTemplateEntity>(m => m.WeID == WeChatConfigentity.ID && m.TCode == "task"); | |||
string weixintaskurl = wechatemplete.TUrl; | |||
string weixintasktempid = wechatemplete.TempId; | |||
var responsejson = Util.HttpMethods.HttpGet("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" + appid + "&secret=" + secret); | |||
foreach (UserEntity userinfo in needpostuserlist) | |||
{ | |||
if (userinfo != null && !string.IsNullOrEmpty(userinfo.OpenIdForWeixin)) | |||
{ | |||
//执行推送任务 | |||
if (!string.IsNullOrEmpty(appid) && !string.IsNullOrEmpty(secret) && !string.IsNullOrEmpty(weixintaskurl) && !string.IsNullOrEmpty(weixintasktempid)) | |||
{ | |||
if (!string.IsNullOrEmpty(responsejson)) | |||
{ | |||
var weixintokenobj = JsonConvert.DeserializeObject<dynamic>(responsejson); | |||
if (string.IsNullOrEmpty(weixintokenobj.errcode)) | |||
{ | |||
string access_token = weixintokenobj.access_token; | |||
string jsondata = "{\"touser\":\"" + userinfo.OpenIdForWeixin + "\"," + | |||
"\"template_id\":\"" + weixintasktempid + "\"," + | |||
"\"url\":\"" + weixintaskurl + "\"," + | |||
"\"data\":{" + | |||
"\"first\": {\"value\":\"您有新的公文需要查阅\",\"color\":\"#173177\"}," + | |||
"\"keyword1\":{\"value\":\"公文下发\",\"color\":\"#173177\"}," + | |||
"\"keyword2\": {\"value\":\"" + title + "\",\"color\":\"#173177\"}," + | |||
"\"keyword3\": {\"value\":\"待查阅\",\"color\":\"#173177\"}," + | |||
"\"keyword4\": {\"value\":\"您有新的公文需要查阅【" + title + "】\",\"color\":\"#173177\"}" + | |||
"}" + | |||
"}"; | |||
string pushresult = Util.HttpMethods.HttpPost("https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" + access_token, jsondata); | |||
} | |||
} | |||
} | |||
} | |||
} | |||
} | |||
} | |||
} |
@@ -204,6 +204,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
public void OverIssue(string keyValue) | |||
{ | |||
try | |||
{ | |||
sys_SendFileService.OverIssue(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// 日 期:2019-04-11 10:31 | |||
/// 描 述:公文发送 | |||
/// </summary> | |||
public class Sys_SendFileEntity | |||
public class Sys_SendFileEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
@@ -35,6 +35,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
[Column("RECEIVERID")] | |||
public string ReceiverId { get; set; } | |||
/// <summary> | |||
/// 流程审批指定接收人 | |||
/// </summary> | |||
[Column("SPECIFYRECEIVER")] | |||
public string SpecifyReceiver { get; set; } | |||
/// <summary> | |||
/// Receiver | |||
/// </summary> | |||
[Column("RECEIVER")] | |||
@@ -88,6 +93,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
public void Create() | |||
{ | |||
this.SFileId = Guid.NewGuid().ToString(); | |||
this.DelFlag = false; | |||
this.SendFlag = 0; | |||
this.SenderId = LoginUserInfo.Get().userId; | |||
this.Sender = LoginUserInfo.Get().realName; | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
@@ -58,5 +58,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
#endregion | |||
void OverIssue(string keyValue); | |||
} | |||
} |
@@ -228,163 +228,22 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// <param name="status"></param> | |||
public void ChangeStatusByProcessId(string processId, int status) | |||
{ | |||
if (status == 2) | |||
var db = BaseRepository().BeginTrans(); | |||
try | |||
{ | |||
var db = BaseRepository().BeginTrans(); | |||
try | |||
var Sys_SendFile = db.FindEntity<Sys_SendFileEntity>(m => m.SProcessId == processId); | |||
Sys_SendFile.SendFlag = status; | |||
if (status == 2) | |||
{ | |||
var needpostuserlist = new List<UserEntity>(); | |||
var Sys_SendFile = db.FindEntity<Sys_SendFileEntity>(m => m.SProcessId == processId); | |||
if (Sys_SendFile.SendType == "1") | |||
{ | |||
var teacherlist = db.FindList<UserEntity>(m => | |||
m.F_DeleteMark != 1 && m.F_EnabledMark == 1 && m.F_Description == "教师" && | |||
m.F_CompanyId == Sys_SendFile.ReceiverId); | |||
needpostuserlist = teacherlist.ToList(); | |||
foreach (var tEntity in teacherlist) | |||
{ | |||
Sys_ReceiveFileEntity receiveFile = new Sys_ReceiveFileEntity(); | |||
receiveFile.Create(); | |||
receiveFile.SFileId = Sys_SendFile.SFileId; | |||
receiveFile.SenderId = Sys_SendFile.SenderId; | |||
receiveFile.Sender = Sys_SendFile.Sender; | |||
receiveFile.ReceiverId = tEntity.F_UserId; | |||
receiveFile.Receiver = tEntity.F_RealName; | |||
receiveFile.Title = Sys_SendFile.Title; | |||
receiveFile.Contents = Sys_SendFile.Contents; | |||
receiveFile.Url = Sys_SendFile.Url; | |||
receiveFile.ReadFlag = false; | |||
receiveFile.SendTime = DateTime.Now; | |||
receiveFile.SendType = Sys_SendFile.SendType; | |||
receiveFile.DelFlag = false; | |||
receiveFile.STypeId = Sys_SendFile.STypeId; | |||
receiveFile.ReplyFlag = false; | |||
receiveFile.SLastDate = Sys_SendFile.SLastDate; | |||
receiveFile.RUrl = Guid.NewGuid().ToString(); | |||
db.Insert(receiveFile); | |||
} | |||
} | |||
else if (Sys_SendFile.SendType == "2") | |||
{ | |||
var teacherlist = db.FindList<UserEntity>(m => | |||
m.F_DeleteMark != 1 && m.F_EnabledMark == 1 && m.F_Description == "教师" && | |||
Sys_SendFile.ReceiverId.Contains(m.F_DepartmentId)); | |||
needpostuserlist = teacherlist.ToList(); | |||
foreach (var tEntity in teacherlist) | |||
{ | |||
Sys_ReceiveFileEntity receiveFile = new Sys_ReceiveFileEntity(); | |||
receiveFile.Create(); | |||
receiveFile.SFileId = Sys_SendFile.SFileId; | |||
receiveFile.SenderId = Sys_SendFile.SenderId; | |||
receiveFile.Sender = Sys_SendFile.Sender; | |||
receiveFile.ReceiverId = tEntity.F_UserId; | |||
receiveFile.Receiver = tEntity.F_RealName; | |||
receiveFile.Title = Sys_SendFile.Title; | |||
receiveFile.Contents = Sys_SendFile.Contents; | |||
receiveFile.Url = Sys_SendFile.Url; | |||
receiveFile.ReadFlag = false; | |||
receiveFile.SendTime = DateTime.Now; | |||
receiveFile.SendType = Sys_SendFile.SendType; | |||
receiveFile.DelFlag = false; | |||
receiveFile.STypeId = Sys_SendFile.STypeId; | |||
receiveFile.ReplyFlag = false; | |||
receiveFile.SLastDate = Sys_SendFile.SLastDate; | |||
receiveFile.RUrl = Guid.NewGuid().ToString(); | |||
db.Insert(receiveFile); | |||
} | |||
} | |||
else if (Sys_SendFile.SendType == "3") | |||
{ | |||
List<string> ppostid = Sys_SendFile.ReceiverId.Split(',').ToList(); | |||
for (int i = 0; i < ppostid.Count; i++) | |||
{ | |||
ppostid[i] = "'" + ppostid[i] + "'"; | |||
} | |||
var teacherlist = db.FindList<UserEntity>( | |||
@"select distinct a.* from [dbo].[LR_Base_User] a left join [dbo].[LR_Base_UserRelation] b | |||
on a.F_UserId=b.F_UserId where b.F_ObjectId in(" + string.Join(",", ppostid) + | |||
") and a.F_DeleteMark<>1 and a.F_EnabledMark=1 and a.F_Description='教师'"); | |||
needpostuserlist = teacherlist.ToList(); | |||
foreach (var tEntity in teacherlist) | |||
{ | |||
Sys_ReceiveFileEntity receiveFile = new Sys_ReceiveFileEntity(); | |||
receiveFile.Create(); | |||
receiveFile.SFileId = Sys_SendFile.SFileId; | |||
receiveFile.SenderId = Sys_SendFile.SenderId; | |||
receiveFile.Sender = Sys_SendFile.Sender; | |||
receiveFile.ReceiverId = tEntity.F_UserId; | |||
receiveFile.Receiver = tEntity.F_RealName; | |||
receiveFile.Title = Sys_SendFile.Title; | |||
receiveFile.Contents = Sys_SendFile.Contents; | |||
receiveFile.Url = Sys_SendFile.Url; | |||
receiveFile.ReadFlag = false; | |||
receiveFile.SendTime = DateTime.Now; | |||
receiveFile.SendType = Sys_SendFile.SendType; | |||
receiveFile.DelFlag = false; | |||
receiveFile.STypeId = Sys_SendFile.STypeId; | |||
receiveFile.ReplyFlag = false; | |||
receiveFile.SLastDate = Sys_SendFile.SLastDate; | |||
receiveFile.RUrl = Guid.NewGuid().ToString(); | |||
db.Insert(receiveFile); | |||
} | |||
} | |||
else | |||
{ | |||
var teacherlist = db.FindList<UserEntity>(m => | |||
m.F_DeleteMark != 1 && m.F_EnabledMark == 1 && m.F_Description == "教师" && | |||
Sys_SendFile.ReceiverId.Contains(m.F_UserId)); | |||
needpostuserlist = teacherlist.ToList(); | |||
foreach (var tEntity in teacherlist) | |||
{ | |||
Sys_ReceiveFileEntity receiveFile = new Sys_ReceiveFileEntity(); | |||
receiveFile.Create(); | |||
receiveFile.SFileId = Sys_SendFile.SFileId; | |||
receiveFile.SenderId = Sys_SendFile.SenderId; | |||
receiveFile.Sender = Sys_SendFile.Sender; | |||
receiveFile.ReceiverId = tEntity.F_UserId; | |||
receiveFile.Receiver = tEntity.F_RealName; | |||
receiveFile.Title = Sys_SendFile.Title; | |||
receiveFile.Contents = Sys_SendFile.Contents; | |||
receiveFile.Url = Sys_SendFile.Url; | |||
receiveFile.ReadFlag = false; | |||
receiveFile.SendTime = DateTime.Now; | |||
receiveFile.SendType = Sys_SendFile.SendType; | |||
receiveFile.DelFlag = false; | |||
receiveFile.STypeId = Sys_SendFile.STypeId; | |||
receiveFile.ReplyFlag = false; | |||
receiveFile.SLastDate = Sys_SendFile.SLastDate; | |||
receiveFile.RUrl = Guid.NewGuid().ToString(); | |||
db.Insert(receiveFile); | |||
} | |||
} | |||
Sys_SendFile.SendFlag = 2; | |||
Sys_SendFile.SendTime = DateTime.Now; | |||
db.Update(Sys_SendFile); | |||
db.Commit(); | |||
//微信推送 | |||
try | |||
{ | |||
PushWeixin(needpostuserlist, Sys_SendFile.Title); | |||
} | |||
catch (Exception e) | |||
{ | |||
} | |||
//飞星推送 | |||
Task.Run(async () => | |||
{ | |||
using (var hubConnection = new HubConnection(ConfigurationManager.AppSettings["CommunicationServeraddress"])) | |||
{ | |||
var hubProxy = hubConnection.CreateHubProxy("SignalRHub"); | |||
await hubConnection.Start(); | |||
await hubProxy.Invoke("PushAnnouncement", Sys_SendFile.SenderId, Sys_SendFile.Title, Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_SendFile.Contents)).Length < 20 ? Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_SendFile.Contents)) : Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_SendFile.Contents)).Substring(0, 20), "sendfile", string.Join(",", needpostuserlist.Select(m => m.F_UserId)), ""); | |||
} | |||
}); | |||
} | |||
catch (Exception ex) | |||
{ | |||
db.Rollback(); | |||
} | |||
db.Update(Sys_SendFile); | |||
db.Commit(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
db.Rollback(); | |||
} | |||
} | |||
@@ -429,6 +288,31 @@ on a.F_UserId=b.F_UserId where b.F_ObjectId in(" + string.Join(",", ppostid) + | |||
} | |||
} | |||
} | |||
public void OverIssue(string keyValue) | |||
{ | |||
try | |||
{ | |||
var entity = this.BaseRepository().FindEntity<Sys_SendFileEntity>(a => a.SFileId == keyValue); | |||
if (null != entity) | |||
{ | |||
entity.SendFlag = 4; | |||
} | |||
this.BaseRepository().Update(entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
} | |||
#endregion | |||
} |
@@ -196,6 +196,7 @@ | |||
<Compile Include="EducationalAdministration\Sys_ReceiveDocument\Sys_ReceiveDocumentIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\Sys_ReceiveDocument\Sys_ReceiveDocumentService.cs" /> | |||
<Compile Include="EducationalAdministration\Sys_ReceiveFile\Sys_ReceiveFileBLL.cs" /> | |||
<Compile Include="EducationalAdministration\Sys_ReceiveFile\Sys_IssueEntity.cs" /> | |||
<Compile Include="EducationalAdministration\Sys_ReceiveFile\Sys_ReceiveFileEntity.cs" /> | |||
<Compile Include="EducationalAdministration\Sys_ReceiveFile\Sys_ReceiveFileIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\Sys_ReceiveFile\Sys_ReceiveFileService.cs" /> | |||
@@ -63,6 +63,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
dp.Add("UserName", "%" + queryParam["UserName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND emp.F_RealName Like @UserName "); | |||
} | |||
if (!queryParam["UserNo"].IsEmpty()) | |||
{ | |||
dp.Add("UserNo", queryParam["UserNo"].ToString(), DbType.String); | |||
strSql.Append(" AND t.UserNo = @UserNo "); | |||
} | |||
if (!queryParam["Department"].IsEmpty()) | |||
{ | |||
dp.Add("Department", queryParam["Department"].ToString(), DbType.String); | |||
@@ -249,12 +254,18 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
{ | |||
date = queryParam["Date"].ToDate().ToDateString(); | |||
} | |||
var strSql = new StringBuilder(); | |||
strSql.Append("select u.F_Encode as UserNo,u.F_RealName as UserName,u.F_DepartmentId as Department,t.ID,t.ADType,t.ADTime,t.ClockTime,t.ClockStatus "); | |||
strSql.Append(" from " + basedbname + ".dbo.LR_Base_User u "); | |||
strSql.Append(" left join ADR_Record t on u.F_EnCode=t.UserNo and t.ADYear='" + date.Substring(0, 4) + "' and t.ADMonth='" + date.Substring(5, 2) + "' and t.ADDay='" + date.Substring(8, 2) + "' "); | |||
strSql.Append(" where u.F_Description='教师' AND u.F_DeleteMark = 0 AND u.F_EnabledMark = 1 and u.F_Encode is not null "); | |||
strSql.Append(" from " + basedbname + ".dbo.LR_Base_User u "); | |||
strSql.Append(" inner join EmpInfo emp on u.F_EnCode=emp.EmpNo "); | |||
strSql.Append(" left join ADR_Record t on u.F_EnCode=t.UserNo and t.ADYear='" + date.Substring(0, 4) + "' and t.ADMonth='" + date.Substring(5, 2) + "' and t.ADDay='" + date.Substring(8, 2) + "' "); | |||
strSql.Append(" where u.F_Description='教师' AND u.F_DeleteMark = 0 AND u.F_EnabledMark = 1 and u.F_Encode is not null "); | |||
var UserNoPrev = Config.GetValue("ADR_RecordUserNoPrev"); | |||
if (!string.IsNullOrEmpty(UserNoPrev)) | |||
{ | |||
strSql.Append(" and u.F_encode like '" + UserNoPrev + "%' "); | |||
} | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["UserNo"].IsEmpty()) | |||
@@ -2013,6 +2013,9 @@ namespace Learun.Application.WorkFlow | |||
NWFEngineParamConfig nWFEngineParamConfig = nWFIEngine.GetConfig(); | |||
nWFEngineParamConfig.Auditers = auditors; | |||
//overFW 任一审核者不同意 即流程任务结束 | |||
bool overFW = false; | |||
// 获取任务实体 | |||
var taskEntiy = nWFTaskIBLL.GetEntity(taskId); | |||
if (taskEntiy == null) | |||
@@ -2181,6 +2184,7 @@ namespace Learun.Application.WorkFlow | |||
else if (operationCode == "disagree") | |||
{ | |||
nWFTaskRelationEntity.F_Result = 2; | |||
overFW = true; | |||
} | |||
else | |||
{ | |||
@@ -2190,7 +2194,7 @@ namespace Learun.Application.WorkFlow | |||
// 获取下一节点信息 | |||
List<NWFLineInfo> lineList = new List<NWFLineInfo>(); | |||
List<NWFNodeInfo> list = nWFIEngine.GetNextTaskNode(nodeInfo, operationCode, false, lineList); | |||
List<NWFNodeInfo> list = nWFIEngine.GetNextTaskNode(nodeInfo, operationCode, false, lineList, overFW); | |||
// 会签处理 | |||
int state = 0; | |||
@@ -2221,6 +2225,12 @@ namespace Learun.Application.WorkFlow | |||
nWFProcessEntity.F_IsFinished = 1; | |||
} | |||
// 如果任一审核者不同意,即流程结束(终止) | |||
if (overFW) | |||
{ | |||
nWFProcessEntity.F_EnabledMark = 4;//终止 | |||
} | |||
List<NWFLineInfo> pLineList = new List<NWFLineInfo>(); | |||
List<NWFTaskEntity> pTaskList = new List<NWFTaskEntity>(); | |||
List<NWFTaskMsgEntity> pTaskMsgList = new List<NWFTaskMsgEntity>(); | |||
@@ -50,7 +50,7 @@ namespace Learun.Application.WorkFlow | |||
[Column("F_LEVEL")] | |||
public int? F_Level { get; set; } | |||
/// <summary> | |||
/// 流程进程有效标志 1正常2草稿3作废 | |||
/// 流程进程有效标志 1正常2草稿3作废4终止 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("F_ENABLEDMARK")] | |||
@@ -157,6 +157,17 @@ namespace Learun.Application.WorkFlow | |||
[NotMapped] | |||
public int? F_TaskType { get; set; } | |||
/// <summary> | |||
/// 当前任务NodeID | |||
/// </summary> | |||
[NotMapped] | |||
public string F_NodeId { get; set; } | |||
/// <summary> | |||
/// 下一任务节点是否审核 | |||
/// </summary> | |||
[NotMapped] | |||
public bool? NextNodeIsAudited { get; set; } | |||
/// <summary> | |||
/// 是否被催办 1 被催办了 | |||
/// </summary> | |||
@@ -537,7 +537,8 @@ namespace Learun.Application.WorkFlow | |||
p.F_ParentProcessId, | |||
p.F_CreateUserId, | |||
p.F_CreateUserName, | |||
p.F_IsStart | |||
p.F_IsStart, | |||
t.F_NodeId | |||
FROM | |||
LR_NWF_Task t | |||
LEFT JOIN LR_NWF_TaskRelation r on r.F_TaskId = t.F_Id | |||
@@ -567,7 +568,18 @@ namespace Learun.Application.WorkFlow | |||
strSql.Append(" AND p.F_SchemeCode = @schemeCode "); | |||
} | |||
return this.BaseRepository().FindList<NWFProcessEntity>(strSql.ToString(), new { userInfo.userId, startTime, endTime, keyword, schemeCode }, pagination); | |||
var data = this.BaseRepository().FindList<NWFProcessEntity>(strSql.ToString(), new { userInfo.userId, startTime, endTime, keyword, schemeCode }, pagination); | |||
foreach (var item in data) | |||
{ | |||
var nextNode = this.BaseRepository().FindEntity<NWFTaskLogEntity>(a => | |||
a.F_ProcessId == item.F_Id && a.F_PrevNodeId == item.F_NodeId); | |||
if (null != nextNode) | |||
{ | |||
item.NextNodeIsAudited = true; | |||
} | |||
} | |||
return data; | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -2,6 +2,7 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Linq; | |||
namespace Learun.Workflow.Engine | |||
{ | |||
@@ -32,6 +33,11 @@ namespace Learun.Workflow.Engine | |||
{ | |||
startNode = node; | |||
} | |||
if (node.type == "endround") | |||
{ | |||
endNode = node; | |||
} | |||
} | |||
} | |||
#endregion | |||
@@ -41,6 +47,7 @@ namespace Learun.Workflow.Engine | |||
private NWFScheme wfScheme = null; | |||
private Dictionary<string, NWFNodeInfo> nodesMap = null; | |||
private NWFNodeInfo startNode = null; | |||
private NWFNodeInfo endNode = null; | |||
#endregion | |||
#region 私有方法 | |||
@@ -49,7 +56,8 @@ namespace Learun.Workflow.Engine | |||
/// </summary> | |||
/// <param name="node">节点信息</param> | |||
/// <returns></returns> | |||
private bool CalcCondition(NWFNodeInfo node) { | |||
private bool CalcCondition(NWFNodeInfo node) | |||
{ | |||
bool res = true; | |||
if (node.conditions.Count > 0) | |||
{ | |||
@@ -63,7 +71,8 @@ namespace Learun.Workflow.Engine | |||
if (dataTable.Rows.Count > 0) | |||
{ | |||
string value = dataTable.Rows[0][0].ToString(); | |||
if (string.IsNullOrEmpty(value)) { | |||
if (string.IsNullOrEmpty(value)) | |||
{ | |||
return false; | |||
} | |||
@@ -131,11 +140,13 @@ namespace Learun.Workflow.Engine | |||
break; | |||
} | |||
} | |||
else { | |||
else | |||
{ | |||
res = false; | |||
} | |||
} | |||
if (!res) { | |||
if (!res) | |||
{ | |||
break; | |||
} | |||
} | |||
@@ -151,7 +162,8 @@ namespace Learun.Workflow.Engine | |||
conditionSql = conditionSql.Replace("{companyId}", "@companyId"); | |||
conditionSql = conditionSql.Replace("{departmentId}", "@departmentId"); | |||
var param = new { | |||
var param = new | |||
{ | |||
processId = config.ParamConfig.ProcessId, | |||
userId = config.ParamConfig.CreateUser.Id, | |||
userAccount = config.ParamConfig.CreateUser.Account, | |||
@@ -234,7 +246,8 @@ namespace Learun.Workflow.Engine | |||
/// 获取流程模板 | |||
/// </summary> | |||
/// <returns></returns> | |||
public string GetScheme() { | |||
public string GetScheme() | |||
{ | |||
return config.ParamConfig.Scheme; | |||
} | |||
/// <summary> | |||
@@ -264,10 +277,11 @@ namespace Learun.Workflow.Engine | |||
{ | |||
return nodesMap[nodeId]; | |||
} | |||
else { | |||
else | |||
{ | |||
return null; | |||
} | |||
} | |||
/// <summary> | |||
/// 获取下一节点 | |||
@@ -275,60 +289,82 @@ namespace Learun.Workflow.Engine | |||
/// <param name="nodeId">当前节点Id</param> | |||
/// <param name="code">节点操作码 agree 同意 disagree 不同意 lrtimeout 超时</param> | |||
/// <returns>节点信息列表</returns> | |||
public List<NWFNodeInfo> GetNextNodes(string nodeId, string code, List<NWFLineInfo> lineList) | |||
public List<NWFNodeInfo> GetNextNodes(string nodeId, string code, List<NWFLineInfo> lineList, bool overFW = false) | |||
{ | |||
List<NWFNodeInfo> nextNodes = new List<NWFNodeInfo>(); | |||
// 找到与当前节点相连的线条 | |||
foreach (var line in wfScheme.lines) | |||
NWFLineInfo line = null; | |||
//如果lastNode 不为空,直接执行最后一条线的绑定方法 并终止任务 | |||
if (overFW) | |||
{ | |||
if (line.from == nodeId) | |||
line = wfScheme.lines.Last(); | |||
} | |||
else | |||
{ | |||
line = wfScheme.lines.FirstOrDefault(a => a.from == nodeId); | |||
} | |||
bool isOk = false; | |||
if (string.IsNullOrEmpty(line.strategy) || line.strategy == "1") | |||
{ | |||
isOk = true; | |||
} | |||
else | |||
{ | |||
var codeList = line.agreeList.Split(','); | |||
foreach (string _code in codeList) | |||
{ | |||
bool isOk = false; | |||
if (string.IsNullOrEmpty(line.strategy) || line.strategy == "1") | |||
if (_code == code) | |||
{ | |||
isOk = true; | |||
break; | |||
} | |||
else { | |||
var codeList = line.agreeList.Split(','); | |||
foreach (string _code in codeList) { | |||
if (_code == code) { | |||
isOk = true; | |||
break; | |||
} | |||
} | |||
} | |||
} | |||
if (isOk) | |||
{ | |||
if (nodesMap.ContainsKey(line.to)) | |||
{ | |||
//如果lastNode 不为空,直接执行最后一条线的绑定方法 并终止任务 | |||
if (overFW) | |||
{ | |||
nextNodes.Add(endNode); | |||
} | |||
if (isOk) | |||
else | |||
{ | |||
if (nodesMap.ContainsKey(line.to)) | |||
{ | |||
nextNodes.Add(nodesMap[line.to]); | |||
nextNodes.Add(nodesMap[line.to]); | |||
} | |||
switch (line.operationType) {// 绑定的操作类型 | |||
case "sql": // sql 语句 | |||
if (!string.IsNullOrEmpty(line.dbId) && !string.IsNullOrEmpty(line.strSql)) | |||
{ | |||
lineList.Add(line); | |||
} | |||
break; | |||
case "interface": // interface 接口 | |||
if (!string.IsNullOrEmpty(line.strInterface)) | |||
{ | |||
lineList.Add(line); | |||
} | |||
break; | |||
case "ioc": // 依赖注入 | |||
if (!string.IsNullOrEmpty(line.iocName)) | |||
{ | |||
lineList.Add(line); | |||
} | |||
break; | |||
switch (line.operationType) | |||
{// 绑定的操作类型 | |||
case "sql": // sql 语句 | |||
if (!string.IsNullOrEmpty(line.dbId) && !string.IsNullOrEmpty(line.strSql)) | |||
{ | |||
lineList.Add(line); | |||
} | |||
} | |||
break; | |||
case "interface": // interface 接口 | |||
if (!string.IsNullOrEmpty(line.strInterface)) | |||
{ | |||
lineList.Add(line); | |||
} | |||
break; | |||
case "ioc": // 依赖注入 | |||
if (!string.IsNullOrEmpty(line.iocName)) | |||
{ | |||
lineList.Add(line); | |||
} | |||
break; | |||
} | |||
} | |||
} | |||
return nextNodes; | |||
} | |||
/// <summary> | |||
/// 获取上一节点列表 | |||
@@ -392,7 +428,8 @@ namespace Learun.Workflow.Engine | |||
/// 获取配置参数信息 | |||
/// </summary> | |||
/// <returns></returns> | |||
public NWFEngineParamConfig GetConfig() { | |||
public NWFEngineParamConfig GetConfig() | |||
{ | |||
return config.ParamConfig; | |||
} | |||
/// <summary> | |||
@@ -403,9 +440,12 @@ namespace Learun.Workflow.Engine | |||
/// <param name="isGetAuditors">是否获取下一节点审核人</param> | |||
/// <param name="lineList">经过的线段需要执行操作的</param> | |||
/// <returns></returns> | |||
public List<NWFNodeInfo> GetNextTaskNode(NWFNodeInfo beginNode,string code,bool isGetAuditors, List<NWFLineInfo> lineList) { | |||
public List<NWFNodeInfo> GetNextTaskNode(NWFNodeInfo beginNode, string code, bool isGetAuditors, List<NWFLineInfo> lineList, bool overWF = false) | |||
{ | |||
List<NWFNodeInfo> list = new List<NWFNodeInfo>(); | |||
List<NWFNodeInfo> nextNodeList = GetNextNodes(beginNode.id, code, lineList); | |||
List<NWFNodeInfo> nextNodeList = new List<NWFNodeInfo>(); | |||
nextNodeList = GetNextNodes(beginNode.id, code, lineList, overWF); | |||
Dictionary<string, string> auditers = null; | |||
if (!string.IsNullOrEmpty(config.ParamConfig.Auditers)) | |||
@@ -419,13 +459,15 @@ namespace Learun.Workflow.Engine | |||
if (auditers != null && auditers.ContainsKey(node.id)) | |||
{ | |||
node.auditors = new List<NWFAuditor>(); | |||
node.auditors.Add(new NWFAuditor() { | |||
node.auditors.Add(new NWFAuditor() | |||
{ | |||
type = 3, | |||
auditorId = auditers[node.id] | |||
}); | |||
} | |||
switch (node.type) { | |||
switch (node.type) | |||
{ | |||
case "conditionnode": // 条件节点 | |||
if (!isGetAuditors) | |||
{ | |||
@@ -438,13 +480,15 @@ namespace Learun.Workflow.Engine | |||
list.AddRange(GetNextTaskNode(node, "disagree", isGetAuditors, lineList)); | |||
} | |||
} | |||
else { | |||
else | |||
{ | |||
list.AddRange(GetNextTaskNode(node, "agree", isGetAuditors, lineList)); | |||
list.AddRange(GetNextTaskNode(node, "disagree", isGetAuditors, lineList)); | |||
} | |||
break; | |||
case "confluencenode":// 会签节点 | |||
if (!isGetAuditors) { | |||
if (!isGetAuditors) | |||
{ | |||
int confluenceRes; | |||
if (code == "agree") | |||
{ | |||
@@ -471,8 +515,9 @@ namespace Learun.Workflow.Engine | |||
break; | |||
case "childwfnode":// 子流程节点 | |||
list.Add(node); | |||
if (node.childType == "2") { // 异步的情况下直接往下走 | |||
list.AddRange(GetNextTaskNode(node, "agree", isGetAuditors,lineList)); | |||
if (node.childType == "2") | |||
{ // 异步的情况下直接往下走 | |||
list.AddRange(GetNextTaskNode(node, "agree", isGetAuditors, lineList)); | |||
} | |||
break; | |||
case "startround":// 开始节点 需要重新审核 | |||
@@ -39,7 +39,7 @@ namespace Learun.Workflow.Engine | |||
/// <param name="nodeId">当前节点Id</param> | |||
/// <param name="code">节点操作码 agree 同意 disagree 不同意 lrtimeout 超时</param> | |||
/// <returns>节点信息列表</returns> | |||
List<NWFNodeInfo> GetNextNodes(string nodeId, string code, List<NWFLineInfo> lineList); | |||
List<NWFNodeInfo> GetNextNodes(string nodeId, string code, List<NWFLineInfo> lineList, bool overFW = false); | |||
/// <summary> | |||
/// 获取上一节点列表 | |||
/// </summary> | |||
@@ -69,7 +69,7 @@ namespace Learun.Workflow.Engine | |||
/// <param name="isGetAuditors">是否获取下一节点审核人</param> | |||
/// <param name="lineList">经过的线段需要执行操作的</param> | |||
/// <returns></returns> | |||
List<NWFNodeInfo> GetNextTaskNode(NWFNodeInfo beginNode, string code, bool isGetAuditors, List<NWFLineInfo> lineList); | |||
List<NWFNodeInfo> GetNextTaskNode(NWFNodeInfo beginNode, string code, bool isGetAuditors, List<NWFLineInfo> lineList, bool overWF = false); | |||
#endregion | |||
} | |||
} |
@@ -7,7 +7,7 @@ export default { | |||
"enableSignUp": true, | |||
// 请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | |||
"apiHost": [ | |||
"http://123.57.209.16:31173/learun/adms" | |||
"https://oa.bjquanjiang.com/learun/adms" | |||
], | |||
// "apiHost": [ | |||
// "http://192.168.2.94:31173/learun/adms" | |||
@@ -13,13 +13,13 @@ | |||
<view mode="aspectFit" class="logo"></view> | |||
<!-- 【仅生产环境】使用账号的原因,无此项则微信审核通不过 --> | |||
<view v-if="DEV" class="intro"> | |||
<!-- <view v-if="!DEV" class="intro"> | |||
<view class="intro">注册登录智慧校园账号后,您将可以体验力软框架产品中的所有功能与业务</view> | |||
<view class="intro">OA · 进销存 · 工作流审批 · 数据可视化</view> | |||
<view class="intro text-gray" style="font-size: 0.9em;"> | |||
如果您之前已在智慧校园 PC 端中注册过体验账号,可以直接使用原账号登录,无需另行注册 | |||
</view> | |||
</view> | |||
</view> --> | |||
</view> | |||
<!-- 账户密码表单 --> | |||
@@ -30,9 +30,9 @@ | |||
<l-icon slot="title" type="lock" /> | |||
</l-input> | |||
<l-button @click="login(null)" size="lg" color="blue" class="margin-top-sm block" block>登 录</l-button> | |||
<l-button v-if="enableSignUp" @click="signUp" size="lg" line="blue" class="margin-top-sm block" block> | |||
<!-- <l-button v-if="enableSignUp" @click="signUp" size="lg" line="blue" class="margin-top-sm block" block> | |||
教师注册 | |||
</l-button> | |||
</l-button> --> | |||
<!-- 【仅小程序】一键登录按钮 --> | |||
<!-- #ifdef MP --> | |||