@@ -91,7 +91,7 @@ var bootstrap = function ($, learun) { | |||||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | ||||
$('#IsHasLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | $('#IsHasLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | ||||
$('#NationalityNo').lrDataItemSelect({ code: 'National' }); | $('#NationalityNo').lrDataItemSelect({ code: 'National' }); | ||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'PolityStatus' }); | |||||
$('#ProvinceNo').lrDataSourceSelect({ | $('#ProvinceNo').lrDataSourceSelect({ | ||||
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | ||||
select: function (item) { | select: function (item) { | ||||
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
$('#RegionNo').lrselect(); | $('#RegionNo').lrselect(); | ||||
//政治面貌 | //政治面貌 | ||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace', allowSearch: true }); | |||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'PolityStatus', allowSearch: true }); | |||||
//最高学历 | //最高学历 | ||||
$('#HighestRecord').lrDataItemSelect({ code: 'HighestEducation'}); | $('#HighestRecord').lrDataItemSelect({ code: 'HighestEducation'}); | ||||
@@ -482,7 +482,7 @@ var bootstrap = function ($, learun) { | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('dataItem', { | learun.clientdata.getAsync('dataItem', { | ||||
key: value, | key: value, | ||||
code: 'BCdPartyFace', | |||||
code: 'PolityStatus', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data.text); | callback(_data.text); | ||||
} | } | ||||
@@ -110,7 +110,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -121,7 +121,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -132,7 +132,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -143,7 +143,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -4,6 +4,7 @@ | |||||
* 日 期:2019-06-14 11:02 | * 日 期:2019-06-14 11:02 | ||||
* 描 述:全院学生成绩录入(新) | * 描 述:全院学生成绩录入(新) | ||||
*/ | */ | ||||
var selectedRow; | var selectedRow; | ||||
var refreshGirdData; | var refreshGirdData; | ||||
var refreshGirdData2; | var refreshGirdData2; | ||||
@@ -110,7 +111,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -121,7 +122,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -132,7 +133,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -143,7 +144,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(0); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -111,7 +111,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -122,7 +122,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -133,7 +133,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -144,7 +144,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -111,7 +111,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -122,7 +122,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -133,7 +133,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||
@@ -144,7 +144,7 @@ var bootstrap = function ($, learun) { | |||||
type: 'input', | type: 'input', | ||||
inputType: 'number', | inputType: 'number', | ||||
change: function (row, rownum) { | change: function (row, rownum) { | ||||
row.Score = (parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)).toFixed(2); | |||||
row.Score = Math.round(parseFloat(row.OrdinaryScore || '0') * (Number($('#OrdinaryScoreScale').html()) / 100) + parseFloat(row.TermInScore || '0') * (Number($('#TermInScoreScale').html()) / 100) + parseFloat(row.TermEndScore || '0') * (Number($('#TermEndScoreScale').html()) / 100) + parseFloat(row.OtherScore || '0') * (Number($('#OtherScoreScale').html()) / 100)); | |||||
$('#gridtable').jfGridSet('updateRow', rownum); | $('#gridtable').jfGridSet('updateRow', rownum); | ||||
}, | }, | ||||
} | } | ||||