Sfoglia il codice sorgente

学籍异动-页面调整

怀来职教中心中职
ndbs 1 anno fa
parent
commit
c983598c12
5 ha cambiato i file con 45 aggiunte e 13 eliminazioni
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/IntoIndex.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml
  3. +32
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js
  4. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/RestAgainIndex.cshtml
  5. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/ReturnIndex.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/IntoIndex.js Vedi File

@@ -9,7 +9,7 @@ var bootstrap = function ($, learun) {
page.bind();
},
bind: function () {
$('#LeaveDate').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#LeaveDate').val(learun.formatDate(new Date(), 'yyyy-MM-dd'));
//选项卡切换
$('#navultab li').on('click', function () {
if (!$(this).hasClass('active')) {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml Vedi File

@@ -100,7 +100,7 @@
</div>
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">离班日期<font face="宋体">*</font></div>
<input id="EnteDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />
<input id="EnteDate" type="text" class="form-control lr-input-wdatepicker" isvalid="yes" checkexpession="NotNull" readonly/>
</div>
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div>


+ 32
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js Vedi File

@@ -249,6 +249,38 @@ var bootstrap = function ($, learun) {
});
$('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' });

const formatTime = (format = "", num = new Date().getTime()) => {
format = format || "YYYY-mm-dd HH:MM:SS"; //第一个参数不填时,使用默认格式
let ret, date, renum;
// 处理时间戳,js一般获取的时间戳是13位,PHP一般是10位,根据实际情况做判断处理
if (num.toString().length == 10) {
date = new Date(parseInt(num) * 1000);
} else {
date = new Date(parseInt(num));
}
const opt = {
"Y": date.getFullYear().toString(), // 年
"m": (date.getMonth() + 1).toString(), // 月
"d": date.getDate().toString(), // 日
"H": date.getHours().toString(), // 时
"M": date.getMinutes().toString(), // 分
"S": date.getSeconds().toString() // 秒
// 目前用的是这六种符号,有其他格式化字符需求可以继续添加,值必须转化成字符串
};
for (var k in opt) {
ret = new RegExp("(" + k + "+)").exec(format);
if (ret) {
renum = (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")) //根据复数前面是否补零,如“mm”补零,单“m”前面不补零
format = format.replace(ret[1], renum) //替换
};
};
return format;
};
$('#LeaveDate').on('change', function () {
var dateTime = new Date($('#LeaveDate').val());
dateTime = dateTime.setDate(dateTime.getDate() - 1);
$('#EnteDate').val(formatTime('YYYY-mm-dd', dateTime))
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/RestAgainIndex.cshtml Vedi File

@@ -113,23 +113,23 @@

<div class="lr-layout-body" style="height:40%;border-bottom:1px solid #ccc;border-top: 1px solid #ccc;margin-top:50px;" id="selgridtab"></div>
<div class="lr-form-wrap" style="height:30%;" id="form">
<div class="col-xs-2 lr-form-item">
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div>
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div>
</div>
<div class="col-xs-2 lr-form-item">
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">注销账号<font face="宋体">*</font></div>
<div id="F_WriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-2 lr-form-item">
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">保留学籍<font face="宋体">*</font></div>
<div id="StuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-3 lr-form-item">
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">离班日期<font face="宋体">*</font></div>
<input id="EnteDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-3 lr-form-item">
<div class="col-xs-4 lr-form-item">
<div class="lr-form-item-title">休学年限<font face="宋体">*</font></div>
<input id="SuspensionPeriod" class="form-control" type="text" isvalid="yes" checkexpession="NotNull" />
</div>


+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/ReturnIndex.js Vedi File

@@ -292,9 +292,9 @@ var bootstrap = function ($, learun) {
// return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
// }
//},
{ label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
{ label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" },
//{ label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
//{ label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 80, align: "left",
@@ -449,9 +449,9 @@ var bootstrap = function ($, learun) {
// return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
// }
//},
{ label: "学生编号", name: "StuNo", width: 100, align: "left" },
{ label: "学籍号", name: "StuCode", width: 100, align: "left" },
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" },
//{ label: "学生编号", name: "StuNo", width: 100, align: "left", hide: true },
//{ label: "学籍号", name: "StuCode", width: 100, align: "left", hide: true},
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 80, align: "left",


Caricamento…
Annulla
Salva