Sfoglia il codice sorgente

【修改】成绩录入:增加对分数的限制;

娄底高职分支
dyy 1 mese fa
parent
commit
ae7b77e584
8 ha cambiato i file con 62 aggiunte e 2 eliminazioni
  1. +14
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js
  2. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js
  3. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElective.js
  4. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js
  5. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js
  6. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js
  7. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndex.js
  8. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js

+ 14
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js Vedi File

@@ -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');


+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js Vedi File

@@ -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);
},


+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElective.js Vedi File

@@ -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);
},


+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js Vedi File

@@ -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);
},


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js Vedi File

@@ -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);
},


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js Vedi File

@@ -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);
},


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndex.js Vedi File

@@ -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);
},


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js Vedi File

@@ -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);
},


Caricamento…
Annulla
Salva