SMRCS99900_KRI코드매핑.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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>SMRPC99900_KRI코드매핑</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grid>
  11. <kricodelist/>
  12. <nucodelist/>
  13. <mapheadlist/>
  14. </grid>
  15. </main>
  16. <search>
  17. <defaultval/>
  18. <kridtcd/>
  19. <nudtcd/>
  20. <outvalue/>
  21. <kriflag>C</kriflag>
  22. <krischnm/>
  23. <nuflag>M</nuflag>
  24. <nuschnm/>
  25. <kricd/>
  26. <nucd/>
  27. </search>
  28. <init>
  29. <kricd>
  30. <kridtcd/>
  31. <kridtcdnm/>
  32. </kricd>
  33. <nucd>
  34. <nudtcd/>
  35. <nudtcdnm/>
  36. </nucd>
  37. </init>
  38. <temp>
  39. </temp>
  40. </root>
  41. </instance>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. // user 권한체크
  45. fCheckAuth() ;
  46. fInit() ;
  47. model.refresh();
  48. ]]>
  49. </script>
  50. <submission id="TRRCS99901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/main/grid"/>
  51. <submission id="TRRCS99902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/main/grid"/>
  52. <submission id="TRRCS99903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/init/kricd"/>
  53. <submission id="TRRCS99904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/init/nucd"/>
  54. <submission id="TXRCS99901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid" resultref="/root/temp"/>
  55. </model>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript">
  60. <![CDATA[
  61. var FLAG = false;
  62. //========================================================================================
  63. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  64. //========================================================================================
  65. function fCheckAuth() {
  66. // btn_search.disabled = !checkAuth("R") ;
  67. btn_save.disabled = !checkAuth("X") ;
  68. }
  69. function fInit() {
  70. model.removeNodeset(grd_kricodelist.nodeset);
  71. model.removeNodeset(grd_nucodelist.nodeset);
  72. model.removeNodeset(grd_mapheadlist.nodeset);
  73. misfMsterDetailSet(grd_kricodelist,null, "TRRCS99901" ,"N");
  74. misfMsterDetailSet(grd_nucodelist,null, "TRRCS99901" ,"N");
  75. misfMsterDetailSet(grd_mapheadlist,grd_kricodelist, "TRRCS99902" ,"Y");
  76. misfMsterDetailRetrieve();
  77. model.refresh();
  78. }
  79. ]]>
  80. </script>
  81. </xhtml:head>
  82. <xhtml:body style="margin-left:8; margin-right:8; ">
  83. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  84. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">KRI코드매핑</caption>
  85. </group>
  86. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  87. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  88. <line id="line8" class="line_1" style="x1:0px; y1:44px; x2:1192px; y2:44px; "/>
  89. <button id="btn_del" class="btn2_letter3" style="left:1070px; top:475px; width:53px; height:19px; ">
  90. <caption>행삭제</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. if(!isRequiredControls("ipt_appyy")) return;
  94. misfGridIUD(grd_mapheadlist, "D");
  95. model.refresh();
  96. ]]>
  97. </script>
  98. </button>
  99. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:475px; width:64px; height:19px; ">
  100. <caption>엑셀저장</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. misfSaveExcel(grd_mapheadlist);
  104. ]]>
  105. </script>
  106. </button>
  107. <line id="line1" class="line_1" style="x1:0px; y1:495px; x2:1192px; y2:495px; "/>
  108. <select id="lst_nudtcd" ref="/root/search/nudtcd" overflow="scroll" appearance="compact" sep="|" style="left:896px; top:75px; width:295px; height:372px; ">
  109. <choices>
  110. <itemset nodeset="/root/init/nucd">
  111. <label ref="nudtcdnm"/>
  112. <value ref="nudtcd"/>
  113. </itemset>
  114. </choices>
  115. </select>
  116. <caption id="cap_grupjobln" class="cell_1" style="left:0px; top:49px; width:297px; height:25px; font-weight:bold; text-align:center; ">KRI코드</caption>
  117. <caption id="cap_jobln" class="cell_1" style="left:298px; top:49px; width:297px; height:25px; font-weight:bold; text-align:center; ">세부코드</caption>
  118. <caption id="cap_jobkind" class="cell_1" style="left:895px; top:49px; width:297px; height:25px; font-weight:bold; text-align:center; ">세부코드</caption>
  119. <img id="btn_addtrgtman" class="icon_bottom" style="left:583px; top:473px; width:26px; height:19px; background-stretch:stretch; ">
  120. <script type="javascript" ev:event="onclick">
  121. <![CDATA[
  122. if(!isRequiredControls("ipt_instcd")) return;
  123. if(cmb_healcarevalucd.value == '' ) {
  124. messageBox("의평직종을 선택하세요.","I999");
  125. model.setFocus("cmb_healcarevalucd.input");
  126. return;
  127. }
  128. if(!isRequiredControls("lst_grupjobln")) return;
  129. if(!isRequiredControls("lst_jobln")) return;
  130. if(!isRequiredControls("lst_jobkind")) return;
  131. var nudtcd = lst_nudtcd.value;
  132. var nudtcdnm = lst_nudtcd.label;
  133. nudtcdnmlist = nudtcdnm.split("|");
  134. nudtcdlist = nudtcd.split("|");
  135. for ( var i = 0; i < nudtcdlist.length ; i++ ) {
  136. // grd_healcarelist.addRow(false);
  137. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("appyy")) = ipt_appyy.value;
  138. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("instcd")) = ipt_instcd.value ;
  139. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("instnm")) = ipt_instnm.value ;
  140. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("healcarecd")) = cmb_healcarevalucd.value ;
  141. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("healcarenm")) = cmb_healcarevalucd.label ;
  142. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("grupjobln")) = lst_grupjobln.label ;
  143. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("grupjoblncd")) = lst_grupjobln.value ;
  144. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobln")) = lst_jobln.label ;
  145. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("joblncd")) = lst_jobln.value ;
  146. //
  147. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobkind")) = jobkindnmlist[i] ;
  148. // grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobkindcd")) = jobkindlist[i] ;
  149. }
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </img>
  154. <button id="btn_save" class="btn5_letter2" style="left:1020px; top:475px; width:42px; height:19px; ">
  155. <caption>저장</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. if( checkKeyColumn("grd_healcarelist") == false) return;
  159. if( misfSave("TXRPS05001") ) {
  160. messageBox("","I001");
  161. btn_init.dispatch("DOMActivate");
  162. btn_search.dispatch("DOMActivate");
  163. }
  164. ]]>
  165. </script>
  166. </button>
  167. <caption id="caption2" class="cell_1" style="left:598px; top:49px; width:296px; height:25px; font-weight:bold; text-align:center; ">nU코드</caption>
  168. <datagrid id="grd_kricodelist" nodeset="/root/main/grid/kricodelist" caption="코드^코드명" colsep="^" colwidth="90, 193" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:75px; width:296px; height:372px; ">
  169. <col ref="kricd"/>
  170. <col ref="kricdnm"/>
  171. <script type="javascript" ev:event="onrowchanged">
  172. <![CDATA[
  173. model.setValue("/root/search/kricd",grd_kricodelist.valueMatrix(grd_kricodelist.row,grd_kricodelist.colRef("kricd")));
  174. submit("TRRCS99903");
  175. model.refresh();
  176. ]]>
  177. </script>
  178. </datagrid>
  179. <output id="opt_comment" ref="/root/search/outvalue" style="left:265px; top:10px; width:590px; height:25px; font-size:14pt; "/>
  180. <datagrid id="grd_nucodelist" nodeset="/root/main/grid/nucodelist" caption="코드^코드명" colsep="^" colwidth="90, 193" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:598px; top:75px; width:296px; height:372px; ">
  181. <col ref="nucd"/>
  182. <col ref="nucdnm"/>
  183. <script type="javascript" ev:event="onrowchanged">
  184. <![CDATA[
  185. model.setValue("/root/search/nucd",grd_kricodelist.valueMatrix(grd_nucodelist.row,grd_nucodelist.colRef("nucd")));
  186. submit("TRRCS99904");
  187. model.refresh();
  188. ]]>
  189. </script>
  190. </datagrid>
  191. <datagrid id="grd_mapheadlist" nodeset="/root/main/grid/mapheadlist" caption="KRI코드^KRI코드명^KRI세부코드^KRI세부코드명^nU코드^nU코드명^nU세부코드^nU세부코드명^default" colsep="^" colwidth="100, 140, 100, 200, 100, 140, 100, 200, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:500px; width:1190px; height:225px; ">
  192. <col ref="kricd" _key="true" style="text-align:center; "/>
  193. <col ref="kricdnm" _key="true" style="text-align:center; "/>
  194. <col ref="krtdtcd"/>
  195. <col ref="krtdtcdnm"/>
  196. <col ref="nucd" _key="true" style="text-align:center; "/>
  197. <col ref="nucdnm" style="text-align:center; "/>
  198. <col ref="nudtcd"/>
  199. <col ref="nudtcdnm"/>
  200. <col ref="defaultval"/>
  201. </datagrid>
  202. <caption id="caption1" class="cell_1" style="left:896px; top:450px; width:120px; height:20px; font-weight:bold; text-align:center; ">Default값</caption>
  203. <input id="ipt_default" ref="/root/search/defaultval" style="left:1019px; top:450px; width:172px; height:19px; "/>
  204. <select1 id="combo1" ref="/root/search/kriflag" appearance="minimal" style="left:3px; top:450px; width:95px; height:19px; ">
  205. <choices>
  206. <item>
  207. <label>코드</label>
  208. <value>C</value>
  209. </item>
  210. <item>
  211. <label>코드명</label>
  212. <value>M</value>
  213. </item>
  214. </choices>
  215. </select1>
  216. <input id="ipt_krischnm" ref="/root/search/krischnm" style="left:101px; top:450px; width:150px; height:19px; "/>
  217. <button id="btn_krisearch" class="btn2_letter2" style="left:254px; top:450px; width:42px; height:19px; ">
  218. <caption>찾기</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. if(!isRequiredControls("ipt_krischnm")) return;
  222. misfMsterDetailRetrieve();
  223. model.refresh();
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="btn_nusearch" class="btn2_letter2" style="left:850px; top:450px; width:42px; height:19px; ">
  228. <caption>찾기</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. if(!isRequiredControls("ipt_appyy")) return;
  232. misfMsterDetailRetrieve();
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <select1 id="cmb_nuflag" ref="/root/search/nuflag" appearance="minimal" style="left:599px; top:450px; width:95px; height:19px; ">
  238. <choices>
  239. <item>
  240. <label>코드</label>
  241. <value>C</value>
  242. </item>
  243. <item>
  244. <label>코드명</label>
  245. <value>M</value>
  246. </item>
  247. </choices>
  248. </select1>
  249. <input id="ipt_nuschnm" ref="/root/search/nuschnm" style="left:697px; top:450px; width:150px; height:19px; "/>
  250. <select id="lst_kridtcd" ref="/root/search/kridtcd" overflow="scroll" appearance="compact" style="left:298px; top:75px; width:297px; height:394px; ">
  251. <choices>
  252. <itemset nodeset="/root/init/kricd">
  253. <label ref="kridtcdnm"/>
  254. <value ref="kridtcd"/>
  255. </itemset>
  256. </choices>
  257. </select>
  258. </group>
  259. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  260. <button id="button1" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  261. <caption>저장</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. ]]>
  265. </script>
  266. </button>
  267. </group>
  268. </xhtml:body>
  269. </xhtml:html>