SMPMB03300_원무수납사용자관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>수납마감 사용자 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <userinfo>
  11. <userid/>
  12. <usernm/>
  13. <rrgstno/>
  14. <dutplcenm/>
  15. <deptcd/>
  16. <fromdd/>
  17. <todd/>
  18. <workflag/>
  19. <bfdeptcd/>
  20. <telno/>
  21. <automagm/>
  22. <uncoyn/>
  23. <rcptposcd/>
  24. </userinfo>
  25. <userrgst>
  26. <userrgstlist/>
  27. </userrgst>
  28. <popupendflag/>
  29. </main>
  30. <send>
  31. <usernm/>
  32. <userid/>
  33. <deptcd/>
  34. </send>
  35. <init>
  36. <P0128list/>
  37. </init>
  38. <hidden>
  39. <source>
  40. <autoflag/>
  41. <userid/>
  42. </source>
  43. </hidden>
  44. <tmp>
  45. <userrgstinfo>
  46. <userrgstinfolist/>
  47. </userrgstinfo>
  48. </tmp>
  49. </root>
  50. </instance>
  51. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TRPMB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userrgst"/>
  53. <submission id="TXPMB03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/userinfo" resultref="root/result"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. fInitialize1();
  63. pamfGetCodeList(new Array("P0128"), new Array("/root/init/P0128list"));
  64. fSearch();
  65. ]]>
  66. </script>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fInitialize1(){
  70. model.resetInstanceNode("/root/send");
  71. model.resetInstanceNode("/root/main");
  72. model.removeNodeset("/root/main/userrgst/userrgstlist");
  73. model.setValue("/root/main/userinfo/fromdd", getCurrentDate());
  74. model.setValue("/root/main/userinfo/todd", "99991231");
  75. model.setValue("/root/main/userinfo/automagm", "N");
  76. model.setValue("/root/main/userinfo/uncoyn", "N");
  77. model.refresh();
  78. }
  79. function fInitialize2(){
  80. model.resetInstanceNode("/root/main/userinfo");
  81. model.setValue("/root/main/userinfo/fromdd", getCurrentDate());
  82. model.setValue("/root/main/userinfo/todd", "99991231");
  83. }
  84. function fcheck(){
  85. if (model.getValue("/root/main/userinfo/userid") == "") {
  86. messageBox("사용자ID가 입력되지", "E007");
  87. return false;
  88. }
  89. if (model.getValue("/root/main/userinfo/deptcd") == "") {
  90. messageBox("등록부서가 입력되지", "E007");
  91. return false;
  92. }
  93. if (model.getValue("/root/main/userinfo/fromdd") == "") {
  94. messageBox("시작일자가 입력되지", "E007");
  95. return false;
  96. }
  97. if (model.getValue("/root/main/userinfo/todd") == "") {
  98. messageBox("종료일자가 입력되지", "E007");
  99. return false;
  100. }
  101. var rcptposcd = model.getValue("/root/main/userinfo/rcptposcd");
  102. if (rcptposcd == "00" || rcptposcd == "") {
  103. messageBox("수납위치가 입력되지", "E007");
  104. return false;
  105. }
  106. return true;
  107. }
  108. function checkdd(){
  109. var fromdd = model.getValue("/root/main/userinfo/fromdd");
  110. var todd = model.getValue("/root/main/userinfo/todd");
  111. if (fromdd > todd) {
  112. messageBox("종료일은 시작일보다 클 수 ", "I004");
  113. }
  114. }
  115. function fSearch() {
  116. if (submit("TRPMB03301")) {
  117. fInitialize2();
  118. }
  119. model.refresh();
  120. }
  121. ]]>
  122. </script>
  123. </xhtml:head>
  124. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  125. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">수납마감 사용자 관리</caption>
  126. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  127. <caption id="caption2" class="search_name" style="left:11px; top:28px; width:99px; height:17px; ">사용자명 :</caption>
  128. <input id="input7" ref="/root/send/usernm" style="left:105px; top:28px; width:105px; height:19px; "/>
  129. <caption id="caption17" class="search_name" style="left:237px; top:28px; width:86px; height:17px; ">사용자ID :</caption>
  130. <input id="input5" ref="/root/send/userid" style="left:330px; top:28px; width:105px; height:19px; "/>
  131. <caption id="caption21" class="search_name" style="left:468px; top:28px; width:86px; height:17px; ">등록부서 :</caption>
  132. <select1 id="combo2" ref="/root/send/deptcd" appearance="minimal" style="left:560px; top:28px; width:120px; height:19px; ">
  133. <choices>
  134. <item>
  135. <label>전체</label>
  136. <value/>
  137. </item>
  138. <item>
  139. <label>원무팀</label>
  140. <value>01</value>
  141. </item>
  142. <item>
  143. <label>건진팀</label>
  144. <value>02</value>
  145. </item>
  146. <item>
  147. <label>기타</label>
  148. <value>03</value>
  149. </item>
  150. </choices>
  151. </select1>
  152. <line id="line13" class="line_4" style="x1:1120px; y1:26px; x2:1120px; y2:48px; border-color:#ffe4bb; border-left-style:solid; "/>
  153. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:27px; width:56px; height:22px; ">
  154. <caption>조회</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. fSearch();
  158. ]]>
  159. </script>
  160. </button>
  161. <caption id="caption1" class="tit_2" style="left:0px; top:65px; width:113px; height:13px; ">사용자 관리내역</caption>
  162. <caption id="caption7" class="cell_1" style="left:0px; top:85px; width:70px; height:23px; vertical-align:middle; ">사용자ID</caption>
  163. <input id="ipt_userid" ref="/root/main/userinfo/userid" style="left:72px; top:86px; width:100px; height:19px; ">
  164. <script type="javascript" ev:event="onkeypress">
  165. <![CDATA[
  166. model.makeNode("/root/main/popupendflag");
  167. if (event.keyCode == "13") {
  168. model.setValue("/root/main/popupendflag", "ok");
  169. model.setValue("/root/main/userinfo/userid", ipt_userid.currentText);
  170. inputEnterKey("btn_search", "DOMActivate");
  171. }
  172. ]]>
  173. </script>
  174. </input>
  175. <button id="button1" accesskey="f2" class="icon_search" style="left:177px; top:88px; width:16px; height:16px; ">
  176. <caption/>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. var popupendflag = model.getValue("/root/main/popupendflag");
  180. if (popupendflag == "ok") {
  181. setParameter("SPPMC02600_userid", ipt_userid.currentText);
  182. }
  183. modal("SPPMC02600", "", "200", "300", "SPPMC02600","/root/temp/userpopupinfo","/root/main/userinfo");
  184. model.makeNode("/root/main/userinfo/telno"); //전화번호
  185. model.makeNode("/root/main/userinfo/deptcd"); //등록부서
  186. model.makeNode("/root/main/userinfo/automagm"); //자동마감
  187. model.makeNode("/root/main/userinfo/uncoyn"); //미수발생
  188. model.makeNode("/root/main/userinfo/fromdd"); //시작일자
  189. model.makeNode("/root/main/userinfo/todd"); //종료일자
  190. model.makeNode("/root/main/userinfo/workflag");
  191. model.makeNode("/root/main/userinfo/bfdeptcd");
  192. model.makeNode("/root/main/userinfo/rcptposcd");
  193. model.setValue("/root/main/userinfo/fromdd", getCurrentDate());
  194. model.setValue("/root/main/userinfo/todd", "99991231");
  195. model.setValue("/root/main/userinfo/automagm", "N");
  196. model.setValue("/root/main/userinfo/uncoyn", "N");
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </button>
  201. <caption id="caption8" class="cell_1" style="left:200px; top:85px; width:70px; height:23px; vertical-align:middle; ">사용자명</caption>
  202. <input id="input21" ref="/root/main/userinfo/usernm" disabled="true" navindex="4" appearance="input" style="left:272px; top:86px; width:125px; height:19px; "/>
  203. <caption id="caption14" class="cell_1" style="left:400px; top:85px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
  204. <input id="input9" ref="/root/main/userinfo/rrgstno" disabled="true" style="left:472px; top:86px; width:125px; height:19px; "/>
  205. <caption id="caption12" class="cell_1" style="left:600px; top:85px; width:70px; height:23px; vertical-align:middle; ">사용자부서</caption>
  206. <input id="input2" ref="/root/main/userinfo/dutplcenm" disabled="true" navindex="4" appearance="input" style="left:672px; top:86px; width:125px; height:19px; "/>
  207. <caption id="caption4" class="cell_1" style="left:800px; top:85px; width:70px; height:23px; vertical-align:middle; ">등록부서</caption>
  208. <select1 id="combo1" ref="/root/main/userinfo/deptcd" appearance="minimal" style="left:872px; top:86px; width:125px; height:19px; ">
  209. <choices>
  210. <item>
  211. <label>원무팀</label>
  212. <value>01</value>
  213. </item>
  214. <item>
  215. <label>건진팀</label>
  216. <value>02</value>
  217. </item>
  218. <item>
  219. <label>기타</label>
  220. <value>03</value>
  221. </item>
  222. </choices>
  223. </select1>
  224. <caption id="caption9" class="cell_1" style="left:1000px; top:85px; width:70px; height:23px; ">전화번호</caption>
  225. <input id="input3" ref="/root/main/userinfo/telno" maxlength="8" style="left:1072px; top:86px; width:123px; height:19px; "/>
  226. <caption id="caption10" class="cell_1" style="left:200px; top:109px; width:70px; height:23px; vertical-align:middle; ">자동마감</caption>
  227. <select1 id="rdo_automagm" ref="/root/main/userinfo/automagm" appearance="full" cols="2" rows="1" overflow="visible" style="left:272px; top:110px; width:80px; height:19px; border-style:none; ">
  228. <choices>
  229. <item>
  230. <label>Yes</label>
  231. <value>Y</value>
  232. </item>
  233. <item>
  234. <label>No</label>
  235. <value>N</value>
  236. </item>
  237. </choices>
  238. </select1>
  239. <caption id="caption11" class="cell_1" style="left:400px; top:109px; width:70px; height:23px; vertical-align:middle; ">미수발생</caption>
  240. <select1 id="rdo_uncoyn" ref="/root/main/userinfo/uncoyn" appearance="full" cols="2" rows="1" overflow="visible" style="left:472px; top:110px; width:80px; height:19px; border-style:none; ">
  241. <choices>
  242. <item>
  243. <label>Yes</label>
  244. <value>Y</value>
  245. </item>
  246. <item>
  247. <label>No</label>
  248. <value>N</value>
  249. </item>
  250. </choices>
  251. </select1>
  252. <caption id="caption3" class="cell_1" style="left:0px; top:109px; width:70px; height:23px; vertical-align:middle; ">수납위치</caption>
  253. <select1 id="cmb_rcptpos" ref="/root/main/userinfo/rcptposcd" appearance="minimal" style="left:72px; top:110px; width:125px; height:19px; ">
  254. <choices>
  255. <itemset nodeset="/root/init/P0128list/P0128">
  256. <label ref="cdnm"/>
  257. <value ref="cdid"/>
  258. </itemset>
  259. </choices>
  260. </select1>
  261. <caption id="caption5" class="cell_1" style="left:800px; top:109px; width:70px; height:23px; vertical-align:middle; ">시작일자</caption>
  262. <input id="ipt_fromdd" ref="/root/main/userinfo/fromdd" class="input_default" navindex="2" inputtype="date" style="left:872px; top:110px; width:125px; height:19px; ">
  263. <script type="javascript" ev:event="DOMFocusOut">
  264. <![CDATA[
  265. checkdd();
  266. ]]>
  267. </script>
  268. </input>
  269. <caption id="caption13" class="cell_1" style="left:1000px; top:109px; width:70px; height:23px; vertical-align:middle; ">종료일자</caption>
  270. <input id="ipt_todd" ref="/root/main/userinfo/todd" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:1072px; top:110px; width:123px; height:19px; ">
  271. <script type="javascript" ev:event="DOMFocusOut">
  272. <![CDATA[
  273. checkdd();
  274. ]]>
  275. </script>
  276. </input>
  277. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
  278. <line id="line6" class="line_2" style="x1:0px; y1:107px; x2:1195px; y2:107px; "/>
  279. <line id="line7" class="line_3" style="x1:0px; y1:131px; x2:1195px; y2:131px; "/>
  280. <button id="button52" class="btn2_letter2" style="left:1109px; top:60px; width:42px; height:19px; ">
  281. <caption>저장</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. if (model.getValue("/root/main/userinfo/todd") < getCurrentDate()) {
  285. messageBox("종료일자를 오늘날짜 이전으로는 저장 할 수 없습니다.", "E999");
  286. model.setFocus("ipt_todd");
  287. return;
  288. }
  289. if (!fcheck()){
  290. return;
  291. }
  292. if (model.getValue("/root/main/userinfo/workflag") != "U") {
  293. model.setValue("/root/main/userinfo/workflag", "I");
  294. }
  295. var workflag = model.getValue("/root/main/userinfo/workflag");
  296. if (workflag == "I") {
  297. if (messageBox("해당 사용자를 신규저장 하시겠습니까?", "Q999") != 6) return;
  298. } else if(workflag == "U"){
  299. if (messageBox("해당 사용자를 수정 하시겠습니까?", "Q999") != 6) return;
  300. } else {
  301. messageBox("저장할 내역이 선택되지 않았습니다!", "Q999");
  302. return;
  303. }
  304. if (submit("TXPMB03302")) {
  305. fInitialize2();
  306. }
  307. fSearch();
  308. ]]>
  309. </script>
  310. </button>
  311. <button id="button53" accesskey="f1" class="btn5_letter2" style="left:1153px; top:60px; width:42px; height:19px; ">
  312. <caption>삭제</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. if (messageBox("해당 사용자를 삭제 하시겠습니까?", "Q999") != 6) return;
  316. model.setValue("/root/main/userinfo/workflag", "D");
  317. if (submit("TXPMB03302")) {
  318. fInitialize2();
  319. }
  320. fSearch();
  321. ]]>
  322. </script>
  323. </button>
  324. <caption id="caption20" class="tit_2" style="left:0px; top:140px; width:157px; height:13px; ">사용자관리 등록 리스트</caption>
  325. <line id="line8" class="line_1" style="x1:0px; y1:155px; x2:1195px; y2:155px; "/>
  326. <datagrid id="grd_userlist" nodeset="/root/main/userrgst/userrgstlist" caption="사용자명^사용자ID^주민번호^사용자부서^등록부서^전화번호^수납위치^자동마감^미수발생^시작일자^종료일자^최초등록자^최초등록일자^최종수정자^최종수정일자^seqno^histno" colsep="^" colwidth="60, 60, 100, 120, 70, 70, 70, 60, 60, 80, 80, 70, 120, 70, 120, 50, 50" dataheight="25" defaultrows="2" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:160px; width:1195px; height:585px; text-align:center; ">
  327. <col disabled="true" ref="usernm"/>
  328. <col disabled="true" ref="userid"/>
  329. <col disabled="true" ref="rrgstno"/>
  330. <col disabled="true" ref="dutplcenm"/>
  331. <col disabled="true" ref="deptcd" type="combo">
  332. <choices>
  333. <item>
  334. <label>원무팀</label>
  335. <value>01</value>
  336. </item>
  337. <item>
  338. <label>건진팀</label>
  339. <value>02</value>
  340. </item>
  341. <item>
  342. <label>기타</label>
  343. <value>03</value>
  344. </item>
  345. </choices>
  346. </col>
  347. <col ref="telno"/>
  348. <col disabled="true" ref="rcptposcd" type="combo">
  349. <choices>
  350. <itemset nodeset="/root/init/P0128list/P0128">
  351. <label ref="cdnm"/>
  352. <value ref="cdid"/>
  353. </itemset>
  354. </choices>
  355. </col>
  356. <col disabled="true" ref="automagm" type="combo">
  357. <choices>
  358. <item>
  359. <label>○</label>
  360. <value>Y</value>
  361. </item>
  362. <item>
  363. <label/>
  364. <value>N</value>
  365. </item>
  366. </choices>
  367. </col>
  368. <col disabled="true" ref="uncoyn" type="combo">
  369. <choices>
  370. <item>
  371. <label>○</label>
  372. <value>Y</value>
  373. </item>
  374. <item>
  375. <label/>
  376. <value>N</value>
  377. </item>
  378. </choices>
  379. </col>
  380. <col disabled="true" ref="fromdd" format="yyyy-mm-dd"/>
  381. <col disabled="true" ref="todd" format="yyyy-mm-dd"/>
  382. <col disabled="true" ref="fstrgstrid"/>
  383. <col disabled="true" ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  384. <col disabled="true" ref="lastupdtrid"/>
  385. <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  386. <col ref="seqno" visibility="hidden"/>
  387. <col ref="histno" visibility="hidden"/>
  388. <script type="javascript" ev:event="onclick">
  389. <![CDATA[
  390. var cur_row = grd_userlist.row;
  391. if(cur_row > 0) {
  392. model.copyNode("/root/main/userinfo", "/root/main/userrgst/userrgstlist[" + cur_row + "]");
  393. model.makeValue("/root/main/userinfo/bfdeptcd", model.getValue("/root/main/userrgst/userrgstlist[" + cur_row + "]/deptcd"));
  394. model.makeValue("/root/main/userinfo/workflag", "U");
  395. model.refresh();
  396. }
  397. ]]>
  398. </script>
  399. <script type="javascript" ev:event="onaftersort">
  400. <![CDATA[
  401. grd_userlist.gridToInstance();
  402. ]]>
  403. </script>
  404. </datagrid>
  405. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:750px; width:68px; height:22px; ">
  406. <caption>초기화</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. fInitialize1();
  410. ]]>
  411. </script>
  412. </button>
  413. </xhtml:body>
  414. </xhtml:html>