tmsDataDictionary.js 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. function checkForm() {
  2. var rs = $.validate({
  3. name : "dname",
  4. model : [ {
  5. type : "require",
  6. msg : "请输入标准名称!",
  7. msgBox:"dnameMsg"
  8. },{
  9. type : "len",
  10. min : 1,
  11. max : 100,
  12. msg : "标准名称内容太长,请减少到50个汉字以内!"
  13. } ]
  14. });
  15. rs = $.validate({
  16. name : "dvalue",
  17. model : [ {
  18. type : "require",
  19. msg : "请输入编码!",
  20. msgBox : "dvalueMsg"
  21. },{
  22. type : "len",
  23. min : 1,
  24. max : 50,
  25. msg : "编码太长,请减少到50个英文以内!"
  26. }]
  27. }) && rs;
  28. rs = $.validate({
  29. name : "remark",
  30. model : [ {
  31. type : "len",
  32. min : 1,
  33. max : 200,
  34. msg : "摘要太长,请减少到100个汉字以内!"
  35. }]
  36. }) && rs;
  37. rs = $.validate({
  38. name : "dorder",
  39. model : [ {
  40. type : "isNumber",
  41. msg : "请填写正确的数字!",
  42. msgBox: "dorderMsg"
  43. }]
  44. }) && rs;
  45. if (rs) {
  46. return true;
  47. }
  48. return false;
  49. }