123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830 |
- <?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>
- <orddrid>A</orddrid>
- <orddeptcd/>
- <srchcond>H</srchcond>
- <fromdd/>
- <todd/>
- <drholiordsche>
- <drholiordschelist>
- </drholiordschelist>
- </drholiordsche>
- <result>
- <confirmdrholische/>
- </result>
- <histstatcd/>
- <endflag>D</endflag>
- <endflag/>
- <ordendresn/>
- <histyn/>
- <jobposcd/>
- <orddrnm/>
- </main>
- <send>
- <updatedata>
- <datalist/>
- </updatedata>
- <setdata>
- <orddeptcd/>
- <orddrid/>
- <ordendresn/>
- <fromdd/>
- <fromflag/>
- <todd/>
- <toflag/>
- <oupdtorddrnm/>
- <iupdtorddrnm/>
- <drappdd/>
- <remfact/>
- <workflag/>
- <prcsstat/>
- <fromtm/>
- <totm/>
- <doflag/>
- <region/>
- </setdata>
- <search>
- <orddrid/>
- <orddeptcd/>
- <srchcond/>
- <fromdd/>
- <todd/>
- <endflag/>
- <ordendresn/>
- <acceptstatflag/>
- <histstat/>
- <holiflag/>
- <endflag/>
- <histyn/>
- <jobposcd/>
- </search>
- <ioflag>A</ioflag>
- </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>
- <P0316list>
- <P0316>
- <cdid>D</cdid>
- <cdnm>전일</cdnm>
- </P0316>
- </P0316list>
- <P0464list>
- <P464>
- <cdid/>
- <cdnm/>
- </P464>
- </P0464list>
- <R0064list>
- <R0064>
- <cdid/>
- <cdnm/>
- </R0064>
- </R0064list>
- </init>
- <hidden>
- <desc>
- <orddeptcd/>
- <orddrid/>
- <ordendresn/>
- <fromdd/>
- <fromflag/>
- <todd/>
- <toflagt/>
- <oupdtorddrnm/>
- <iupdtorddrnm/>
- <drappdd/>
- <remfact/>
- </desc>
- <P0037list>
- <P0037>
- <cdid/>
- <cdnm/>
- </P0037>
- </P0037list>
- </hidden>
- <temp>
- <flag/>
- <result/>
- <drholiordsche>
- <drholiordschelist/>
- </drholiordsche>
- </temp>
- <paminit>
- <PK046list>
- <PK046>
- <cdid/>
- <cdnm/>
- </PK046>
- </PK046list>
- </paminit>
- <excel>
- <ordinfo>
- <orddeptnm/>
- <orddrnm/>
- <gubun/>
- <reason/>
- <fromdd/>
- <fromtm/>
- <todd/>
- <totm/>
- <etc/>
- </ordinfo>
- </excel>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMB00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/drholiordsche"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0037","P0406","P0316", "P0464", "R0064"), new Array("/root/init/P0037list","/root/init/P0406list", "/root/init/P0316list", "/root/init/P0464list", "/root/init/R0064list"), false);
-
- // 마감승인관련 사용자부서 제어 추가 by 조중래 20131105
- pamfGetCodeList(new Array("PK046"), new Array("/root/paminit/PK046list"));
-
- pamGetDeptCDDrIDList();
- model.makeNode("/root/init/temp/orddeptcd/orddeptcdlist/cd");
- model.makeNode("/root/init/temp/orddeptcd/orddeptcdlist/nm");
- copyNodesetType("/root/init/orddeptcd/orddeptcdlist", "/root/init/temp/orddeptcd/orddeptcdlist", "before");
-
- // 휴가 제외처리 추가 by 조중래 20130716
- // 그리드 설정부에 있음 : nodeset="/root/init/P0037list/P0037[detldesc = 'H' and cdnm != '휴가']"
-
- //접수예약 그리드에 전체선택 체크박스 추가
- //grd_holische.fixedcellcheckbox(1,1) = true;
- model.refresh();
- // addComboItem("cmb_orddeptcd","구강악안면방사선과","2242000000","init");
- // addComboItem("cmb_orddrid","전체","","above");
- fInitialize();
- //model.setValue("/root/main/histstatcd","YC");
- // combo3.nodeset = "/root/init/P0037list[cddetl = " + 'H' + "]";
- // combo3.rebuild();
-
- ]]>
- </script>
- <submission id="TXPMB02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/setdata" resultref="/root/temp/result"/>
- <submission id="TXPMB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TXPMB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TRPMB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/drholiordsche"/>
- <submission id="TRPMB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/setdata" resultref="/root/temp/drholiordsche"/>
- <submission id="TXPMB02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/setdata" resultref="/root/temp/result"/>
- <submission id="TXPMB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata/datalist" resultref="/root/main/result"/>
- <submission id="TXPMB00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
- </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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
-
-
- //조회조건 세팅
- model.setValue("/root/main/srchcond", "H"); //조회조건 (H:휴진, A:승인)
- //end..
-
- //마감구분 세팅
- model.setValue("/root/main/endflag", "N"); //조회구분 (N:신청, Y:승인)
- //end..
-
- //휴진기간 구분 조건 세팅
- model.setValue("/root/send/setdata/fromflag", 'D'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/toflag", 'D');
- model.setValue("/root/send/setdata/fromtm", '0830'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/totm", '2359');
- //end..
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/main/todd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",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);
- */
- model.makeValue("/root/send/setdata/workflag","I");
-
- /*
- caption2.visible = false;
- ipt_fromdd.visible = false;
- caption10.visible = false;
- ipt_todd.visible = false;
- */
- //마감버튼처리
- button2.disabled = false;
- button4.disabled = true;
-
- model.refresh();
-
- }
- function fclear(){
- model.resetInstanceNode("/root/send/search");
- model.resetInstanceNode("/root/main");
-
- //조회조건 세팅
- model.setValue("/root/main/srchcond", "D"); //조회조건 (D:휴진, A:승인)
- //end..
-
- //마감구분 세팅
- model.setValue("/root/main/endflag", "N"); //조회구분 (N:신청, Y:승인)
- //end..
-
- //휴진기간 구분 조건 세팅
- model.setValue("/root/send/setdata/fromflag", 'D'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/toflag", 'D');
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",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);
-
- model.makeValue("/root/send/setdata/workflag","I");
-
- 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("endcnfmyn") ) == 'Y' ){
-
- if( flag == 'ok' ){
- if( 'Y' == model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/endcnfmyn")){
- messageBox("이미 마감확인 하신 휴진일정을 다시 마감확인 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
- return false;
- }
- }else{
- if( 'Y' != model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/endcnfmyn")){
- messageBox("마감확인 하지 않은 휴진일정을 마감취소 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
- return false;
- }
- }
- }
- }
-
- return true;
- }
- */
- //의사휴진일정 조회
- function fSearchDrHoliSche(strFlag){
-
- // 치과소속 사용자의 경우, 치과만 처리 가능하도록 제어 추가 by 조중래 20170609
- var dutPlceInstCd = getUserInfo("dutplceinstcd");
- var orddeptcd = model.getValue("/root/main/orddeptcd");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[cd='" + orddeptcd + "']/reqdeptno").substr(0, 2);
- var dutPlceCd = getUserInfo("dutplcecd");
-
- if (dutPlceInstCd != "033" && dutPlceCd == "2240000000" && isNull(orddeptcd)) {
- messageBox("진료과를 선택 후 조회하시기 바랍니다.", "C000");
- return false;
- }
-
- if (dutPlceInstCd != "033" && reqdeptno != "55" && dutPlceCd == "2240000000") {
- messageBox("치과소속의 의사만 조회/신청 가능합니다.", "C000");
- return false;
- }
-
- // model.resetInstanceNode("/root/send");
- // var checkflag = model.getValue("/root/main/endflag");
- var from = model.getValue("/root/main/fromdd");
- var to = model.getValue("/root/main/todd");
-
- if(from > to)
- {
- messageBox("조회기간이 잘못 입력 되었습니다.", "E999");
- return;
- }
-
- model.setValue("/root/send/search/orddrid", model.getValue("/root/main/orddrid"));
- model.setValue("/root/send/search/orddeptcd", model.getValue("/root/main/orddeptcd"));
- model.setValue("/root/send/search/srchcond", model.getValue("/root/main/srchcond"));
- model.setValue("/root/send/search/endflag", model.getValue("/root/main/endflag"));
- model.setValue("/root/send/search/fromdd", model.getValue("/root/main/fromdd"));
- model.setValue("/root/send/search/todd", model.getValue("/root/main/todd"));
- model.setValue("/root/send/search/histyn", model.getValue("/root/main/histyn"));
- model.setValue("/root/send/search/jobposcd", model.getValue("/root/main/jobposcd"));
-
- // if(checkflag == 'A') {
- //2008-06-19 이동식 추가
- model.setValue("/root/send/search/holiflag", 'H');
- if( model.getValue("/root/send/search/srchcond") !='' && model.getValue("/root/send/search/fromdd") != "" && model.getValue("/root/send/search/todd") != "" ){
- submit("TRPMB00901");
-
-
- var cnt = getNodesetCount("/root/main/drholiordsche/drholiordschelist");
-
- var instcd = getUserInfo("dutplceinstcd");
-
- // 배경색 초기화
- grd_holische.rebuildStyle();
-
- // 배경색 제어 : 타병원(주황색) 및 이력(회색)
- for (var i = 1; i <= cnt; i++) {
-
- // 타병원에서 전자결재 연동된 경우
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/minstcd").substr(0, 3) != ""
- && model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/minstcd").substr(0, 3) != instcd) {
- grd_holische.rowStyle(i + 1,"data","background-color") = "#FFCCFF";
-
- // 이력처리
- } else if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/histstat") == "C") {
- grd_holische.rowStyle(i + 1,"data","background-color") = "#C0C0C0";
-
- }
- }
- }
- // }else{
- // messageBox("조회기간 정보를 입려하지", "E007");
- // }
- // }
- // else if(checkflag == 'B') {
- //
- // //2008-06-19 이동식 추가
- // model.setValue("/root/send/search/holiflag", 'T');
- // if( model.getValue("/root/send/search/srchcond") !='' && model.getValue("/root/send/search/fromdd") != "" && model.getValue("/root/send/search/todd") != "" ){
- // submit("TRPMB00902");
- // }else{
- // messageBox("조회기간 정보를 입려하지", "E007");
- // }
- // }
- model.refresh();
- }
- //필수 입력값 확인
- function fcheck(){
- if(model.getValue("/root/send/setdata/orddeptcd") == "") {
- messageBox("진료과가 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/orddrid") == "") {
- messageBox("진료의사가 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/doflag") == "") {
- messageBox("국내외구분이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/ordendresn") == "") {
- messageBox("휴진사유가 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/fromdd") == "") {
- messageBox("휴직기간의 시작일이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/fromflag") == "") {
- messageBox("휴직기간의 시작일 구분(전일, 오전, 오후)이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/fromtm") == "") {
- messageBox("휴직기간의 시작일 시간이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/todd") == "") {
- messageBox("휴직기간의 종료일이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/toflag") == "") {
- messageBox("휴직기간의 종료일 구분(전일, 오전, 오후)이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/totm") == "") {
- messageBox("휴직기간의 종료일 시간이 입력되지", "E007");
- return false;
- }
- if(model.getValue("/root/send/setdata/drappdd") == "") {
- messageBox("의사 신청일이 입력되지", "E007");
- return false;
- }
- }
-
-
- function fCheckModify() {
-
- //입력창에 매핑된 send Node 와 변경 전 데이타인 hidden Node 를 비교한다.
- //변경되었으면, return true
- if ( (model.getValue("/root/hidden/desc/orddeptcd") ) != ( model.getValue("/root/send/setdata/orddeptcd")) ) return true; //진료과
- if ( (model.getValue("/root/hidden/desc/orddrid") ) != ( model.getValue("/root/send/setdata/orddrid")) ) return true; //진료의사
- if ( (model.getValue("/root/hidden/desc/ordendresn") ) != ( model.getValue("/root/send/setdata/ordendresn")) ) return true; //휴진사유
- if ( (model.getValue("/root/hidden/desc/fromdd") ) != ( model.getValue("/root/send/setdata/fromdd")) ) return true; //휴진시작일자
- if ( (model.getValue("/root/hidden/desc/fromflag") ) != ( model.getValue("/root/send/setdata/fromflag")) ) return true; //휴진시작구분
- if ( (model.getValue("/root/hidden/desc/todd") ) != ( model.getValue("/root/send/setdata/todd")) ) return true; //휴진종료일자
- if ( (model.getValue("/root/hidden/desc/toflag") ) != ( model.getValue("/root/send/setdata/toflag")) ) return true; //휴진종료구분
- if ( (model.getValue("/root/hidden/desc/oupdtorddrnm") ) != ( model.getValue("/root/send/setdata/oupdtorddrnm")) ) return true; //외래대진진료의사
- if ( (model.getValue("/root/hidden/desc/iupdtorddrnm") ) != ( model.getValue("/root/send/setdata/iupdtorddrnm")) ) return true; //입원대진진료의사
- if ( (model.getValue("/root/hidden/desc/drappdd") ) != ( model.getValue("/root/send/setdata/drappdd")) ) return true; //의사신청일
- if ( (model.getValue("/root/hidden/desc/remfact") ) != ( model.getValue("/root/send/updatedata/remfact")) ) return true; //비고
-
- return false;
- }
-
- function daydatecheck() {
-
- var from = model.getValue("/root/send/setdata/fromdd") + model.getValue("/root/send/setdata/fromtm");
- var to = model.getValue("/root/send/setdata/todd") + model.getValue("/root/send/setdata/totm");
-
- if (model.getValue("/root/send/setdata/fromdd") < getCurrentDate()) {
-
- messageBox("과거일자로의 휴진신청은 불가능합니다.", "E000");
- return false;
- }
-
- if( ! isValidDateTime(from, "YYYYMMDDhhmm") || ! isValidDateTime(to, "YYYYMMDDhhmm") ){
- messageBox("휴진기간이 날자형식이 아닙니다. 확인 후 다시 입력해주세요.", "E999", "");
- return false;
- }
-
- if(from > to)
- {
- messageBox("조회기간이 잘못 입력 되었습니다.", "E999");
- return false;
- }
- }
-
- function fIsValidDept() {
-
- // 사용자 근무부서 취득
- var dutPlceCd = getUserInfo("dutplcecd");
-
- // 원무공통코드에 등록되어있는 부서인지 조회
- var cnt = getNodesetCount("/root/paminit/PK046list/PK046[cdid='" + dutPlceCd + "']");
-
- // 존재하지 않으면 false를 리턴
- if (cnt < 1) {
- return false;
- }
-
- return true;
- }
-
- // EXCEL 데이터를 업로드 처리
- function fLoadExcel(){
- var fileName = window.fileDialog("open", ",", false, "", "xlsx", "Excel Files(*.xlsx)|*.xlsx|All Files (*.*)|*.*");
- if (fileName != ""){
-
- grd_excel.loadExcel(fileName);
- grd_excel.refresh();
-
- fLoadExcelData(grd_excel.rows);
- } else {
- alert("파일 선택이 되지않았습니다");
- }
-
- }
-
- function fLoadExcelData(rows){
-
- if (rows < 1) {
- alert("업로드할 데이터가 없습니다.");
- return;
- }
-
- for(var i=1; i < rows; i++){
-
- var orddeptcd = model.getValue("/root/init/orddeptcd/orddeptcdlist[nm='"+grd_excel.valueMatrix(i, grd_excel.colRef("orddeptnm"))+"']/cd");
- var orddrid = model.getValue("/root/init/orddrid/orddridlist[dp='"+ orddeptcd +"' and nmsp='"+ grd_excel.valueMatrix(i, grd_excel.colRef("orddrnm"))+"']/cd");
-
- // 진료과명 오류
- if(isNull(orddeptcd)){
- alert("진료과명을 확인해주십시오. \r\n" + grd_excel.valueMatrix(i, grd_excel.colRef("orddeptnm")));
- return;
- }
-
- // 진료의명 오류
- if (isNull(orddrid)) {
- alert("진료의 사번을 찾을 수 없습니다. \r\n" + "[" + grd_excel.valueMatrix(i, grd_excel.colRef("orddeptnm")) + "] " + grd_excel.valueMatrix(i, grd_excel.colRef("orddrnm")));
- return;
- }
-
- model.makeValue("/root/send/setdata/orddeptcd", orddeptcd);
- model.makeValue("/root/send/setdata/orddrid", orddrid);
-
- // 국내외 구분 오류
- if(grd_excel.valueMatrix(i, grd_excel.colRef("gubun"))=="국내"){
- model.makeValue("/root/send/setdata/doflag", "D");
- combo7.dispatch("xforms-value-changed");
- }else if(grd_excel.valueMatrix(i, grd_excel.colRef("gubun"))=="국외"){
- model.makeValue("/root/send/setdata/doflag", "O");
- combo7.dispatch("xforms-value-changed");
- }else{
- alert("국내외 구분이 올바르지 않습니다.\r\n"+ "[" + grd_excel.valueMatrix(i, grd_excel.colRef("orddeptnm")) + "] " + grd_excel.valueMatrix(i, grd_excel.colRef("orddrnm")));
- return;
- }
-
- model.makeValue("/root/send/setdata/ordendresn", model.getValue("/root/hidden/P0037list/P0037[cdnm='"+grd_excel.valueMatrix(i, grd_excel.colRef("reason"))+"']/cdid"));
- model.makeValue("/root/send/setdata/drappdd", input6.value);
- model.makeValue("/root/send/setdata/fromdd", grd_excel.valueMatrix(i, grd_excel.colRef("fromdd")));
- model.makeValue("/root/send/setdata/fromtm", grd_excel.valueMatrix(i, grd_excel.colRef("fromtm")));
- model.makeValue("/root/send/setdata/todd", grd_excel.valueMatrix(i, grd_excel.colRef("todd")));
- model.makeValue("/root/send/setdata/totm", grd_excel.valueMatrix(i, grd_excel.colRef("totm")));
- model.makeValue("/root/send/setdata/remfact", grd_excel.valueMatrix(i, grd_excel.colRef("etc")));
- model.makeValue("/root/send/setdata/workflag","I");
- model.setValue("/root/send/setdata/prcsstat", '01');
-
- if(!submit("TXPMB02501")){
- messageBox("저장시 에러가 발생하였습니다.", "E");
- model.resetInstanceNode("/root/excel/ordinfo");
- break;
- };
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1196;2,143;" 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:9px; width:1194px; height:35px; vertical-align:top; " -->
- <group id="group4" style="left:0px; top:9px; width:1194px; height:36px; vertical-align:top; ">
- <caption id="caption1" class="search_name" style="left:1020px; top:10px; width:86px; height:17px; ">진행상황 :</caption>
- <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:1128px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSearchDrHoliSche("Y");
- //model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" style="left:954px; top:9px; width:10px; 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:339px; top:9px; width:78px; 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:5px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <caption id="caption7" class="search_name" style="left:220px; top:9px; width:74px; height:17px; ">진료의 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:77px; 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:736px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:881px; top:9px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:979px; top:9px; width:85px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:590px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="combo6" ref="/root/main/endflag" appearance="minimal" style="left:678px; top:9px; width:52px; height:19px; ">
- <choices>
- <item>
- <label>신청</label>
- <value>N</value>
- </item>
- <item>
- <label>마감</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- if(model.getvalue("/root/main/endflag") == "N"){
-
- // model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
-
- /*
- caption2.visible = false;
- ipt_fromdd.visible = false;
- caption10.visible = false;
- ipt_todd.visible = false;
- // */
- button2.disabled = false;
- button4.disabled = true;
-
- model.refresh();
- }
- if(model.getvalue("/root/main/endflag") == "Y"){
-
- // model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
- /*
- caption2.visible = true;
- ipt_fromdd.visible = true;
- caption10.visible = true;
- ipt_todd.visible = true;
- */
- button2.disabled = true;
- button4.disabled = false;
-
- model.refresh();
- }
-
- // if (model.getValue("/root/send/data3") != "") {
-
- ]]>
- </script>
- </select1>
- <select id="checkbox1" ref="/root/main/histyn" overflow="visible" appearance="full" style="left:1072px; top:10px; width:43px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>이력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="combo8" ref="/root/main/jobposcd" class="combo_s_essential" appearance="minimal" style="left:514px; top:9px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>전문의</label>
- <value>1782</value>
- </item>
- <item>
- <label>전공의</label>
- <value>1800</value>
- </item>
- <item>
- <label>연수의</label>
- <value>1799</value>
- </item>
- </choices>
- </select1>
- <input id="input10" style="left:294px; 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>
- <caption id="caption21" class="search_name" style="left:425px; top:10px; width:86px; height:17px; ">의사구분 :</caption>
- <select1 id="combo9" ref="/root/main/srchcond" appearance="minimal" style="left:825px; top:9px; width:52px; height:19px; ">
- <choices>
- <item>
- <label>휴진</label>
- <value>H</value>
- </item>
- <item>
- <label>신청</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="caption22" style="left:965px; top:10px; width:15px; height:20px; text-align:center; ">~</caption>
- </group>
- <col type="checkbox"/>
- <caption id="caption4" class="tit_2" style="left:6px; top:59px; width:131px; height:13px; ">
- <![CDATA[의사휴진일정내역]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //modal("SMPMB02510", "1","50", "50", "SMPMB02510", "", "");
- ]]>
- </script>
- </caption>
- <line id="line3" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <datagrid id="grd_holische" nodeset="/root/main/drholiordsche/drholiordschelist" class="datagrid2" visibility="visible" caption="선택^마감승인여부^진행상황^이력
상태^진료과^진료의사^구분^구분^국내
국외^출장
지역^휴진사유^전자결재
진행상태^휴진기간^휴진기간^휴진기간^휴진기간^의사신청일^비고^최종수정자^seqno^histstat^진료과코드^진료의ID^휴진구분^시작구분^종료구분^최초등록정보^최초등록정보^최초등록정보^최종수정정보^최종수정정보^최종수정정보^휴진
 UNIT수^외래대진
