123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?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>
- <ngdt>
- <ngdtlist/>
- </ngdt>
- <ngdtconfirm>
- <ngdtconfirmlist/>
- </ngdtconfirm>
- </main>
- <hidden>
- </hidden>
- <temp>
- </temp>
- <init/>
- <send>
- <req>
- <instcd/>
- <state/>
- <ngdtym/>
- </req>
- <save>
- <ngdtlist/>
- <ngdtconfirmlist/>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- misfGridInit(grd_ngdtlist);
- misfMsterDetailSet(grd_ngdtlist, null, "TRRTS03401", "Y");
-
- rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/send/req/instcd", dutplceinstcd);
-
- misfComboComCdListMulti("R0375", "cmb_state");
- addComboItem( "cmb_state", "전체", "", "above");
- model.setValue(cmb_state.attribute("ref"), "");
-
- var today = getCurrentDate();
- var cur_yymm = parseInt(today.substring(0,6));
- model.setValue("/root/send/req/ngdtym", cur_yymm);
-
- if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
- cmb_instcd.disabled = false;
- }else{
- cmb_instcd.disabled = true;
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/ngdtcdlist"/>
- <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
- <submission id="TRRTS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdt"/>
- <submission id="TXRTS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root"/>
- <submission id="TXRTS03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function confirmNgdtState(mode){
- var trngteamcnfmyn;
- misfGridInit(grd_ngdtconfirmlist);
- misfMsterDetailSet(grd_ngdtconfirmlist, null, "TXRTS03401", "Y");
- for(var i = grd_ngdtlist.fixedRows; i < grd_ngdtlist.rows; i++){
- if(grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("confirm")) == "Y"){
- trngteamcnfmyn = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("trngteamcnfmyn"));
- if(mode == 'C'){
- if(trngteamcnfmyn == 'Y') {
- messageBox(grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef('deptnm'))+" 는 확정된 상태입니다.", "");
- return false;
- }
- }else if(mode == 'D'){
- if(trngteamcnfmyn == 'N') {
- messageBox(grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef('deptnm'))+" 는 확정된 상태가 아닙니다.", "");
- return false;
- }
- }
-
- misfGridIUD(grd_ngdtconfirmlist, "A");
- grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("chk")) = 'Y';
- grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("instcd")) = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("instcd"));
- grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("deptcd")) = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("deptcd"));
- grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("ngdtym")) = model.getValue("/root/send/req/ngdtym");
- grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("mode")) = mode;
- grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("orddeptcd")) = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("orddeptcd"));
- }
- }
- misfSave("TXRTS03401");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">년월 :</caption>
- <datagrid id="grd_ngdtlist" nodeset="/root/main/ngdt/ngdtlist" caption="임상과^상태^선택^의국장^의국장^bp^핸드폰^deptcd^trngteamcnfmyn^partcd^instcd^statecd|임상과^상태^선택^사번^성명^bp^핸드폰^deptcd^trngteamcnfmyn^partcd^instcd^statecd" colsep="^" colwidth="388, 188, 56, 119, 115, 137, 148, 100, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
- <col ref="deptnm" type="output">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="state" type="output"/>
- <col checkvalue="Y,N" ref="confirm" type="checkbox"/>
- <col ref="emplno" type="output" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="bpno" style="text-align:center; "/>
- <col ref="mpphonno" style="text-align:center; "/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="trngteamcnfmyn" visibility="hidden"/>
- <col ref="partcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="statecd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-rebuild">
- <![CDATA[
- var statecd;
- for (var i = grd_ngdtlist.fixedRows; i<grd_ngdtlist.rows; i++) {
- grd_ngdtlist.cellAttribute("disabled",grd_ngdtlist.row, grd_ngdtlist.colRef("confirm")) = "true";
- statecd = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("statecd"));
- if(statecd != '03' && statecd != '04' && statecd != '05'){
- grd_ngdtlist.cellAttribute("disabled",i, grd_ngdtlist.colRef("confirm")) = "true";
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRTS03401");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1190px; y2:67px; "/>
- <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:295px; top:14px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:209px; top:14px; width:94px; height:17px; ">근무병원 :</caption>
- <input id="ipt_ngdtym" ref="/root/send/req/ngdtym" inputtype="date" format="yyyy-mm" style="left:65px; top:14px; width:100px; height:19px; "/>
- <button id="btn_execl" class="btn2_letter4" style="left:1125px; top:45px; 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_ngdtlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_state" ref="/root/send/req/state" class="combo_s_essential" disabled="false" appearance="minimal" style="left:560px; top:14px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:474px; top:14px; width:94px; height:17px; ">등록상태 :</caption>
- <button id="button4" class="btn2_letter4" style="left:969px; top:45px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_ngdtlist.fixedRows; i<grd_ngdtlist.rows; i++) {
- if(grd_ngdtlist.cellAttribute("disabled",i, grd_ngdtlist.colRef("confirm")) != "true")
- grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("confirm")) = 'Y';
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter6" style="left:1035px; top:45px; width:86px; height:19px; ">
- <caption>전체선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i=grd_ngdtlist.fixedRows; i<grd_ngdtlist.rows; i++) {
- grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("confirm")) = 'N';
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_ngdtconfirmlist" nodeset="/root/main/ngdtconfirm/ngdtconfirmlist" visibility="hidden" caption="체크여부^instcd^deptcd^statecd^emplno^ngdtym" colsep="^" colwidth="30, 50, 70, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:135px; top:440px; width:390px; height:80px; ">
- <col ref="chk"/>
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="ngdtym"/>
- <col ref="mode"/>
- <col ref="orddeptcd"/>
- <!--
- <col ref="statecd"/>
- <col ref="emplno"/>
- <col ref="partcd"/> -->
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button9" class="btn4_letter5" style="left:982px; top:3px; width:92px; height:22px; text-align:left; ">
- <caption>수련팀확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_ngdtym", "cmb_instcd") ) {
- return false;
- }
- confirmNgdtState('C');
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter7" style="left:1075px; top:3px; width:116px; height:22px; text-align:left; ">
- <caption>수련팀확정취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_ngdtym", "cmb_instcd") ) {
- return false;
- }
- confirmNgdtState('D');
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|