123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <?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>통합조회 SuperUser관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <datalist>
- <datainfo>
- <userid/>
- <username/>
- <seq/>
- <valifromdd/>
- <valitodd/>
- <valifromdt/>
- <valitodt/>
- <usercomment/>
- <endflag/>
- </datainfo>
- </datalist>
- <userinfo>
- <userid/>
- <valifromdt/>
- <valitodt/>
- <usercomment/>
- <status>i</status>
- <type>
- <A/>
- </type>
- </userinfo>
- </main>
- <send>
- <savedata/>
- <save/>
- <endshowyn/>
- </send>
- <hidden>
- </hidden>
- <temp>
- <datalist/>
- <userinfo>
- <useryn/>
- </userinfo>
- </temp>
- </root>
- </instance>
- <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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- fInitUserValue();
- fGetHardCDList("N", 5662, 0 , "/root/hidden/permituser");
- fSearch();
- }
-
- function fInitUserValue(){
- model.setValue("/root/main/userinfo/userid","");
- model.setValue("/root/main/userinfo/valifromdt",getCurrentDate()+getCurrentTime().substring(0,4));
- model.setValue("/root/main/userinfo/valitodt","999912312359");
- model.setValue("/root/main/userinfo/usercomment","");
- model.refresh();
- }
-
- function fSearch(){
- submit("TRMRI04000");
- fDataGridReSet();
- }
-
- function fUserSave(){
-
- model.copyNode("/root/send/save", "/root/main/userinfo");
-
- if(fCheckedSuperUserYN()){
- if(fCheckedPermitUser()){
- if(!isNull(model.getValue("/root/main/userinfo/userid"))){
- if(submit("TXMRI04001")){
- fDataGridReSet();
- fInitUserValue();
- }
- }
- }
- }
-
- model.resetInstanceNode("/root/send/save");
- model.refresh();
- }
-
- function fEndFlagSave(){
- if(fCheckedPermitUser()){
- model.setValue("/root/send/savedata", grd_userlist.getUpdateData());
-
- if(submit("TXMRI04000")){
- fDataGridReSet();
- fInitUserValue();
- model.setValue("/root/send/savedata", "");
- model.refresh();
- }
- }
- }
-
- function fDataGridReSet(){
- copyNodesetType("/root/main/datalist","/root/temp/datalist", "replace");
- grd_userlist.rebuild();
- grd_userlist.refresh();
- }
-
- function fCheckedSuperUserYN(){
-
- var flag = true;
-
- if(submit("TRMRI04001")){
- if(model.getValue("/root/temp/userinfo/useryn") == "Y"){
- messageBox("이미 SuperUser로 지정되어 있습니다.","E999");
- flag = false;
- }
- }else{
- flag = false;
- }
-
- return flag;
- }
-
- function fCheckedPermitUser(){
-
- var flag = true;
-
- if(isNull(model.getValue("/root/hidden/permituser/hardcd[hardcd = '"+getUserId()+"']/hardcd"))){
- messageBox("지정된 사용자만 저장이 가능합니다.","E999");
- flag = false;
- }
-
- return flag;
- }
- ]]>
- </script>
- <submission id="TRMRI04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/endshowyn" resultref="/root/temp/datalist"/>
- <submission id="TRMRI04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/userinfo"/>
- <submission id="TXMRI04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/datalist"/>
- <submission id="TXMRI04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/datalist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="805" pageheight="610" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:785px; height:540px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:118px; x2:770px; y2:118px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:655px; top:95px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_userlist" nodeset="/root/main/datalist/datainfo" caption="Type^사번^이름^seq^적용시작^적용종료^비고^종료" colsep="^" colwidth="40, 70, 70, 0, 120, 120, 300, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:125px; width:770px; height:415px; ">
- <col ref="type" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>A</label>
- <value>A</value>
- </item>
- <item>
- <label>B</label>
- <value>B</value>
- </item>
- </choices>
- </col>
- <col ref="userid" style="text-align:center; "/>
- <col ref="username" style="text-align:center; "/>
- <col ref="seq" visibility="hidden"/>
- <col ref="valifromdt" type="inputdate" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col ref="valitodt" type="inputdate" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col ref="usercomment" type="input" style="margin-left:5; "/>
- <col ref="endflag" type="checkbox" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(isDataCell()){
- var row = grd_userlist.row;
- var col = grd_userlist.col;
-
- var tempValiFromdt = model.getValue("/root/temp/datalist/datainfo["+ row +"]/valifromdt");
- var tempValiTodt = model.getValue("/root/temp/datalist/datainfo["+ row +"]/valitodt");
- var tempUserComment = model.getValue("/root/temp/datalist/datainfo["+ row +"]/usercomment");
-
- var orgValiFromdt = model.getValue("/root/main/datalist/datainfo["+ row +"]/valifromdt");
- var orgValiTodt = model.getValue("/root/main/datalist/datainfo["+ row +"]/valitodt");
- var orgUserComment = model.getValue("/root/main/datalist/datainfo["+ row +"]/usercomment");
-
-
- if(((tempValiFromdt == orgValiFromdt) && (tempValiTodt == orgValiTodt)) && (tempUserComment == orgUserComment)){
- grd_userlist.removeStatus(row, "delete");
- grd_userlist.removeStatus(row, "update");
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn1_letter2" style="left:715px; top:15px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUserSave();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:735px; height:14px; ">통합조회 SuperUser관리</caption>
- <group id="group1" style="left:0px; top:40px; width:770px; height:55px; ">
- <caption id="caption2" class="cell_1" style="left:0px; top:5px; width:95px; height:20px; ">사번</caption>
- <caption id="caption3" class="cell_1" style="left:205px; top:5px; width:95px; height:20px; ">적용시작일자</caption>
- <caption id="caption4" class="cell_1" style="left:430px; top:5px; width:95px; height:20px; ">적용종료일자</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:30px; width:95px; height:20px; ">비고</caption>
- <input id="input1" ref="/root/main/userinfo/userid" style="left:100px; top:5px; width:100px; height:20px; "/>
- <input id="input2" ref="/root/main/userinfo/valifromdt" inputtype="date" format="yyyy-mm-dd hh:nn" style="left:305px; top:5px; width:120px; height:19px; "/>
- <input id="input3" ref="/root/main/userinfo/valitodt" inputtype="date" format="yyyy-mm-dd hh:nn" style="left:530px; top:5px; width:120px; height:19px; "/>
- <input id="input4" ref="/root/main/userinfo/usercomment" style="left:100px; top:30px; width:550px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:38px; x2:770px; y2:38px; "/>
- <button id="button2" class="btn1_letter2" style="left:715px; top:95px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEndFlagSave();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/endshowyn" visibility="visible" overflow="visible" appearance="full" style="left:530px; top:98px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>종료된 사용자 조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption6" class="tit_2" style="left:0px; top:20px; width:100px; height:14px; ">사용자 등록</caption>
- <caption id="caption7" class="tit_2" style="left:0px; top:100px; width:162px; height:14px; ">사용자 조회 및 종료관리</caption>
- </group>
- <caption id="caption8" style="left:5px; top:550px; width:173px; height:28px; ">
- <![CDATA[TYPE A : 일반 SUPER USER
- TYPE B : 심사실 SUPER USER]]>
- </caption>
- </xhtml:body>
- </xhtml:html>
|