SMRTH00500_전공의계좌관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <acntnolist>
  11. <instcd/>
  12. <dutplceinst/>
  13. <dutdeptcd/>
  14. <bankcd/>
  15. </acntnolist>
  16. </main>
  17. <send>
  18. <name/>
  19. <emplno/>
  20. <preststatcd/>
  21. <instcd/>
  22. <dutplceinst/>
  23. <dutdeptcd/>
  24. <prfshipflag/>
  25. <anual/>
  26. <bankcd/>
  27. <acntno/>
  28. <acntnolist/>
  29. </send>
  30. <init>
  31. </init>
  32. <hidden/>
  33. <temp/>
  34. </root>
  35. </instance>
  36. <submission id="TRRTH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntnolist"/>
  37. <submission id="TXRTH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acntnolist" resultref="/root/temp"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  44. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. misfGridInit(grd_acntnolist);
  49. misfMsterDetailSet(grd_acntnolist, null, "TRRTH00501", "Y");
  50. rthfComboComCdList('R0314', cmb_instcd);
  51. rthfComboComCdList('R0314', cmb_dutplceinst,'Y');
  52. misfGridComboComCdList("Z0007",grd_acntnolist,"instcd");
  53. misfGridComboComCdList("Z0007",grd_acntnolist,"dutplceinst");
  54. misfGridComboComCdList("R0242",grd_acntnolist,"bankcd");
  55. misfComboComCdList('R0151', cmb_trngflag,'Y');
  56. misfComboComCdList('R0242', cmb_bankcd,'Y');
  57. misfComboComCdList('R0146', cmb_preststatcd,'Y');
  58. misfComboComCdList('R0234', cmb_dutdeptcd,'Y');
  59. misfComboComCdList('R0281', cmb_anual,'Y');
  60. addComboItem( "cmb_instcd", "가톨릭중앙의료원", "001", "above");
  61. addComboItem( "cmb_instcd", "전체", "", "above");
  62. model.setValue("/root/send/preststatcd", "01");
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <script type="javascript">
  67. <![CDATA[
  68. //========================================================================================
  69. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  70. //========================================================================================
  71. function fCheckAuth() {
  72. btn_search.disabled =!checkAuth("R") ;
  73. btn_save.disabled = !checkAuth("X") ;
  74. }
  75. //콤보에 공통코드 Setting
  76. /*
  77. pcdgrupid : 공통코드군
  78. pcontrol_name : Data를 받을 Control
  79. */
  80. function rthfComboComCdList(pcdgrupid, pcontrol_name,pall) {
  81. var control_id = pcontrol_name.attribute("id");
  82. var comcd_node = "/root/send/comcdref";
  83. var comcd_rsltnode = "/root/init/comcd";
  84. var comcd_itemset = "/root/init/" + control_id;
  85. model.removeNodeset(comcd_node);
  86. model.removeNodeset(comcd_itemset);
  87. model.makeNode(comcd_node);
  88. model.makeNode(comcd_node + "/cdgrupid");
  89. model.makeNode(comcd_node + "/cdid");
  90. model.makeNode(comcd_node + "/cdnm");
  91. model.makeNode(comcd_node + "/refcond");
  92. model.makeNode(comcd_rsltnode);
  93. model.makeNode(comcd_itemset);
  94. pcontrol_name.choices.itemset.attribute("nodeset") = comcd_itemset+"/comcodelist";
  95. pcontrol_name.choices.itemset.label.attribute("ref") = "detldesc";
  96. pcontrol_name.choices.itemset.value.attribute("ref") = "cdid";
  97. pcontrol_name.refresh();
  98. model.setValue(comcd_node + "/cdgrupid", pcdgrupid);
  99. model.setValue(comcd_node + "/cdid","%");
  100. model.setValue(comcd_node + "/cdnm","%");
  101. model.removeChild("TRRPZ00301");
  102. model.createChild("xforms:submission", "id:TRRPZ00301;mediatype:application/x-www-form-urlencoded; method:post; ref:" + comcd_node + "; resultref:" + comcd_rsltnode + "; ");
  103. submit("TRRPZ00301");
  104. if(pall != null && pall == "Y")
  105. {
  106. /*
  107. model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/cdnm", "전체");
  108. model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/cdid", "");
  109. sourcenode = document.models(0).instances(0).selectSingleNode(comcd_rsltnode);
  110. tarnode = document.models(0).instances(0).selectSingleNode(comcd_itemset);
  111. var sourcenodelist = sourcenode.childNodes;
  112. while (childNode = sourcenodelist.nextNode())tarnode.appendChild(childNode);
  113. */
  114. model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/detldesc", "전체");
  115. model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/cdid", "");
  116. sourcenode = document.models(0).instances(0).selectSingleNode(comcd_rsltnode);
  117. tarnode = document.models(0).instances(0).selectSingleNode(comcd_itemset);
  118. cnt = 1;
  119. var sourcenodelist = sourcenode.childNodes;
  120. while (childNode = sourcenodelist.nextNode())
  121. {
  122. model.makeValue(comcd_itemset+"/comcodelist[" +(cnt + 1)+ "]/detldesc", childNode.getXPathString(comcd_rsltnode + "/comcodelist[" +cnt + "]/detldesc"));
  123. model.makeValue(comcd_itemset+"/comcodelist[" +(cnt + 1)+ "]/cdid", childNode.getXPathString(comcd_rsltnode + "/comcodelist[" +cnt + "]/cdid"));
  124. cnt++;
  125. }
  126. }
  127. else model.copyNode(comcd_itemset,comcd_rsltnode);
  128. model.refresh();
  129. //if(pcontrol_name.length == 1) pcontrol_name.selectedindex= 0;
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body style="margin-left:8; margin-right:8; ">
  135. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  136. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전공의 계좌 관리</caption>
  137. </group>
  138. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  139. <datagrid id="grd_acntnolist" nodeset="/root/main/acntnolist" caption="이 름^사원번호^소속기관^근무기관^근무부서^전공과^구 분^년 차^은행^계좌번호" colsep="^" colwidth="80, 80, 120, 120, 120, 100, 100, 100, 100, 200" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:125px; width:1195px; height:609px; ">
  140. <col ref="name" type="output"/>
  141. <col ref="emplno" type="output"/>
  142. <col ref="instcd" type="combo">
  143. <choices>
  144. <itemset>
  145. <label/>
  146. <value/>
  147. </itemset>
  148. </choices>
  149. </col>
  150. <col ref="dutplceinst" type="combo">
  151. <choices>
  152. <itemset>
  153. <label/>
  154. <value/>
  155. </itemset>
  156. </choices>
  157. </col>
  158. <col ref="dutdeptcd"/>
  159. <col ref="frmrmertnm"/>
  160. <col ref="prfshipflag" type="output"/>
  161. <col ref="anual" type="output"/>
  162. <col ref="bankcd" type="combo">
  163. <choices>
  164. <itemset>
  165. <label/>
  166. <value/>
  167. </itemset>
  168. </choices>
  169. </col>
  170. <col ref="acntno" type="input"/>
  171. <script type="javascript" ev:event="onaftersort">
  172. <![CDATA[
  173. grd_acntnolist.gridToInstance();
  174. ]]>
  175. </script>
  176. </datagrid>
  177. <group id="group6" style="left:0px; top:10px; width:1195px; height:89px; vertical-align:top; ">
  178. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:89px; "/>
  179. <caption id="cap_name" class="search_name" style="left:15px; top:9px; width:85px; height:17px; ">이 름 :</caption>
  180. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:36; width:100; height:19px; ">
  181. <choices>
  182. <itemset>
  183. <label/>
  184. <value/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. <caption id="cap_emplno" class="search_name" style="left:250px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
  189. <select1 id="cmb_dutplceinst" ref="/root/send/dutplceinst" class="combo_s_essential" appearance="minimal" style="left:335px; top:36px; width:100px; height:19px; ">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <caption id="cap_dutdeptcd" class="search_name" style="left:465px; top:35px; width:86px; height:17px; ">근무부서 :</caption>
  198. <caption id="cap_prfshipflag" class="search_name" style="left:705px; top:35px; width:85px; height:17px; ">구 분 :</caption>
  199. <select1 id="cmb_dutdeptcd" ref="/root/send/dutdeptcd" class="combo_s_essential" appearance="minimal" style="left:550px; top:36px; width:100px; height:19px; ">
  200. <choices>
  201. <itemset>
  202. <label/>
  203. <value/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <select1 id="cmb_trngflag" ref="/root/send/prfshipflag" class="combo_s_essential" appearance="minimal" style="left:790px; top:36px; width:100px; height:19px; ">
  208. <choices>
  209. <itemset>
  210. <label/>
  211. <value/>
  212. </itemset>
  213. </choices>
  214. </select1>
  215. <input id="ipt_name" ref="/root/send/name" class="input_default" style="left:100px; top:10px; width:100; height:19px; "/>
  216. <caption id="cap_drlino" class="search_name" style="left:465px; top:9px; width:86px; height:17px; ">면허번호 :</caption>
  217. <caption id="preststatcd" class="search_name" style="left:705px; top:9px; width:83px; height:17px; ">현 상 태 :</caption>
  218. <select1 id="cmb_preststatcd" ref="/root/send/preststatcd" class="combo_s_essential" appearance="minimal" style="left:790px; top:10px; width:100px; height:19px; ">
  219. <choices>
  220. <itemset>
  221. <label/>
  222. <value/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <input id="ipt_drlino" class="input_default" style="left:550px; top:10px; width:100px; height:19px; "/>
  227. <input id="ipt_emplno" ref="/root/send/emplno" class="input_default" style="left:335px; top:10px; width:100px; height:19px; "/>
  228. <caption id="cap_instcd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">소속기관 :</caption>
  229. <caption id="cap_dutplceinst" class="search_name" style="left:250px; top:35px; width:86px; height:17px; ">근무기관 :</caption>
  230. <caption id="cap_anual" class="search_name" style="left:705px; top:61px; width:85px; height:17px; ">년 차 :</caption>
  231. <select1 id="cmb_anual" ref="/root/send/anual" class="combo_s_essential" appearance="minimal" style="left:790px; top:62px; width:100px; height:19px; ">
  232. <choices>
  233. <itemset>
  234. <label/>
  235. <value/>
  236. </itemset>
  237. </choices>
  238. </select1>
  239. <caption id="cap_bankcd" class="search_name" style="left:15px; top:61px; width:86px; height:17px; ">은행코드 :</caption>
  240. <select1 id="cmb_bankcd" ref="/root/send/bankcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:62px; width:100; height:19px; ">
  241. <choices>
  242. <itemset>
  243. <label/>
  244. <value/>
  245. </itemset>
  246. </choices>
  247. </select1>
  248. <caption id="cap_acntno" class="search_name" style="left:250px; top:61px; width:86px; height:17px; ">계좌번호 :</caption>
  249. <input id="ipt_acntno" ref="/root/send/acntno" class="input_default" style="left:335px; top:62px; width:315px; height:19px; "/>
  250. <line id="line14" class="line_4" style="x1:1108px; y1:9px; x2:1108px; y2:76px; "/>
  251. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1123px; top:31px; width:56px; height:22px; text-align:left; ">
  252. <caption>조회</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. // submit("TRRTH00501");
  256. var updtdata = getGridUpdateData(grd_acntnolist);
  257. //기관코드 값 체크
  258. if ( updtdata != "")
  259. {
  260. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  261. if (ret != 6) { // not OK
  262. return;
  263. }
  264. }
  265. misfMsterDetailRetrieve();
  266. model.refresh();
  267. ]]>
  268. </script>
  269. </button>
  270. </group>
  271. <line id="line19" class="line_1" style="x1:0px; y1:120px; x2:1195px; y2:120px; "/>
  272. <button id="btn_save" class="btn5_letter2" style="left:1150px; top:100px; width:42px; height:19px; ">
  273. <caption>저장</caption>
  274. <script type="javascript" ev:event="DOMActivate">
  275. <![CDATA[
  276. var updtdata = getGridUpdateData(grd_acntnolist);
  277. //기관코드 값 체크
  278. if ( updtdata == "")
  279. {
  280. messageBox("그리드에 수정된 데이터가 ","I004");
  281. return;
  282. }
  283. misfSave("TXRTH00501");
  284. model.refresh();
  285. ]]>
  286. </script>
  287. </button>
  288. <button id="btn_excelsave" class="btn2_letter4" style="left:1085px; top:100px; width:64px; height:19px; ">
  289. <caption>엑셀저장</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  293. if (fileName != "")
  294. {
  295. grd_acntnolist.saveExcel(fileName, "SheetName", true, true, "", "");
  296. }
  297. ]]>
  298. </script>
  299. </button>
  300. </group>
  301. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  302. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  303. </group>
  304. </xhtml:body>
  305. </xhtml:html>