123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- <?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>
- <clscd/>
- <divsvcmassclslist>
- <divsvcmassclslistinfo>
- <clsflag/>
- <clscd/>
- <clssupcd/>
- <clsnm/>
- <scrncd/>
- <clsrefseq/>
- <depth/>
- <pathcd/>
- </divsvcmassclslistinfo>
- </divsvcmassclslist>
- <divsvcmassschelist>
- <divsvcmassschelistinfo>
- <clsflag/>
- <clscd/>
- <clsnm/>
- <clssupcd/>
- <scrncd/>
- <clsrefseq/>
- </divsvcmassschelistinfo>
- </divsvcmassschelist>
- <cond>
- <clsflag>A</clsflag>
- </cond>
- <bunryu>
- <clsflag/>
- <clssupcd/>
- <clscd/>
- <clsnm/>
- <scrncd/>
- <clsrefseq/>
- <scrncd2/>
- </bunryu>
- <ret>
- <seq>
- <clscd/>
- <clsrefseq/>
- </seq>
- </ret>
- </main>
- <send>
- <reqdata/>
- <removedata/>
- <status/>
- </send>
- <init/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TRAYA02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/divsvcmassclslist"/>
- <submission id="TXAYA02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/divsvcmassschelist"/>
- <submission id="TXAYA02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/removedata" resultref="/root/main/divsvcmassschelist"/>
- <submission id="TRAYA02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ret"/>
- <submission id="TRAYA02903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ret"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function finit() {
- model.removeNodeset("/root/main/divsvcmassschelist");
- grd_divsvcmassschelist.refresh();
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRAYA02901");
-
- }
-
- function fSelectedCombo() {
- fClear();
- model.removeNodeset("/root/main/divsvcmassschelist");
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRAYA02901");
- }
-
- function fClear(){
- model.setValue("/root/main/bunryu/clsflag", "");
- model.setValue("/root/main/bunryu/clssupcd", "");
- model.setValue("/root/main/bunryu/clscd", "");
- model.setValue("/root/main/bunryu/clsnm", "");
- model.setValue("/root/main/bunryu/scrncd", "");
- model.setValue("/root/main/bunryu/scrncd2", "");
- model.setValue("/root/main/bunryu/clsrefseq", "");
- model.refresh();
- }
-
- function fSelectedTree() {
-
- model.removenode("/root/main/divsvcmassschelist");
-
- //---------------------TreeToInstancd----------------------
- var clscd=model.getValue("/root/main/clscd");
- model.setValue("/root/main/bunryu/clsflag", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+clscd+"']/clsflag"));
- model.setValue("/root/main/bunryu/clssupcd", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+clscd+"']/clssupcd"));
- model.setValue("/root/main/bunryu/clscd", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+clscd+"']/clscd"));
- model.setValue("/root/main/bunryu/clsnm", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+clscd+"']/clsnm"));
- model.setValue("/root/main/bunryu/scrncd", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+clscd+"']/scrncd"));
- model.setValue("/root/main/bunryu/scrncd2", model.getValue("/root/main/bunryu/scrncd"));
- model.setValue("/root/main/bunryu/clsrefseq", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+clscd+"']/clsrefseq"));
- model.refresh();
-
- //---------------------TreeToGrid---------------------------
- var curPos=trv_divsvcmassclslist.mouserow; // 현재 선택된 tree item의 위치
- var totPos=trv_divsvcmassclslist.length; //전체 tree의 갯수
- var curDepth=parseInt(model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+ clscd + "']/depth")); //현재 선택된 tree item의 depth
-
- var curGrdPos=grd_divsvcmassschelist.rows; //grid 행의 갯수
- var clssupcd;
-
- for(var i=curPos+1; i <= totPos; i++ ) {
-
- var tmpDepth=parseInt(model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo["+ i +"]/depth")); //현재 선택된 tree item 다음부터 끝까지 depth를 얻어서
- clssupcd=model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo["+ i +"]/clssupcd");
-
- if(clscd==clssupcd )
- {
- model.makeNode("/root/main/divsvcmassschelist/divsvcmassschelistinfo["+ (curGrdPos) + "]");
- model.copyNode("/root/main/divsvcmassschelist/divsvcmassschelistinfo["+ (curGrdPos) + "]", "/root/main/divsvcmassclslist/divsvcmassclslistinfo["+ i +"]");
- curGrdPos++;
- grd_divsvcmassschelist.rebuild();
- }
- }
- }
-
- function fCopyToSelect(){
- model.setValue("/root/main/bunryu/clsflag", model.getValue("/root/main/divsvcmassschelist/divsvcmassschelistinfo[" +grd_divsvcmassschelist.selectedRow(0)+ "]/clsflag"));
- model.setValue("/root/main/bunryu/clssupcd", model.getValue("/root/main/divsvcmassschelist/divsvcmassschelistinfo[" +grd_divsvcmassschelist.selectedRow(0)+ "]/clssupcd"));
- model.setValue("/root/main/bunryu/clscd", model.getValue("/root/main/divsvcmassschelist/divsvcmassschelistinfo[" +grd_divsvcmassschelist.selectedRow(0)+ "]/clscd"));
- model.setValue("/root/main/bunryu/clsnm", model.getValue("/root/main/divsvcmassschelist/divsvcmassschelistinfo[" +grd_divsvcmassschelist.selectedRow(0)+ "]/clsnm"));
- model.setValue("/root/main/bunryu/scrncd", model.getValue("/root/main/divsvcmassschelist/divsvcmassschelistinfo[" +grd_divsvcmassschelist.selectedRow(0)+ "]/scrncd"));
- model.setValue("/root/main/bunryu/scrncd2", model.getValue("/root/main/bunryu/scrncd"));
- model.setValue("/root/main/bunryu/clsrefseq", model.getValue("/root/main/divsvcmassschelist/divsvcmassschelistinfo[" +grd_divsvcmassschelist.selectedRow(0)+ "]/clsrefseq"));
- model.refresh();
- }
-
- function fInsBunRyuGridInfo(){
-
- var isValid=model.getValue("/root/main/bunryu/clsflag");
- if(isValid == "") messageBox("리스트에서 분류코드 항목을", "C002");
-
- var instcd=model.getValue("/root/main/bunryu/clscd");
-
-
- //submit
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/clsflag", model.getValue("/root/main/bunryu/clsflag"));
-
- if(isValid != "") {
- submit("TRAYA02902", false);
- var tmpclscd=model.getValue("/root/main/ret/seq/clscd");
- if(instcd == tmpclscd) {
- model.setValue("/root/main/bunryu/clscd", tmpclscd);
- }
- else {
- model.setValue("/root/main/bunryu/clscd", tmpclscd);
- model.setValue("/root/main/bunryu/clssupcd", instcd);
- }
-
- model.makeValue("/root/send/reqdata/clssupcd", model.getValue("/root/main/bunryu/clssupcd"));
- submit("TRAYA02903", false);
-
- var tmpcls=model.getValue("/root/main/ret/seq/clsrefseq");
- if(tmpcls == "") model.setValue("/root/main/bunryu/clsrefseq", 1);
- else model.setValue("/root/main/bunryu/clsrefseq", tmpcls);
- }
-
- //clear
- model.setValue("/root/main/bunryu/clsnm", "");
- model.setValue("/root/main/bunryu/scrncd", "");
- model.setValue("/root/main/bunryu/scrncd2", "");
- model.removeNodeset("/root/send/status");
- model.makeValue("/root/send/status", "i");
- model.refresh();
-
- }
-
- function fExeBunRyuGridInfo() {
-
- var status=model.getValue("/root/send/status");
- if(status == "i") {
- model.removeNodeset("/root/send/reqata");
- model.makeNode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata/savedata");
- model.makeValue("/root/main/bunryu/status", "i");
- model.copyNode("/root/send/reqdata/savedata", "/root/main/bunryu");
-
- }
- else {
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata/savedata");
- model.makeValue("/root/main/bunryu/status", "u");
- model.copyNode("/root/send/reqdata/savedata","/root/main/bunryu");
- }
-
- var isValid;
- isValid=fIsVaild();
- if(isValid =="OK") {
- model.makeNode("/root/send/reqdata/conddata");
- model.makeValue("/root/send/reqdata/conddata/clscd_tr", model.getValue("/root/main/clscd"));
- //입력, 수정
- submit("TXAYA02901");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRAYA02901");
- trv_divsvcmassclslist.rebuild();
- model.removeNodeset("/root/send/status");
- } else {
- messageBox("필수항목이 입력되지" , "E007");
- //model.setFocus(isValid);
- }
-
-
- //트리의 현재 focus
- var temp=model.getValue("/root/main/clscd");
- model.setValue("/root/main/bunryu/clsflag", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+temp+"']/clsflag"));
- model.setValue("/root/main/bunryu/clssupcd", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+temp+"']/clssupcd"));
- model.setValue("/root/main/bunryu/clscd", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+temp+"']/clscd"));
- model.setValue("/root/main/bunryu/clsnm", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+temp+"']/clsnm"));
- model.setValue("/root/main/bunryu/scrncd", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+temp+"']/scrncd"));
- model.setValue("/root/main/bunryu/clsrefseq", model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='"+temp+"']/clsrefseq"));
- model.refresh();
- }
-
- function fIsVaild() {
- var isValid;
- var clsflag=model.getValue("/root/main/bunryu/clsflag");
- var clssupcd=model.getValue("/root/main/bunryu/clssupcd");
- var clscd=model.getValue("/root/main/bunryu/clscd");
- var clsnm=model.getValue("/root/main/bunryu/clsnm");
- var scrncd2=model.getValue("/root/main/bunryu/scrncd2");
- var clsrefseq=model.getValue("/root/main/bunryu/clsrefseq");
-
- if(clsflag =="") {
- isValid="clsflag";
- return;
- }
- if(clssupcd == "") {
- isValid="clssupcd";
- return;
- }
- if(clscd == "") {
- isValid="clscd";
- return;
- }
- if(clsnm == "") {
- isValid="clsnm";
- return;
- }
- if(scrncd2 == "") {
- isValid="scrncd2";
- return;
- }
- if(clsrefseq == "") {
- isValid="clsrefseq";
- return;
- }
- isValid="OK";
-
- return isValid;
- }
-
- function fDelBunRyuGridInfo(){
- model.removeNodeset("/root/send/status");
- model.makeValue("/root/send/status", "x");
-
- var totPos=trv_divsvcmassclslist.length;
- var bunRyucd=model.getValue("/root/main/bunryu/clscd");//삭제하려는 대상의 분류코드
- var supcd;
- var subcd;
- var ret;
- var cnt=0;
- var ycnt=0;
-
- for (var i=0 ; i<= totPos ; i++) {
- supcd=model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo["+ i +"]/clssupcd");
- if(bunRyucd == supcd) {
- model.setValue("/root/send/status", "s");
- messageBox("삭제할 하위항목을 ", "C002");
- break;
- }
- }
-
-
- var status=model.getValue("/root/send/status");
- if(status != "s"){
- var selnm=model.getValue("/root/main/bunryu/clsnm");
- ret=messageBox(selnm, "Q001");
-
- if(ret == "6") {
- model.removeNodeset("/root/send/removedata");
- model.makeNode("/root/send/removedata");
- /*model.makeValue("/root/send/removedata/clscd", model.getValue("/root/main/bunryu/clscd"));
- model.makeValue("/root/send/removedata/status","d");
- model.makeValue("/root/send/removedata/clsflag", model.getValue("/root/main/bunryu/clsflag"));
- model.makeValue("/root/send/removedata/clssupcd", model.getValue("/root/main/bunryu/clssupcd"));*/
- model.makeNode("/root/send/removedata/reqdata");
- model.makeValue("/root/main/bunryu/status", "d");
- model.copyNode("/root/send/removedata/reqdata", "/root/main/bunryu");
-
- model.makeNode("/root/send/removedata/condata");
- model.makeValue("/root/send/removedata/condata/clscd_tr", model.getValue("/root/main/clscd"));
- submit("TXAYA02902");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRAYA02901");
-
- model.setValue("/root/main/bunryu/clsflag", "");
- model.setValue("/root/main/bunryu/clssupcd", "");
- model.setValue("/root/main/bunryu/clscd", "");
- model.setValue("/root/main/bunryu/clsnm", "");
- model.setValue("/root/main/bunryu/scrncd", "");
- model.setValue("/root/main/bunryu/scrncd2", "");
- model.setValue("/root/main/bunryu/clsrefseq", "");
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:147px; height:14px; ">분류코드관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <treeview id="trv_divsvcmassclslist" ref="/root/main/clscd" expanddepth="3" itemsettype="depth" style="left:0px; top:30px; width:290px; height:710px; ">
- <itemset nodeset="/root/main/divsvcmassclslist/divsvcmassclslistinfo">
- <label ref="clsnm"/>
- <value ref="clscd"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectedTree();
- ]]>
- </script>
- </treeview>
- <caption id="caption1" class="tit_2" style="left:300px; top:10px; width:190px; height:14px; ">분류코드 조회 및 등록관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:290px; y2:25px; ">-</line>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:145px; height:14px; ">분류코드 리스트</caption>
- <line id="line5" class="line_1" style="x1:295px; y1:25px; x2:1194px; y2:25px; "/>
- <datagrid id="grd_divsvcmassschelist" nodeset="/root/main/divsvcmassschelist/divsvcmassschelistinfo" caption="분류구분^분류코드^분류명^상위코드^화면코드^조회순서" colsep="^" colwidth="93, 111, 317, 96, 89, 80" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:295px; top:81px; width:899px; height:660px; ">
- <col ref="clsflag"/>
- <col ref="clscd"/>
- <col ref="clsnm"/>
- <col ref="clssupcd"/>
- <col ref="scrncd"/>
- <col ref="clsrefseq"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCopyToSelect();
- ]]>
- </script>
- </datagrid>
- <select1 id="combo4" ref="/root/main/cond/clsflag" class="combo_search" appearance="minimal" style="left:175px; top:5px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>교육</label>
- <value>A</value>
- </item>
- <item>
- <label>행사</label>
- <value>B</value>
- </item>
- <item>
- <label>성사</label>
- <value>C</value>
- </item>
- <item>
- <label>교직원 단체</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- fSelectedCombo();
- ]]>
- </script>
- </select1>
- <output id="ipt_cdcls" ref="/root/main/bunryu/clssupcd" class="output_fix" navindex="8" style="left:552px; top:32px; width:88px; height:19px; "/>
- <output id="ipt_supbasetypecd" ref="/root/main/bunryu/clsflag" class="output_fix" style="left:378px; top:32px; width:88px; height:19px; "/>
- <input id="ipt_basetypecd" ref="/root/main/bunryu/clscd" class="input_default" navindex="1" maxlength="6" style="left:726px; top:32px; width:88px; height:19px; "/>
- <input id="ipt_typenm" ref="/root/main/bunryu/clsnm" class="input_default" navindex="2" style="left:900px; top:32px; width:294px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:295px; top:30px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">분류구분</caption>
- <caption id="caption3" class="cell_1" style="left:469px; top:30px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">상위코드</caption>
- <caption id="caption4" class="cell_1" style="left:643px; top:30px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">분류코드</caption>
- <caption id="caption7" class="cell_1" style="left:295px; top:55px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">화면코드</caption>
- <caption id="caption8" class="cell_1" style="left:643px; top:55px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">조회순서</caption>
- <caption id="caption9" class="cell_1" style="left:817px; top:30px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">분류명</caption>
- <line id="line3" class="line_3" style="x1:295px; y1:79px; x2:1194px; y2:79px; "/>
- <line id="line2" class="line_2" style="x1:295px; y1:54px; x2:1194px; y2:54px; "/>
- <input id="input1" ref="/root/main/bunryu/clsrefseq" class="input_default" navindex="3" style="left:726px; top:57px; width:88px; height:19px; "/>
- <select1 id="cmb_ngdtdwcd" ref="/root/main/bunryu/scrncd" class="combo_default" appearance="minimal" style="left:378px; top:57px; width:171px; height:19px; ">
- <choices>
- <item>
- <label>미등록</label>
- <value>XX</value>
- </item>
- <item>
- <label>교육</label>
- <value>A1</value>
- </item>
- <item>
- <label>행사</label>
- <value>B1</value>
- </item>
- <item>
- <label>세례/견진성사</label>
- <value>C1</value>
- </item>
- <item>
- <label>기타성사</label>
- <value>C2</value>
- </item>
- <item>
- <label>축복식</label>
- <value>C3</value>
- </item>
- <item>
- <label>미사</label>
- <value>C4</value>
- </item>
- <item>
- <label>교직원단체</label>
- <value>D1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/main/bunryu/scrncd2", model.getValue("/root/main/bunryu/scrncd"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <output id="output1" ref="/root/main/bunryu/scrncd2" class="output_fix" navindex="8" style="left:552px; top:57px; width:88px; height:19px; "/>
- <button id="button3" class="btn5_letter2" style="left:1152px; top:5px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelBunRyuGridInfo();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" style="left:1107px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBunRyuGridInfo();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:1061px; top:5px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsBunRyuGridInfo();
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|