@@ -32,16 +32,16 @@ | |||
<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"> | |||
@*<div class=" btn-group btn-group-sm"> | |||
<a id="lr_verify" class="btn btn-default"><i class="fa fa-legal"></i> <span class="lrlg">审核</span></a> | |||
</div> | |||
</div>*@ | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_release" class="btn btn-default"><i class="fa fa-magic"></i> <span class="lrlg">创建</span></a> | |||
@*<a id="lr_release" class="btn btn-default"><i class="fa fa-magic"></i> <span class="lrlg">创建</span></a>*@ | |||
<a id="lr_eye" class="btn btn-default"><i class="fa fa-eye"></i> <span class="lrlg">查看</span></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm"> | |||
@*<div class=" btn-group btn-group-sm"> | |||
<a id="lr_batchAudit" class="btn btn-default"><i class="fa fa-file-text-o"></i> <span class="lrlg">批量审核</span></a> | |||
</div> | |||
</div>*@ | |||
</div> | |||
</div> | |||
@@ -62,38 +62,6 @@ var bootstrap = function ($, learun) { | |||
$('#lr_eye').on('click', function () { | |||
page.eye(); | |||
}); | |||
// 发起流程 | |||
$('#lr_release').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '选择流程模板', | |||
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/ReleaseForm', | |||
height: 600, | |||
width: 825, | |||
maxmin: true, | |||
callBack: function (id) { | |||
return top[id].acceptClick(); | |||
} | |||
}); | |||
}); | |||
// 审核流程 | |||
$('#lr_verify').on('click', function () { | |||
page.verify(); | |||
}); | |||
// 批量审核 | |||
$('#lr_batchAudit').on('click', function () { | |||
learun.layerForm({ | |||
id: 'BatchAuditIndex', | |||
title: '批量审核', | |||
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/BatchAuditIndex', | |||
height: 700, | |||
width: 900, | |||
maxmin: true, | |||
btn: null | |||
}); | |||
}); | |||
}, | |||
initleft: function () { | |||
$('#lr_left_list li').on('click', function () { | |||
@@ -38,6 +38,15 @@ namespace Learun.Application.Web.Areas.StudentWork.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 提名页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult IndexTwo() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -2,7 +2,7 @@ | |||
ViewBag.Title = "奖学金可申请名单"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout " > | |||
<div class="lr-layout"> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
@@ -34,6 +34,7 @@ | |||
<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_Nominate" class="btn btn-default"><i class="fa fa-check"></i> 提名</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -98,6 +98,19 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
//提名 | |||
$('#lr_Nominate').on('click', function () { | |||
learun.layerFormForPercent({ | |||
id: 'formitem', | |||
title: '奖学金提名', | |||
url: top.$.rootUrl + '/StudentWork/SW_Ask_Student/IndexTwo', | |||
width: "60%", | |||
height: "70%", | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -0,0 +1,46 @@ | |||
@{ | |||
ViewBag.Title = "奖学金提名"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout"> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap "> | |||
<div class="lr-layout-title"> | |||
<span id="titleinfo" class="lrlt">列表信息</span> | |||
</div> | |||
<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-12 lr-form-item"> | |||
<div class="lr-form-item-title">学生姓名</div> | |||
<input id="StuName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">系</div> | |||
<div id="MajorNo"></div> | |||
</div> | |||
@*<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">年级</div> | |||
<input id="Grade" type="text" class="form-control" /> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">班级</div> | |||
<div id="ClassNo"></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> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/StudentWork/Views/SW_Ask_Student/IndexTwo.js") |
@@ -0,0 +1,198 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-03-29 11:27 | |||
* 描 述:在册登记明细 | |||
*/ | |||
var refreshGirdData; | |||
var acceptClick; | |||
//var AId = request("AId"); | |||
//console.log(AId); | |||
//var currentUser = request("currentUser");//我的资产需要用到 | |||
//var IsDelete = request("IsDelete");//报废资产需要使用 | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
//if (currentUser) { | |||
// setTimeout("hiddenButton()", 300); | |||
//} | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 200, 400); | |||
$('#MajorNo').lrDataSourceSelect({ | |||
code: 'CdDeptInfo', | |||
value: 'deptno', | |||
text: 'deptname', | |||
maxHeight: 200, | |||
select: function (item) { | |||
var DeptNo = $("#MajorNo").lrselectGet(); | |||
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
$('#ClassNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
value: "classno", | |||
text: "classname", | |||
allowSearch: false, | |||
maxHeight: 200, | |||
//select: function (item) { | |||
// var ClassNo = $("#ClassNo").lrselectGet(); | |||
// if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
// $('#StuNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
// param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
// value: "stuid", | |||
// text: "stuname", | |||
// maxHeight: 200, | |||
// allowSearch: true | |||
// }); | |||
// } | |||
//} | |||
}); | |||
} else { | |||
$("#ClassNo").lrselect(); | |||
} | |||
} | |||
}); | |||
$("#ClassNo").lrselect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').jfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', | |||
headData: [ | |||
{ | |||
label: "学生", name: "StuName", width: 150, align: "left", | |||
}, | |||
{ | |||
label: "所属系", name: "DeptNo", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "年级", name: "Grade", width: 150, align: "left", | |||
}, | |||
{ | |||
label: "班级", name: "ClassNo", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | |||
key: value, | |||
keyId: 'classno', | |||
callback: function (_data) { | |||
callback(_data['classname']); | |||
} | |||
}); | |||
} | |||
}, | |||
], | |||
mainId: 'stuId', | |||
//mainId: 'AIId', | |||
isMultiselect: true, | |||
isPage: true, | |||
//sidx: 'AICodeNum' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
//param.AId = AId; | |||
//if (currentUser) { | |||
// var userInfo = top.learun.clientdata.get(['userinfo']); | |||
// param.userId = userInfo.userId; | |||
//} | |||
param.AIIsScrap = false; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
console.log(111,22) | |||
var selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
callBack(selectedRow); | |||
}; | |||
page.init(); | |||
} | |||
Date.prototype.Format = function (fmt) { //author: meizz | |||
var o = { | |||
"M+": this.getMonth() + 1, //月份 | |||
"d+": this.getDate(), //日 | |||
"H+": this.getHours(), //小时 | |||
"m+": this.getMinutes(), //分 | |||
"s+": this.getSeconds(), //秒 | |||
"q+": Math.floor((this.getMonth() + 3) / 3), //季度 | |||
"S": this.getMilliseconds() //毫秒 | |||
}; | |||
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); | |||
for (var k in o) | |||
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); | |||
return fmt; | |||
} | |||
function datedifference(sDate1, sDate2) { //sDate1和sDate2是2006-12-18格式 | |||
var dateSpan, | |||
tempDate, | |||
iDays; | |||
sDate1 = Date.parse(sDate1); | |||
sDate2 = Date.parse(sDate2); | |||
dateSpan = sDate2 - sDate1; | |||
dateSpan = Math.abs(dateSpan); | |||
iDays = Math.floor(dateSpan / (24 * 3600 * 1000)); | |||
return iDays; | |||
}; | |||
function AddPrintContent(html) { | |||
var myHtml = myHtml = html; | |||
// var strBodyStyle="<style>"+document.getElementById("style1").innerHTML+"</style>"; | |||
// var strFormHtml=strBodyStyle+"<body>"+myHtml+"</body>"; | |||
var strFormHtml = "<body>" + myHtml + "</body>"; | |||
LODOP = getLodop(); | |||
LODOP.PRINT_INIT("资产编号"); | |||
LODOP.SET_PRINT_PAGESIZE(2, '40mm', '32.3mm', ""); | |||
LODOP.SET_PRINT_MODE("PRINT_DUPLEX", 2); | |||
LODOP.SET_PRINT_MODE("PRINT_DEFAULTSOURCE", 7); | |||
LODOP.ADD_PRINT_HTM(10, 8, '40mm', '30mm', strFormHtml); | |||
//打印预览 | |||
// LODOP.SET_SHOW_MODE("LANDSCAPE_DEFROTATED",1); | |||
// var TaskID1=LODOP.PREVIEW(); | |||
// 直接打印 | |||
var TaskID1 = LODOP.PRINT(); | |||
}; | |||
//function hiddenButton() { | |||
// $("#lr_add").hide(); | |||
// $("#lr_printBar").hide(); | |||
// $("#lr_edit").hide(); | |||
// $("#lr_delete").hide(); | |||
// $("#lr_detail").hide(); | |||
// $("#lr_import").hide(); | |||
//} | |||
@@ -1490,6 +1490,8 @@ | |||
<Content Include="Areas\StudentWork\Views\SW_Ask_Question\Index.js" /> | |||
<Content Include="Areas\StudentWork\Views\SW_Ask_Question\MainIndex.js" /> | |||
<Content Include="Areas\StudentWork\Views\SW_Ask_Question\SelectIndex.js" /> | |||
<Content Include="Areas\StudentWork\Views\SW_Ask_Student\IndexTwo.cshtml" /> | |||
<Content Include="Areas\StudentWork\Views\SW_Ask_Student\IndexTwo.js" /> | |||
<Content Include="Areas\StudentWork\Views\SW_Ask_Type\FormView.js" /> | |||
<Content Include="Areas\StudentWork\Views\SW_HolidayGo\StatisticIndex.js" /> | |||
<Content Include="Content\css\DragSSO\blue.css" /> | |||