123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <?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>
- <userinfo>
- <userid/>
- <usernm/>
- <rrgstno/>
- <dutplcenm/>
- <deptcd/>
- <fromdd/>
- <todd/>
- <workflag/>
- <bfdeptcd/>
- <telno/>
- <automagm/>
- <uncoyn/>
- <rcptposcd/>
- </userinfo>
- <userrgst>
- <userrgstlist/>
- </userrgst>
- <popupendflag/>
- </main>
- <send>
- <usernm/>
- <userid/>
- <deptcd/>
- </send>
- <init>
- <P0128list/>
- </init>
- <hidden>
- <source>
- <autoflag/>
- <userid/>
- </source>
- </hidden>
- <tmp>
- <userrgstinfo>
- <userrgstinfolist/>
- </userrgstinfo>
- </tmp>
- </root>
- </instance>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userrgst"/>
- <submission id="TXPMB03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/userinfo" resultref="root/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.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="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize1();
-
- pamfGetCodeList(new Array("P0128"), new Array("/root/init/P0128list"));
-
- fSearch();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize1(){
-
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- model.removeNodeset("/root/main/userrgst/userrgstlist");
-
- model.setValue("/root/main/userinfo/fromdd", getCurrentDate());
- model.setValue("/root/main/userinfo/todd", "99991231");
- model.setValue("/root/main/userinfo/automagm", "N");
- model.setValue("/root/main/userinfo/uncoyn", "N");
- model.refresh();
- }
-
- function fInitialize2(){
- model.resetInstanceNode("/root/main/userinfo");
-
- model.setValue("/root/main/userinfo/fromdd", getCurrentDate());
- model.setValue("/root/main/userinfo/todd", "99991231");
- }
-
- function fcheck(){
- if (model.getValue("/root/main/userinfo/userid") == "") {
- messageBox("사용자ID가 입력되지", "E007");
- return false;
- }
-
- if (model.getValue("/root/main/userinfo/deptcd") == "") {
- messageBox("등록부서가 입력되지", "E007");
- return false;
- }
-
- if (model.getValue("/root/main/userinfo/fromdd") == "") {
- messageBox("시작일자가 입력되지", "E007");
- return false;
- }
-
- if (model.getValue("/root/main/userinfo/todd") == "") {
- messageBox("종료일자가 입력되지", "E007");
- return false;
- }
-
- var rcptposcd = model.getValue("/root/main/userinfo/rcptposcd");
- if (rcptposcd == "00" || rcptposcd == "") {
- messageBox("수납위치가 입력되지", "E007");
- return false;
- }
-
- return true;
- }
-
- function checkdd(){
- var fromdd = model.getValue("/root/main/userinfo/fromdd");
- var todd = model.getValue("/root/main/userinfo/todd");
-
- if (fromdd > todd) {
- messageBox("종료일은 시작일보다 클 수 ", "I004");
- }
- }
-
- function fSearch() {
- if (submit("TRPMB03301")) {
- fInitialize2();
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">수납마감 사용자 관리</caption>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:11px; top:28px; width:99px; height:17px; ">사용자명 :</caption>
- <input id="input7" ref="/root/send/usernm" style="left:105px; top:28px; width:105px; height:19px; "/>
- <caption id="caption17" class="search_name" style="left:237px; top:28px; width:86px; height:17px; ">사용자ID :</caption>
- <input id="input5" ref="/root/send/userid" style="left:330px; top:28px; width:105px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:468px; top:28px; width:86px; height:17px; ">등록부서 :</caption>
- <select1 id="combo2" ref="/root/send/deptcd" appearance="minimal" style="left:560px; top:28px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>원무팀</label>
- <value>01</value>
- </item>
- <item>
- <label>건진팀</label>
- <value>02</value>
- </item>
- <item>
- <label>기타</label>
- <value>03</value>
- </item>
- </choices>
- </select1>
- <line id="line13" class="line_4" style="x1:1120px; y1:26px; x2:1120px; y2:48px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:65px; width:113px; height:13px; ">사용자 관리내역</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:85px; width:70px; height:23px; vertical-align:middle; ">사용자ID</caption>
- <input id="ipt_userid" ref="/root/main/userinfo/userid" style="left:72px; top:86px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- model.makeNode("/root/main/popupendflag");
-
- if (event.keyCode == "13") {
- model.setValue("/root/main/popupendflag", "ok");
- model.setValue("/root/main/userinfo/userid", ipt_userid.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button1" accesskey="f2" class="icon_search" style="left:177px; top:88px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var popupendflag = model.getValue("/root/main/popupendflag");
-
- if (popupendflag == "ok") {
- setParameter("SPPMC02600_userid", ipt_userid.currentText);
- }
-
- modal("SPPMC02600", "", "200", "300", "SPPMC02600","/root/temp/userpopupinfo","/root/main/userinfo");
-
- model.makeNode("/root/main/userinfo/telno"); //전화번호
- model.makeNode("/root/main/userinfo/deptcd"); //등록부서
- model.makeNode("/root/main/userinfo/automagm"); //자동마감
- model.makeNode("/root/main/userinfo/uncoyn"); //미수발생
- model.makeNode("/root/main/userinfo/fromdd"); //시작일자
- model.makeNode("/root/main/userinfo/todd"); //종료일자
- model.makeNode("/root/main/userinfo/workflag");
- model.makeNode("/root/main/userinfo/bfdeptcd");
- model.makeNode("/root/main/userinfo/rcptposcd");
-
- model.setValue("/root/main/userinfo/fromdd", getCurrentDate());
- model.setValue("/root/main/userinfo/todd", "99991231");
- model.setValue("/root/main/userinfo/automagm", "N");
- model.setValue("/root/main/userinfo/uncoyn", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:200px; top:85px; width:70px; height:23px; vertical-align:middle; ">사용자명</caption>
- <input id="input21" ref="/root/main/userinfo/usernm" disabled="true" navindex="4" appearance="input" style="left:272px; top:86px; width:125px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:400px; top:85px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
- <input id="input9" ref="/root/main/userinfo/rrgstno" disabled="true" style="left:472px; top:86px; width:125px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:600px; top:85px; width:70px; height:23px; vertical-align:middle; ">사용자부서</caption>
- <input id="input2" ref="/root/main/userinfo/dutplcenm" disabled="true" navindex="4" appearance="input" style="left:672px; top:86px; width:125px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:800px; top:85px; width:70px; height:23px; vertical-align:middle; ">등록부서</caption>
- <select1 id="combo1" ref="/root/main/userinfo/deptcd" appearance="minimal" style="left:872px; top:86px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>원무팀</label>
- <value>01</value>
- </item>
- <item>
- <label>건진팀</label>
- <value>02</value>
- </item>
- <item>
- <label>기타</label>
- <value>03</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:1000px; top:85px; width:70px; height:23px; ">전화번호</caption>
- <input id="input3" ref="/root/main/userinfo/telno" maxlength="8" style="left:1072px; top:86px; width:123px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:200px; top:109px; width:70px; height:23px; vertical-align:middle; ">자동마감</caption>
- <select1 id="rdo_automagm" ref="/root/main/userinfo/automagm" appearance="full" cols="2" rows="1" overflow="visible" style="left:272px; top:110px; width:80px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:400px; top:109px; width:70px; height:23px; vertical-align:middle; ">미수발생</caption>
- <select1 id="rdo_uncoyn" ref="/root/main/userinfo/uncoyn" appearance="full" cols="2" rows="1" overflow="visible" style="left:472px; top:110px; width:80px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:109px; width:70px; height:23px; vertical-align:middle; ">수납위치</caption>
- <select1 id="cmb_rcptpos" ref="/root/main/userinfo/rcptposcd" appearance="minimal" style="left:72px; top:110px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0128list/P0128">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="cell_1" style="left:800px; top:109px; width:70px; height:23px; vertical-align:middle; ">시작일자</caption>
- <input id="ipt_fromdd" ref="/root/main/userinfo/fromdd" class="input_default" navindex="2" inputtype="date" style="left:872px; top:110px; width:125px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- checkdd();
- ]]>
- </script>
- </input>
- <caption id="caption13" class="cell_1" style="left:1000px; top:109px; width:70px; height:23px; vertical-align:middle; ">종료일자</caption>
- <input id="ipt_todd" ref="/root/main/userinfo/todd" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:1072px; top:110px; width:123px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- checkdd();
- ]]>
- </script>
- </input>
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:107px; x2:1195px; y2:107px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:131px; x2:1195px; y2:131px; "/>
- <button id="button52" class="btn2_letter2" style="left:1109px; top:60px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/userinfo/todd") < getCurrentDate()) {
- messageBox("종료일자를 오늘날짜 이전으로는 저장 할 수 없습니다.", "E999");
- model.setFocus("ipt_todd");
- return;
- }
-
- if (!fcheck()){
- return;
- }
-
- if (model.getValue("/root/main/userinfo/workflag") != "U") {
- model.setValue("/root/main/userinfo/workflag", "I");
- }
-
- var workflag = model.getValue("/root/main/userinfo/workflag");
-
- if (workflag == "I") {
- if (messageBox("해당 사용자를 신규저장 하시겠습니까?", "Q999") != 6) return;
- } else if(workflag == "U"){
- if (messageBox("해당 사용자를 수정 하시겠습니까?", "Q999") != 6) return;
- } else {
- messageBox("저장할 내역이 선택되지 않았습니다!", "Q999");
- return;
- }
-
- if (submit("TXPMB03302")) {
- fInitialize2();
- }
-
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button53" accesskey="f1" class="btn5_letter2" style="left:1153px; top:60px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (messageBox("해당 사용자를 삭제 하시겠습니까?", "Q999") != 6) return;
-
- model.setValue("/root/main/userinfo/workflag", "D");
-
- if (submit("TXPMB03302")) {
- fInitialize2();
- }
-
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption20" class="tit_2" style="left:0px; top:140px; width:157px; height:13px; ">사용자관리 등록 리스트</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:155px; x2:1195px; y2:155px; "/>
- <datagrid id="grd_userlist" nodeset="/root/main/userrgst/userrgstlist" caption="사용자명^사용자ID^주민번호^사용자부서^등록부서^전화번호^수납위치^자동마감^미수발생^시작일자^종료일자^최초등록자^최초등록일자^최종수정자^최종수정일자^seqno^histno" colsep="^" colwidth="60, 60, 100, 120, 70, 70, 70, 60, 60, 80, 80, 70, 120, 70, 120, 50, 50" dataheight="25" defaultrows="2" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:160px; width:1195px; height:585px; text-align:center; ">
- <col disabled="true" ref="usernm"/>
- <col disabled="true" ref="userid"/>
- <col disabled="true" ref="rrgstno"/>
- <col disabled="true" ref="dutplcenm"/>
- <col disabled="true" ref="deptcd" type="combo">
- <choices>
- <item>
- <label>원무팀</label>
- <value>01</value>
- </item>
- <item>
- <label>건진팀</label>
- <value>02</value>
- </item>
- <item>
- <label>기타</label>
- <value>03</value>
- </item>
- </choices>
- </col>
- <col ref="telno"/>
- <col disabled="true" ref="rcptposcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0128list/P0128">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="automagm" type="combo">
- <choices>
- <item>
- <label>○</label>
- <value>Y</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="uncoyn" type="combo">
- <choices>
- <item>
- <label>○</label>
- <value>Y</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="fromdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="todd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="fstrgstrid"/>
- <col disabled="true" ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col disabled="true" ref="lastupdtrid"/>
- <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="histno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cur_row = grd_userlist.row;
-
- if(cur_row > 0) {
-
- model.copyNode("/root/main/userinfo", "/root/main/userrgst/userrgstlist[" + cur_row + "]");
-
- model.makeValue("/root/main/userinfo/bfdeptcd", model.getValue("/root/main/userrgst/userrgstlist[" + cur_row + "]/deptcd"));
- model.makeValue("/root/main/userinfo/workflag", "U");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_userlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:750px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize1();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|