123456789101112131415161718192021222324252627282930313233343536373839 |
- //加载
- $(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 QueryStandard(data) {
- var standardID = $("#StandardID").combogridX("getValue");
- if (standardID == "" || standardID == "-1" || standardID == null) {
- $("#Code").val("");
- }
- else {
- $("#Code").val(data.Code);
- }
- }
- //提交(审核)
- function SpecialtyAuditing_Submit() {
- var actionValue = $("#ddlAction").combobox("getValue");
- if (actionValue == "-1" || actionValue == "") {
- $.messager.alert("系统提示", "必须选择一个动作才能提交。");
- return;
- }
- $(document.forms[0]).submit();
- }
|