진료의사^입원대진
진료의사^GW연동키out^문서번호(원)^문서번호(타)^GW연동키in^GW연동키2in^마감확인시간|선택^마감승인여부^진행상황^이력
상태^진료과^진료의사^구분^구분^국내
국외^출장
지역^휴진사유^전자결재
진행상태^시작일^시간^종료일^시간^의사신청일^비고^최종수정자^seqno^histstat^진료과코드^진료의ID^휴진구분^시작구분^종료구분^일시^성명^사번^일시^성명^사번^휴진
 UNIT수^외래대진
진료의사^입원대진
진료의사^GW연동키out^문서번호(원)^문서번호(타)^GW연동키in^GW연동키2in^마감확인시간" colsep="^" colwidth="35, 35, 72, 33, 130, 70, 52, 70, 42, 60, 64, 103, 100, 50, 100, 50, 91, 299, 100, 100, 100, 100, 100, 100, 100, 100, 140, 60, 60, 140, 60, 60, 60, 70, 70, 100, 100, 100, 83, 100, 100" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:165px; width:1194px; height:568px; font-weight:bold; ">
- <col checkvalue="Y,C" ref="check" type="checkbox"/>
- <col checkvalue="Y,C" disabled="true" ref="endcnfmyn" type="checkbox"/>
- <col disabled="true" ref="prcsstat" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0464list/P0464">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="histstat" style="text-align:center; "/>
- <col disabled="true" ref="orddeptnm" style="word-wrap:hard; "/>
- <col disabled="true" ref="orddrnm" style="text-align:center; "/>
- <col disabled="true" ref="jobposcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>전문의</label>
- <value>1782</value>
- </item>
- <item>
- <label>전공의</label>
- <value>1800</value>
- </item>
- <item>
- <label>연수의</label>
- <value>1799</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="jobgradcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0064list/R0064">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="doflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>국내</label>
- <value>D</value>
- </item>
- <item>
- <label>국외</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="region" type="output" style="text-align:center; "/>
- <col disabled="true" ref="ordendresnnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="gwstatus" type="inputbutton" style="text-align:center; "/>
- <col disabled="true" ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="fromtm" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="totm" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="drappdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="remfact"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="histstat" visibility="hidden"/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden" style="word-wrap:hard; ">
- <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="holiflag" visibility="hidden"/>
- <col disabled="true" ref="fromflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/P0316list/P0316">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="toflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/P0316list/P0316">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="fstrgstrnm" style="text-align:center; "/>
- <col ref="fstrgstrid" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="lastupdtrid" visibility="hidden" style="text-align:center; "/>
- <col ref="layoffunitcnt" style="text-align:right; "/>
- <col disabled="true" ref="oupdtorddrnm" style="left:777px; top:52px; width:125px; height:23px; text-align:center; "/>
- <col disabled="true" ref="iupdtorddrnm" style="left:777px; top:52px; width:125px; height:23px; text-align:center; "/>
- <col ref="apprid" visibility="hidden"/>
- <col ref="docregno"/>
- <col ref="docregno2"/>
- <col ref="pinstcd"/>
- <col ref="minstcd"/>
- <col ref="endcnfmdt" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var cur_row = grd_holische.row;
- cur_row = cur_row-1;
- var confirm = model.getValue("/root/main/endflag");
-
- if(cur_row > 0) {
-
- if((model.getValue("/root/main/drholiordsche/drholiordschelist["+cur_row+"]/prcsstat") == "01")
- || (model.getValue("/root/main/drholiordsche/drholiordschelist["+cur_row+"]/prcsstat") == "05")){
- model.resetInstanceNode("/root/send/setdata");
-
- //model.refresh();
-
- model.copyNode("/root/send/setdata","/root/main/drholiordsche/drholiordschelist["+cur_row+"]");
- model.copyNode("/root/hidden/desc","/root/main/drholiordsche/drholiordschelist["+cur_row+"]");
- model.refresh();
- }
-
- // 전자결재 연동
- if(grd_holische.col == grd_holische.colRef("gwstatus")
- && model.getValue("/root/main/drholiordsche/drholiordschelist["+cur_row+"]/gwstatus") != "") {
-
- // MIS.js 함수 호출(mis_miscommonweb)
- misfViewElctSanct(model.getValue("/root/main/drholiordsche/drholiordschelist["+cur_row+"]/apprid"));
- }
- }
- model.refresh();
-
- var check = model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row+ "]/check");
-
- if (check == "Y") {
- grd_holische.rowstatus(grd_holische.row) = 1;
- } else if (check == "C") {
- grd_holische.rowstatus(grd_holische.row) = 4;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- if( grd_holische.col != 1 ){
- return false;
- }
-
- var cur_row = grd_holische.row;
- cur_row = cur_row-1;
- var nodeList = instance1.selectNodes("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]endcnfmyn='Y']");
- var rCSV = getNodeListCSV(nodeList);
- var checkflag = model.getValue("/root/main/endflag");
- var check = model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/endflag");
- var num = model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row + "]/seqno");
- num = num+1;
-
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("/root/send/updatedata/datalist", rCSV);
-
- if(checkflag == 'B') {
- return;
- }
- else{
- //마감승인여부를 체크시
- if(model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/endcnfmyn") == 'Y') {
-
- if(check == "C"){
- messageBox("마감취소된 내역은 마감을 할 수 없습니다. ","E999");
- model.setValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/endcnfmyn", 'C');
- return;
- }
-
- if(messageBox("선택된 휴진내역을 일정에 반영하시겠습니까?", "Q999") != 6)
- {
- model.setValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/endcnfmyn", 'C')
- //grd_ordschecrite.deleteItem(cur_row);
- // fSearchDrHoliSche("Y"); //이부분 확인 ????
- return false;
- }
- model.setValue("/root/send/setdata/prcsstat", '05');
-
- seqno = parseInt(model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/seqno"));
-
- //마이그레이션 데이터 마감승인
- if(seqno < "100"){
- if(submit("TXPMB00904")){
-
-
- if( model.getValue("/root/main/result/confirmdrholische[" + cur_row + "]/layoffunitcnt") == "0")
- {
- messageBox("선택하신 휴진내역에 진료일정이 없습니다.", "E999"," ");
- }
-
- messageBox("선택하신 휴진내역이 일정에 반영되었습니다. ","E999");
- grd_holische.deleteItem( cur_row+1 );
- }
-
- }else{
-
- if(submit("TXPMB00902")){
-
- // var cnt = getNodesetCount("/root/main/result/confirmdrholische");
- //체크된 데이터만 가져온다.
- // alert(cnt);
- // return;
-
- // for(var j = 1; j <=cnt; j++)
- // {
- if( model.getValue("/root/main/result/confirmdrholische[" + cur_row + "]/layoffunitcnt") == "0")
- {
- messageBox("선택하신 휴진내역에 진료일정이 없습니다.", "E999"," ");
- }
-
- //model.setValue("/root/main/drholiordsche/drholiordschelist[" + cur_row + "]/prcsstat", '05');
-
- messageBox("선택하신 휴진내역이 일정에 반영되었습니다. ","E999");
- grd_holische.deleteItem( cur_row+1 );
- // fSearchDrHoliSche("Y");
- }
- }
- }
-
- //마감승인여부를 해제시
- if(model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/endcnfmyn") == 'C') {
-
- if(messageBox("선택된 휴진내역을 마감취소 하시겠습니까?", "Q999") != 6) return false;
- //취소시 값입력
- model.setValue("/root/send/setdata/prcsstat", '07');
- seqno = parseInt(model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/seqno"));
-
- //마이그레이션 데이터 마감취소
- if(seqno < "100"){
- if(submit("TXPMB00905")){
- messageBox("선택하신 휴진내역이 취소되었습니다.. ","E999");
- // model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]");
- grd_holische.deleteItem( cur_row+1 );
- // fSearchDrHoliSche("Y");
- }
-
- }else{
- if(submit("TXPMB00903")){
- messageBox("선택하신 휴진내역이 취소되었습니다.. ","E999");
- // model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]");
- grd_holische.deleteItem( cur_row+1 );
- // fSearchDrHoliSche("Y");
- }
- }
- }
-
- model.setValue("/root/send/setdata/orddrid", model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/orddrid"));
- model.setValue("/root/send/setdata/orddeptcd", model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/orddeptcd"));
- model.setValue("/root/send/setdata/ordendresn", model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/ordendresn"));
- model.setValue("/root/send/setdata/fromdd", model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/fromdd"));
- model.setValue("/root/send/setdata/todd", model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/todd"));
-
- //submit("TRPMB00903");
- // fSearchDrHoliSche("Y");
- }
- */
- ]]>
- </script>
- </datagrid>
- <!-- <button id="button2" class="btn2_letter3" style="left:972px; top:88px; width:53px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* model.resetInstanceNode("/root/send/setdata");
-
- //신규입력 작업구분 : I 세팅
- model.makeValue("/root/send/setdata/workflag","I");
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",curDate);
-
- //휴진기간 구분 조건 세팅
- model.setValue("/root/send/setdata/fromflag", 'D'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/toflag", 'D');
-
- model.refresh();
- */
- ]]>
- </script>
-
- </button>
- -->
- <!-- <button id="btn_save" class="btn5_letter3" style="left:1084px; top:53px; width:53px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fixedrow = grd_holische.fixedRows;
-
- //필수입력 확인
- if(fcheck() == false) {
- return;
- }
-
- //날짜 입력 오류 체크
- if(daydatecheck() == false) {
- return;
- }
-
- if (!fCheckModify()) {
- messageBox("변경된 내역이 없어, 저장하지", "E007"); //변경된 내역이 없어, 저장하지 않았습니다.
- return;
- }
- else
- {
- if(messageBox("선택된 행의 의사휴진일정 내역을 수정 하시겠습니까?", "Q999") != 6) return;
-
- // if (fChkAutMemoCretList()) {
- model.makeValue("/root/send/setdata/workflag","U");
- model.setValue("/root/send/setdata/prcsstat", '-');
- // model.setValue("/root/send/updatedata/datalist", update);
- if(submit("TXPMB02501")) {
- messageBox("수정이","I002");
-
- // model.resetInstanceNode("/root/main");
- model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
- /*
- model.setValue("/root/send/search/orddrid", model.getValue("/root/send/setdata/orddrid"));
- model.setValue("/root/send/search/orddeptcd", model.getValue("/root/send/setdata/orddeptcd"));
- model.setValue("/root/send/search/fromdd", model.getValue("/root/send/setdata/fromdd"));
- model.setValue("/root/send/search/todd", model.getValue("/root/send/setdata/todd"));
- model.setValue("/root/send/search/ordendcnfmyn", model.getValue("/root/send/setdata/ordendcnfmyn"));
- */
- submit("TRPMB00903");
- //btn_search.dispatch("DOMActivate");
-
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/setdata/fromflag", 'D'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/toflag", 'D');
- model.makeValue("/root/send/setdata/workflag","I");
- //fclear();
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",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);
- }
-
- }
-
-
- model.refresh();
- ]]>
- </script>
- </button> -->
- <button id="button3" class="btn5_letter2" style="left:1149px; top:53px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rows = grd_holische.rows;
- var cur_row = grd_holische.row -1; // 행 번호 가져오기
-
- var instcd = getUserInfo("dutplceinstcd");
-
- if( cur_row > 0 ){
-
- var check = model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/endcnfmyn");
-
- if(check == "Y") {
- messageBox("마감된 이력은 삭제할 수", "E001");
- return;
- }
-
- // 취소작업은 가능하도록 수정
- // if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/pinstcd") != ""
- // || model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/minstcd") != "") {
- // messageBox("전자결재 데이터는 취소 / 마감승인 / 마감취소 불가능합니다. ", "E999");
- // return;
- // }
-
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/histstat") == "C") {
- messageBox("이력데이터(이력상태:C)는 삭제할 수 없습니다. ", "E999");
- return;
- }
-
- // 등록한 사람만 삭제가능 20120113 조중래
- // 진료행정팀(3310000000, 3310100000), 치과지원팀(2241400000) 소속은 누구든지 삭제 가능 20120822 조중래
- // 교육수련팀 추가 및 원무공통코드 처리 by 조중래 20131105
- var fstrgstrid = model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/fstrgstrid");
-
- if (getUserId() != fstrgstrid && !fIsValidDept()) {
- messageBox("휴진일정을 등록한 사람만 삭제처리 가능합니다.\r\n\r\n[문의사항]\r\n전문의 : 진료행정팀 / 치과지원팀\r\n전공의 : 교육수련팀 / 교육연구팀", "C000");
- return;
- }
-
- if(messageBox("선택된 행의 의사휴진일정 내역을", "Q001") != 6) return;
-
- //model.setValue("root/send/updatedata/datalist", grd_holische.getUpdateData("delete"));
- model.makeValue("/root/send/setdata/workflag", "D");
- model.setValue("/root/send/setdata/prcsstat", '03');
-
- seqno = parseInt(model.getValue("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]/seqno"));
-
-
- // model.alert(seqno);
- // return;
- //마이그레이션 데이터 취소시 이력X
- if(seqno < "100"){
- if( submit("TXPMB02502",true) ) {
- btn_search.dispatch("DOMActivate");
- messageBox("신청한 휴진일정이 취소 ", "I001");
-
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/setdata/fromflag", 'D');
- model.setValue("/root/send/setdata/toflag", 'D');
- model.makeValue("/root/send/setdata/workflag","I");
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",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);
- }
-
- }else{
- if( submit("TXPMB02501",true) ) {
- btn_search.dispatch("DOMActivate");
- messageBox("신청한 휴진일정이 취소 ", "I001");
-
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/setdata/fromflag", 'D'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/toflag", 'D');
- model.makeValue("/root/send/setdata/workflag","I");
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",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);
- }
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_3" style="x1:1px; y1:127px; x2:1195px; y2:127px; "/>
- <caption id="caption8" class="tit_2" style="left:6px; top:142px; width:160px; height:13px; ">의사휴진일정내역리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:158px; x2:1194px; y2:158px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:104px; width:62px; height:23px; ">진료의사</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:80px; width:62px; height:23px; ">진료과</caption>
- <select1 id="combo1" ref="/root/send/setdata/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:65px; top:81px; width:120px; 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[
- combo2.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + combo1.value + "']";
-
- model.setValue("/root/send/setdata/orddrid", "");
- combo2.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/send/setdata/orddrid" class="combo_s_essential" appearance="minimal" style="left:65px; top:106px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/send/setdata/ordendresn" appearance="minimal" style="left:444px; top:81px; width:71px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input9" ref="/root/send/setdata/region" style="left:517px; top:81px; width:133px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:188px; top:104px; width:175px; height:23px; ">휴진기간(시작일자/종료일자)</caption>
- <input id="input1" ref="/root/send/setdata/fromdd" class="input_default" inputtype="date" appearance="input" style="left:366px; top:106px; width:84px; height:19px; "/>
- <select1 id="combo4" ref="/root/send/setdata/fromflag" appearance="minimal" style="left:452px; top:106px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0316list/P0316">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flag = model.getValue("/root/send/setdata/fromflag");
-
- if(flag == "D" || flag == "A" ){
- model.setValue("/root/send/setdata/fromtm", '0830'); //휴진기간 구분 전일로 세팅
- }
- else if(flag == "P" ){
- model.setValue("/root/send/setdata/fromtm", '1330'); //휴진기간 구분 전일로 세팅
- }
- else if(flag == "N" ){
- model.setValue("/root/send/setdata/fromtm", '1730'); //휴진기간 구분 전일로 세팅
- }
- else{
- model.setValue("/root/send/setdata/fromtm", '0830'); //휴진기간 구분 전일로 세팅
- }
-
- input7.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption14" style="left:545px; top:106px; width:20px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
- <select1 id="combo5" ref="/root/send/setdata/toflag" appearance="minimal" style="left:652px; top:106px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0316list/P0316">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flag = model.getValue("/root/send/setdata/toflag");
-
- if(flag == "D" ){
- model.setValue("/root/send/setdata/totm", '2359'); //휴진기간 구분 전일로 세팅
- }
- else if(flag == "A" ){
- model.setValue("/root/send/setdata/totm", '1230'); //휴진기간 구분 전일로 세팅
- }
- else if(flag == "P" ){
- model.setValue("/root/send/setdata/totm", '1730'); //휴진기간 구분 전일로 세팅
- }
- else if(flag == "N" ){
- model.setValue("/root/send/setdata/totm", '2359'); //휴진기간 구분 전일로 세팅
- }
- else{
- model.setValue("/root/send/setdata/totm", '2359'); //휴진기간 구분 전일로 세팅
- }
-
- input8.refresh();
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/send/setdata/todd" class="input_default" inputtype="date" appearance="input" style="left:566px; top:106px; width:84px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:652px; top:80px; width:107px; height:23px; ">외래대진진료의사</caption>
- <input id="input3" ref="/root/send/setdata/oupdtorddrnm" style="left:762px; top:81px; width:67px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:832px; top:80px; width:107px; height:23px; ">입원대진진료의사</caption>
- <input id="input4" ref="/root/send/setdata/iupdtorddrnm" style="left:942px; top:81px; width:69px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:748px; top:104px; width:59px; height:23px; ">비고</caption>
- <input id="input5" ref="/root/send/setdata/remfact" style="left:810px; top:106px; width:383px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:1014px; top:80px; width:72px; height:23px; ">의사신청일</caption>
- <caption id="caption19" class="cell_1" style="left:188px; top:80px; width:199px; height:23px; ">국내외구분 / 휴진사유 / 출장지역</caption>
- <input id="input6" ref="/root/send/setdata/drappdd" class="input_default" inputtype="date" appearance="input" style="left:1088px; top:81px; width:105px; height:19px; "/>
- <button id="button1" class="btn2_letter2" style="left:1105px; top:53px; width:42px; height:19px; ">
- <caption>신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 본원 및 칠곡 진료행정팀, 치과지원팀 이외의 부서에서는 신청이 되지 않도록 제어 추가 by 조중래 20130528
- // 교육수련팀 추가 및 원무공통코드처리 by 조중래 20131105
- if (!fIsValidDept()) {
-
- messageBox("휴진일정 신청은 전자결재를 통해서만 가능합니다. \r\n\r\n[문의사항]\r\n전문의 : 진료행정팀 / 치과지원팀\r\n전공의 : 교육수련팀 / 교육연구팀", "C000");
-
- return;
- }
-
- // 치과소속 사용자의 경우, 치과만 처리 가능하도록 제어 추가 by 조중래 20170609
- var dutPlceInstCd = getUserInfo("dutplceinstcd");
- var orddeptcd = model.getValue("/root/send/setdata/orddeptcd");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[cd='" + orddeptcd + "']/reqdeptno").substr(0, 2);
- var dutPlceCd = getUserInfo("dutplcecd");
-
- if (dutPlceInstCd != "033" && reqdeptno != "55" && dutPlceCd == "2240000000") {
- messageBox("치과소속의 의사만 조회/신청 가능합니다.", "C000");
- return false;
- }
-
- var fixedrow = grd_holische.fixedRows;
- // 신규입력창 필수입력 확인
- if(fcheck() == false) {
- return;
- }
-
- //날짜 입력 오류 체크
- if(daydatecheck() == false) {
- return;
- }
-
- if(messageBox("휴진신청을 하시겠습니까?", "Q999") != 6) return;
-
- model.makeValue("/root/send/setdata/workflag","I");
- model.setValue("/root/send/setdata/prcsstat", '01');
-
- var rows = grd_holische.rows;
- //var rows = grd_holische.fixedrows;
- rows = rows-1
- if(submit("TXPMB02501")) {
-
- messageBox("신청이","I002");
-
- if(submit("TRPMB00903")){
-
- model.makeNode("/root/main/drholiordsche/drholiordschelist["+rows+"]");
-
- model.copyNode("/root/main/drholiordsche/drholiordschelist["+rows+"]", "/root/temp/drholiordsche/drholiordschelist");
- model.refresh();
- }
-
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/setdata/fromflag", 'D'); //휴진기간 구분 전일로 세팅
- model.setValue("/root/send/setdata/toflag", 'D');
- model.makeValue("/root/send/setdata/workflag","I");
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/send/setdata/fromdd",curDate);
- model.setValue("/root/send/setdata/todd",curDate);
- model.setValue("/root/send/setdata/drappdd",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);
- //btn_search.dispatch("DOMActivate");
-
- }
-
- model.refresh();
- // }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_2" style="x1:0px; y1:102px; x2:1194px; y2:102px; "/>
- <button id="button2" class="btn2_letter4" style="left:980px; top:136px; width:64px; height:19px; ">
- <caption>마감승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- var startRow = grd_holische.fixedRows;
- var endRow = grd_holische.rows;
-
- startRow = startRow-1;
- endRow = endRow-1;
-
- var instcd = getUserInfo("dutplceinstcd");
-
- //마감체크 내역 확인
- for( var i = startRow; i < endRow; i++){
-
- if(model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/endcnfmyn") == 'Y' ){
- messageBox("선택한 항목중에 이미 마감된 휴진일정이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
- return;
- }
-
- // 선택된 데이터만 검증실시
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/check") == "Y") {
-
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/pinstcd") != ""
- || model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/minstcd") != "") {
- messageBox("전자결재 데이터는 취소 / 마감승인 / 마감취소 불가능합니다. ", "E999");
- return;
- }
-
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/histstat") == "C") {
- messageBox("이력데이터(이력상태:C)는 취소 / 마감승인 / 마감취소 불가능합니다. ", "E999");
- return;
- }
- }
- }
-
- /*
- model.setValue("/root/send/updatedata/datalist", grd_holische.getUpdateData());
-
- model.alert(model.getValue("/root/send/updatedata/datalist"));
-
- return;
- // return;
- */
-
- var nodeList = instance1.selectNodes("/root/main/drholiordsche/drholiordschelist[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("일정을 생성할 기준자료가 선택되지 않았습니다.", "E999", "");
- messageBox("마감할 휴진일정이 선택되지", "E007");
- return false;
- }
-
-
- if(messageBox("선택된 휴진내역을 일정에 반영하시겠습니까?", "Q999") != 6){
- return;
- }
-
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("/root/send/updatedata/datalist", rCSV);
-
- //return;
-
- if(submit("TXPMB00902")){
-
- // var srow = grd_holische.fixedRows;
- // var erow = grd_holische.rows;
- // var checkRow = startRow;
- //
- // checkRow = srow;
- // for( var i = srow; i < erow; i++){
- //
- // //model.getValue("/root/main/ordlist/ordschecrite/ordschecritelist[" + (i - 1) + "]/check")
- // if( grd_holische.valueMatrix( checkRow, grd_holische.colRef("check") ) == 'Y' ){
- // //디비에서 삭제한 데이터를 그리드에서 삭제한다.
- // grd_holische.deleteItem(checkRow);
- // }else{
- // checkRow++;
- // }
- // }
- //grd_ordschecrite.deleteItem( cur_row);
- //model.removeNodeset("/root/main/ordlist/ordschecritedetail/ordschecritedetaillist");
-
- messageBox("선택하신 휴진내역이 일정에 반영되었습니다. ","E999");
- // fSearchDrHoliSche("Y");
-
- // 재조회 실시
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter4" style="left:1128px; top:136px; width:64px; height:19px; ">
- <caption>마감취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var startRow = grd_holische.fixedRows;
- var endRow = grd_holische.rows;
-
- startRow = startRow-1;
- endRow = endRow;
-
- var instcd = getUserInfo("dutplceinstcd");
-
- //마감체크 내역 확인
- for( var i = startRow; i < endRow; i++){
-
- if(model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/endcnfmyn") == 'N' ){
- messageBox("선택한 항목중에 마감취소 할 휴진일정이 존재하지 않는 항목이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
- return;
- }
-
- // 선택된 데이터만 검증실시
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/check") == "Y") {
-
- // 취소작업은 가능하도록 수정
- // if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/pinstcd") != ""
- // || model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/minstcd") != "") {
- // messageBox("전자결재 데이터는 취소 / 마감승인 / 마감취소 불가능합니다. ", "E999");
- // return;
- // }
-
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/histstat") == "C") {
- messageBox("이력데이터(이력상태:C)는 취소 / 마감승인 / 마감취소 불가능합니다. ", "E999");
- return;
- }
- }
- }
-
-
- var nodeList = instance1.selectNodes("/root/main/drholiordsche/drholiordschelist[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("일정을 생성할 기준자료가 선택되지 않았습니다.", "E999", "");
- messageBox("마감취소할 휴진일정이 선택되지", "E007");
- return false;
- }
-
-
-
- // 등록한 사람만 삭제가능 20120731 조중래
- // 진료행정팀(3310000000, 3310100000), 치과지원팀(2241400000) 소속은 누구든지 삭제 가능 20120822 조중래
- // 교육수련팀 추가 및 원무공통코드 처리 by 조중래 20131105
- for( var i = startRow; i < endRow; i++){
-
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/check") == "Y") {
-
- var fstrgstrid = model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/fstrgstrid");
-
- if (getUserId() != fstrgstrid && !fIsValidDept()) {
- messageBox("휴진일정을 등록한 사람만 삭제처리 가능합니다.\r\n\r\n[문의사항]\r\n전문의 : 진료행정팀 / 치과지원팀\r\n전공의 : 교육수련팀 / 교육연구팀", "C000");
- return;
- }
- }
- }
-
- // 과거이력 마감 취소 시에는 진료행정팀 / 치과지원팀 통하도록 메세지 추가 by 조중래 20120822
- // 교육수련팀 추가 및 원무공통코드 제어 추가 by 조중래 20131105
- for( var i = startRow; i < endRow; i++){
- if (model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/check") == "Y") {
-
- var fromdd = model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/fromdd");
-
- if (fromdd < getCurrentDate() && !fIsValidDept()) {
-
- messageBox("과거건에 대한 마감취소는 반드시 진료행정팀 / 치과지원팀 / 교육수련팀을 통해서 진행하시기 바랍니다.", "E000");
- return;
- }
- }
- }
-
-
- if(messageBox("선택된 휴진내역을 마감취소 하시겠습니까?", "Q999") != 6){
- return false;
- }
-
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("/root/send/updatedata/datalist", rCSV);
-
- //model.alert(model.getValue("/root/send/updatedata/datalist"));
-
-
- if(submit("TXPMB00903")){
-
- // var srow = grd_holische.fixedRows;
- // var erow = grd_holische.rows;
- // var checkRow = startRow;
- //
- // checkRow = srow;
- // for( var i = srow; i < erow; i++){
- //
- // //model.getValue("/root/main/ordlist/ordschecrite/ordschecritelist[" + (i - 1) + "]/check")
- // if( grd_holische.valueMatrix( checkRow, grd_holische.colRef("check") ) == 'Y' ){
- // //디비에서 삭제한 데이터를 그리드에서 삭제한다.
- // grd_holische.deleteItem(checkRow);
- // }else{
- // checkRow++;
- // }
- // }
-
- messageBox("선택하신 휴진내역이 취소되었습니다.. ","E999");
-
- // 재조회 실시
- btn_search.dispatch("DOMActivate");
- // model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist["+ cur_row +"]");
- // grd_holische.deleteItem( cur_row+1 );
- // fSearchDrHoliSche("Y");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_deselectall" class="btn2_letter4" style="left:912px; top:136px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i=1; i < grd_holische.rows-1; i++) {
- model.setValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/check","C");
- grd_holische.rowstatus(i) = 0;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_selectall" class="btn2_letter4" style="left:843px; top:136px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i=1; i < grd_holische.rows-1; i++) {
- model.setValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/check","Y");
- grd_holische.rowstatus(i) = 1;
- }
-
- model.refresh();
- /*
- if(model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/check") == 'Y' ){
- grd_holische.rowStatus(i) = 1;
- //grd_holische.addStatus(i, "insert");
- // model.alert(model.getValue("/root/main/drholiordsche/drholiordschelist["+ i +"]/seqno"));
- }
- // alert(i + " : " + grd_holische.rowStatus(i));
- */
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/send/setdata/fromtm" class="input_default" format="hh:nn" style="left:505px; top:106px; width:40px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var code = window.event.keyCode;
- if ((code >= 48 && code <= 57) || (code >= 96 && code <= 105) || code == 8 || code == 37 || code == 39 || code == 46){ // 숫자, 백스페이스, delete 만 사용가능
- return;
- }
- alert("숫자만 입력 가능 합니다!");
- ]]>
- </script>
- </input>
- <input id="input8" ref="/root/send/setdata/totm" class="input_default" format="hh:nn" style="left:705px; top:106px; width:40px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var code = window.event.keyCode;
- if ((code >= 48 && code <= 57) || (code >= 96 && code <= 105) || code == 8 || code == 37 || code == 39 || code == 46){ // 숫자, 백스페이스, delete 만 사용가능
- return;
- }
- alert("숫자만 입력 가능 합니다!");
- ]]>
- </script>
- </input>
- <button id="button5" class="btn2_letter4" style="left:1055px; top:136px; 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_holische.saveExcel(fileName, "sheet1");
- }
- ]]>
- </script>
- </button>
- <select1 id="combo7" ref="/root/send/setdata/doflag" appearance="minimal" style="left:390px; top:81px; width:52px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>국내</label>
- <value>D</value>
- </item>
- <item>
- <label>국외</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var curDate = getCurrentDate();
-
- // 공통코드 연동관계상 D의 경우에는 D, A를 함께 조회
- if (model.getValue("/root/send/setdata/doflag") == 'D') {
-
- // 휴진사유 재설정
- copyNodesetType("/root/hidden/P0037list/P0037", "/root/init/P0037list/P0037[detldesc = 'H' and cdnm != '휴가' and (cdval = 'A' or cdval = 'D') and valifromdd <= '" + curDate + "' and valitodd >= '" + curDate + "']");
-
- // A의 경우에는 A만 조회
- } else {
-
- // 휴진사유 재설정
- copyNodesetType("/root/hidden/P0037list/P0037", "/root/init/P0037list/P0037[detldesc = 'H' and cdnm != '휴가' and (cdval = 'A' or cdval = 'O') and valifromdd <= '" + curDate + "' and valitodd >= '" + curDate + "']");
- }
-
- combo3.refresh();
- ]]>
- </script>
- </select1>
- <button id="button6" class="btn2_letter5" style="left:1028px; top:53px; width:75px; height:19px; ">
- <caption>엑셀업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fLoadExcel();
- model.dispatch("xforms-ready");
- fSearchDrHoliSche("Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_excel" nodeset="/root/excel/ordinfo" visibility="hidden" caption="진료과^진료의사^국내외구분^휴진사유^휴진시작일^시작시간^휴진종료일^종료시간^비고" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:420px; top:255px; width:690px; height:255px; ">
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="gubun"/>
- <col ref="reason"/>
- <col ref="fromdd"/>
- <col ref="fromtm"/>
- <col ref="todd"/>
- <col ref="totm"/>
- <col ref="etc"/>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:747px; 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; "/>
- <shape id="rectangle1" appearance="rectangle" style="left:150px; top:5px; width:18px; height:18px; background-color:#FFCCFF; border-color:#c0c0c0; "/>
- <caption id="caption12" style="left:180px; top:5px; width:296px; height:20px; ">타병원 전자결재 신청데이터(수정 및 처리불가)</caption>
- <shape id="rectangle2" appearance="rectangle" style="left:465px; top:5px; width:18px; height:18px; background-color:#b2b2b2; border-color:#c0c0c0; "/>
- <caption id="caption20" style="left:495px; top:5px; width:105px; height:20px; ">이력데이터(Y→C)</caption>
- </group>
- <button id="button20" class="btn3_letter8" style="left:0px; top:752px; width:68px; height:22px; ">
- <caption>진료일정상세조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cur_row = grd_holische.row;
-
- if(cur_row > 0){
- setParameter("SMPMB00800_ORDDEPTCD", grd_holische.valueMatrix( cur_row, 3));
- setParameter("SMPMB00800_ORDDRID", grd_holische.valueMatrix( cur_row, 4 ));
- }
-
- open("SMPMB00800", "1", "50", "50", "SMPMB00800", "", "");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|