StudentOrderEdit.js 635 B

12345678910111213141516171819
  1. function Students_Save() {
  2. var z = /^[0-9]*$/;
  3. var strPreAddedValue = $("#PreIncreaseQty").val();
  4. var orderQty = $("#OrderQty").val();
  5. if (strPreAddedValue != undefined) {
  6. if (!z.test(strPreAddedValue)) {
  7. $.messager.alert("系统提示", "填写的数据格式应为正整数!");
  8. return;
  9. }
  10. $(document.forms[0]).submit();
  11. }
  12. else if (orderQty != undefined) {
  13. if (!z.test(orderQty)) {
  14. $.messager.alert("系统提示", "填写的数据格式应为正整数!");
  15. return;
  16. }
  17. $(document.forms[0]).submit();
  18. }
  19. }