SMRTH00650_근무예정증명신청.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <crtfctkind>
  11. <crtfctkindlist/>
  12. </crtfctkind>
  13. </main>
  14. <send>
  15. <search>
  16. <emplno/>
  17. <num/>
  18. <flag/>
  19. <emplnm/>
  20. <trngflag/>
  21. <instcd/>
  22. <supinfqurtyyflag/>
  23. </search>
  24. <save>
  25. <crtfctkind_mst/>
  26. </save>
  27. <crtfctkindlist/>
  28. <req>
  29. <emplno/>
  30. </req>
  31. </send>
  32. <init>
  33. <appflag>
  34. <label>신청</label>
  35. <value>1</value>
  36. <label>확인</label>
  37. <value>2</value>
  38. <label>출력</label>
  39. <value>3</value>
  40. </appflag>
  41. </init>
  42. <hidden>
  43. <crtfctkind_search>
  44. <cdnm/>
  45. <cdid/>
  46. </crtfctkind_search>
  47. </hidden>
  48. <temp>
  49. </temp>
  50. </root>
  51. </instance>
  52. <submission id="TRRTH00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/hidden"/>
  53. <submission id="TRRTH00651" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/crtfctkind/crtfctkindlist"/>
  54. <submission id="TXRTH00651" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  55. <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  63. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. misfGridInit(grd_crtfctkindlist);
  67. misfMsterDetailSet(grd_crtfctkindlist, null, "TRRTH00651", "Y");
  68. model.setValue("/root/send/search/flag", "S");
  69. submit("TRRTH00604");
  70. model.setValue("/root/send/search/flag", "");
  71. var node = instance1.selectSingleNode("/root/hidden/crtfctkind_search").length;
  72. for(var i=1 ; i<=node ; i++)
  73. {
  74. model.makeValue("/root/main/crtfctkindlist[" + i + "]/cdnm", model.getValue("/root/hidden/crtfctkind_search[" + i + "]/cdnm"));
  75. model.makeValue("/root/main/crtfctkindlist[" + i + "]/cdid", model.getValue("/root/hidden/crtfctkind_search[" + i + "]/cdid"));
  76. }
  77. // misfComboComCdListMulti("R0237,R0151", "cmb_supinfqurtyyflag,cmb_trngflag");
  78. misfComboComCdList("R0237", cmb_supinfqurtyyflag);
  79. addComboItem( "cmb_supinfqurtyyflag", "전체", "", "above");
  80. misfComboComCdList('R0151', cmb_trngflag);
  81. addComboItem( "cmb_trngflag", "전체", "", "above");
  82. // misfComboComCdListMulti 보다 먼저 사용해야함 아니면 노드가 사라짐
  83. misfGridComboComCdList("Z0007",grd_crtfctkindlist,"dutplceinst");
  84. misfGridComboComCdList("R0305",grd_crtfctkindlist,"issinstcd");
  85. misfGridComboComCdList("R0234",grd_crtfctkindlist,"frmrmert");
  86. misfGridComboComCdList("R0062",grd_crtfctkindlist,"trngflag");
  87. //rszfComboComCdListMultiS("grd_crtfctkindlist.issinstcd","전체","", "above" );
  88. rszfComboComCdListMultiS("grd_crtfctkindlist.issinstcd","가톨릭중앙의료원","001", "above" );
  89. var userid = getUserInfo("userid");
  90. model.setValue("/root/send/search/emplno", userid);
  91. // model.setValue("/root/send/search/emplno", 10702229);
  92. model.setValue("/root/send/req/emplno", model.getValue("/root/send/search/emplno"));
  93. btn_search.dispatch("DOMActivate");
  94. model.refresh();
  95. ]]>
  96. </script>
  97. <script type="javascript">
  98. <![CDATA[
  99. //========================================================================================
  100. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  101. //========================================================================================
  102. function fCheckAuth() {
  103. btn_search.disabled =!checkAuth("R");
  104. //btn_save.disabled = !checkAuth("X");
  105. }
  106. function search() {
  107. //if(!isRequiredControls("cmb_supinfqurtyyflag"))return;
  108. model.removeNodeset("/root/main/crtfctkind/crtfctkindlist");
  109. submit("TRRTH00651");
  110. for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
  111. var jobtype = grd_crtfctkindlist.valueMatrix(i,grd_crtfctkindlist.colRef("jobtype"));
  112. if( jobtype == 'S'){
  113. grd_crtfctkindlist.rowStyle(i, "all", "background-color") = "white";
  114. }else{
  115. grd_crtfctkindlist.rowStyle(i, "all", "background-color") ="#ffff99";
  116. }
  117. var sAppflag = grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("appflag"));
  118. if(sAppflag == "3"){
  119. grd_crtfctkindlist.rowstyle(i, "data", "background-color") = "#FFCC66";
  120. }
  121. }
  122. }
  123. function selectall(){
  124. for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
  125. if ((grd_crtfctkindlist.valueMatrix(i,grd_crtfctkindlist.colRef("chk")) =='N')
  126. && (grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("jobtype")) == 'I')){
  127. //grd_crtfctkindlist.addStatus(i,"insert");
  128. grd_crtfctkindlist.rowStatus(i) = 3;
  129. grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("chk")) = 'Y';
  130. }
  131. }
  132. }
  133. function cancelall(){
  134. for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
  135. grd_crtfctkindlist.valueMatrix(i,grd_crtfctkindlist.colRef("chk")) ='N';
  136. grd_crtfctkindlist.clearStatus(i);
  137. }
  138. }
  139. function save(){
  140. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  141. if ( retMes != 6) {
  142. return;
  143. }
  144. model.makeNode("/root/send/savelist/crtfctkindlist");
  145. model.setValue("/root/send/savelist/crtfctkindlist", grd_crtfctkindlist.getUpdateData());
  146. for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
  147. if (grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("chk")) == 'Y'){
  148. grd_crtfctkindlist.rowStatus(i) = "3";
  149. }
  150. }
  151. misfSave("TXRTH00651");
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body>
  157. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무예정증명서신청</caption>
  159. </group>
  160. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  161. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  162. <caption id="caption13" class="search_name" style="left:445px; top:22px; width:75px; height:17px; ">사 번 :</caption>
  163. <line id="line14" class="line_4" style="x1:1100px; y1:18px; x2:1100px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
  164. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
  165. <caption>조회</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. search();
  169. ]]>
  170. </script>
  171. </button>
  172. <select1 id="cmb_trngflag" ref="/root/send/search/trngflag" navindex="4" appearance="minimal" style="left:325px; top:21px; width:105px; height:19px; ">
  173. <choices>
  174. <itemset>
  175. <label/>
  176. <value/>
  177. </itemset>
  178. </choices>
  179. </select1>
  180. <caption id="cap_trngflag" class="search_name" style="left:224px; top:22px; width:110px; height:17px; ">전공의구분 :</caption>
  181. <button id="btn_helppsn" class="icon_search" style="left:591px; top:22px; width:16px; height:16px; ">
  182. <caption/>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
  186. ipt_emplno.refresh();
  187. ipt_emplnm.refresh();
  188. ]]>
  189. </script>
  190. </button>
  191. <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_search" style="left:609px; top:21px; width:100px; height:19px; "/>
  192. <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_search" style="left:510px; top:21px; width:80px; height:19px; "/>
  193. <line id="line3" class="line_1" style="x1:0px; y1:80px; x2:1190px; y2:80px; "/>
  194. <caption id="cap_search" class="tit_2" style="left:2px; top:58px; width:200px; height:13px; ">총 0건이 등록되어있습니다.</caption>
  195. <button id="button4" class="btn2_letter4" style="left:1055px; top:55px; width:64px; height:19px; ">
  196. <caption>전체취소</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. cancelall();
  200. ]]>
  201. </script>
  202. </button>
  203. <button id="btn_excelsave_mast" class="btn2_letter4" style="left:1121px; top:55px; width:64px; height:19px; ">
  204. <caption>엑셀저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  208. if (fileName != "") {
  209. grd_crtfctkindlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  210. }
  211. ]]>
  212. </script>
  213. </button>
  214. <button id="button12" class="btn2_letter4" style="left:988px; top:55px; width:64px; height:19px; ">
  215. <caption>전체선택</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. selectall();
  219. ]]>
  220. </script>
  221. </button>
  222. <datagrid id="grd_crtfctkindlist" nodeset="/root/main/crtfctkind/crtfctkindlist" caption="작업방식^선택^사번^성명^신청년월^신청번호^신청일자^발급기관^전공과목^I/R^소속병원^근무병원^증명서종류^신청상태^통수^금액^확인내용^발급사유^수령방법^전화번호^E-mail^우편번호1^우편번호2^주소^caption1^caption2^caption3" colsep="^" colwidth="100, 45, 84, 82, 100, 100, 100, 130, 100, 90, 120, 130, 200, 75, 50, 79, 100, 100, 95, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:90px; width:1190px; height:600px; ">
  223. <col ref="jobtype" visibility="hidden"/>
  224. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  225. <col ref="emplno" visibility="visible" style="text-align:center; "/>
  226. <col ref="emplnm" style="text-align:center; "/>
  227. <col ref="appym" visibility="hidden"/>
  228. <col ref="seqno" visibility="hidden"/>
  229. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  230. <col disabled="true" ref="issinstcd" type="combo" visibility="visible" style="text-align:center; ">
  231. <choices>
  232. <itemset>
  233. <label/>
  234. <value/>
  235. </itemset>
  236. </choices>
  237. </col>
  238. <col disabled="true" ref="frmrmert" type="combo" visibility="visible" style="text-align:center; ">
  239. <choices>
  240. <itemset>
  241. <label/>
  242. <value/>
  243. </itemset>
  244. </choices>
  245. </col>
  246. <col disabled="true" ref="trngflag" type="combo" visibility="visible" style="text-align:center; ">
  247. <choices>
  248. <itemset>
  249. <label/>
  250. <value/>
  251. </itemset>
  252. </choices>
  253. </col>
  254. <col disabled="true" ref="orginstcd" type="combo" visibility="hidden">
  255. <choices>
  256. <itemset>
  257. <label/>
  258. <value/>
  259. </itemset>
  260. </choices>
  261. </col>
  262. <col disabled="true" ref="dutplceinst" type="combo" visibility="hidden">
  263. <choices>
  264. <itemset>
  265. <label/>
  266. <value/>
  267. </itemset>
  268. </choices>
  269. </col>
  270. <col disabled="true" ref="crtfctkind" type="combo" style="text-align:center; ">
  271. <choices>
  272. <itemset nodeset="/root/hidden/crtfctkind_search">
  273. <label ref="cdnm"/>
  274. <value ref="cdid"/>
  275. </itemset>
  276. </choices>
  277. </col>
  278. <col disabled="true" ref="appflag" type="combo" style="text-align:center; ">
  279. <choices>
  280. <itemset nodeset="/root/init/appflag">
  281. <label ref="label"/>
  282. <value ref="value"/>
  283. </itemset>
  284. </choices>
  285. </col>
  286. <col ref="isscnt" visibility="visible" style="text-align:right; padding-right:10; "/>
  287. <col ref="amt" visibility="hidden" format="#,###" style="text-align:right; padding-right:10; "/>
  288. <col ref="cnfmcnts"/>
  289. <col ref="issresn" visibility="hidden"/>
  290. <col ref="acptmthd" type="combo" visibility="visible" style="text-align:center; ">
  291. <choices>
  292. <item>
  293. <label>직접수령</label>
  294. <value>1</value>
  295. </item>
  296. <item>
  297. <label>우편수령</label>
  298. <value>2</value>
  299. </item>
  300. </choices>
  301. </col>
  302. <col ref="telno" visibility="hidden"/>
  303. <col ref="email" visibility="hidden"/>
  304. <col ref="zipcd1" visibility="hidden"/>
  305. <col ref="zipcd2" visibility="hidden"/>
  306. <col ref="addr" visibility="hidden"/>
  307. <col ref="emailid" visibility="hidden"/>
  308. <col ref="emailaddr" visibility="hidden"/>
  309. <col ref="etcemailaddr" visibility="hidden"/>
  310. <script type="javascript" ev:event="onaftersort">
  311. <![CDATA[
  312. grd_crtfctkindlist.gridToInstance();
  313. ]]>
  314. </script>
  315. <script type="javascript" ev:event="onrowchanged">
  316. <![CDATA[
  317. /*grd_crtfctkindlist.rebuildStyle();
  318. grd_crtfctkindlist.rowstyle(grd_crtfctkindlist.row, "data", "background-color") = "#ffeebb";
  319. //btn_save2.visible = false;
  320. //btn_save.visible = true;
  321. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  322. model.refresh();*/
  323. ]]>
  324. </script>
  325. </datagrid>
  326. <caption id="caption2" style="left:975px; top:22px; width:50px; height:15px; ">신청자</caption>
  327. <caption id="caption7" style="left:905px; top:22px; width:50px; height:15px; ">대상자</caption>
  328. <output id="output1" style="left:950px; top:20px; width:20px; height:19px; background-color:white; border-style:solid; "/>
  329. <output id="output2" style="left:880px; top:20px; width:20px; height:19px; background-color:#ffff99; border-style:solid; "/>
  330. <caption id="caption1" style="left:1045px; top:22px; width:50px; height:15px; ">발급자</caption>
  331. <output id="output4" style="left:1020px; top:20px; width:20px; height:19px; background-color:#FFCC66; border-style:solid; "/>
  332. <select1 id="cmb_supinfqurtyyflag" ref="/root/send/search/supinfqurtyyflag" class="combo_s_essential" appearance="minimal" style="left:105px; top:21px; width:100px; height:19px; ">
  333. <choices>
  334. <itemset>
  335. <label/>
  336. <value/>
  337. </itemset>
  338. </choices>
  339. </select1>
  340. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:15px; top:22px; width:86px; height:17px; ">상하반기 :</caption>
  341. </group>
  342. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  343. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  344. <button id="button1" class="btn4_letter2" style="left:1125px; top:0px; width:56px; height:22px; ">
  345. <caption>저장</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. save();
  349. search();
  350. ]]>
  351. </script>
  352. </button>
  353. </group>
  354. </xhtml:body>
  355. </xhtml:html>