SMZBC00700_유형코드일괄등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. <bizlist>
  11. <biz/>
  12. </bizlist>
  13. </main>
  14. <send>
  15. <data>
  16. </data>
  17. </send>
  18. <hidden>
  19. <temp/>
  20. </hidden>
  21. </root>
  22. </instance>
  23. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  24. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  25. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  26. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC004.js"/>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. ]]>
  30. </script>
  31. <submission id="TRZBC00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/bizlist"/>
  32. <submission id="TXZBC00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/bizlist"/>
  33. <submission id="TXZBC00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  34. <submission id="TXZBC00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  35. <submission id="TXZBC00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance"/>
  36. <submission id="TXZBC00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. ]]>
  42. </script>
  43. </xhtml:head>
  44. <xhtml:body guideline="1,1198;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  45. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  46. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">유형코드일괄등록</caption>
  47. </group>
  48. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  49. <line id="line5" class="line_2" style="x1:0px; y1:598px; x2:1194px; y2:598px; "/>
  50. <group id="group4" style="left:1045px; top:10px; width:145px; height:32px; ">
  51. <button id="button10" class="btn2_letter4" style="left:73px; top:11px; width:64px; height:19px; ">
  52. <caption>엑셀입력</caption>
  53. <script type="javascript" ev:event="DOMActivate">
  54. <![CDATA[
  55. var fileName = window.fileDialog("open", "", false);
  56. datagrid2.loadExcel(fileName);
  57. for (i=datagrid2.fixedRows; i<datagrid2.rows; i++){
  58. datagrid2.rowStatus(i) = 1;
  59. }
  60. ]]>
  61. </script>
  62. </button>
  63. <button id="button11" class="btn2_letter4" style="left:6px; top:11px; width:64px; height:19px; ">
  64. <caption>엑셀저장</caption>
  65. <script type="javascript" ev:event="DOMActivate">
  66. <![CDATA[
  67. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  68. if (fileName != "")
  69. {
  70. datagrid2.saveExcel();
  71. }
  72. ]]>
  73. </script>
  74. </button>
  75. </group>
  76. <output id="opt_modellabel" ref="/root/main/mode/modelabel" class="tit_2" style="left:0px; top:555px; width:269px; height:13px; "/>
  77. <caption id="caption7" class="cell_1" style="left:0px; top:575px; width:100px; height:23px; vertical-align:middle; ">우편번호 앞자리</caption>
  78. <caption id="caption20" class="tit_2" style="left:6px; top:35px; width:118px; height:13px; ">업무규칙 목록</caption>
  79. <line id="line8" class="line_1" style="x1:0px; y1:50px; x2:1194px; y2:50px; "/>
  80. <caption id="caption22" class="cell_1" style="left:0px; top:600px; width:100px; height:135px; vertical-align:middle; ">
  81. <![CDATA[업무규칙
  82. 상세설명]]>
  83. </caption>
  84. <caption id="caption24" class="cell_1" style="left:0px; top:575px; width:100px; height:23px; vertical-align:middle; ">업무규칙 ID</caption>
  85. <textarea id="tar_bizdesc" ref="/root/main/data/detldesc" style="left:105px; top:605px; width:1080px; height:125px; "/>
  86. <select1 id="cmb_delyn" ref="/root/main/data/delyn" class="combo_essential" appearance="minimal" style="left:495px; top:576px; width:45px; height:19px; ">
  87. <choices>
  88. <item>
  89. <label>Y</label>
  90. <value>Y</value>
  91. </item>
  92. <item>
  93. <label>N</label>
  94. <value>N</value>
  95. </item>
  96. </choices>
  97. </select1>
  98. <caption id="caption1" class="cell_1" style="left:195px; top:575px; width:100px; height:23px; vertical-align:middle; ">업무규칙 이름</caption>
  99. <input id="ipt_biznm" ref="/root/main/data/biznm" class="input_essential" style="left:300px; top:576px; width:85px; height:19px; "/>
  100. <caption id="caption3" class="cell_1" style="left:390px; top:575px; width:100px; height:23px; vertical-align:middle; ">삭제여부</caption>
  101. <input id="ipt_bizid" ref="/root/main/data/bizid" class="input_essential" style="left:105px; top:576px; width:85px; height:19px; "/>
  102. <line id="line7" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
  103. <datagrid id="datagrid2" nodeset="/root/main/bizlist/biz" caption="업무규칙 ID^업무규칙 이름^업무규칙 상세설명^삭제여부^권한기관코드^권한기관명^권한부서코드^권한부서명^최초등록자ID^최초등록자이름^최초등록일시^최종수정자ID^최종수정자이름^최종수정일시" colwidth="100, 150, 200, 68, 100, 100, 100, 100, 99, 100, 150, 101, 100, 150" dataheight="25" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tootip="true" style="left:0px; top:55px; width:1194px; height:457px; border-color:#808080; ">
  104. <col ref="bizid"/>
  105. <col ref="biznm"/>
  106. <col ref="detldesc"/>
  107. <col ref="delyn"/>
  108. <col ref="authinstcd"/>
  109. <col ref="authinstnm"/>
  110. <col ref="authdeptcd"/>
  111. <col ref="authdeptnm"/>
  112. <col ref="fstrgstrid"/>
  113. <col ref="fstrgstrnm"/>
  114. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  115. <col ref="lastupdtrid"/>
  116. <col ref="lastupdtrnm"/>
  117. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  118. <script type="javascript" ev:event="ondblclick">
  119. <![CDATA[
  120. fGetBiz();
  121. ]]>
  122. </script>
  123. </datagrid>
  124. </group>
  125. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  126. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  127. <caption>초기화</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. model.dispatch("xforms-ready");
  131. ]]>
  132. </script>
  133. </button>
  134. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  135. <caption>저장</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. var update_data = grd_kindcodelist.getUpdateData();
  139. alert("update_data : "+update_data);
  140. model.setValue("/root/send/data", update_data);
  141. var success = submit("TXZBC00123");
  142. if(success){
  143. alert("성공적으로 처리되었습니다.");
  144. for(var i=datagrid2.fixedRows; i<datagrid2.rows; i++){
  145. datagrid2.rowStatus(i) = 0;
  146. }
  147. }
  148. ]]>
  149. </script>
  150. </button>
  151. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  152. </group>
  153. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  154. <group id="group5" style="left:1045px; top:10px; width:145px; height:32px; ">
  155. <button id="button1" class="btn2_letter4" style="left:73px; top:11px; width:64px; height:19px; ">
  156. <caption>엑셀입력</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. var fileName = window.fileDialog("open", "", false);
  160. datagrid2.loadExcel(fileName);
  161. for (i=datagrid2.fixedRows; i<datagrid2.rows; i++){
  162. datagrid2.rowStatus(i) = 1;
  163. }
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="button2" class="btn2_letter4" style="left:6px; top:11px; width:64px; height:19px; ">
  168. <caption>엑셀저장</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  172. if (fileName != "")
  173. {
  174. datagrid2.saveExcel();
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. </group>
  180. <caption id="caption4" class="tit_2" style="left:6px; top:35px; width:118px; height:13px; ">업무규칙 목록</caption>
  181. <line id="line2" class="line_1" style="x1:0px; y1:50px; x2:1194px; y2:50px; "/>
  182. <line id="line3" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
  183. <datagrid id="datagrid1" nodeset="/root/main/bizlist/biz" caption="업무규칙 ID^업무규칙 이름^업무규칙 상세설명^삭제여부^권한기관코드^권한기관명^권한부서코드^권한부서명^최초등록자ID^최초등록자이름^최초등록일시^최종수정자ID^최종수정자이름^최종수정일시" colwidth="100, 150, 200, 68, 100, 100, 100, 100, 99, 100, 150, 101, 100, 150" dataheight="25" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tootip="true" style="left:0px; top:55px; width:1194px; height:457px; border-color:#808080; ">
  184. <col ref="bizid"/>
  185. <col ref="biznm"/>
  186. <col ref="detldesc"/>
  187. <col ref="delyn"/>
  188. <col ref="authinstcd"/>
  189. <col ref="authinstnm"/>
  190. <col ref="authdeptcd"/>
  191. <col ref="authdeptnm"/>
  192. <col ref="fstrgstrid"/>
  193. <col ref="fstrgstrnm"/>
  194. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  195. <col ref="lastupdtrid"/>
  196. <col ref="lastupdtrnm"/>
  197. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  198. </datagrid>
  199. </group>
  200. <group id="group6" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  201. <group id="group7" style="left:1045px; top:15px; width:145px; height:32px; ">
  202. <button id="button3" class="btn2_letter4" style="left:73px; top:11px; width:64px; height:19px; ">
  203. <caption>엑셀입력</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. var fileName = window.fileDialog("open", "", false);
  207. if(fileName==""||fileName==null){
  208. alert("입력할 엑셀파일을 선택하세요.");
  209. return;
  210. }
  211. grd_kindcodelist.loadExcel(fileName);
  212. var nodeList = instance1.selectNodes("/root/main/bizlist/biz");
  213. var node;
  214. var process;
  215. while( node = nodeList.nextNode() ) {
  216. process = node.process.text;
  217. if(process != "수정" && process != "변경" && process != "추가" && process != "등록" && process != "입력" && process != "제거" && process != "삭제") {
  218. model.removenode(node);
  219. }
  220. }
  221. grd_kindcodelist.refresh();
  222. for (i=grd_kindcodelist.fixedRows; i<grd_kindcodelist.rows; i++){
  223. var status = grd_kindcodelist.valueMatrix(i, 1);
  224. if(status=="수정"||status=="변경"){
  225. grd_kindcodelist.rowStatus(i) = 2;
  226. }else if(status=="추가"||status=="입력"||status=="등록"){
  227. grd_kindcodelist.rowStatus(i) = 1;
  228. }else if(status=="제거"||status=="삭제"){
  229. grd_kindcodelist.rowStatus(i) = 4;
  230. }
  231. }
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="button4" class="btn2_letter4" style="left:6px; top:11px; width:64px; height:19px; ">
  236. <caption>엑셀저장</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  240. if (fileName != "")
  241. {
  242. grd_kindcodelist.saveExcel(fileName);
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. </group>
  248. <caption id="caption2" class="tit_2" style="left:6px; top:35px; width:118px; height:14px; ">유형코드목록</caption>
  249. <line id="line1" class="line_1" style="x1:0px; y1:50px; x2:1194px; y2:50px; "/>
  250. <line id="line4" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
  251. <datagrid id="grd_kindcodelist" nodeset="/root/main/bizlist/biz" caption="처리형태^기관코드^기관명^업무규칙ID^업무규칙명^코드군ID^코드군명^코드ID^코드명^출력순서^최초등록자ID^최초등록자명^최종수정자ID^최종수정자명^권한기관코드^권한기관명^권한부서코드^권한부서명^적용시작일자^적용종료일자" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 68, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tootip="true" style="left:0px; top:55px; width:1194px; height:670px; border-color:#808080; ">
  252. <col ref="process"/>
  253. <col ref="instcd"/>
  254. <col ref="instnm"/>
  255. <col ref="bizid"/>
  256. <col ref="biznm"/>
  257. <col ref="cdgrupid"/>
  258. <col ref="cdgrupnm"/>
  259. <col ref="cdid"/>
  260. <col ref="cdnm"/>
  261. <col ref="dispseq"/>
  262. <col ref="fstrgstrid"/>
  263. <col ref="fstrgstrnm"/>
  264. <col ref="lastupdtrid"/>
  265. <col ref="lastupdtrnm"/>
  266. <col ref="authinstcd"/>
  267. <col ref="authinstnm"/>
  268. <col ref="authdeptcd"/>
  269. <col ref="authdeptnm"/>
  270. <col ref="valifromdd"/>
  271. <col ref="valitodd"/>
  272. </datagrid>
  273. </group>
  274. </xhtml:body>
  275. </xhtml:html>