1234567891011121314151617181920212223242526 |
- //学生信息
- function queryStudent(data) {
- var userID = $("#UserID").combogridX("getValue");
- if (userID == "" || userID == "-1" || userID == null) {
- $("#Name").val("");
- $("#SexID").combogridX("setValue", "-1");
- $("#ClassmajorID").combogridX("setValue", "-1");
- $("#InSchoolStatusID").combogridX("setValue", "-1");
- }
- else {
- $("#Name").val(data.Name);
- $("#SexID").combogridX("setValue", data.SexID);
- $("#ClassmajorID").combogridX("setValue", data.ClassmajorID);
- $("#InSchoolStatusID").combogridX("setValue", data.InSchoolStatusID);
- }
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //保存
- function StudentEncourage_Save() {
- $(document.forms[0]).submit();
- }
|