123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //加载
- $(function () {
- var credit = $("#Credit").val();
- if (credit == null || credit == "") {
- $("#Credit").val("");
- } else {
- $("#Credit").val(parseFloat(credit));
- }
- });
- //保存
- function EvaluationStudentSetting_Save() {
- $(document.forms[0]).submit();
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //联动
- function queryEvaluationParticipateType(data) {
- var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
- if (evaluationParticipateTypeID == "" || evaluationParticipateTypeID == "-1" || evaluationParticipateTypeID == null) {
- $("#EvaluationTableID").combogridX("setValue", "-1");
- }
- var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
- $("#EvaluationTableID").combogridX("reload", eval(jsonString));
- }
- function queryEvaluationTable(data) {
- var evaluationTableID = $("#EvaluationTableID").combogridX("getValue");
- if (evaluationTableID == "" || evaluationTableID == "-1" || evaluationTableID == null) {
- $("#EvaluationParticipateTypeID").combogridX("setValue", "-1");
- }
- else {
- $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID);
- }
- var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
- $("#EvaluationTableID").combogridX("reload", eval(jsonString));
- }
|