123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?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="">
- <send>
- <data1>
- <sess_posinstcd/>
- </data1>
- <data2>
- <orddeptcd/>
- <orddrid/>
- </data2>
- </send>
- <main>
- <list1>
- <grdaltorddrlist/>
- </list1>
- </main>
- <hidden>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- </orddrid>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- <wardcd>
- <cd/>
- <nm/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- </roomcd>
- </init>
- <session/>
- <source>
- <orddeptcd/>
- <orddrid/>
- </source>
- <temp/>
- <specprn/>
- </hidden>
- <init>
- <P0325list>
- <P0325>
- <cdid/>
- <cdnm/>
- </P0325>
- </P0325list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetUserInfosSampling(); //세션정보....
- zbcfGetCodeList(new Array("P0325"), new Array("/root/init/P0325list")); //공통코드
- grd_altorddrlist.fixedcellcheckbox(0,1) = true;
-
- model.setValue("/root/send/data1/sess_posinstcd",model.getValue("/root/hidden/session/posinstcd"));
- submit("TRPMB00302");
-
- var inpt_orddeptcd = model.getValue("/root/hidden/source/orddeptcd");
- var inpt_orddrid = model.getValue("/root/hidden/source/orddrid");
- if (inpt_orddeptcd != null && inpt_orddeptcd != " " && inpt_orddeptcd != "") {
- model.setValue("/root/send/data2/orddeptcd",inpt_orddeptcd);
- }
- if (inpt_orddrid != null && inpt_orddrid != " " && inpt_orddrid != "") {
- model.setValue("/root/send/data2/orddrid",inpt_orddrid);
- }
-
- submit("TRPMB01602");
-
-
- ]]>
- </script>
- <submission id="TRPMB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/init"/>
- <submission id="TRPMB01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/list1/grdaltorddrlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- //세션정보
- function fGetUserInfosSampling()
- {
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "posdeptcd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
-
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
-
- model.refresh();
- }
-
- function fInitialize(){
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/main/drholiordsche");
-
-
- model.setValue("/root/main/srchflag","A");
- //조회조건 세팅
- model.setValue("/root/main/srchcond", 'A'); //휴진기간 조회로 세팅
- //end..
-
- //날자 입력 항목에 오늘 날자 세팅
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
-
- //현재일자 + 1달
- curDate = curDate.toDate().getAddDate(1,"M");
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
- model.setValue("/root/main/todd", nextDate);
-
- radio1.visible = true;
-
- ipt_fromdd.attribute("left") = "473px";
- caption10.attribute("left") = "560px";
- ipt_todd.attribute("left") = "575px";
- caption5.attribute("left") = "671px";
- cmb_orddeptcd.attribute("left") = "745px";
- caption7.attribute("left") = "956px";
- cmb_orddrid.attribute("left") = "1044px";
-
- grd_holische.colHidden(5) = false;
- grd_holische.colHidden(6) = true;
- grd_holische.colHidden(7) = true;
- grd_holische.colHidden(8) = false;
- grd_holische.colHidden(9) = false;
- grd_holische.colHidden(10) = false;
- grd_holische.colHidden(11) = false;
- grd_holische.colHidden(12) = false;
- grd_holische.colHidden(13) = false;
- grd_holische.colHidden(14) = true;
-
- model.refresh();
-
- }
-
- function fDataCheck( flag ){
-
- var ordendcnfmyn = "";
- for( var i = grd_holische.fixedRows; i < grd_holische.rows; i++){
- //model.getValue("/root/main/ordlist/ordschecrite/ordschecritelist[" + (i - 1) + "]/check")
- if( grd_holische.valueMatrix( i, grd_holische.colRef("check") ) == 'Y' ){
-
- if( flag == 'ok' ){
- if( 'Y' == model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/ordendcnfmyn")){
- messageBox("이미 마감확인 하신 휴진일정을 다시 마감확인 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
- return false;
- }
- }else{
- if( 'Y' != model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/ordendcnfmyn")){
- messageBox("마감확인 하지 않은 휴진일정을 마감취소 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
- return false;
- }
- }
- }
- }
-
- return true;
- }
-
- //의사휴진일정 조회
- function fSearchDrHoliSche(strFlag){
- // model.resetInstanceNode("/root/send");
- var checkflag = model.getValue("/root/main/srchflag");
-
- model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
- model.setValue("/root/send/srchcond", model.getValue("/root/main/srchcond"));
- model.setValue("/root/send/fromdd", model.getValue("/root/main/fromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/main/todd"));
-
- if(checkflag == 'A') {
-
- if( model.getValue("/root/send/srchcond") !='' && model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
- submit("TRPMB00901");
-
- }else{
- messageBox("조회기간 정보를 입려하지", "E007");
- }
- }
- else if(checkflag == 'B') {
-
- if( model.getValue("/root/send/srchcond") !='' && model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
- submit("TRPMB00902");
- }else{
- messageBox("조회기간 정보를 입려하지", "E007");
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="784" guideline="1,876;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:780px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:13px; ">대진신청 의사별 대상환자 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:780px; height:744px; ">
- <col type="checkbox"/>
- <caption id="caption4" class="tit_2" style="left:5px; top:10px; width:214px; height:13px; ">대진신청 의사별 대상환자 리스트</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:780px; y2:25px; "/>
- <datagrid id="grd_altorddrlist" nodeset="/root/main/list1/grdaltorddrlist" class="datagrid2" caption="^진료과^휴진신청의사^환자번호^환자성명^입원일자^병동^병실^선택진료여부" colsep="^" colwidth="22, 117, 85, 79, 82, 80, 140, 76, 60" dataheight="25" explorerbar="sort" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:30px; width:780px; height:714px; ">
- <col ref="checkflag" type="checkbox"/>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" style="text-align:center; "/>
- <col disabled="true" ref="specordyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[]]>
- </script>
- </datagrid>
- <iviewer id="iviewer1" visibility="hidden" src="../../../emr/formmngtweb/xrw/SSMRF03800_OCR뷰어.xrw" style="left:250px; top:245px; width:450px; height:150px; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:757px; width:780px; height:27px; ">
- <button id="btn_saveSche7" class="btn4_letter3" visibility="hidden" style="left:709px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:780px; y2:0px; "/>
- <button id="button1" class="btn3_letter5" style="left:0px; top:5px; width:92px; height:22px; ">
- <caption>선택신청서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/temp");
- model.makeNode("/root/hidden/temp");
- model.removeNodeset("/root/hidden/specprn");
- model.makeNode("/root/hidden/specprn");
-
- model.resetInstanceNode("/root/hidden/temp");
-
- var nodeList = instance1.selectNodes("/root/main/list1/grdaltorddrlist[checkflag='true']");
-
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/hidden/temp", rCSV);
- var CSV = model.getValue("/root/hidden/temp");
- if (CSV == null || CSV == "" || CSV == " ") {
- messageBox("선택된 데이터가","I004","");
- return false;
- } else {
- setCSVToNode("/root/hidden/specprn", CSV);
-
- if( getNodesetCount("/root/hidden/specprn/list/pid") > 0 ){
-
- for( i = 1; i <= getNodesetCount("/root/hidden/specprn/list/pid"); i++)
- {
- iviewer1.window.javascript.fGetOCRInfo("0000001800",model.getValue("/root/hidden/specprn/list[" + i + "]/pid"),
- model.getValue("/root/hidden/specprn/list[" + i + "]/indd"),model.getValue("/root/hidden/specprn/list[" + i + "]/cretno"),
- model.getValue("/root/hidden/specprn/list[" + i + "]/ordtype"), "3", "Y");
- iviewer1.window.javascript.fPrint();
- }
-
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|