123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>국가관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <nationinfo>
- <naticd/>
- <natinm/>
- <oecdyn/>
- <natirem/>
- <workflag/>
- <seqno/>
- <histno/>
- </nationinfo>
- <nationrgst>
- <nationrgstlist/>
- </nationrgst>
- </main>
- <send>
- <naticd/>
- <natinm/>
- <oecdyn/>
- </send>
- <init>
- <P0325list>
- <P0325>
- <cdnm/>
- <cdid/>
- </P0325>
- </P0325list>
- </init>
- <hidden>
- <source>
- <autoflag/>
- <userid/>
- </source>
- </hidden>
- <tmp>
- <userrgstinfo>
- <userrgstinfolist/>
- </userrgstinfo>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0325"), new Array("/root/init/P0325list"));
- fInitialize();
- ]]>
- </script>
- <submission id="TRPMB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/nationrgst"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPMB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/nationinfo" resultref="root/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize(){
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- model.removeNodeset("/root/main/nationrgst/nationrgstlist");
-
- model.refresh();
- }
-
- function fInitialize1(){
- model.resetInstanceNode("/root/main/nationinfo");
-
- model.refresh();
- }
-
- function fcheck(){
- if(model.getValue("/root/main/nationinfo/naticd") == "") {
- messageBox("국가코드가 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/main/nationinfo/natinm") == "") {
- messageBox("국가명이 입력되지", "E007");
- return false;
- }
-
- if(model.getValue("/root/main/nationinfo/oecdyn") == "") {
- messageBox("OECD가입여부가 입력되지", "E007");
- return false;
- }
- }
-
- function fSearch(){
- if(submit("TRPMB03401")) {
-
- fInitialize1();
- }
-
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1200;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">국가관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <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; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:99px; height:17px; ">국가코드 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ipt_userid.disabled = false;
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption21" class="search_name" style="left:498px; top:8px; width:129px; height:17px; ">OECD가입여부 :</caption>
- <caption id="caption17" class="search_name" style="left:262px; top:8px; width:83px; height:17px; ">국가명 :</caption>
- <input id="input7" ref="/root/send/naticd" maxlength="4" style="left:105px; top:8px; width:105px; height:19px; "/>
- <input id="input5" ref="/root/send/natinm" style="left:340px; top:8px; width:105px; height:19px; "/>
- <select1 id="combo2" ref="/root/send/oecdyn" appearance="minimal" style="left:630px; top:8px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:6px; top:55px; width:113px; height:14px; ">국가관리내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">국가코드</caption>
- <caption id="caption8" class="cell_1" style="left:246px; top:75px; width:101px; height:23px; text-align:center; vertical-align:middle; ">국가명</caption>
- <caption id="caption12" class="cell_1" style="left:686px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">MEMO</caption>
- <caption id="caption14" class="cell_1" style="left:515px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">OECD가입여부</caption>
- <caption id="caption20" class="tit_2" style="left:6px; top:114px; width:157px; height:13px; ">국가관리 등록 리스트</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
- <input id="input21" ref="/root/main/nationinfo/natinm" navindex="2" appearance="input" style="left:349px; top:76px; width:162px; height:19px; "/>
- <button id="button52" class="btn2_letter2" style="left:1107px; top:50px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 신규입력창 필수입력 확인
- if(fcheck() == false) {
- return;
- }
-
- if(model.getValue("/root/main/nationinfo/workflag") != 'U'){
- model.setValue("/root/main/nationinfo/workflag","I");
- }
-
- var workflag = model.getValue("/root/main/nationinfo/workflag");
-
- if(workflag == "I"){
- if(messageBox("해당 국가를 신규저장 하시겠습니까?", "Q999") != 6) return;
- }else if(workflag == "U"){
- if(messageBox("해당 국가를 수정 하시겠습니까?", "Q999") != 6) return;
- }else{
- messageBox("저장할 내역이 선택되지 않았습니다!", "Q999");
- return;
- }
-
- if(submit("TXPMB03401")) {
- fInitialize1();
- }
- ipt_userid.disabled = false;
- model.refresh();
-
- //저장,수정후 조회
- fSearch();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button53" accesskey="f1" class="btn5_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("해당 사용자를 삭제 하시겠습니까?", "Q999") != 6) return;
-
- model.setValue("/root/main/nationinfo/workflag","D");
-
- if(submit("TXPMB03401")) {
- fInitialize1();
- }
- ipt_userid.disabled = false;
- //삭제후 조회
- fSearch();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/nationinfo/natirem" navindex="4" maxlength="150" appearance="input" style="left:788px; top:76px; width:407px; height:19px; "/>
- <select1 id="combo1" ref="/root/main/nationinfo/oecdyn" navindex="3" appearance="minimal" style="left:617px; top:76px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_userid" ref="/root/main/nationinfo/naticd" navindex="1" maxlength="4" style="left:102px; top:76px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- model.makeNode("/root/main/popupendflag");
-
- if(event.keyCode == "13") {
-
- // setParameter("SMPMB00900_orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/main/popupendflag", "ok");
- model.setValue("/root/main/userinfo/userid", ipt_userid.currentText);
- inputEnterKey("btn_search", "DOMActivate");
-
- //submit("TRPMB03303");
- }
- ]]>
- </script>
- </input>
- <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; ">
- <col disabled="true" ref="naticd" style="text-align:center; "/>
- <col disabled="true" ref="natinm"/>
- <col disabled="true" ref="oecdyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="natirem"/>
- <col ref="fstrgstrid" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="histno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cur_row = grd_nationlist.row;
-
- if(cur_row > 0) {
- model.copyNode("/root/main/nationinfo","/root/main/nationrgst/nationrgstlist["+cur_row+"]");
- model.makeNode("/root/main/nationinfo/workflag");
- model.makeNode("/root/main/nationinfo/seqno");
- model.makeNode("/root/main/nationinfo/histno");
- model.setValue("/root/main/nationinfo/workflag", "U");
- model.setValue("/root/main/nationinfo/seqno", model.getValue("/root/main/nationrgst/nationrgstlist["+cur_row+"]/seqno"));
- model.setValue("/root/main/nationinfo/histno", model.getValue("/root/main/nationrgst/nationrgstlist["+cur_row+"]/histno"));
- model.refresh();
- }
- ipt_userid.disabled = true;
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_nationlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_3" style="x1:0px; y1:96; x2:1194px; y2:96px; "/>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ipt_userid.disabled = false;
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|