@@ -114,7 +114,7 @@ | |||
<div class="lr-form-wrap" style="height:30%;" id="form"> | |||
<div class="col-xs-3 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"></div> | |||
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" ></div> | |||
</div> | |||
<div class="col-xs-3 lr-form-item"> | |||
<div class="lr-form-item-title">注销账号<font face="宋体">*</font></div> | |||
@@ -19,7 +19,25 @@ var bootstrap = function ($, learun) { | |||
} | |||
}) | |||
$('#SubmitBtn').on('click', function () { | |||
console.log('123465') | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var entity = $('body').lrGetFormData(); | |||
var selgridtab = $('#selgridtab').jfGridGet('rowdatas'); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) }, | |||
function (res) { | |||
console.log(res) | |||
if (res.code == 200) { | |||
setTimeout(function () { | |||
location.reload(); | |||
}, 100) | |||
} | |||
// 保存成功后才回调 | |||
//if (!!callBack) { | |||
// callBack(res); | |||
//} | |||
} | |||
); | |||
}) | |||
$("#EducationExperienceReturn").attr("src", "/EducationalAdministration/StuTransferInfo/ReturnIndex"); | |||
@@ -138,7 +156,8 @@ var bootstrap = function ($, learun) { | |||
}); | |||
//提交下拉框 | |||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType'}); | |||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||
$('#AnomalousType').lrselectSet("06"); | |||
$('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#F_WriteMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
// 刷新 | |||
@@ -39,10 +39,10 @@ | |||
</div> | |||
@*<div class="lr-layout-tool-item"> | |||
<div class="lr-query-btn" style="padding:0 10px;" id="listitem"> | |||
点击 | |||
</div> | |||
</div>*@ | |||
<div class="lr-query-btn" style="padding:0 10px;" id="listitem"> | |||
点击 | |||
</div> | |||
</div>*@ | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -56,7 +56,7 @@ | |||
<div class="lr-form-wrap" style="height:40%;" id="form"> | |||
<div class="col-xs-6 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"></div> | |||
<div id="NewAnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">恢复学籍<font face="宋体">*</font></div> | |||
@@ -78,20 +78,20 @@ | |||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||
<div id="NewMajorNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||
<div id="NewClassNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">年级<font face="宋体">*</font></div> | |||
<div id="NewGrade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||
<div id="NewClassNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">异动原因</div> | |||
<textarea id="Remark" class="form-control" style="height: 100px;"></textarea> | |||
</div> | |||
</div> | |||
<div id="SubmitBtn" style="margin:0 auto;cursor:pointer;margin-bottom:10px; position:relative; width:80px; height:28px;line-height:28px;border-radius:4px; background:#039cfd;color:#FFF;text-align:center;"> | |||
提交 | |||
</div> | |||
@@ -14,7 +14,26 @@ var bootstrap = function ($, learun) { | |||
page.search(queryJson); | |||
}, 280, 400); | |||
$('#SubmitBtn').on('click', function () { | |||
console.log('123465') | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var entity = $('body').lrGetFormData(); | |||
entity.AnomalousType = entity.NewAnomalousType; | |||
var selgridtab = $('#selgridtab').jfGridGet('rowdatas'); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) }, | |||
function (res) { | |||
console.log(res) | |||
if (res.code == 200) { | |||
setTimeout(function () { | |||
location.reload(); | |||
}, 100) | |||
} | |||
// 保存成功后才回调 | |||
//if (!!callBack) { | |||
// callBack(res); | |||
//} | |||
} | |||
); | |||
}) | |||
$('#DeptNo').lrselect({ | |||
allowSearch: true, | |||
@@ -128,6 +147,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
//提交下拉框 | |||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||
$('#NewDeptNo').lrselect({ | |||
allowSearch: true, | |||
value: "deptno", | |||
@@ -238,9 +258,10 @@ var bootstrap = function ($, learun) { | |||
value: "classno", | |||
text: "classname" | |||
}); | |||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType'}); | |||
$('#RecoverWriteMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#RecoverStuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#NewAnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||
$('#NewAnomalousType').lrselectSet("03"); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -428,8 +449,8 @@ 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: "StuNo", width: 100, align: "left" }, | |||
{ label: "学籍号", name: "StuCode", width: 100, align: "left" }, | |||
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" }, | |||
{ label: "姓名", name: "StuName", width: 100, align: "left" }, | |||
{ | |||
@@ -839,7 +860,7 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParameter = ' and (AnomalousType =03 or AnomalousType=02 or AnomalousType=06 ) and IsReturnSchool=0 '; | |||
param.SqlParameter = ' and AnomalousType=06 and IsReturnSchool=0 '; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||