SMZBC00400_업무규칙관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. <bizid/>
  13. <biznm/>
  14. <detldesc/>
  15. <delyn/>
  16. <fstrgstdt/>
  17. <fstrgstrid/>
  18. <lastrgstdt/>
  19. <lastrgstrid/>
  20. </biz>
  21. </bizlist>
  22. <search>
  23. <searchcondition>bizid</searchcondition>
  24. <searchterm/>
  25. </search>
  26. <mode>
  27. <modestatus/>
  28. <modelabel/>
  29. </mode>
  30. <data>
  31. <bizid/>
  32. <biznm/>
  33. <fstrgstrid/>
  34. <lastrgstdt/>
  35. <lastrgstrid/>
  36. <delyn/>
  37. <detldesc/>
  38. </data>
  39. </main>
  40. <send>
  41. <data>
  42. </data>
  43. </send>
  44. <hidden>
  45. <temp/>
  46. </hidden>
  47. </root>
  48. </instance>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  52. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC004.js"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.setValue("/root/main/search/searchcondition", "bizid");
  56. model.setValue("/root/main/search/searchterm", "");
  57. model.removenode("/root/main/bizlist");
  58. model.makeNode("/root/main/bizlist");
  59. fInitMainData(true);
  60. model.refresh();
  61. ]]>
  62. </script>
  63. <submission id="TRZBC00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/bizlist"/>
  64. <submission id="TXZBC00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/bizlist"/>
  65. <submission id="TXZBC00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  66. <submission id="TXZBC00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. ]]>
  72. </script>
  73. </xhtml:head>
  74. <xhtml:body guideline="1,1198;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  76. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">업무규칙관리</caption>
  77. </group>
  78. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  79. <line id="line5" class="line_2" style="x1:0px; y1:598px; x2:1194px; y2:598px; "/>
  80. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  83. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:5px; width:56px; height:22px; ">
  84. <caption>조회</caption>
  85. <script type="javascript" ev:event="DOMActivate">
  86. <![CDATA[
  87. fGetBizList();
  88. ]]>
  89. </script>
  90. </button>
  91. <input id="ipt_search" ref="/root/main/search/searchterm" class="input_search" style="left:130px; top:8px; width:150px; height:19px; "/>
  92. <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:20px; top:8px; width:100px; height:19px; ">
  93. <choices>
  94. <item>
  95. <label>업무규칙ID</label>
  96. <value>bizid</value>
  97. </item>
  98. <item>
  99. <label>업무규칙명</label>
  100. <value>biznm</value>
  101. </item>
  102. </choices>
  103. </select1>
  104. </group>
  105. <output id="opt_modellabel" ref="/root/main/mode/modelabel" class="tit_2" style="left:0px; top:555px; width:269px; height:13px; "/>
  106. <line id="line1" class="line_1" style="x1:0px; y1:570px; x2:1194px; y2:570px; "/>
  107. <caption id="caption7" class="cell_1" style="left:0px; top:575px; width:100px; height:23px; vertical-align:middle; ">우편번호 앞자리</caption>
  108. <caption id="caption20" class="tit_2" style="left:6px; top:65px; width:118px; height:13px; ">업무규칙 목록</caption>
  109. <line id="line8" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
  110. <button id="btn_delete" class="btn2_letter2" style="left:1139px; top:550px; width:42px; height:19px; ">
  111. <caption>삭제</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. var authinstcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authinstcd"));
  115. var authdeptcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authdeptcd"));
  116. var authrized = fAuthorize(authinstcd, authdeptcd);
  117. if(authrized){
  118. fDelBiz();
  119. }else{
  120. var userinfo = fGetUserInfo();
  121. messageBox(userinfo+" 는 삭제할", "E002") ;
  122. }
  123. ]]>
  124. </script>
  125. </button>
  126. <button id="btn_update" class="btn2_letter2" style="left:1096px; top:550px; width:42px; height:19px; ">
  127. <caption>수정</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. var authinstcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authinstcd"));
  131. var authdeptcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authdeptcd"));
  132. var authrized = fAuthorize(authinstcd, authdeptcd);
  133. if(authrized){
  134. fSettBiz();
  135. }else{
  136. var userinfo = fGetUserInfo();
  137. messageBox(userinfo+" 는 수정할", "E002") ;
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <caption id="caption22" class="cell_1" style="left:0px; top:600px; width:100px; height:135px; vertical-align:middle; ">
  143. <![CDATA[업무규칙
  144. 상세설명]]>
  145. </caption>
  146. <caption id="caption24" class="cell_1" style="left:0px; top:575px; width:100px; height:23px; vertical-align:middle; ">업무규칙 ID</caption>
  147. <textarea id="tar_bizdesc" ref="/root/main/data/detldesc" style="left:105px; top:605px; width:1080px; height:125px; "/>
  148. <select1 id="cmb_delyn" ref="/root/main/data/delyn" class="combo_essential" appearance="minimal" style="left:495px; top:576px; width:45px; height:19px; ">
  149. <choices>
  150. <item>
  151. <label>Y</label>
  152. <value>Y</value>
  153. </item>
  154. <item>
  155. <label>N</label>
  156. <value>N</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. <button id="btn_add" class="btn2_letter2" style="left:1053px; top:550px; width:42px; height:19px; ">
  161. <caption>추가</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. fInitMainData(false);
  165. model.setValue("/root/main/mode", "insert");
  166. model.setValue("/root/main/mode/modelabel", "업무규칙 관리>업무규칙 추가");
  167. model.setValue("/root/main/mode/modestatus", "insert");
  168. model.setValue("/root/main/data/delyn", "N");
  169. cmb_delyn.disabled = true;
  170. model.refresh();
  171. ]]>
  172. </script>
  173. </button>
  174. <caption id="caption1" class="cell_1" style="left:195px; top:575px; width:100px; height:23px; vertical-align:middle; ">업무규칙 이름</caption>
  175. <input id="ipt_biznm" ref="/root/main/data/biznm" class="input_essential" style="left:300px; top:576px; width:85px; height:19px; "/>
  176. <caption id="caption3" class="cell_1" style="left:390px; top:575px; width:100px; height:23px; vertical-align:middle; ">삭제여부</caption>
  177. <input id="ipt_bizid" ref="/root/main/data/bizid" class="input_essential" style="left:105px; top:576px; width:85px; height:19px; "/>
  178. <line id="line7" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
  179. <datagrid id="grd_bizlist" 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:85px; width:1194px; height:457px; border-color:#808080; ">
  180. <col ref="bizid"/>
  181. <col ref="biznm"/>
  182. <col ref="detldesc"/>
  183. <col ref="delyn"/>
  184. <col ref="authinstcd"/>
  185. <col ref="authinstnm"/>
  186. <col ref="authdeptcd"/>
  187. <col ref="authdeptnm"/>
  188. <col ref="fstrgstrid"/>
  189. <col ref="fstrgstrnm"/>
  190. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  191. <col ref="lastupdtrid"/>
  192. <col ref="lastupdtrnm"/>
  193. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  194. <script type="javascript" ev:event="ondblclick">
  195. <![CDATA[
  196. fGetBiz();
  197. ]]>
  198. </script>
  199. </datagrid>
  200. </group>
  201. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  202. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  203. <caption>초기화</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. model.dispatch("xforms-ready");
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  211. <caption>저장</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var result;
  215. var mode = model.getValue("/root/main/mode/modestatus");
  216. var bizid;
  217. if(mode=="view"){
  218. messageBox("조회중인 정보를 저장", 'E001') ;
  219. return;
  220. }else if(mode=="insert"){
  221. if(!fValidateMainData()) return false;
  222. bizid = model.getValue("/root/main/data/bizid");
  223. var biznm = model.getValue("/root/main/data/biznm");
  224. result = messageBox("[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 추가", "S001");
  225. if( result==7 || result == 2 ) return;
  226. model.copyNode("/root/send/data", "/root/main/data");
  227. result = submit("TXZBC00112");
  228. }else if(mode=="update"){
  229. if(!fValidateMainData()) return false;
  230. bizid = model.getValue("/root/main/data/bizid");
  231. var biznm = model.getValue("/root/main/data/biznm");
  232. result = messageBox( "[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 수정", "S001");
  233. if( result==7 || result == 2 ) return;
  234. model.copyNode("/root/send/data", "/root/main/data");
  235. result = submit("TXZBC00113");
  236. }else if(mode=="delete"){
  237. if(!fValidateMainData()) return false;
  238. bizid = model.getValue("/root/main/data/bizid");
  239. var biznm = model.getValue("/root/main/data/biznm");
  240. result = messageBox("[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 삭제", "S001");
  241. if( result==7 || result == 2 ) return;
  242. model.copyNode("/root/send/data", "/root/main/data");
  243. result = submit("TXZBC00114");
  244. }else{
  245. messageBox('처리 모드를', 'C002');
  246. return;
  247. }
  248. fGetBizList();
  249. if(mode!="delete"){
  250. fFindBiz(bizid);
  251. fGetBiz();
  252. }else{
  253. fInitMain();
  254. }
  255. ]]>
  256. </script>
  257. </button>
  258. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  259. </group>
  260. <group id="group7" style="left:1110px; top:85px; width:75px; height:32px; ">
  261. <button id="btn_saveexcel" class="btn2_letter4" style="left:6px; top:11px; width:64px; height:19px; ">
  262. <caption>엑셀저장</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  266. if (fileName != "")
  267. {
  268. grd_bizlist.saveExcel(fileName);
  269. }
  270. ]]>
  271. </script>
  272. </button>
  273. </group>
  274. </xhtml:body>
  275. </xhtml:html>