SMPMB03400_국가관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. <nationinfo>
  11. <naticd/>
  12. <natinm/>
  13. <oecdyn/>
  14. <natirem/>
  15. <workflag/>
  16. <seqno/>
  17. <histno/>
  18. </nationinfo>
  19. <nationrgst>
  20. <nationrgstlist/>
  21. </nationrgst>
  22. </main>
  23. <send>
  24. <naticd/>
  25. <natinm/>
  26. <oecdyn/>
  27. </send>
  28. <init>
  29. <P0325list>
  30. <P0325>
  31. <cdnm/>
  32. <cdid/>
  33. </P0325>
  34. </P0325list>
  35. </init>
  36. <hidden>
  37. <source>
  38. <autoflag/>
  39. <userid/>
  40. </source>
  41. </hidden>
  42. <tmp>
  43. <userrgstinfo>
  44. <userrgstinfolist/>
  45. </userrgstinfo>
  46. </tmp>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. zbcfGetCodeList(new Array("P0325"), new Array("/root/init/P0325list"));
  52. fInitialize();
  53. ]]>
  54. </script>
  55. <submission id="TRPMB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/nationrgst"/>
  56. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  57. <submission id="TXPMB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/nationinfo" resultref="root/result"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  61. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  67. <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
  68. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  69. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  70. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  71. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInitialize(){
  75. model.resetInstanceNode("/root/send");
  76. model.resetInstanceNode("/root/main");
  77. model.removeNodeset("/root/main/nationrgst/nationrgstlist");
  78. model.refresh();
  79. }
  80. function fInitialize1(){
  81. model.resetInstanceNode("/root/main/nationinfo");
  82. model.refresh();
  83. }
  84. function fcheck(){
  85. if(model.getValue("/root/main/nationinfo/naticd") == "") {
  86. messageBox("국가코드가 입력되지", "E007");
  87. return false;
  88. }
  89. if(model.getValue("/root/main/nationinfo/natinm") == "") {
  90. messageBox("국가명이 입력되지", "E007");
  91. return false;
  92. }
  93. if(model.getValue("/root/main/nationinfo/oecdyn") == "") {
  94. messageBox("OECD가입여부가 입력되지", "E007");
  95. return false;
  96. }
  97. }
  98. function fSearch(){
  99. if(submit("TRPMB03401")) {
  100. fInitialize1();
  101. }
  102. model.refresh();
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body guideline="1,1200;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  109. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">국가관리</caption>
  110. </group>
  111. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  112. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  113. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  114. <caption id="caption2" class="search_name" style="left:16px; top:8px; width:99px; height:17px; ">국가코드 :</caption>
  115. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  116. <caption>조회</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. fSearch();
  120. ipt_userid.disabled = false;
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  125. <caption id="caption21" class="search_name" style="left:498px; top:8px; width:129px; height:17px; ">OECD가입여부 :</caption>
  126. <caption id="caption17" class="search_name" style="left:262px; top:8px; width:83px; height:17px; ">국가명 :</caption>
  127. <input id="input7" ref="/root/send/naticd" maxlength="4" style="left:105px; top:8px; width:105px; height:19px; "/>
  128. <input id="input5" ref="/root/send/natinm" style="left:340px; top:8px; width:105px; height:19px; "/>
  129. <select1 id="combo2" ref="/root/send/oecdyn" appearance="minimal" style="left:630px; top:8px; width:65px; height:19px; ">
  130. <choices>
  131. <itemset nodeset="/root/init/P0325list/P0325">
  132. <label ref="cdnm"/>
  133. <value ref="cdid"/>
  134. </itemset>
  135. </choices>
  136. </select1>
  137. </group>
  138. <caption id="caption1" class="tit_2" style="left:6px; top:55px; width:113px; height:14px; ">국가관리내역</caption>
  139. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  140. <caption id="caption7" class="cell_1" style="left:0px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">국가코드</caption>
  141. <caption id="caption8" class="cell_1" style="left:246px; top:75px; width:101px; height:23px; text-align:center; vertical-align:middle; ">국가명</caption>
  142. <caption id="caption12" class="cell_1" style="left:686px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">MEMO</caption>
  143. <caption id="caption14" class="cell_1" style="left:515px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">OECD가입여부</caption>
  144. <caption id="caption20" class="tit_2" style="left:6px; top:114px; width:157px; height:13px; ">국가관리 등록 리스트</caption>
  145. <line id="line8" class="line_1" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
  146. <input id="input21" ref="/root/main/nationinfo/natinm" navindex="2" appearance="input" style="left:349px; top:76px; width:162px; height:19px; "/>
  147. <button id="button52" class="btn2_letter2" style="left:1107px; top:50px; width:42px; height:19px; ">
  148. <caption>저장</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. // 신규입력창 필수입력 확인
  152. if(fcheck() == false) {
  153. return;
  154. }
  155. if(model.getValue("/root/main/nationinfo/workflag") != 'U'){
  156. model.setValue("/root/main/nationinfo/workflag","I");
  157. }
  158. var workflag = model.getValue("/root/main/nationinfo/workflag");
  159. if(workflag == "I"){
  160. if(messageBox("해당 국가를 신규저장 하시겠습니까?", "Q999") != 6) return;
  161. }else if(workflag == "U"){
  162. if(messageBox("해당 국가를 수정 하시겠습니까?", "Q999") != 6) return;
  163. }else{
  164. messageBox("저장할 내역이 선택되지 않았습니다!", "Q999");
  165. return;
  166. }
  167. if(submit("TXPMB03401")) {
  168. fInitialize1();
  169. }
  170. ipt_userid.disabled = false;
  171. model.refresh();
  172. //저장,수정후 조회
  173. fSearch();
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <button id="button53" accesskey="f1" class="btn5_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
  179. <caption>삭제</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. if(messageBox("해당 사용자를 삭제 하시겠습니까?", "Q999") != 6) return;
  183. model.setValue("/root/main/nationinfo/workflag","D");
  184. if(submit("TXPMB03401")) {
  185. fInitialize1();
  186. }
  187. ipt_userid.disabled = false;
  188. //삭제후 조회
  189. fSearch();
  190. model.refresh();
  191. ]]>
  192. </script>
  193. </button>
  194. <input id="input2" ref="/root/main/nationinfo/natirem" navindex="4" maxlength="150" appearance="input" style="left:788px; top:76px; width:407px; height:19px; "/>
  195. <select1 id="combo1" ref="/root/main/nationinfo/oecdyn" navindex="3" appearance="minimal" style="left:617px; top:76px; width:65px; height:19px; ">
  196. <choices>
  197. <itemset nodeset="/root/init/P0325list/P0325">
  198. <label ref="cdnm"/>
  199. <value ref="cdid"/>
  200. </itemset>
  201. </choices>
  202. </select1>
  203. <input id="ipt_userid" ref="/root/main/nationinfo/naticd" navindex="1" maxlength="4" style="left:102px; top:76px; width:140px; height:19px; ">
  204. <script type="javascript" ev:event="onkeypress">
  205. <![CDATA[
  206. model.makeNode("/root/main/popupendflag");
  207. if(event.keyCode == "13") {
  208. // setParameter("SMPMB00900_orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
  209. model.setValue("/root/main/popupendflag", "ok");
  210. model.setValue("/root/main/userinfo/userid", ipt_userid.currentText);
  211. inputEnterKey("btn_search", "DOMActivate");
  212. //submit("TRPMB03303");
  213. }
  214. ]]>
  215. </script>
  216. </input>
  217. <datagrid id="grd_nationlist" nodeset="/root/main/nationrgst/nationrgstlist" caption="국가코드^국가명^OECD가입여부^MEMO^최초등록자^최초등록일자^최종수정자^최종수정일자^histno" colsep="^" colwidth="87, 187, 100, 322, 100, 120, 100, 120, 100" dataheight="25" defaultrows="2" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:135px; width:1194px; height:600px; ">
  218. <col disabled="true" ref="naticd" style="text-align:center; "/>
  219. <col disabled="true" ref="natinm"/>
  220. <col disabled="true" ref="oecdyn" type="combo" style="text-align:center; ">
  221. <choices>
  222. <itemset nodeset="/root/init/P0325list/P0325">
  223. <label ref="cdnm"/>
  224. <value ref="cdid"/>
  225. </itemset>
  226. </choices>
  227. </col>
  228. <col disabled="true" ref="natirem"/>
  229. <col ref="fstrgstrid" style="text-align:center; "/>
  230. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  231. <col ref="lastupdtrid" style="text-align:center; "/>
  232. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  233. <col ref="histno" visibility="hidden"/>
  234. <script type="javascript" ev:event="onclick">
  235. <![CDATA[
  236. var cur_row = grd_nationlist.row;
  237. if(cur_row > 0) {
  238. model.copyNode("/root/main/nationinfo","/root/main/nationrgst/nationrgstlist["+cur_row+"]");
  239. model.makeNode("/root/main/nationinfo/workflag");
  240. model.makeNode("/root/main/nationinfo/seqno");
  241. model.makeNode("/root/main/nationinfo/histno");
  242. model.setValue("/root/main/nationinfo/workflag", "U");
  243. model.setValue("/root/main/nationinfo/seqno", model.getValue("/root/main/nationrgst/nationrgstlist["+cur_row+"]/seqno"));
  244. model.setValue("/root/main/nationinfo/histno", model.getValue("/root/main/nationrgst/nationrgstlist["+cur_row+"]/histno"));
  245. model.refresh();
  246. }
  247. ipt_userid.disabled = true;
  248. ]]>
  249. </script>
  250. <script type="javascript" ev:event="onaftersort">
  251. <![CDATA[
  252. //sorting 시 인스턴스 구조를 재구성
  253. grd_nationlist.gridToInstance();
  254. ]]>
  255. </script>
  256. </datagrid>
  257. <line id="line7" class="line_3" style="x1:0px; y1:96; x2:1194px; y2:96px; "/>
  258. </group>
  259. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  260. <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  261. <caption>초기화</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fInitialize();
  265. ipt_userid.disabled = false;
  266. ]]>
  267. </script>
  268. </button>
  269. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  270. </group>
  271. </xhtml:body>
  272. </xhtml:html>