123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881 |
- <?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>
- <orddrid/>
- <orddeptcd/>
- <srchcond/>
- <fromdd/>
- <todd/>
- <drholiordsche>
- <drholiordschelist>
- <orddeptcd/>
- <orddrid/>
- <ordendresn/>
- <fromdd/>
- <todd/>
- <fromtodd/>
- <unitcnt/>
- <oupdtorddrnm/>
- <iupdtorddrnm/>
- <drappdd/>
- <lastupdtdt/>
- <remfact/>
- <layoffunitcnt/>
- <misseqno/>
- </drholiordschelist>
- </drholiordsche>
- <result/>
- <histstatcd/>
- <holiflag>H</holiflag>
- <endcnfmyn/>
- <prcsstat/>
- <endflag/>
- </main>
- <send>
- <holiflag/>
- <orddrid/>
- <orddeptcd/>
- <srchcond/>
- <fromdd/>
- <todd/>
- <updatedata>
- <datalist/>
- </updatedata>
- <ordendcnfmyn/>
- <acceptstatflag/>
- <histstat/>
- <endcnfmyn/>
- <prcsstat/>
- <endflag/>
- </send>
- <init>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- <P0406list>
- <P0406>
- <cdid/>
- <cdnm/>
- </P0406>
- </P0406list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- <P0464list>
- <P0464>
- <cdid/>
- <cdnm/>
- </P0464>
- </P0464list>
- </init>
- <hidden>
- <flag>
- <orddeptcd/>
- <orddrid/>
- <seqno/>
- <drappdd/>
- </flag>
- </hidden>
- <temp>
- <holilist/>
- <gridcnt/>
- <sum_unitcnt/>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0037","P0406", "P0464"), new Array("/root/init/P0037list","/root/init/P0406list", "/root/init/P0464list"));
- pamGetDeptCDDrIDList();
- addComboItem("cmb_orddeptcd","전체","","above");
- addComboItem("cmb_orddrid","전체","","above");
- model.refresh();
- fInitialize();
- //model.setValue("/root/main/histstatcd","YC");.....
- //grd_orddr.nodeset = "/root/init/orddrid/orddridlist[dp = " + cmb_orddeptcd.value + "]";
- //grd_orddr.rebuild();
- //팝업화면으로 사용될 때
- if (checkOpener()){
-
- var orddeptcd = opener.javascript.getParameter("SMPMB00900_orddeptcd");
- var orddrid = opener.javascript.getParameter("SMPMB00900_orddrid");
- var holiflag = opener.javascript.getParameter("SMPMB00900_holiflag");
-
- if( orddeptcd != '' && orddrid != '' ){
-
- //진료과 세팅
- model.setValue("/root/main/orddeptcd", orddeptcd);
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + orddeptcd + "']";
- cmb_orddrid.refresh();
-
- //진료의 세팅
- model.setValue("/root/main/orddrid", orddrid);
-
- // 입원의뢰서에서 연동된 경우 조회기간 세팅
- if (holiflag == "H") {
-
- model.setValue("/root/main/srchcond", holiflag);
- model.setValue("/root/main/holiflag", holiflag);
- model.setValue("/root/main/fromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat());
- model.setValue("/root/main/todd", getCurrentDate().toDate().getAddDate(1,"M").getDateFormat());
-
- btn_search.dispatch("DOMActivate");
- }
- }
- }
- ]]>
- </script>
- <submission id="TRPMB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
- <submission id="TRPMB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
- <submission id="TXPMB00906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- // model.removenode("/root/main/drholiordsche/drholiordschelist");
- model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
-
- model.setValue("/root/main/holiflag","H");
-
- //조회조건 세팅
- model.setValue("/root/main/srchcond", 'H'); //휴진기간 조회로 세팅
- //end..
- model.setValue("/root/main/endcnfmyn", 'A');
- //날자 입력 항목에 오늘 날자 세팅
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/main/todd", 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;
- // caption1.visible = true;
- // combo1.visible = true;
-
- // radio1.attribute("left") = "453px";
- // ipt_fromdd.attribute("left") = "568px";
- // caption10.attribute("left") = "655px";
- // ipt_todd.attribute("left") = "670px";
- // caption5.attribute("left") = "766px";
- // cmb_orddeptcd.attribute("left") = "845px";
- // caption7.attribute("left") = "951px";
- // cmb_orddrid.attribute("left") = "1044px";
- // caption2.attribute("left") = "363px";
-
- grd_holische.colHidden(1) = false;
- grd_holische.colHidden(7) = false;
- grd_holische.colHidden(8) = true;
- grd_holische.colHidden(9) = true;
- grd_holische.colHidden(10) = false;
- grd_holische.colHidden(11) = false;
- grd_holische.colHidden(12) = false;
- grd_holische.colHidden(13) = false;
- grd_holische.colHidden(14) = false;
- grd_holische.colHidden(15) = false;
-
- 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(){
- // model.resetInstanceNode("/root/send");
- var checkflag = model.getValue("/root/main/holiflag");
- model.setValue("/root/send/holiflag", model.getValue("/root/main/holiflag"));
- //model.setValue("/root/send/prcsstat", model.getValue("/root/main/prcsstat"));
- 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"));
- model.setValue("/root/send/endflag", model.getValue("/root/main/endflag"));
-
- //시작,종료일자 최대기간 제한
- var minusrslt = getDateInterval(model.getValue("/root/main/fromdd"),model.getValue("/root/main/todd"));
-
- if (minusrslt > 186) {
- messageBox("휴진일정은 최대 6개월까지 조회가능합니다.\r\n6개월을 초과하는 데이터는 '파일생성'을 통해 처리하십시오.\r\n(시스템 부하방지)","E999","");
- return false;
- }
-
- var holiflag = model.getValue("/root/main/holiflag");
- //var prcsstat = model.getValue("/root/main/prcsstat");
-
- if( model.getValue("/root/send/srchcond") !='' && model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
- // 휴진데이터 조회
- if(holiflag == 'H'){
- submit("TRPMB00904");
-
- var histstat = model.getValue("/root/main/drholiordsche/drholiordschelist/histstat");
-
- //if(prcsstat == ''){
- grd_holische.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- //setRowStyle("grd_holische", "1","01","prcsstat","equal"); // 병실정보row의 색상을 변경한다.
- // setRowStyle("grd_holische", "1","R","histstat","equal");
- setRowStyle("grd_holische", "1","Y","todayholiyn","equal"); // 조회당일이 휴진일정에 포함되는경우
- grd_holische.rebuild();
- //}
-
-
- // 부분마감데이터 조회
- }else if(holiflag == 'T'){
- submit("TRPMB00902");
- }
- }else{
- messageBox("조회기간 정보를 입려하지", "E007");
- }
-
- model.refresh();
- }
-
- //출력물
- function fHolilistPrint(){
-
- var fromdd = model.getValue("/root/main/fromdd");
- var todd = model.getValue("/root/main/todd");
- var gridcnt = model.getValue("/root/temp/gridcnt");
- //var sum_unitcnt = model.getValue("/root/temp/sum_unitcnt");
- // model.alert(orddd);
-
- var srchcond = model.getValue("/root/main/srchcond");
-
- model.makeNode("/root/temp/holilist/prcsstat");
- model.makeNode("/root/temp/holilist/orddeptnm");
- model.makeNode("/root/temp/holilist/orddrnm");
- model.makeNode("/root/temp/holilist/ordendresn");
- model.makeNode("/root/temp/holilist/fromtodd");
- model.makeNode("/root/temp/holilist/tempunit");
- model.makeNode("/root/temp/holilist/changunit");
- model.makeNode("/root/temp/holilist/layoffunitcnt");
- //model.makeNode("/root/temp/holilist/realunitcnt");
- model.makeNode("/root/temp/holilist/layoffday");
- model.makeNode("/root/temp/holilist/oupdtorddrnm");
- model.makeNode("/root/temp/holilist/iupdtorddrnm");
- model.makeNode("/root/temp/holilist/drappdd");
- model.makeNode("/root/temp/holilist/fstrgstdt");
- model.makeNode("/root/temp/holilist/remfact");
- model.makeNode("/root/temp/holilist/srchcond");
- model.makeNode("/root/temp/holilist/fromdd");
- model.makeNode("/root/temp/holilist/todd");
- model.makeNode("/root/temp/holilist/gridcnt");
- model.makeNode("/root/temp/holilist/sum_unitcnt");
- model.makeNode("/root/temp/holilist/jobposcd");
- model.makeNode("/root/temp/holilist/sp");
-
- if(srchcond == 'R'){
- model.setValue("/root/temp/holilist/srchcond", '신청일 기간');
- }else if(srchcond == 'H'){
- model.setValue("/root/temp/holilist/srchcond", '휴진일 기간');
- }
-
- //상단에 진료과 진료의 세팅
- model.makeNode("/root/temp/holilist/orddeptcd");
- model.makeNode("/root/temp/holilist/orddrid");
-
- //var orddd = model.getValue("");
- model.makeValue("/root/temp/holilist/orddeptcd", cmb_orddeptcd.label);
- model.makeValue("/root/temp/holilist/orddrid", cmb_orddrid.label);
-
- //일자
- model.setValue("/root/temp/holilist/fromdd", fromdd);
- model.setValue("/root/temp/holilist/todd", todd);
-
- //합계
- model.setValue("/root/temp/holilist/gridcnt", gridcnt);
-
- for (i = 1; i <= getNodesetCount("/root/main/drholiordsche/drholiordschelist"); i++) {
- //model.makeValue("/root/temp/holilist[" + i + "]/prcsstat",grd_holische.labelmatrix(i, 1));
- model.makeValue("/root/temp/holilist[" + i + "]/orddeptnm",grd_holische.labelmatrix(i, 2));
- model.makeValue("/root/temp/holilist[" + i + "]/orddrnm",grd_holische.labelmatrix(i, 3));
- model.makeValue("/root/temp/holilist[" + i + "]/sp",grd_holische.labelmatrix(i, 4));
- model.makeValue("/root/temp/holilist[" + i + "]/jobposcd",grd_holische.labelmatrix(i, 5));
- model.makeValue("/root/temp/holilist[" + i + "]/ordendresn",grd_holische.labelmatrix(i, 6));
- model.makeValue("/root/temp/holilist[" + i + "]/fromtodd",grd_holische.labelmatrix(i, 7));
- model.makeValue("/root/temp/holilist[" + i + "]/layoffday",grd_holische.labelmatrix(i, 10));
- model.makeValue("/root/temp/holilist[" + i + "]/tempunit",grd_holische.labelmatrix(i, 11));
- model.makeValue("/root/temp/holilist[" + i + "]/changunit",grd_holische.labelmatrix(i, 12));
- model.makeValue("/root/temp/holilist[" + i + "]/layoffunitcnt",grd_holische.labelmatrix(i, 13));
- //model.makeValue("/root/temp/holilist[" + i + "]/oupdtorddrnm",grd_holische.labelmatrix(i, 14));
- //model.makeValue("/root/temp/holilist[" + i + "]/iupdtorddrnm",grd_holische.labelmatrix(i, 15));
- model.makeValue("/root/temp/holilist[" + i + "]/drappdd",grd_holische.labelmatrix(i, 16));
- //model.makeValue("/root/temp/holilist[" + i + "]/fstrgstdt",grd_holische.labelmatrix(i, 17));
- //model.makeValue("/root/temp/holilist[" + i + "]/remfact",grd_holische.labelmatrix(i, 18));
-
- }
-
- //model.alert(model.getValue("/root/temp/sum_unitcnt"));
-
- exeReportPreview("RPPMB00900_휴진신청조회", "XMLSTR", "","", "false","","","","","false");
- }
-
-
- function fTendPrint(){
-
- var fromdd = model.getValue("/root/main/fromdd");
- var todd = model.getValue("/root/main/todd");
-
- var srchcond = model.getValue("/root/main/srchcond");
-
- model.makeNode("/root/temp/holilist/orddeptnm");
- model.makeNode("/root/temp/holilist/orddrnm");
- model.makeNode("/root/temp/holilist/ordendresn");
- model.makeNode("/root/temp/holilist/fromdd");
- model.makeNode("/root/temp/holilist/todd");
- model.makeNode("/root/temp/holilist/ordtm");
- model.makeNode("/root/temp/holilist/remfact");
- model.makeNode("/root/temp/holilist/srchcond");
- model.makeNode("/root/temp/holilist/jobposcd");
- model.makeNode("/root/temp/holilist/sp");
-
- if(srchcond == 'R'){
- model.setValue("/root/temp/holilist/srchcond", '신청일 기간');
- }else if(srchcond == 'H'){
- model.setValue("/root/temp/holilist/srchcond", '휴진일 기간');
- }
-
- //상단에 진료과 진료의 세팅
- model.makeNode("/root/temp/holilist/orddeptcd");
- model.makeNode("/root/temp/holilist/orddrid");
-
- //var orddd = model.getValue("");
- model.makeValue("/root/temp/holilist/orddeptcd", cmb_orddeptcd.label);
- model.makeValue("/root/temp/holilist/orddrid", cmb_orddrid.label);
-
- //일자
- model.setValue("/root/temp/holilist/fromdd", fromdd);
- model.setValue("/root/temp/holilist/todd", todd);
-
- //model.alert(model.getValue("/root/main/h_otpt3/otpt/orddd");
- // model.copyNode("/root/temp/rsrvlist", "/root/main/h_otpt3/otpt[" + datagrid6.row + "]");
-
- //model.alert(model.getValue("/root/temp/rsrvlist"));
-
-
-
- for (i = 1; i <= getNodesetCount("/root/main/drholiordsche/drholiordschelist"); i++) {
- model.makeValue("/root/temp/holilist[" + i + "]/orddeptnm",grd_holische.labelmatrix(i, 2));
- model.makeValue("/root/temp/holilist[" + i + "]/orddrnm",grd_holische.labelmatrix(i, 3));
- model.makeValue("/root/temp/holilist[" + i + "]/sp",grd_holische.labelmatrix(i, 4));
- model.makeValue("/root/temp/holilist[" + i + "]/jobposcd",grd_holische.labelmatrix(i, 5));
- model.makeValue("/root/temp/holilist[" + i + "]/ordendresn",grd_holische.labelmatrix(i, 6));
- model.makeValue("/root/temp/holilist[" + i + "]/fromdd",grd_holische.labelmatrix(i, 8));
- model.makeValue("/root/temp/holilist[" + i + "]/ordtm",grd_holische.labelmatrix(i, 9));
-
- }
-
-
-
- exeReportPreview("RPPMB00901_휴진신청조회", "XMLSTR", "","", "false","","","","","false");
- }
-
- // 휴진일정 파일생성
- function fMakeDrHoliFile() {
-
- //조회조건 체크
- var vcheck_fromdd = model.getValue("/root/main/fromdd").getTrim();
- var vcheck_todd = model.getValue("/root/main/todd").getTrim();
-
- //환자번호 존재시 기간 상관없이 조회
- if (vcheck_fromdd == "" || vcheck_fromdd == " " || vcheck_fromdd == "-" || vcheck_fromdd == null ) {
- messageBox("시작일자가 입력되지","E007");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- if (vcheck_todd == "" || vcheck_todd == " " || vcheck_todd == "-" || vcheck_todd == null ) {
- messageBox("종료일자가 입력되지","E007");
- model.setFocus("ipt_todd");
- return;
- }
-
- if (isValidDateTime(vcheck_fromdd, "YYYYMMDD") != true) {
- messageBox("시작일자 형식 오류입니다!","E999","");
- return false;
- }
-
- if (isValidDateTime(vcheck_todd, "YYYYMMDD") != true) {
- messageBox("종료일자 형식 오류입니다!","E999","");
- return false;
- }
-
- if (eval(vcheck_fromdd) > eval(vcheck_todd)) {
- messageBox("종료일자는 시작일자보다 같거나 커야 합니다!","E999","");
- return false;
- }
-
- model.setValue("/root/send/holiflag", model.getValue("/root/main/holiflag"));
- 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"));
- model.setValue("/root/send/endflag", model.getValue("/root/main/endflag"));
-
- if (submit("TXPMB00906")) {
- messageBox("휴진일정 파일생성 배치가 실행되었습니다.", "I000");
-
- button2.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">휴진 및 임시진료일정 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/main/drholiordsche/drholiordschelist");
- model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
-
-
- // var endcnfmyn = model.getValue("/root/main/endcnfmyn");
- //
- // if(endcnfmyn == ''){
- // messageBox("진행상태 정보를 입려하지", "E007");
- // return;
- // }
-
- fSearchDrHoliSche();
-
- //전체건수조회
- var cnt = getNodesetCount("/root/main/drholiordsche/drholiordschelist");
- model.setValue("/root/temp/gridcnt", cnt);
-
- setRowStyle("grd_holische" , "1" , "0" , "misseqno" ,"bigger");
-
- var sum_unitcnt = 0;
-
- for(var i = 1; i <= cnt; i++) {
- sum_unitcnt = parseInt(model.getvalue("/root/main/drholiordsche/drholiordschelist[" + i + "]/layoffunitcnt")) + sum_unitcnt;
- }
-
- model.setValue("/root/temp/sum_unitcnt", sum_unitcnt);
-
- grd_holische.subtotalposition= "below";
- /*
- grd_holische.backcoloralternate = "transparent";
- grd_holische.subtotal("sum", 1, 10, "format:#,###; roundmode:round; roundpostion:2", "background-color:#99ff99, font-weight:bold; ", 1, "합계", true);
- grd_holische.subtotal("sum", 1, 11, "format:#,###; roundmode:round; roundpostion:2", "background-color:#99ff99, font-weight:bold; ", 1, "합계", true);
- grd_holische.subtotal("sum", 1, 12, "format:#,###; roundmode:round; roundpostion:2", "background-color:#99ff99, font-weight:bold; ", 1, "합계", true);
- grd_holische.subtotal("sum", 1, 13, "format:#,###; roundmode:round; roundpostion:2", "background-color:#99ff99, font-weight:bold; ", 1, "합계", true);
- */
- //grd_holische.subtotal("sum",-1, 10, "#,###", "background-color:#99ff99", 1, "합계", true);
-
- for(var i=10 ; i<14 ; i++){
- if (i ==10 || i==11 || i==12 || i==13) {
- grd_holische.subtotal("sum",-1, i, "#,###", "background-color:#99ff99", 1, "합계");
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" style="left:1001px; top:10px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
- <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_s_essential" appearance="minimal" style="left:525px; top:9px; width:76px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:181px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <caption id="caption7" class="search_name" style="left:400px; top:9px; width:86px; height:17px; ">진료의 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:255px; top:9px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
- model.setValue("/root/main/orddrid", "");
- cmb_orddrid.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:773px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:915px; top:9px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:1015px; top:9px; width:85px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">휴진구분 :</caption>
- <select1 id="combo6" ref="/root/main/holiflag" appearance="minimal" style="left:93px; top:9px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>휴진</label>
- <value>H</value>
- </item>
- <item>
- <label>부분마감</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- if(model.getvalue("/root/main/holiflag") != "T"){
-
- model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
-
- // radio1.visible = true;
- // caption1.visible = true;
- // combo1.visible = true;
-
- combo1.disabled = false;
-
- // caption2.attribute("left") = "363px";
- // radio1.attribute("left") = "453px";
- // ipt_fromdd.attribute("left") = "568px";
- // caption10.attribute("left") = "655px";
- // ipt_todd.attribute("left") = "670px";
- // caption5.attribute("left") = "766px";
- // cmb_orddeptcd.attribute("left") = "845px";
- // caption7.attribute("left") = "951px";
- // cmb_orddrid.attribute("left") = "1044px";
-
- grd_holische.colHidden(1) = false;
- grd_holische.colHidden(7) = false;
- grd_holische.colHidden(8) = true;
- grd_holische.colHidden(9) = true;
- grd_holische.colHidden(10) = false;
- grd_holische.colHidden(11) = false;
- grd_holische.colHidden(12) = false;
- grd_holische.colHidden(13) = false;
- grd_holische.colHidden(14) = false;
- grd_holische.colHidden(15) = false;
-
- model.refresh();
- }
-
- if(model.getvalue("/root/main/holiflag") == "T"){
-
- model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
-
- //조회조건숨김
- // radio1.visible = false;
- // caption1.visible = false;
- // combo1.visible = false;
-
- combo1.disabled = true;
-
- // //조회조건 위치 이동
- // caption2.attribute("left") = "175px";
- // radio1.attribute("left") = "264px";
- // ipt_fromdd.attribute("left") = "379px";
- // caption10.attribute("left") = "467px";
- // ipt_todd.attribute("left") = "482px";
- // caption5.attribute("left") = "578px";
- // cmb_orddeptcd.attribute("left") = "650px";
- // caption7.attribute("left") = "761px";
- // cmb_orddrid.attribute("left") = "849px";
-
- //그리드 숨김
- grd_holische.colHidden(1) = true;
- grd_holische.colHidden(7) = true;
- grd_holische.colHidden(8) = false;
- grd_holische.colHidden(9) = false;
- grd_holische.colHidden(10) = true;
- grd_holische.colHidden(11) = true;
- grd_holische.colHidden(12) = true;
- grd_holische.colHidden(13) = true;
- grd_holische.colHidden(14) = true;
- grd_holische.colHidden(15) = true;
-
- model.refresh();
- }
-
- // if (model.getValue("/root/send/data3") != "") {
-
- ]]>
- </script>
- </select1>
- <select1 id="combo1" ref="/root/main/endflag" appearance="minimal" style="left:705px; top:9px; width:52px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>신청</label>
- <value>N</value>
- </item>
- <item>
- <label>마감</label>
- <value>Y</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
-
- ]]>
- </script>
- </select1>
- <line id="line13" class="line_4" style="x1:1128px; y1:7px; x2:1128px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:615px; top:9px; width:97px; height:17px; ">조회구분 :</caption>
- <select1 id="combo2" ref="/root/main/srchcond" appearance="minimal" style="left:860px; top:9px; width:52px; height:19px; ">
- <choices>
- <item>
- <label>휴진</label>
- <value>H</value>
- </item>
- <item>
- <label>신청</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <input id="input10" style="left:480px; top:9px; width:45px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if (event.keyCode == "13") {
- var orddrnm = input10.currentText;
- var orddrid = model.getValue("/root/init/orddrid/orddridlist[nm='" + orddrnm + "']/cd");
-
- var orddrnm2 = input10.currentText + "[Y]"; // 선택진료의사용
- var orddrid2 = model.getValue("/root/init/orddrid/orddridlist[nm='" + orddrnm2 + "']/cd");
-
- if (isNull(orddrid) && isNull(orddrid2)) {
- alert("해당의사가 존재하지 않습니다.");
- return;
-
- } else {
-
- if (!isNull(orddrid)) {
- model.setValue("/root/main/orddrid", orddrid);
- } else {
- model.setValue("/root/main/orddrid", orddrid2);
- }
- model.refresh();
- }
- }
-
- ]]>
- </script>
- <hint>
- <![CDATA[진료의 성명으로 조회가능합니다.]]>
- </hint>
- </input>
- </group>
- <col type="checkbox"/>
- <caption id="caption4" class="tit_2" style="left:6px; top:59px; width:219px; height:14px; ">휴진 및 임시진료일정 내역 리스트</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
- <datagrid id="grd_holische" nodeset="/root/main/drholiordsche/drholiordschelist" class="datagrid2" caption="승인
여부^진료과^진료의사^선택
진료^직위^휴진사유^휴진기간^휴진일자^휴진시간^휴진
일수^임시
UNIT수^대진
UNIT수^휴진
UNIT수^외래대진
진료의사^입원대진
진료의사^신청일^비고^최초등록일시^최초등록자^진료과코드^진료의ID^histstat^seqno^misseqno^todayholiyn" colsep="^" colwidth="47, 120, 75, 40, 60, 110, 190, 100, 174, 45, 45, 45, 45, 75, 75, 85, 338, 140, 72, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:80px; width:1194px; height:661px; font-weight:bolder; ">
- <col ref="endcnfmyn" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="sp" style="text-align:center; "/>
- <col disabled="true" ref="jobposnm" style="text-align:center; "/>
- <col disabled="true" ref="ordendresn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromtodd" style="text-align:center; "/>
- <col ref="fromdd" style="text-align:center; "/>
- <col ref="ordtm" style="text-align:center; "/>
- <col ref="layoffday" style="text-align:center; "/>
- <col ref="tempunit" style="text-align:right; "/>
- <col ref="changunit" style="text-align:right; "/>
- <col ref="layoffunitcnt" style="text-align:right; "/>
- <col ref="oupdtorddrnm" style="text-align:center; "/>
- <col ref="iupdtorddrnm" style="text-align:center; "/>
- <col ref="drappdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="remfact" style="text-align:left; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="fstrgstrnm" visibility="visible" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="histstat" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="misseqno"/>
- <col ref="todayholiyn" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var holiflag = model.getValue("/root/main/holiflag");
-
- if(holiflag == 'H'){
- var cur_row = grd_holische.row;
-
- var prcsstat = model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/prcsstat");
-
- if(prcsstat == "대진" || prcsstat == "임시"){
- return;
- }
-
- if (isDataCell() == true) {
- if (grd_holische.row >= grd_holische.fixedRows) {
- model.setValue("/root/hidden/flag/orddeptcd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/orddeptcd"));
- model.setValue("/root/hidden/flag/orddrid",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/orddrid"));
- model.setValue("/root/hidden/flag/drappdd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/drappdd"));
- model.setValue("/root/hidden/flag/seqno",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/seqno"));
-
- modal("SPPMB02100", "1","50", "50", "SPPMB02100", "/root/hidden/flag", "/root/hidden/source");
-
- }
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_print" class="btn6_letter2" style="left:1134px; top:51px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/temp/holilist");
-
- var holiflag = model.getValue("/root/main/holiflag");
-
- if(holiflag == 'H'){
- fHolilistPrint();
- }else if(holiflag == 'T'){
- fTendPrint();
- }
-
- ]]>
- </script>
- </button>
- <shape id="rectangle1" appearance="rectangle" style="left:245px; top:57px; width:15px; height:15px; background-color:#ffe79d; border-color:#ffcc99; "/>
- <caption id="caption9" style="left:265px; top:56px; width:426px; height:20px; ">휴진마감 조회 시 조회당일이 휴진기간에 포함되는 경우 배경색이 표시됩니다.</caption>
- <button id="button1" class="btn5_letter4" style="left:976px; top:52px; width:64px; height:19px; ">
- <caption>파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMakeDrHoliFile();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter6" style="left:1042px; top:52px; width:86px; height:19px; ">
- <caption>파일생성로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(1, 'D');
- zsbfOpenBatchLogPopup("pambaseinfomngtmgr.DrHoliFileBatch", getCurrentDate(), todd.getDateFormat());
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; 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:1194px; y2:0px; "/>
- <caption id="caption8" style="left:0px; top:5px; width:820px; height:16px; font-size:9pt; font-weight:bolder; color:#fa0413; ">▶ [출력버튼 죄측 체크 버튼기능] : 체크시 조회기간에 포함된내역 전체 조회, 체크해제시 조회기간에 대해서만 조회(휴진에 대한 내역만)</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|