12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //加载
- $(function () {
- //非负浮点数(/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/)
- var reg = /^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/;
- var learnSystem = $("#LearnSystem").val();
- if (learnSystem == "" || learnSystem == null) {
- $("#LearnSystem").val("");
- }
- else {
- if (!reg.test(learnSystem)) {
- $("#LearnSystem").val("");
- }
- else {
- $("#LearnSystem").val(parseFloat(learnSystem).toFixed(1));
- }
- }
- });
- //保存
- function RecruitSpecialty_Save() {
- $(document.forms[0]).submit();
- }
- //联动
- function querySpecialty(data) {
- var specialtyID = $("#SpecialtyID").combogridX("getValue");
- if (specialtyID == "" || specialtyID == "-1" || specialtyID == null) {
- $("#Code").val("");
- $("#EducationID").combogridX("setValue", "-1");
- $("#LearningformID").combogridX("setValue", "-1");
- $("#LearnSystem").val("");
- $("#ScienceclassID").combogridX("setValue", "-1");
- $("#PropertyID").combogridX("setValue", "-1");
- }
- else {
- $("#Code").val(data.Code);
- $("#EducationID").combogridX("setValue", data.EducationID);
- $("#LearningformID").combogridX("setValue", data.LearningformID);
- $("#LearnSystem").val(data.LearnSystem);
- $("#ScienceclassID").combogridX("setValue", data.ScienceclassID);
- $("#PropertyID").combogridX("setValue", data.PropertyID);
- }
- }
|