123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <bizlist>
- <biz>
- <bizid/>
- <biznm/>
- <detldesc/>
- <delyn/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- </biz>
- </bizlist>
- <search>
- <searchcondition>bizid</searchcondition>
- <searchterm/>
- </search>
- <mode>
- <modestatus/>
- <modelabel/>
- </mode>
- <data>
- <bizid/>
- <biznm/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- <delyn/>
- <detldesc/>
- </data>
- </main>
- <send>
- <data>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC004.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/search/searchcondition", "bizid");
- model.setValue("/root/main/search/searchterm", "");
- model.removenode("/root/main/bizlist");
- model.makeNode("/root/main/bizlist");
- fInitMainData(true);
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/bizlist"/>
- <submission id="TXZBC00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/bizlist"/>
- <submission id="TXZBC00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBC00114" 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[
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1198;" 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; ">
- <line id="line5" class="line_2" style="x1:0px; y1:598px; x2:1194px; y2:598px; "/>
- <group id="group2" 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[
- fGetBizList();
- ]]>
- </script>
- </button>
- <input id="ipt_search" ref="/root/main/search/searchterm" class="input_search" style="left:130px; top:8px; width:150px; height:19px; "/>
- <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:20px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>업무규칙ID</label>
- <value>bizid</value>
- </item>
- <item>
- <label>업무규칙명</label>
- <value>biznm</value>
- </item>
- </choices>
- </select1>
- </group>
- <output id="opt_modellabel" ref="/root/main/mode/modelabel" class="tit_2" style="left:0px; top:555px; width:269px; height:13px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:570px; x2:1194px; y2:570px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:575px; width:100px; height:23px; vertical-align:middle; ">우편번호 앞자리</caption>
- <caption id="caption20" class="tit_2" style="left:6px; top:65px; width:118px; height:13px; ">업무규칙 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
- <button id="btn_delete" class="btn2_letter2" style="left:1139px; top:550px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var authinstcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authinstcd"));
- var authdeptcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authdeptcd"));
- var authrized = fAuthorize(authinstcd, authdeptcd);
- if(authrized){
- fDelBiz();
- }else{
- var userinfo = fGetUserInfo();
- messageBox(userinfo+" 는 삭제할", "E002") ;
- }
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn2_letter2" style="left:1096px; top:550px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var authinstcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authinstcd"));
- var authdeptcd = grd_bizlist.valueMatrix(grd_bizlist.row, grd_bizlist.colRef("authdeptcd"));
- var authrized = fAuthorize(authinstcd, authdeptcd);
- if(authrized){
- fSettBiz();
- }else{
- var userinfo = fGetUserInfo();
- messageBox(userinfo+" 는 수정할", "E002") ;
- }
- ]]>
- </script>
- </button>
- <caption id="caption22" class="cell_1" style="left:0px; top:600px; width:100px; height:135px; vertical-align:middle; ">
- <![CDATA[업무규칙
- 상세설명]]>
- </caption>
- <caption id="caption24" class="cell_1" style="left:0px; top:575px; width:100px; height:23px; vertical-align:middle; ">업무규칙 ID</caption>
- <textarea id="tar_bizdesc" ref="/root/main/data/detldesc" style="left:105px; top:605px; width:1080px; height:125px; "/>
- <select1 id="cmb_delyn" ref="/root/main/data/delyn" class="combo_essential" appearance="minimal" style="left:495px; top:576px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="btn_add" class="btn2_letter2" style="left:1053px; top:550px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- 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/delyn", "N");
- cmb_delyn.disabled = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:195px; top:575px; width:100px; height:23px; vertical-align:middle; ">업무규칙 이름</caption>
- <input id="ipt_biznm" ref="/root/main/data/biznm" class="input_essential" style="left:300px; top:576px; width:85px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:390px; top:575px; width:100px; height:23px; vertical-align:middle; ">삭제여부</caption>
- <input id="ipt_bizid" ref="/root/main/data/bizid" class="input_essential" style="left:105px; top:576px; width:85px; height:19px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
- <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; ">
- <col ref="bizid"/>
- <col ref="biznm"/>
- <col ref="detldesc"/>
- <col ref="delyn"/>
- <col ref="authinstcd"/>
- <col ref="authinstnm"/>
- <col ref="authdeptcd"/>
- <col ref="authdeptnm"/>
- <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[
- fGetBiz();
- ]]>
- </script>
- </datagrid>
- </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.dispatch("xforms-ready");
- ]]>
- </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 mode = model.getValue("/root/main/mode/modestatus");
- var bizid;
- if(mode=="view"){
- messageBox("조회중인 정보를 저장", 'E001') ;
- return;
- }else if(mode=="insert"){
- if(!fValidateMainData()) return false;
- bizid = model.getValue("/root/main/data/bizid");
- var biznm = model.getValue("/root/main/data/biznm");
- result = messageBox("[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 추가", "S001");
- if( result==7 || result == 2 ) return;
- model.copyNode("/root/send/data", "/root/main/data");
- result = submit("TXZBC00112");
- }else if(mode=="update"){
- if(!fValidateMainData()) return false;
- bizid = model.getValue("/root/main/data/bizid");
- var biznm = model.getValue("/root/main/data/biznm");
- result = messageBox( "[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 수정", "S001");
- if( result==7 || result == 2 ) return;
- model.copyNode("/root/send/data", "/root/main/data");
- result = submit("TXZBC00113");
- }else if(mode=="delete"){
- if(!fValidateMainData()) return false;
- bizid = model.getValue("/root/main/data/bizid");
- var biznm = model.getValue("/root/main/data/biznm");
- result = messageBox("[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 삭제", "S001");
- if( result==7 || result == 2 ) return;
- model.copyNode("/root/send/data", "/root/main/data");
- result = submit("TXZBC00114");
- }else{
- messageBox('처리 모드를', 'C002');
- return;
- }
- fGetBizList();
- if(mode!="delete"){
- fFindBiz(bizid);
- fGetBiz();
- }else{
- fInitMain();
- }
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group7" style="left:1110px; top:85px; width:75px; height:32px; ">
- <button id="btn_saveexcel" class="btn2_letter4" style="left:6px; top:11px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_bizlist.saveExcel(fileName);
-
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|