123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?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>
- <list>
- </list>
- <search>
- <searchcondition/>
- <searchterm/>
- <valifromdd/>
- <valitodd/>
- <dutplcecd/>
- <dutplcenm/>
- </search>
- <mode/>
- </main>
- <init>
- <comcd>
- </comcd>
- <resultref/>
- <comcd>
- <timelist/>
- </comcd>
- </init>
- <send>
- <searchcondition/>
- <searchterm/>
- <dutplcecd/>
- <valifromdd/>
- <valitodd/>
- <data/>
- </send>
- <hidden>
- <userdeptinfo/>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/search/searchcondition", "usernm");
- zbcfGetCodeList( new Array("Z0018"), new Array("/root/init/comcd/timelist"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRZSU10113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TXZSU10116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp"/>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- </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/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU003.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1197;" 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; ">환자정보접근관리</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:1195px; height:100px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1125px; y1:8px; x2:1125px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="label_searchcondition" class="search_name" style="left:5px; top:7px; width:96px; height:17px; ">검색조건 :</caption>
- <input id="ipt_searchterm" ref="/root/main/search/searchterm" class="input_s_essential" navindex="2" imemode="hangul" style="left:194px; top:7px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_add" class="btn2_letter2" navindex="57" style="left:1104px; top:76px; width:42px; height:19px; background-color:#fffbf2; border-color:#ffd799; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_userdeptlist.addRow();
- var col = grd_userdeptlist.colRef("valifromdt") - 1;
- var row = grd_userdeptlist.row;
- grd_userdeptlist.cellAttribute("editable", row, col) ="true";
-
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter2" navindex="57" style="left:1147px; top:76px; width:42px; height:19px; background-color:#fffbf2; border-color:#ffd799; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_userdeptlist.row;
- var rowStatus = grd_userdeptlist.rowStatus(row);
- if(rowStatus==1){
- grd_userdeptlist.deleteRow(row);
- }else if(rowStatus==0){
- grd_userdeptlist.rowStatus(row) = 4;
- }
-
-
-
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var search_condition = model.getValue("/root/main/search/searchcondition");
- var search_term = model.getValue("/root/main/search/searchterm");
- var dutplcecd = model.getValue("/root/main/search/dutplcecd");
- var valifromdd = model.getValue("/root/main/search/valifromdd");
- var valitodd = model.getValue("/root/main/search/valitodd");
- var col = grd_userdeptlist.colRef("valifromdt") - 1;
-
- model.setValue("/root/send/searchcondition", search_condition);
- model.setValue("/root/send/searchterm", search_term);
- model.setValue("/root/send/dutplcecd", dutplcecd);
- model.setValue("/root/send/valifromdd", valifromdd);
- model.setValue("/root/send/valitodd", valitodd);
-
- var success = submit("TRZSU10113");
-
- if(success){
- model.setValue("/root/main/mode", "retrived");
- for(var i=1; i<grd_userdeptlist.rows; i++){
- grd_userdeptlist.cellAttribute("editable", i, col) ="false";
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_searchcondition" ref="/root/main/search/searchcondition" class="combo_default" navindex="1" appearance="minimal" style="left:105px; top:7px; width:87px; height:19px; ">
- <choices>
- <item>
- <label>사용자ID</label>
- <value>userid</value>
- </item>
- <item>
- <label>사용자명</label>
- <value>usernm</value>
- </item>
- <item>
- <label>주민등록번호</label>
- <value>rrgstno</value>
- </item>
- </choices>
- </select1>
- <caption id="caption48" class="search_name" style="left:362px; top:7px; width:99px; height:17px; ">근무지 :</caption>
- <input id="ipt_dutunitcd_condition" ref="/root/main/search/dutplcenm" class="input_s_essential" navindex="7" editable="false" style="left:455px; top:7px; width:190px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/search/dutplcecd", "");
- model.setValue("/root/main/search/dutplcenm", "");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_search_dutplce" class="icon_search" navindex="8" style="left:649px; top:7px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "deptnm";
- var search_term = model.getValue("/root/main/search/dutplcenm");
- var receive_deptcd_path = "/root/main/search/dutplcecd";
- var receive_deptnm_path = "/root/main/search/dutplcenm";
- var standard_yn = null;
- var ord_deptflag = null;
- zbcfOpenInstDeptCodeList(
- search_condition,
- search_term,
- receive_deptcd_path,
- receive_deptnm_path,
- standard_yn,
- ord_deptflag,
- new Array("deptcd", "depthngnm", "deptengnm", "deptchinm", "depthngabbr", "deptengabbr")
- );
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="caption1" class="search_name" style="left:705px; top:7px; width:96px; height:17px; ">조회기간 :</caption>
- <input id="ipt_valifromdd" ref="/root/main/search/valifromdd" class="input_default" navindex="26" inputtype="date" style="left:805px; top:7px; width:130px; height:19px; "/>
- <input id="ipt_valitodd" ref="/root/main/search/valitodd" class="input_default" navindex="26" inputtype="date" style="left:960px; top:7px; width:130px; height:19px; "/>
- <caption id="caption2" style="left:941px; top:7px; width:15px; height:20px; font-weight:bold; ">~</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:595px; x2:1194px; y2:595px; "/>
- <caption id="caption17" class="tit_2" style="left:0px; top:95px; width:170px; height:14px; ">환자정보접근 허용자 목록</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:743px; x2:1195px; y2:743px; "/>
- <datagrid id="grd_userdeptlist" nodeset="/root/main/list/userlist" caption="사용자ID^사용자명^근무지기관코드^근무지기관명^근무지코드^근무지명^ 근무지 적용시작일자^적용시작일시^적용종료일시^최초등록자ID^최초등록자명^최초등록일시^최종수정자ID^최종수정자명^최종수정일시" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 129, 125, 125, 100, 100, 125, 100, 100, 125" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:116px; width:1195px; height:624px; ">
- <col ref="userid" type="inputbutton" editable="false">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var row = grd_userdeptlist.row;
- var rowStatus = grd_userdeptlist.rowStatus(row);
-
- if(rowStatus==1 || rowStatus==3){
-
- model.setValue("/root/hidden/userdeptinfo", "");
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- zsufGetUserDeptHistory("usernm", "", "/root/hidden/userdeptinfo", dutplceinstcd, '31');
- var result_string = model.getValue("/root/hidden/userdeptinfo");
-
- if(result_string!=""){
-
- var result_array = result_string.split("|");
- var userid = result_array[0];
- var usernm = result_array[1];
- var dutplceinstcd = result_array[2];
- var dutplceinstnm = result_array[3];
- var dutplcecd = result_array[4];
- var dutplcenm = result_array[5];
- var fromdd = result_array[6];
-
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("userid")) = userid;
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("usernm")) = usernm;
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplceinstcd")) = dutplceinstcd;
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplceinstnm")) = dutplceinstnm;
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplcecd")) = dutplcecd;
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplcenm")) = dutplcenm;
- grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("fromdd")) = fromdd;
-
- }
-
- }
- ]]>
- </script>
- </col>
- <col ref="usernm"/>
- <col ref="dutplceinstcd"/>
- <col ref="dutplceinstnm"/>
- <col ref="dutplcecd"/>
- <col ref="dutplcenm"/>
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="valifromdt" type="input" format="yyyy-mm-dd hh:nn:ss" editable="false"/>
- <col ref="valitodt" format="yyyy-mm-dd hh:nn:ss"/>
- <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="onendedit">
- <![CDATA[
- var valifromdt = null;
- var accesstime = null;
- var newDateObj = null;
- var valitodt = null;
- valifromdt = grd_userdeptlist.valueMatrix(grd_userdeptlist.row, grd_userdeptlist.colRef("valifromdt"));
- newDateObj = valifromdt.toDate("YYYYMMDDhhmmss");
- accesstime = eval(model.getValue("/root/init/comcd/timelist/Z0018[1]/cdnm"));
-
- newDateObj = newDateObj.getAddDate(accesstime, "h")
- valitodt = getDateTime(newDateObj,"A");
- grd_userdeptlist.valueMatrix(grd_userdeptlist.row, grd_userdeptlist.colRef("valitodt")) = valitodt;
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1135px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var col = grd_userdeptlist.colRef("valifromdt") - 1;
-
- for(i=grd_userdeptlist.fixedRows; i<grd_userdeptlist.rows; i++){
- var row_status = grd_userdeptlist.rowStatus(i);
-
- if( row_status == 1 || row_status == 3 ){
- var userid = grd_userdeptlist.valueMatrix(i, grd_userdeptlist.colRef("userid"));
- var valifromdt = grd_userdeptlist.valueMatrix(i, grd_userdeptlist.colRef("valifromdt"));
-
- if(userid==""){
- //messageBox("사용자부서를", "C001");
- grd_userdeptlist.row = i;
- grd_userdeptlist.col = grd_userdeptlist.colRef("userid");
- grd_userdeptlist.editCell();
- return;
- }else if(valifromdt.length<14){
- //messageBox("적용시작일시를 초단위까지", "C001");
- grd_userdeptlist.row = i;
- grd_userdeptlist.col = grd_userdeptlist.colRef("valifromdt");
- grd_userdeptlist.editCell();
- return;
- }
- }
- }
- var data = grd_userdeptlist.getUpdateData();
- model.setValue("/root/send/data", data);
- var success = submit("TXZSU10116");
-
- if(success){
- var search_condition = model.getValue("/root/main/search/searchcondition");
- var search_term = model.getValue("/root/main/search/searchterm");
- var dutplcecd = model.getValue("/root/main/search/dutplcecd");
- var valifromdd = model.getValue("/root/main/search/valifromdd");
- var valitodd = model.getValue("/root/main/search/valitodd");
-
- model.setValue("/root/send/searchcondition", search_condition);
- model.setValue("/root/send/searchterm", search_term);
- model.setValue("/root/send/dutplcecd", dutplcecd);
- model.setValue("/root/send/valifromdd", valifromdd);
- model.setValue("/root/send/valitodd", valitodd);
-
- var success = submit("TRZSU10113");
-
- if(success){
- model.setValue("/root/main/mode", "retrived");
- for(var j=1; j<grd_userdeptlist.rows; j++){
- grd_userdeptlist.cellAttribute("editable", j, col) ="false";
- }
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1067px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/list");
- model.makeNode("/root/main/list");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|