@@ -134,6 +134,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OrdinaryScore > 150) { | |||
row.OrdinaryScore = parseFloat('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); | |||
}, | |||
@@ -145,6 +148,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermInScore > 150) { | |||
row.TermInScore = parseFloat('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); | |||
}, | |||
@@ -156,6 +162,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('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); | |||
}, | |||
@@ -167,6 +176,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OtherScore > 150) { | |||
row.OtherScore = parseFloat('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); | |||
}, | |||
@@ -601,8 +613,8 @@ var bootstrap = function ($, learun) { | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是成绩录入时间!', function (res) { }); | |||
return false; | |||
//top.learun.layerConfirm('当前时间不是成绩录入时间!', function (res) { }); | |||
//return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
@@ -138,6 +138,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OrdinaryScore > 150) { | |||
row.OrdinaryScore = parseFloat('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); | |||
}, | |||
@@ -149,6 +152,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermInScore > 150) { | |||
row.TermInScore = parseFloat('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); | |||
}, | |||
@@ -160,6 +166,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('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); | |||
}, | |||
@@ -171,6 +180,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OtherScore > 150) { | |||
row.OtherScore = parseFloat('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); | |||
}, | |||
@@ -138,6 +138,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OrdinaryScore > 150) { | |||
row.OrdinaryScore = parseFloat('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); | |||
}, | |||
@@ -149,6 +152,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermInScore > 150) { | |||
row.TermInScore = parseFloat('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); | |||
}, | |||
@@ -160,6 +166,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('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); | |||
}, | |||
@@ -171,6 +180,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OtherScore > 150) { | |||
row.OtherScore = parseFloat('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); | |||
}, | |||
@@ -138,6 +138,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OrdinaryScore > 150) { | |||
row.OrdinaryScore = parseFloat('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); | |||
}, | |||
@@ -149,6 +152,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermInScore > 150) { | |||
row.TermInScore = parseFloat('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); | |||
}, | |||
@@ -160,6 +166,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('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); | |||
}, | |||
@@ -171,6 +180,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.OtherScore > 150) { | |||
row.OtherScore = parseFloat('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); | |||
}, | |||
@@ -134,6 +134,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('0'); | |||
} | |||
row.Score = (parseFloat(row.TermEndScore || '0') * 1).toFixed(0); | |||
$('#gridtable').jfGridSet('updateRow', rownum); | |||
}, | |||
@@ -137,6 +137,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('0'); | |||
} | |||
row.Score = (parseFloat(row.TermEndScore || '0') * 1).toFixed(0); | |||
$('#gridtable').jfGridSet('updateRow', rownum); | |||
}, | |||
@@ -134,6 +134,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('0'); | |||
} | |||
row.Score = (parseFloat(row.TermEndScore || '0') * 1).toFixed(0); | |||
$('#gridtable').jfGridSet('updateRow', rownum); | |||
}, | |||
@@ -137,6 +137,9 @@ var bootstrap = function ($, learun) { | |||
type: 'input', | |||
inputType: 'number', | |||
change: function (row, rownum) { | |||
if (row.TermEndScore > 150) { | |||
row.TermEndScore = parseFloat('0'); | |||
} | |||
row.Score = (parseFloat(row.TermEndScore || '0') * 1).toFixed(0); | |||
$('#gridtable').jfGridSet('updateRow', rownum); | |||
}, | |||