123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724 |
- <?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>
- <cdgrup>
- <list>
- <cdgrup>
- <cdgrupid/>
- <cdgrupnm/>
- <cdlgth/>
- <detldesc/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- <deptcd/>
- <valifromdd/>
- <valitodd/>
- <level/>
- </cdgrup>
- </list>
- </cdgrup>
- <code>
- <list>
- <code>
- <cdsid/>
- <cdgrupid/>
- <cdid/>
- <cdengabbrnm/>
- <cdnm/>
- <detldesc/>
- <cdval/>
- <minval/>
- <maxval/>
- <minopercd/>
- <maxopercd/>
- </code>
- </list>
- </code>
- <search>
- <supcdgrupid/>
- <supcdgrupnm/>
- </search>
- <data>
- <cdsid/>
- <cdgrupid/>
- <cdid/>
- <cdengabbrnm/>
- <cdnm/>
- <detldesc/>
- <cdval/>
- <minval/>
- <maxval/>
- <minopercd/>
- <maxopercd/>
- <valifromdd/>
- <valitodd/>
- <dispseq/>
- <fstrgstrid/>
- <lastrgstrid/>
- </data>
- <mode>
- <modestatus/>
- <modelabel/>
- </mode>
- </main>
- <send>
- <data>
- <cdgrupid/>
- <cdid/>
- <cdengabbrnm/>
- <cdnm/>
- <detldesc/>
- <cdval/>
- <minval/>
- <maxval/>
- <minopercd/>
- <maxopercd/>
- </data>
- </send>
- <hidden>
- <temp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC003.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fShiftCdListGridColumn();
- var menuParameter = getScreenMenuParameter();
- menuParameter = "administrator";
- if(menuParameter!="administrator"){
- img_convert_import_excel.visible = false;
- }
-
- ]]>
- </script>
- <submission id="TXZBC00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TRZBC00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBC00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBC00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBC00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TRZBC00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/cdgrup/list"/>
- <submission id="TXZBC00119" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBC00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TRZBC00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/code/list"/>
- <submission id="TRZBC00126" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- img_convert_general_process.visible = false;
- caption_cdgrup_list.attribute("left") = "0";
- grd_cdgruplist.visible = true;
- grd_cdlist.attribute("left") = "375px";
- grd_cdlist.attribute("width") = "820px";
- grd_cdlist.attribute("height") = "455px";
- img_convert_import_excel.visible = true;
- caption_cd_list.visible = true;
- grd_general_bottom.visible= true;
- ipt_search.disabled = false;
- img_cdgrup_search_popup.disabled = false;
- btn_search.disabled = false;
- grp_excel_process.visible = false;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1199;" 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:40px; width:1195px; height:744px; ">
- <group id="grd_main" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var supcdgrupid = model.getValue("/root/main/search/supcdgrupid");
- model.makeValue("/root/send/data/level", 3);
- model.makeValue("/root/send/data/supcdgrupid", supcdgrupid);
- var success = submit("TRZBC00107");
- if(success){
- setTree(grd_cdgruplist, grd_cdgruplist.colRef("level"), grd_cdgruplist.colRef("cdgrupid"), true);
- fInitMainData(true);
- }
- ]]>
- </script>
- </button>
- <img id="img_cdgrup_search_popup" class="icon_search" style="left:220px; top:10px; width:16px; height:16px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var searchcondition = "cdgrupnm";
- var searchterm = model.getValue("/root/main/search/supcdgrupid");
- var receivecdgrupidpath = '/root/main/search/supcdgrupid';
- var receivecdgrupnmpath = "/root/main/search/supcdgrupnm";
- zbcOpenCodeGroupList(searchcondition, searchterm, receivecdgrupidpath, receivecdgrupnmpath, true);
- ]]>
- </script>
- </img>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:91px; height:17px; ">코드군 ID :</caption>
- <input id="ipt_search" ref="/root/main/search/supcdgrupid" class="input_search" inputtype="button" style="left:115px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var supcdgrupid = model.getValue("/root/main/search/supcdgrupid");
- var selected = fFindGridTreeItem(grd_cdgruplist, supcdgrupid, grd_cdgruplist.colRef("cdgrupid"), grd_cdgruplist.colRef("level"));
- grd_cdgruplist.row = selected;
-
- fInitMainData(true);
- var cdgrupid = grd_cdgruplist.valueMatrix(selected, grd_cdgruplist.colRef("cdgrupid"));
- model.makeValue("/root/send/data/cdgrupid", cdgrupid);
- submit("TRZBC00124");
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey( "btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <group id="grd_general_bottom" style="left:0px; top:545px; width:1194px; height:198px; ">
- <output id="opt_modellabel" ref="/root/main/mode/modelabel" class="tit_2" style="left:0px; top:10px; width:269px; height:13px; "/>
- <group id="grd_general_process" style="left:1058px; top:4px; width:131px; height:20px; ">
- <button id="btn_add" class="btn2_letter2" style="left:1px; top:1px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_cdgruplist.row;
- if(row==-1){
- messageBox('추가할 대상 코드군을', 'C002');
- return;
- }
-
- var authinstcd = grd_cdgruplist.valueMatrix(grd_cdgruplist.row, grd_cdgruplist.colRef("authinstcd"));
- var authdeptcd = grd_cdgruplist.valueMatrix(grd_cdgruplist.row, grd_cdgruplist.colRef("authdeptcd"));
-
- var authrized = fAuthorize(authinstcd, authdeptcd);
-
- if(authrized){
- var cdgrupid = grd_cdgruplist.valueMatrix(row, 1);
- fInitMainData(false);
- model.setValue("/root/main/mode", "insert");
- model.setValue("/root/main/mode/modelabel", "코드관리>코드추가");
- model.setValue("/root/main/mode/modestatus", "insert");
- model.setValue("/root/main/data/cdgrupid", cdgrupid);
- var cdlist_length = grd_cdlist.rows;
- model.setValue("/root/main/data/dispseq", cdlist_length);
- model.setValue("/root/main/data/valifromdd", getCurrentDate());
- model.setValue("/root/main/data/valitodd", "99991231");
- ipt_cdgrupid.disabled = true;
- model.refresh();
- }else{
- var userinfo = fGetUserInfo();
- messageBox(userinfo+" 는 추가할", "E002") ;
- return;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn2_letter2" style="left:44px; top:1px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/mode/modelabel", "코드관리>코드수정");
- model.setValue("/root/main/mode/modestatus", "update");
-
- var row = grd_cdlist.row;
- if(row==-1){
- messageBox('수정할 대상 코드군을', 'C002');
- return;
- }
-
- var authinstcd = grd_cdgruplist.valueMatrix(grd_cdgruplist.row, grd_cdgruplist.colRef("authinstcd"));
- var authdeptcd = grd_cdgruplist.valueMatrix(grd_cdgruplist.row, grd_cdgruplist.colRef("authdeptcd"));
- var authrized = fAuthorize(authinstcd, authdeptcd);
-
- if(authrized){
- model.copyNode("/root/main/data", "/root/main/code/list/code["+row+"]");
- model.refresh();
- fInitMainDataControls(false);
- ipt_cdgrupid.disabled = true;
- ipt_cdid.disabled= true;
- }else{
- var userinfo = fGetUserInfo();
- messageBox(userinfo+" 는 수정할", "E002") ;
- return;
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter2" style="left:87px; top:1px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_cdlist.row;
- if(row==-1){
- messageBox('삭제할 대상 코드군을', 'C002');
- return;
- }
-
- var authinstcd = grd_cdgruplist.valueMatrix(grd_cdgruplist.row, grd_cdgruplist.colRef("authinstcd"));
- var authdeptcd = grd_cdgruplist.valueMatrix(grd_cdgruplist.row, grd_cdgruplist.colRef("authdeptcd"));
- var authrized = fAuthorize(authinstcd, authdeptcd);
- if(authrized){
- model.copyNode("/root/main/data", "/root/main/code/list/code["+row+"]");
- model.setValue("/root/main/mode/modelabel", "코드관리>코드삭제");
- model.setValue("/root/main/mode/modestatus", "delete");
- model.refresh();
- fInitMainDataControls(true);
- }else{
- var userinfo = fGetUserInfo();
- messageBox(userinfo+" 는 수정할", "E002") ;
- return;
- }
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <caption id="caption24" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; vertical-align:middle; ">코드군 ID</caption>
- <input id="ipt_cdgrupid" ref="/root/main/data/cdgrupid" class="input_essential" style="left:101px; top:32px; width:85px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:187px; top:30px; width:100px; height:23px; vertical-align:middle; ">코드 ID</caption>
- <input id="ipt_cdid" ref="/root/main/data/cdid" class="input_essential" style="left:288px; top:32px; width:85px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:374px; top:30px; width:100px; height:23px; vertical-align:middle; ">코드이름</caption>
- <input id="ipt_cdnm" ref="/root/main/data/cdnm" class="input_essential" style="left:475px; top:32px; width:90px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:566px; top:30px; width:100px; height:23px; vertical-align:middle; ">코드영문약어명</caption>
- <input id="ipt_cdengabbrnm" ref="/root/main/data/cdengabbrnm" class="input_essential" style="left:667px; top:32px; width:90px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:758px; top:30px; width:100px; height:23px; vertical-align:middle; ">출력순서</caption>
- <input id="ipt_dispseq" ref="/root/main/data/dispseq" class="input_essential" format="999999-9999999" style="left:859px; top:32px; width:75px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:935px; top:30px; width:60px; height:23px; vertical-align:middle; ">코드값</caption>
- <input id="ipt_cdval" ref="/root/main/data/cdval" class="input_essential" style="left:996px; top:32px; width:60px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:54px; x2:1194px; y2:55px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:56px; width:100px; height:23px; vertical-align:middle; ">최소값</caption>
- <input id="ipt_minval" ref="/root/main/data/minval" class="input_essential" style="left:101px; top:57px; width:85px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:187px; top:56px; width:100px; height:23px; vertical-align:middle; ">최대값</caption>
- <input id="ipt_maxval" ref="/root/main/data/maxval" class="input_essential" style="left:288px; top:57px; width:85px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:374px; top:56px; width:100px; height:23px; vertical-align:middle; ">최소 연산자</caption>
- <select1 id="cmb_minopercd" ref="/root/main/data/minopercd" class="combo_essential" appearance="minimal" style="left:475px; top:57px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>
- <![CDATA[<]]>
- </label>
- <value>0</value>
- </item>
- <item>
- <label>
- <![CDATA[<=]]>
- </label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:521px; top:55px; width:100px; height:23px; vertical-align:middle; ">최대 연산자</caption>
- <select1 id="cmb_maxopercd" ref="/root/main/data/maxopercd" class="combo_essential" appearance="minimal" style="left:622px; top:57px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>
- <![CDATA[<]]>
- </label>
- <value>0</value>
- </item>
- <item>
- <label>
- <![CDATA[<=]]>
- </label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption14" class="cell_1" style="left:668px; top:55px; width:80px; height:23px; vertical-align:middle; ">유효시작일시</caption>
- <input id="ipt_valifromdd" ref="/root/main/data/valifromdd" class="input_search" inputtype="date" style="left:749px; top:57px; width:95px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:845px; top:55px; width:85px; height:23px; vertical-align:middle; ">유효종료일시</caption>
- <input id="ipt_valitodd" ref="/root/main/data/valitodd" class="input_search" inputtype="date" style="left:931px; top:57px; width:95px; height:19px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:80px; x2:1194px; y2:79px; "/>
- <caption id="caption22" class="cell_1" style="left:0px; top:82px; width:100px; height:100px; vertical-align:middle; ">코드 상세설명</caption>
- <textarea id="tar_detldesc" ref="/root/main/data/detldesc" style="left:101px; top:82px; width:1090px; height:100px; "/>
- </group>
- <caption id="caption_cdgrup_list" class="tit_2" style="left:29px; top:66px; width:118px; height:13px; ">코드군 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:82px; x2:1194px; y2:82px; "/>
- <line id="line10" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
- <datagrid id="grd_cdgruplist" nodeset="/root/main/cdgrup/list/cdgrup" caption="코드군ID^코드군명^코드길이^코드군설명^출력순서^유효시작일자^유효종료일자^권한기관코드^권한기관명^권한부서코드^권한부서명^최초등록자ID^최초등록자이름^최초등록일시^최종수정자ID^최종수정자이름^최종수정일시^레 벨" colwidth="150, 200, 60, 200, 60, 100, 100, 100, 100, 100, 100, 100, 100, 150, 100, 100, 150, 100" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:0px; top:85px; width:340px; height:455px; border-color:#808080; ">
- <col ref="cdgrupid"/>
- <col ref="cdgrupnm"/>
- <col ref="cdlgth"/>
- <col ref="detldesc" visibility="hidden"/>
- <col ref="dispseq" visibility="hidden"/>
- <col ref="valifromdd" format="yyyy-mm-dd"/>
- <col ref="valitodd" format="yyyy-mm-dd"/>
- <col ref="authinstcd"/>
- <col ref="authinstnm"/>
- <col ref="authdeptcd"/>
- <col ref="authdeptnm"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstrnm" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtrnm" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="level" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fInitMainData(true);
- var row = grd_cdgruplist.row;
- var cdgrupid = grd_cdgruplist.valueMatrix(row, grd_cdgruplist.colRef("cdgrupid"));
- model.makeValue("/root/send/data/cdgrupid", cdgrupid);
- model.makeValue("/root/send/data/sortfield", "dispseq");
- model.makeValue("/root/send/data/cdid", "");
- model.makeValue("/root/send/data/cdengabbrnm", "");
- model.makeValue("/root/send/data/cdnm", "");
- model.makeValue("/root/send/data/detldesc", "");
- model.makeValue("/root/send/data/cdval", "");
- model.makeValue("/root/send/data/minval", "");
- model.makeValue("/root/send/data/maxval", "");
- model.makeValue("/root/send/data/minopercd", "");
- model.makeValue("/root/send/data/maxopercd", "");
-
- submit("TRZBC00124");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_cdlist" nodeset="/root/main/code/list/code" caption="신청구분^대분류구분코드^코드SID^코드군ID^코드군명^코드ID^코드길이^코드이름^상세설명^출력순서^코드값^최소값^최대값^최소연산자^최대연산자^코드영문약어^유효시작일자^유효종료일자^최초등록자ID^최초등록자명^최초등록일시^최종수정자ID^최종수정자명^최종수정일시" colwidth="100, 100, 200, 100, 100, 100, 100, 100, 150, 68, 100, 100, 100, 68, 68, 100, 100, 100, 100, 100, 150, 100, 100, 150" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:375px; top:85px; width:820px; height:455px; border-color:#808080; ">
- <col ref="process"/>
- <col ref="class"/>
- <col ref="cdsid"/>
- <col ref="cdgrupid"/>
- <col ref="cdgrupnm"/>
- <col ref="cdid"/>
- <col ref="cdlgth"/>
- <col ref="cdnm"/>
- <col ref="detldesc"/>
- <col ref="dispseq"/>
- <col ref="cdval"/>
- <col ref="minval"/>
- <col ref="maxval"/>
- <col ref="minopercd"/>
- <col ref="maxopercd"/>
- <col ref="cdengabbrnm"/>
- <col ref="valifromdd" format="yyyy-mm-dd"/>
- <col ref="valitodd" format="yyyy-mm-dd"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var modestatus = model.getValue("/root/main/mode/modestatus");
- if(modestatus!="importexcel"){
- fInitMainDataControls(false);
- var row = grd_cdlist.row;
- model.copyNode("/root/main/data", "/root/main/code/list/code["+row+"]");
- model.setValue("/root/main/mode/modelabel", "코드관리>코드상세보기");
- model.setValue("/root/main/mode/modestatus", "view");
- model.refresh();
- fInitMainDataControls(true);
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption_cd_list" class="tit_2" style="left:405px; top:65px; width:118px; height:13px; ">코드 목록</caption>
- <group id="grp_excel_process" style="left:999px; top:56px; width:188px; height:25px; ">
- <button id="button1" class="btn2_letter4" style="left:1px; top:3px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", "", false);
- if(fileName==""){
- return;
- }
- grd_cdlist.loadExcel(fileName);
- fRearrangeExcelData();
- grd_cdlist.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:66px; top:3px; width:64px; height:19px; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:131px; top:3px; width:64px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- </group>
- <img id="img_convert_import_excel" class="icon_left" style="left:375px; top:61px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fShiftCdListGridColumn("excel");
- grd_cdgruplist.visible = false;
- ipt_search.disabled = true;
- img_cdgrup_search_popup.disabled = true;
- btn_search.disabled= true;
- img_convert_import_excel.visible = false;
- grp_excel_process.visible = true;
- grp_excel_save.visible = false;
- caption_cd_list.visible = false;
- grp_excel_process.visible = true;
- grd_cdlist.attribute("left") = "0"+"px";
- grd_cdlist.attribute("width") = "1194" + "px";
- grd_cdlist.attribute("height") = "647" + "px";
- grd_reorg_sequence.visible = false;
- grd_general_bottom.visible = false;
- img_convert_general_process.visible= true;
- caption_cdgrup_list.visible = true;
- caption_cdgrup_list.attribute("left") = "29px";
- model.removenode("/root/main/code/list");
- model.makeNode("/root/main/code/list");
- model.setValue("/root/main/mode/modestatus", "importexcel");
- model.refresh();
-
- ]]>
- </script>
- </img>
- <img id="img_convert_general_process" class="icon_right" style="left:0px; top:61px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/main/code/list");
- model.makeNode("/root/main/code/list");
- img_convert_general_process.visible = false;
- caption_cdgrup_list.attribute("left") = "0";
- grd_cdgruplist.visible = true;
- grd_cdlist.attribute("left") = "375px";
- grd_cdlist.attribute("width") = "820px";
- grd_cdlist.attribute("height") = "455px";
- img_convert_import_excel.visible = true;
- caption_cd_list.visible = true;
- grd_general_bottom.visible= true;
- ipt_search.disabled = false;
- img_cdgrup_search_popup.disabled = false;
- btn_search.disabled = false;
- grp_excel_process.visible = false;
- grp_excel_save.visible = true;
- grd_reorg_sequence.visible = true;
- model.setValue("/root/main/mode/modestatus", "");
- fShiftCdListGridColumn();
- model.refresh();
- ]]>
- </script>
- </img>
- <group id="grp_excel_save" style="left:1119px; top:56px; width:66px; height:25px; ">
- <button id="button4" class="btn2_letter4" style="left:1px; top:3px; width:64px; height:19px; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_cdgruplist.row;
- var cdgrupid = grd_cdgruplist.valueMatrix(row, grd_cdgruplist.colRef("cdgrupid"));
- var cdgrupnm = grd_cdgruplist.valueMatrix(row, grd_cdgruplist.colRef("cdgrupnm"));
-
- var fileName = window.fileDialog("save", ",", false, cdgrupnm+"코드_"+cdgrupid, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_cdlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/cdgrup/list");
- model.makeNode("/root/main/cdgrup/list");
- model.removenode("/root/main/code/list");
- model.makeNode("/root/main/code/list");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var result;
- var modestatus = model.getValue("/root/main/mode/modestatus");
- var cdsid;
- if(modestatus=="view"){
- messageBox("조회중인 정보를 저장", 'E001') ;
- return;
- }else if(modestatus=="insert"){
- if(!fValidateMainData()) return false;
- var cdgrupid = model.getValue("/root/main/data/cdgrupid");
- var cdid = model.getValue("/root/main/data/cdid");
- var cdnm = model.getValue("/root/main/data/cdnm");
- var cdsid = cdgrupid+cdid;
- if(cdnm==""){
- model.setValue("/root/main/data/detldesc", cdnm);
- }
- result = messageBox( "[코드군 ID : "+cdgrupid+",코드 ID : "+cdid+", 코드 이름: "+cdnm+"]을 추가", "S001");
- model.makeValue("/root/main/data/cdsid", cdgrupid+cdid);
- if( result==7 || result == 2 ) return;
- model.copyNode("/root/send/data", "/root/main/data");
-
- // 코드이름 중복체크
- model.removenode("/root/hidden/temp/count");
- model.refresh();
-
- result = submit("TRZBC00126");
- var count = model.getValue("/root/hidden/temp/count/count");
- if (count > 0) {
- result = messageBox( "[코드군 ID : "+cdgrupid+"]에 동일한 코드 이름이 존재합니다. ["+cdnm+"]을 추가", "S001");
- if( result==7 || result == 2 ) return;
- }
-
- result = submit("TXZBC00109");
- }else if(modestatus=="update"){
- var cdgrupid = model.getValue("/root/main/data/cdgrupid");
- var cdid = model.getValue("/root/main/data/cdid");
- cdsid = cdgrupid+cdid;
- var cdnm = model.getValue("/root/main/data/cdnm");
- result = messageBox( "[코드군 ID : "+cdgrupid+",코드 ID : "+cdid+", 코드 이름 : "+cdnm+"]을 수정", "S001");
- if( result==7 || result == 2 ) return;
- model.copyNode("/root/send/data", "/root/main/data");
- result = submit("TXZBC00110");
- }else if(modestatus=="delete"){
- var cdgrupid = model.getValue("/root/main/data/cdgrupid");
- var cdid = model.getValue("/root/main/data/cdid");
- cdsid = cdgrupid+cdid;
- var cdnm = model.getValue("/root/main/data/cdnm");
- result = messageBox( "[코드군 ID : "+cdgrupid+",코드 ID : "+cdid+", 코드 이름 : "+cdnm+"]을 삭제", "S001");
- if( result==7 || result == 2 ) return;
- model.copyNode("/root/send/data", "/root/main/data");
- model.makeValue("/root/send/data/cdsid", cdsid);
- result = submit("TXZBC00111");
- }else if(modestatus=="importexcel"){
- var update_data = grd_cdlist.getUpdateData();
- model.removenode("/root/send/data");
- model.makeNode("/root/send/data");
- model.setValue("/root/send/data", update_data);
- //alert(update_data);
- success = submit("TXZBC00119");
- if(success){
- alert("["+(grd_cdlist.rows-1)+"]개의 코드군을 엑셀로 부터 추출하여 성공적으로 서버에 적용하였습니다.");
- for(var i=grd_cdlist.fixedRows; i<grd_cdlist.rows; i++){
- grd_cdlist.rowStatus(i) = 0;
- }
- }
- }else if(modestatus=="swapsequence"){
- var update_data = grd_cdlist.getUpdateData();
- //alert("update_data : "+update_data);
- model.removenode("/root/send/data");
- model.makeNode("/root/send/data");
- model.setValue("/root/send/data", update_data);
- submit("TXZBC00120");
- }else{
- messageBox('처리 모드를', 'C002');
- return;
- }
- if(modestatus!="importexcel"){
-
- fInitMainData(true);
- var row = grd_cdgruplist.row;
- var cdgrupid = grd_cdgruplist.valueMatrix(row, grd_cdgruplist.colRef("cdgrupid"));
- model.makeValue("root/send/data/sortfield", "dispseq");
- model.makeValue("/root/send/data/cdgrupid", cdgrupid);
- model.makeValue("/root/send/data/cdid", "");
- model.makeValue("/root/send/data/cdengabbrnm", "");
- model.makeValue("/root/send/data/cdnm", "");
- model.makeValue("/root/send/data/detldesc", "");
- model.makeValue("/root/send/data/cdval", "");
- model.makeValue("/root/send/data/minval", "");
- model.makeValue("/root/send/data/maxval", "");
- model.makeValue("/root/send/data/minopercd", "");
- model.makeValue("/root/send/data/maxopercd", "");
- submit("TRZBC00124");
- fInitMainDataControls(false);
-
- if(modestatus!="delete"&&modestatus!="swapsequence"){
- row = fFindGridItem(grd_cdlist, grd_cdlist.colRef("cdsid"), cdsid);
- model.copyNode("/root/main/data", "/root/main/code/list/code["+row+"]");
- model.setValue("/root/main/mode/modelabel", "코드관리>코드상세보기");
- model.setValue("/root/main/mode/modestatus", "view");
- model.refresh();
- }
-
- fInitMainDataControls(true);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grd_reorg_sequence" style="left:343px; top:330px; width:28px; height:45px; ">
- <img id="img6" class="icon_top" style="left:1px; top:1px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var selected_row = grd_cdlist.row;
- var up_row = selected_row-1;
- //alert("selected_row : "+selected_row);
- //alert("up_row : "+up_row);
- if(selected_row>0){
- if(up_row>0){
- fSwapCodeSequence(selected_row, up_row);
- model.setValue("/root/main/mode/modestatus", "swapsequence");
- model.refresh();
- grd_cdlist.row = up_row;
- }else{
- messageBox("더이상 위로 이동할수 없습니다.", "C");
- }
- }else{
- messageBox("선택된 행이 없습니다.", "C");
- }
- ]]>
- </script>
- </img>
- <img id="img3" class="icon_bottom" style="left:1px; top:24px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var selected_row = grd_cdlist.row;
- var dn_row = selected_row +1;
- //alert("selected_row : "+selected_row+", dn_row : "+dn_row+", grd_cdlist.rows : "+grd_cdlist.rows);
- if(selected_row>0){
- if(dn_row<grd_cdlist.rows){
- fSwapCodeSequence(selected_row, dn_row);
- model.setValue("/root/main/mode/modestatus", "swapsequence");
- model.refresh();
- grd_cdlist.row = dn_row;
- }else{
- messageBox("더이상 아래로 이동할수 없습니다.", "C");
- }
- }else{
- messageBox("선택된 행이 없습니다.", "C");
- }
- ]]>
- </script>
- </img>
- </group>
- </xhtml:body>
- </xhtml:html>
|