AtsDialog.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. /**
  2. * 日历模版窗口
  3. * @param conf
  4. */
  5. function AtsCalendarTemplDialog(conf)
  6. {
  7. if(!conf) conf={};
  8. var url=__ctx + '/platform/ats/atsCalendarTempl/dialog.ht';
  9. url=url.getNewUrl();
  10. DialogUtil.open({
  11. height:600,
  12. width: 800,
  13. title : '选择日历模版',
  14. url: url,
  15. isResize: true,
  16. //自定义参数
  17. params: conf.params,
  18. //回调函数
  19. sucCall:function(rtn){
  20. conf.callback.call(this,rtn);
  21. }
  22. });
  23. }
  24. /**
  25. * 法定假日
  26. * @param conf
  27. */
  28. function AtsLegalHolidayDialog(conf)
  29. {
  30. if(!conf) conf={};
  31. var url=__ctx + '/platform/ats/atsLegalHoliday/dialog.ht';
  32. url=url.getNewUrl();
  33. DialogUtil.open({
  34. height:600,
  35. width: 800,
  36. title : '选择法定假日',
  37. url: url,
  38. isResize: true,
  39. //自定义参数
  40. params: conf.params,
  41. //回调函数
  42. sucCall:function(rtn){
  43. conf.callback.call(this,rtn);
  44. }
  45. });
  46. }
  47. /**
  48. * 工作日历
  49. * @param conf
  50. */
  51. function AtsWorkCalendarDialog(conf)
  52. {
  53. if(!conf) conf={};
  54. var url=__ctx + '/platform/ats/atsWorkCalendar/dialog.ht';
  55. url=url.getNewUrl();
  56. DialogUtil.open({
  57. height:600,
  58. width: 800,
  59. title : '选择工作日历',
  60. url: url,
  61. isResize: true,
  62. //自定义参数
  63. params: conf.params,
  64. //回调函数
  65. sucCall:function(rtn){
  66. conf.callback.call(this,rtn);
  67. }
  68. });
  69. }
  70. /**
  71. * 考勤周期
  72. * @param conf
  73. */
  74. function AtsAttenceCycleDialog(conf)
  75. {
  76. if(!conf) conf={};
  77. var url=__ctx + '/platform/ats/atsAttenceCycle/dialog.ht';
  78. url=url.getNewUrl();
  79. DialogUtil.open({
  80. height:600,
  81. width: 800,
  82. title : '选择考勤周期',
  83. url: url,
  84. isResize: true,
  85. //自定义参数
  86. params: conf.params,
  87. //回调函数
  88. sucCall:function(rtn){
  89. conf.callback.call(this,rtn);
  90. }
  91. });
  92. }
  93. /**
  94. * 取卡规则
  95. * @param conf
  96. */
  97. function AtsCardRuleDialog(conf)
  98. {
  99. if(!conf) conf={};
  100. var url=__ctx + '/platform/ats/atsCardRule/dialog.ht';
  101. url=url.getNewUrl();
  102. DialogUtil.open({
  103. height:600,
  104. width: 800,
  105. title : '选择取卡规则',
  106. url: url,
  107. isResize: true,
  108. //自定义参数
  109. params: conf.params,
  110. //回调函数
  111. sucCall:function(rtn){
  112. conf.callback.call(this,rtn);
  113. }
  114. });
  115. }
  116. /**
  117. * 考勤制度
  118. * @param conf
  119. */
  120. function AtsAttencePolicyDialog(conf)
  121. {
  122. if(!conf) conf={};
  123. if(!conf.isSingle)conf.isSingle=false;
  124. var url=__ctx + '/platform/ats/atsAttencePolicy/dialog.ht?isSingle=' + conf.isSingle;
  125. url=url.getNewUrl();
  126. DialogUtil.open({
  127. height:600,
  128. width: 800,
  129. title : '选择考勤制度',
  130. url: url,
  131. isResize: true,
  132. //自定义参数
  133. params: conf.params,
  134. //回调函数
  135. sucCall:function(rtn){
  136. conf.callback.call(this,rtn);
  137. }
  138. });
  139. }
  140. /**
  141. * 假期制度
  142. * @param conf
  143. */
  144. function AtsHolidayPolicyDialog(conf)
  145. {
  146. if(!conf) conf={};
  147. if(!conf.isSingle)conf.isSingle=false;
  148. var url=__ctx + '/platform/ats/atsHolidayPolicy/dialog.ht?isSingle=' + conf.isSingle;
  149. url=url.getNewUrl();
  150. DialogUtil.open({
  151. height:600,
  152. width: 800,
  153. title : '选择假期制度',
  154. url: url,
  155. isResize: true,
  156. //自定义参数
  157. params: conf.params,
  158. //回调函数
  159. sucCall:function(rtn){
  160. conf.callback.call(this,rtn);
  161. }
  162. });
  163. }
  164. /**
  165. * 班次设置
  166. * @param conf
  167. */
  168. function AtsShiftInfoDialog(conf)
  169. {
  170. if(!conf) conf={};
  171. if(!conf.isSingle)conf.isSingle=false;
  172. var url=__ctx + '/platform/ats/atsShiftInfo/dialog.ht?isSingle=' + conf.isSingle;
  173. url=url.getNewUrl();
  174. DialogUtil.open({
  175. height:600,
  176. width: 800,
  177. title : '选择班次设置',
  178. url: url,
  179. isResize: true,
  180. //自定义参数
  181. params: conf.params,
  182. //回调函数
  183. sucCall:function(rtn){
  184. conf.callback.call(this,rtn);
  185. }
  186. });
  187. }
  188. /**
  189. * 轮班规则
  190. * @param conf
  191. */
  192. function AtsShiftRuleDialog(conf)
  193. {
  194. if(!conf) conf={};
  195. var url=__ctx + '/platform/ats/atsShiftRule/dialog.ht';
  196. url=url.getNewUrl();
  197. DialogUtil.open({
  198. height:600,
  199. width: 900,
  200. title : '选择轮班规则',
  201. url: url,
  202. isResize: true,
  203. //自定义参数
  204. params: conf.params,
  205. //回调函数
  206. sucCall:function(rtn){
  207. conf.callback.call(this,rtn);
  208. }
  209. });
  210. }
  211. /**
  212. * 导入
  213. * @param conf
  214. */
  215. function AtsImport(conf)
  216. {
  217. if(!conf) conf={};
  218. var url= conf.url;
  219. url=url.getNewUrl();
  220. DialogUtil.open({
  221. height:conf.height?conf.height:400,
  222. width: conf.width?conf.width:500,
  223. title : conf.title,
  224. url: url,
  225. isResize: true,
  226. //自定义参数
  227. params: conf.params,
  228. //回调函数
  229. sucCall:function(rtn){
  230. if(rtn){
  231. if(conf.returnUrl)
  232. window.location.href = conf.returnUrl;
  233. else
  234. window.location.reload(true);
  235. }
  236. }
  237. });
  238. }
  239. /**
  240. * 选择考勤人员
  241. * @param conf
  242. */
  243. function AtsAttendanceFileDialog(conf)
  244. {
  245. if(!conf) conf={};
  246. if(!conf.isSingle)conf.isSingle=false;
  247. var url=__ctx + '/platform/ats/atsAttendanceFile/dialog.ht?isSingle=' + conf.isSingle;
  248. url=url.getNewUrl();
  249. DialogUtil.open({
  250. height:600,
  251. width: 800,
  252. title : '选择考勤人员',
  253. url: url,
  254. isResize: true,
  255. //自定义参数
  256. params: conf.params,
  257. //回调函数
  258. sucCall:function(rtn){
  259. conf.callback.call(this,rtn);
  260. }
  261. });
  262. }
  263. function AtsAttenceGroupDialog(conf){
  264. if(!conf) conf={};
  265. if(!conf.isSingle)conf.isSingle=false;
  266. var url=__ctx + '/platform/ats/atsAttenceGroup/dialog.ht?isSingle=' + conf.isSingle;
  267. url=url.getNewUrl();
  268. DialogUtil.open({
  269. height:600,
  270. width: 800,
  271. title : '选择考勤组',
  272. url: url,
  273. isResize: true,
  274. //自定义参数
  275. params: conf.params,
  276. //回调函数
  277. sucCall:function(rtn){
  278. conf.callback.call(this,rtn);
  279. }
  280. });
  281. }
  282. /**
  283. * 假期类型
  284. * @param conf
  285. */
  286. function AtsHolidayTypeDialog(conf)
  287. {
  288. if(!conf) conf={};
  289. var url=__ctx + '/platform/ats/atsHolidayType/dialog.ht';
  290. url=url.getNewUrl();
  291. DialogUtil.open({
  292. height:600,
  293. width: 800,
  294. title : '选择假期类型',
  295. url: url,
  296. isResize: true,
  297. //自定义参数
  298. params: conf.params,
  299. //回调函数
  300. sucCall:function(rtn){
  301. conf.callback.call(this,rtn);
  302. }
  303. });
  304. }