123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <userlist/>
- </list>
- <item>
- <rrgstno/>
- <userid/>
- <useyn/>
- <lastupdtrid/>
- <lastupdtdt/>
- <fstrgstrid/>
- <fstrgstdt/>
- </item>
- </main>
- <init>
- <flag>
- <name>사용자ID</name>
- <value>userid</value>
- </flag>
- <flag>
- <name>사용자명</name>
- <value>usernm</value>
- </flag>
- <flag>
- <name>주민번호</name>
- <value>rrgstno</value>
- </flag>
- <useyn>
- <lable>사용중</lable>
- <value>Y</value>
- </useyn>
- <useyn>
- <lable>사용중지</lable>
- <value>N</value>
- </useyn>
- </init>
- <send>
- <flag/>
- <searchitem/>
- <item/>
- </send>
- </root>
- </instance>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TXZSU10103" encoding="euc-kr" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRZSU10108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/userdeptinfoweb/js/ZSU001.js" type="javascript"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list/userlist");
- model.resetInstanceNode("/root/main/item");
- radio1.select(0);
- fDisabledStyle("_init", "disabledY");
- model.refresh();
- }
- /*
- 컨트롤들을 disabled 시킵니다.
- mode : "disabledY" 는 해당 컨트롤들을 disabled 시킵니다.
- "disabledN" 은 해당 컨트롤들을 enabled 시킵니다.
- */
- function fDisabledStyle(flag, mode){
- var isYN = "true";
-
- if("disabledY" == mode){
- isYN = "true";
- }
- if("disabledN" == mode){
- isYN = "false";
- }
- if ("_init" == flag){
- ipt_rrgstno.disabled = isYN;
- ipt_userid.disabled = isYN;
- btn_save.disabled = isYN;
- btn_rgst_userinfo.disabled = isYN;
- }
- if("_updt" == flag) {
- btn_search_userid.disabled = isYN;
- btn_save.disabled = isYN;
- }
- }
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- model.resetInstanceNode("/root/send");
- fDisabledStyle("_init", "disabledY");
- } else if ("init" == control){
- // model.reset();
- fSetMakeValue("/root/main/item", "status", "i");
- // model.setValue("/root/main/item/status", "i");
- fInitClick();
- } else if ("save" == control){
- fSaveClick();
- } else {
- messageBox("처리를 수행","E002");
- }
- model.refresh();
- }
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_useridnm_flag는 검색조건의 사용자ID or 사용자명입니다.
- radio1은 사용자ID or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- }
- /*
- 신규버튼 클릭시 타는 함수입니다.
- 새로운 사용자를 등록할 수 있게 사용자정보의 컨트롤들을 enabled 시킵니다.
- */
- function fInitClick(){
- fDisabledStyle("_init", "disabledN");
- }
- /*
- 저장 버튼 클릭시 사는 함수입니다.
- 사용자ID, 사용자명, 비밀번호, 적용시작일자, 적용종료일자는 필수 항목 입니다.
- 필수항목 모두 입력시 /root/main/item 노드를 send 노드로 복사합니다.
- submit을 날립니다.
- */
- function fSaveClick(){
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사용자ID발번정보</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
- <group id="grp_sea" 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; "/>
- <caption id="caption2" class="search_name" style="left:411px; top:9px; width:99px; height:17px; ">사용자ID :</caption>
- <line id="line13" style="x1:1107px; y1:7px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption33" class="search_name" style="left:25px; top:9px; width:86px; height:17px; ">검색조건 :</caption>
- <select1 id="radio1" ref="/root/init" class="s" overflow="visible" appearance="full" cellspacing="5" cols="3" style="left:131px; top:10px; width:13px; height:13px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/flag">
- <label ref="name"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script ev:event="xforms-select" type="javascript">
- <![CDATA[
- if(radio1.value == "userid"){
- caption2.value = "사용자ID : "
- } else if(radio1.value == "usernm") {
- caption2.value = " 사용자명 : "
- } else if(radio1.value == "rrgstno") {
- caption2.value = " 주민번호 : "
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_search_item" ref="/root/send/searchitem" class="input_s_essential" style="left:530px; top:8px; width:130px; height:19px; ">
- <script ev:event="onkeypress" type="javascript">
- <![CDATA[
- //var param = ipt_search_item.currentText;
- if("13" == event.keyCode){
- btn_search.dispatch("DOMActivate");
- //fClicked("search", grd_userbaseinfo, param);
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- if(ipt_search_item.currentText == ""){
- messageBox("검색어를 1자이상 ", "C001");
- } else {
- var iSearchitem = ipt_search_item.currentText;
- model.removeNodeset("/root/main/list/userlist");
- grd_userrrgstnoinfo.rebuild();
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem", iSearchitem);
- model.setValue("/root/send/flag", radio1.value);
- submit("TRZSU10108");
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line12" class="line_1" style="x1:0px; y1:709px; x2:1195px; y2:709px; "/>
- <caption id="caption1" class="tit_2" style="left:-3px; top:695px; width:134px; height:13px; ">사용자ID발번등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption7" class="cell_1" style="left:-3px; top:715px; width:105px; height:23px; vertical-align:middle; ">사용자ID</caption>
- <line id="line9" class="line_3" style="x1:0px; y1:680px; x2:1194px; y2:680px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:713px; x2:1195px; y2:713px; "/>
- <input id="ipt_userid" ref="/root/main/item/userid" class="input_essential" appearance="input" style="left:105px; top:716px; width:132px; height:19px; "/>
- <datagrid id="grd_userrrgstnoinfo" nodeset="/root/main/list/userlist" caption="주민번호^사용자ID^사용여부^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="100" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:605px; ">
- <col ref="rrgstno" type="input"/>
- <col ref="userid" type="input"/>
- <col ref="useyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/useyn">
- <label ref="lable"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstrid"/>
- <col ref="fstrgsttdt"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- </datagrid>
- <caption id="caption17" class="tit_2" style="left:0px; top:55px; width:121px; height:14px; ">사용자ID발번정보</caption>
- <button id="btn_save_excel" class="btn2_letter4" style="left:984px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "사용자ID발번정보", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_userrrgstnoinfo.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_temp_userrrgstno" nodeset="/root/main/list/userlist" visibility="hidden" scroll="auto" caption="주민번호^사용자ID^사용여부^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="100" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:120px; top:295px; width:220px; height:105px; ">
- <col ref="rrgstno"/>
- <col ref="userid"/>
- <col ref="useyn"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgsttdt"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- </datagrid>
- <button id="btn_ins_excel" class="btn2_letter4" style="left:1052px; top:49px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var fileName = window.fileDialog("open", "", false, "", "", "Excel File(*.xls)|*.xls");
- grd_userrrgstnoinfo.loadExcel(fileName);
-
- for (i=grd_userrrgstnoinfo.fixedRows; i<grd_userrrgstnoinfo.rows; i++)
- {
- grd_userrrgstnoinfo.rowStatus(i) = 1;
- }
- ]]>
- </script>
- </button>
- <input id="ipt_rrgstno" ref="/root/main/item/rrgstno" class="input_essential" style="left:360px; top:716px; width:132px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:252px; top:715px; width:105px; height:23px; vertical-align:middle; ">주민번호</caption>
- <button id="btn_rgst_userinfo" class="btn2_letter2" style="left:1152px; top:690px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- grd_userrrgstnoinfo.addItem();
- var iRow = grd_userrrgstnoinfo.row;
- copyNodeType("/root/main/list/userlist["+iRow+"]", "/root/main/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter5" style="left:1119px; top:49px; width:75px; height:19px; ">
- <caption>Row 삭제</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var iRow = grd_userrrgstnoinfo.row;
- grd_userrrgstnoinfo.deleteItem(iRow);
- ]]>
- </script>
- </button>
- <button id="btn_add_acntgrup" class="btn2_letter2" style="left:935px; top:50px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- grd_userrrgstnoinfo.addItem();
- grd_userrrgstnoinfo.editCell();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_3" style="x1:0px; y1:738px; x2:1195px; y2:738px; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_new" class="btn4_letter2" style="left:1077px; top:0px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- model.resetInstanceNode("/root/main/item");
- model.removeNodeset("/root/main/list");
- fClicked("init");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1135px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- model.setValue("/root/send/item", grd_userrrgstnoinfo.getUpdateData());
- submit("TXZSU10103");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1007px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fInitialize();
- fDisabledStyle("_init", "disabledY");
- ]]>
- </script>
- </button>
- <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|