@@ -21,7 +21,7 @@ | |||||
<div id="RId" isvalid="yes" checkexpession="NotNull"></div> | <div id="RId" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="Acc_GoodsDemage"> | |||||
@*<div class="col-xs-6 lr-form-item" data-table="Acc_GoodsDemage"> | |||||
<div class="lr-form-item-title">专业部<font face="宋体">*</font></div> | <div class="lr-form-item-title">专业部<font face="宋体">*</font></div> | ||||
<div id="DeptNo" isvalid="yes" checkexpession="NotNull"></div> | <div id="DeptNo" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
@@ -32,7 +32,7 @@ | |||||
<div class="col-xs-6 lr-form-item" data-table="Acc_GoodsDemage"> | <div class="col-xs-6 lr-form-item" data-table="Acc_GoodsDemage"> | ||||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | <div class="lr-form-item-title">班级<font face="宋体">*</font></div> | ||||
<div id="ClassNo" isvalid="yes" checkexpession="NotNull"></div> | <div id="ClassNo" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Acc_GoodsDemage"> | <div class="col-xs-12 lr-form-item" data-table="Acc_GoodsDemage"> | ||||
<div class="lr-form-item-title">损坏描述<font face="宋体">*</font></div> | <div class="lr-form-item-title">损坏描述<font face="宋体">*</font></div> | ||||
@@ -56,57 +56,57 @@ var bootstrap = function ($, learun) { | |||||
allowSearch: true | allowSearch: true | ||||
}); | }); | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
//$('#DeptNo').lrselect({ | |||||
// allowSearch: true, | |||||
// value: "deptno", | |||||
// text: "deptname", | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
// select: function (item) { | |||||
// if (item) { | |||||
// $('#MajorNo').lrselectRefresh({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
// param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
// }); | |||||
// } else { | |||||
// $('#MajorNo').lrselectRefresh({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
// param: { strWhere: "1=1 AND CheckMark=1" } | |||||
// }); | |||||
// } | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
value: "majorno", | |||||
text: "majorname", | |||||
param: { strWhere: "1=1 AND CheckMark=1" }, | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#ClassNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#ClassNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#ClassNo').lrselect({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
param: { strWhere: "1=1 AND CheckMark=1" }, | |||||
value: "classno", | |||||
text: "classname" | |||||
}); | |||||
// } | |||||
//}); | |||||
//$('#MajorNo').lrselect({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
// value: "majorno", | |||||
// text: "majorname", | |||||
// param: { strWhere: "1=1 AND CheckMark=1" }, | |||||
// select: function (item) { | |||||
// if (item) { | |||||
// $('#ClassNo').lrselectRefresh({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
// param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" } | |||||
// }); | |||||
// } else { | |||||
// $('#ClassNo').lrselectRefresh({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
// param: { strWhere: "1=1 AND CheckMark=1" } | |||||
// }); | |||||
// } | |||||
// } | |||||
//}); | |||||
//$('#ClassNo').lrselect({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
// param: { strWhere: "1=1 AND CheckMark=1" }, | |||||
// value: "classno", | |||||
// text: "classname" | |||||
//}); | |||||
$('#Files').lrUploader(); | $('#Files').lrUploader(); | ||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
@@ -171,32 +171,32 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').jfGrid({ | $('#gridtable').jfGrid({ | ||||
url: top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ | |||||
label: "专业部", name: "DeptNo", width: 100, 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: "MajorNo", 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: "DeptNo", width: 100, 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: "MajorNo", 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: "ClassNo", width: 100, align: "left", | label: "班级", name: "ClassNo", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||