SMZBC00600_업무규칙일괄등록.xrw 13 KB

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