1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //保存
- function EvaluationProject_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");
- $("#EvaluationTargetID").combogridX("setValue", "-1");
- }
- var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
- $("#EvaluationTableID").combogridX("reload", eval(jsonString));
- $("#EvaluationTargetID").combogridX("reload", eval(jsonString));
- }
- function queryEvaluationTable(data) {
- var evaluationTableID = $("#EvaluationTableID").combogridX("getValue");
- if (evaluationTableID == "" || evaluationTableID == "-1" || evaluationTableID == null)
- {
- $("#EvaluationTargetID").combogridX("setValue", "-1");
- }
- else {
- $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID);
- $("#EvaluationTargetID").combogridX("setValue", "-1");
- }
- var jsonString = "({'QueryParamsDatas':'EvaluationTableDropdown|*|" + evaluationTableID + "|@|'})";
- $("#EvaluationTargetID").combogridX("reload", eval(jsonString));
- }
- function queryEvaluationTarget(data) {
- var evaluationTargetID = $("#EvaluationTargetID").combogridX("getValue");
- if (evaluationTargetID == "" || evaluationTargetID == "-1" || evaluationTargetID == null) {
- $("#EvaluationParticipateTypeID").combogridX("setValue", "-1");
- $("#EvaluationTableID").combogridX("setValue", "-1");
- }
- else {
- $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID);
- $("#EvaluationTableID").combogridX("setValue", data.EvaluationTableID);
- }
- var evaluationTableID = $("#EvaluationTableID").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'EvaluationTableDropdown|*|" + evaluationTableID + "|@|'})";
- $("#EvaluationTargetID").combogridX("reload", eval(jsonString));
- }
|