CheckingApproveSubmit.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. //加载
  2. $(function () {
  3. //非负浮点数(/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/)
  4. var reg = /^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/;
  5. var learnSystem = $("#LearnSystem").val();
  6. if (learnSystem == "" || learnSystem == null) {
  7. $("#LearnSystem").val("");
  8. }
  9. else {
  10. if (!reg.test(learnSystem)) {
  11. $("#LearnSystem").val("");
  12. }
  13. else {
  14. $("#LearnSystem").val(parseFloat(learnSystem).toFixed(1));
  15. }
  16. }
  17. var score = $("#Score").val();
  18. if (score == "" || score == null) {
  19. $("#Score").val("");
  20. }
  21. else {
  22. if (!reg.test(score)) {
  23. $("#Score").val("");
  24. }
  25. else {
  26. $("#Score").val(parseFloat(score).toFixed(1));
  27. }
  28. }
  29. $("#specialtyExpander").closest("tr")
  30. .next().css("display", "")
  31. .next().css("display", "")
  32. .next().css("display", "")
  33. .next().css("display", "")
  34. .next().css("display", "")
  35. .next().css("display", "")
  36. .next().css("display", "");
  37. $("#specialtyExpander").attr("expanded", "1");
  38. $("#profileExpander").closest("tr")
  39. .next().css("display", "")
  40. .next().css("display", "")
  41. .next().css("display", "")
  42. .next().css("display", "")
  43. .next().css("display", "")
  44. .next().css("display", "")
  45. .next().css("display", "")
  46. .next().css("display", "")
  47. .next().css("display", "")
  48. .next().css("display", "")
  49. .next().css("display", "")
  50. .next().css("display", "")
  51. .next().css("display", "")
  52. .next().css("display", "")
  53. .next().css("display", "");
  54. $("#profileExpander").attr("expanded", "1");
  55. $("#contactExpander").closest("tr")
  56. .next().css("display", "")
  57. .next().css("display", "")
  58. .next().css("display", "")
  59. .next().css("display", "")
  60. .next().css("display", "")
  61. .next().css("display", "")
  62. .next().css("display", "")
  63. .next().css("display", "")
  64. .next().css("display", "")
  65. .next().css("display", "")
  66. .next().css("display", "");
  67. $("#contactExpander").attr("expanded", "1");
  68. $("#accountExpander").closest("tr")
  69. .next().css("display", "")
  70. .next().css("display", "");
  71. $("#accountExpander").attr("expanded", "1");
  72. $("#recruitExpander").closest("tr")
  73. .next().css("display", "")
  74. .next().css("display", "")
  75. .next().css("display", "")
  76. .next().css("display", "")
  77. .next().css("display", "")
  78. .next().css("display", "")
  79. .next().css("display", "")
  80. .next().css("display", "")
  81. .next().css("display", "");
  82. $("#recruitExpander").attr("expanded", "1");
  83. $("#otherExpander").closest("tr")
  84. .next().css("display", "")
  85. .next().css("display", "");
  86. $("#otherExpander").attr("expanded", "1");
  87. });
  88. //点击收缩(专业班级信息)
  89. function swapSpecialty() {
  90. if ($("#specialtyExpander").attr("expanded") == "1") {
  91. $("#specialtyExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
  92. $("#specialtyExpander").closest("tr")
  93. .next().css("display", "none")
  94. .next().css("display", "none")
  95. .next().css("display", "none")
  96. .next().css("display", "none")
  97. .next().css("display", "none")
  98. .next().css("display", "none")
  99. .next().css("display", "");
  100. $("#specialtyExpander").attr("expanded", "0");
  101. } else {
  102. $("#specialtyExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
  103. $("#specialtyExpander").closest("tr")
  104. .next().css("display", "")
  105. .next().css("display", "")
  106. .next().css("display", "")
  107. .next().css("display", "")
  108. .next().css("display", "")
  109. .next().css("display", "")
  110. .next().css("display", "");
  111. $("#specialtyExpander").attr("expanded", "1");
  112. }
  113. }
  114. //点击收缩(学生扩展信息)
  115. function swapProfile() {
  116. if ($("#profileExpander").attr("expanded") == "1") {
  117. $("#profileExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
  118. $("#profileExpander").closest("tr")
  119. .next().css("display", "")
  120. .next().css("display", "none")
  121. .next().css("display", "none")
  122. .next().css("display", "none")
  123. .next().css("display", "none")
  124. .next().css("display", "none")
  125. .next().css("display", "none")
  126. .next().css("display", "none")
  127. .next().css("display", "none")
  128. .next().css("display", "none")
  129. .next().css("display", "none")
  130. .next().css("display", "none")
  131. .next().css("display", "none")
  132. .next().css("display", "none")
  133. .next().css("display", "none");
  134. $("#profileExpander").attr("expanded", "0");
  135. } else {
  136. $("#profileExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
  137. $("#profileExpander").closest("tr")
  138. .next().css("display", "")
  139. .next().css("display", "")
  140. .next().css("display", "")
  141. .next().css("display", "")
  142. .next().css("display", "")
  143. .next().css("display", "")
  144. .next().css("display", "")
  145. .next().css("display", "")
  146. .next().css("display", "")
  147. .next().css("display", "")
  148. .next().css("display", "")
  149. .next().css("display", "")
  150. .next().css("display", "")
  151. .next().css("display", "")
  152. .next().css("display", "");
  153. $("#profileExpander").attr("expanded", "1");
  154. }
  155. }
  156. //点击收缩(学生联系信息)
  157. function swapContact() {
  158. if ($("#contactExpander").attr("expanded") == "1") {
  159. $("#contactExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
  160. $("#contactExpander").closest("tr")
  161. .next().css("display", "")
  162. .next().css("display", "none")
  163. .next().css("display", "none")
  164. .next().css("display", "none")
  165. .next().css("display", "none")
  166. .next().css("display", "none")
  167. .next().css("display", "none")
  168. .next().css("display", "none")
  169. .next().css("display", "none")
  170. .next().css("display", "none")
  171. .next().css("display", "none");
  172. $("#contactExpander").attr("expanded", "0");
  173. } else {
  174. $("#contactExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
  175. $("#contactExpander").closest("tr")
  176. .next().css("display", "")
  177. .next().css("display", "")
  178. .next().css("display", "")
  179. .next().css("display", "")
  180. .next().css("display", "")
  181. .next().css("display", "")
  182. .next().css("display", "")
  183. .next().css("display", "")
  184. .next().css("display", "")
  185. .next().css("display", "")
  186. .next().css("display", "");
  187. $("#contactExpander").attr("expanded", "1");
  188. }
  189. }
  190. //点击收缩(学生缴费信息)
  191. function swapAccount() {
  192. if ($("#accountExpander").attr("expanded") == "1") {
  193. $("#accountExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
  194. $("#accountExpander").closest("tr")
  195. .next().css("display", "none")
  196. .next().css("display", "");
  197. $("#accountExpander").attr("expanded", "0");
  198. } else {
  199. $("#accountExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
  200. $("#accountExpander").closest("tr")
  201. .next().css("display", "")
  202. .next().css("display", "");
  203. $("#accountExpander").attr("expanded", "1");
  204. }
  205. }
  206. //点击收缩(高考招生信息)
  207. function swapRecruit() {
  208. if ($("#recruitExpander").attr("expanded") == "1") {
  209. $("#recruitExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
  210. $("#recruitExpander").closest("tr")
  211. .next().css("display", "")
  212. .next().css("display", "none")
  213. .next().css("display", "none")
  214. .next().css("display", "none")
  215. .next().css("display", "none")
  216. .next().css("display", "none")
  217. .next().css("display", "none")
  218. .next().css("display", "none")
  219. .next().css("display", "none");
  220. $("#recruitExpander").attr("expanded", "0");
  221. } else {
  222. $("#recruitExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
  223. $("#recruitExpander").closest("tr")
  224. .next().css("display", "")
  225. .next().css("display", "")
  226. .next().css("display", "")
  227. .next().css("display", "")
  228. .next().css("display", "")
  229. .next().css("display", "")
  230. .next().css("display", "")
  231. .next().css("display", "")
  232. .next().css("display", "");
  233. $("#recruitExpander").attr("expanded", "1");
  234. }
  235. }
  236. //点击收缩(其它信息)
  237. function swapOther() {
  238. if ($("#otherExpander").attr("expanded") == "1") {
  239. $("#otherExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
  240. $("#otherExpander").closest("tr")
  241. .next().css("display", "none")
  242. .next().css("display", "");
  243. $("#otherExpander").attr("expanded", "0");
  244. } else {
  245. $("#otherExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
  246. $("#otherExpander").closest("tr")
  247. .next().css("display", "")
  248. .next().css("display", "");
  249. $("#otherExpander").attr("expanded", "1");
  250. }
  251. }
  252. //提交(审核)
  253. function CheckingApprove_Submit() {
  254. var actionValue = $("#ddlAction").combobox("getValue");
  255. if (actionValue == "-1" || actionValue == "") {
  256. $.messager.alert("系统提示", "必须选择一个动作才能提交。");
  257. return;
  258. }
  259. $(document.forms[0]).submit();
  260. }