123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <?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>
- <ngdtcd>
- <ngdtcdlist/>
- </ngdtcd>
- <ngdtdeptcd>
- <ngdtdeptcdlist/>
- </ngdtdeptcd>
- </main>
- <send>
- <save>
- <ngdtcdlist/>
- <ngdtdeptcdlist/>
- </save>
- <ngdtcd>
- <instcd/>
- </ngdtcd>
- <ngdtdeptcd>
- <instcd/>
- <ngdtcd/>
- </ngdtdeptcd>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ngdtcd" resultref="/root/main/ngdtcd"/>
- <submission id="TXRTC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRTC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ngdtdeptcd" resultref="/root/main/ngdtdeptcd"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- misfGridInit(grd_ngdtcdlist);
- misfGridInit(grd_deptcd);
-
- misfMsterDetailSet(grd_ngdtcdlist, null, "TRRTC01401", "Y");
- misfMsterDetailSet(grd_deptcd, grd_ngdtcdlist, "TRRTC01402", "Y");
- misfComboComCdListMulti("R0234", "grd_deptcd.deptcd");
-
- rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
-
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/send/ngdtcd/instcd", dutplceinstcd);
-
- if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
- cmb_instcd.disabled = false;
- }else {
- cmb_instcd.disabled = true;
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled =!checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직코드등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기 관 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
-
- var updtdata = getGridUpdateData(grd_ngdtcdlist);
-
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
-
- if (ret == 7) { // not OK
- return;
- }
- }
-
- misfMsterDetailRetrieve();
- misfSetReadOnlyCol(grd_ngdtcdlist, "ngdtcd", true);
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:630px; y2:70px; "/>
- <datagrid id="grd_ngdtcdlist" nodeset="/root/main/ngdtcd/ngdtcdlist" caption="당직코드^당직명칭^시작일자^종료일자^순서^기관|당직코드^당직명칭^시작일자^종료일자^순서^기관" colsep="^" colwidth="80, 236, 127, 104, 41, 31" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:630px; height:660px; ">
- <col ref="ngdtcd" type="input" _key="true"/>
- <col ref="ngdtnm" type="input"/>
- <col ref="fromdd" type="inputdate" value="99991231"/>
- <col ref="todd" type="inputdate"/>
- <col ref="dispseq" type="input" format="99999"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </datagrid>
- <button id="btn_grddel" class="btn2_letter3" style="left:509px; top:47px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_ngdtcdlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:453px; top:47px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
-
- misfGridIUD(grd_ngdtcdlist, "A");
-
- model.removeNodeset(grd_deptcd.nodeset);
-
- model.refresh();
-
- grd_ngdtcdlist.valueMatrix(grd_ngdtcdlist.row, grd_ngdtcdlist.colRef("todd")) = "99991231";
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/ngdtcd/instcd" appearance="minimal" style="left:100px; top:20px; width:150px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_deptcd" nodeset="/root/main/ngdtdeptcd/ngdtdeptcdlist" caption="임상과^시작일자^종료일자^기관^당직코드^old과|임상과^시작일자^종료일자^기관^당직코드^old과" colsep="^" colwidth="273, 126, 118, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:637px; top:75px; width:555px; height:660px; ">
- <col ref="deptcd" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="ngdtcd" visibility="hidden"/>
- <col ref="olddeptcd" visibility="hidden"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:637px; y1:69px; x2:1192px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:50px; width:140px; height:15px; font-size:10pt; ">당직 코드 List</caption>
- <caption id="caption1" class="tit_2" style="left:637px; top:50px; width:275px; height:13px; font-size:10pt; ">당직 코드 사용 임상과 List</caption>
- <button id="button1" class="btn2_letter3" style="left:1069px; top:47px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_deptcd, "D");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1013px; top:47px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
-
- misfGridIUD(grd_deptcd, "A");
-
- grd_deptcd.valueMatrix(grd_deptcd.row, grd_deptcd.colRef("todd")) = "99991231";
- ]]>
- </script>
- </button>
- <button id="btn_execl" class="btn2_letter4" style="left:565px; top:47px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_ngdtcdlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1125px; top:47px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_deptcd.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkKeyColumn("grd_ngdtcdlist")) return;
- misfSave("TXRTC01401");
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|