123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642 |
- /*
-
- 외래진료예약 환자 조회(SMMNO01800.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var xOutRsrvPatListPath = "/root/main/outrsrvpatlist";
- var xOutRsrvPatCodeListPath = "/root/main/outrsrvpatcodelist";
- var MDdeptcd; // 내과부서코드_20090423
- var uijeongbuinstcd="", sunggainstcd="", vincentinstcd="", yeuidoinstcd=""; // 의정부성모,부천성가, 성빈센트병원기관코드_20090606, 여의도_20100219_SMY
- var seoulinstcd=""; //서울성모기관코드 추가-20090811-kys
- var tdayAcptYN = "N"; // 외래진료예약 시 당일접수환자포함 조회 병원 (2009.06.23 JJE)
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- var dt = getCurrentDate();
-
- model.removenode("/root/main/outrsrvpatlist");
- model.refresh();
-
-
- //model.removeNodeset(xOutRsrvPatListPath);
- model.setValue("/root/main/cond/ordfromdd", dt);
- model.setValue("/root/main/cond/ordtodd", dt);
-
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'X';
- var rslt_ref = "/root/init/orddept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "0000000000^전체진료과", "dept"); //진료부서 콤보 전체추가
-
- model.resetInstanceNode("/root/main/cond/orddept");
-
- // 공통코드 스크립트 호출
- zbcfGetCodeList( new Array("Z0008"), new Array("/root/init/comcd"));
- var dutplcecd = getUserInfo("dutplcecd"); // 근무지부서코드
- var suporddeptcd = getUserInfo("ordsupdeptcd");
-
- if (dutplcecd != "") {
- model.setValue("/root/main/cond/orddeptcd", dutplcecd); // 근무지부서코드
- fDeptDoctSearch(); // 의사리스트조회
- }
- // 간호 환경설정테이블 조회
- var pCode = "'065', '077', '107'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "065": // 내과
- MDdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "077": // 의정부성모병원기관코드_20090606
- switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
- case "01": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)-20090811
- seoulinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "02": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)
- uijeongbuinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "03": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)
- sunggainstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "04": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)
- vincentinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "05": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트, 05:여의도성모)
- yeuidoinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
-
- }
- case "107": // 외래진료예약 시 당일접수환자포함 조회 병원 (2009.06.23 JJE)
- if( model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid") == getUserInfo("dutplceinstcd") )
- tdayAcptYN = "Y";
- break;
- }
- }
-
- //출력방식,출력용도 병원전체적용으로 변경_20100127_SMY
- /*
- // 의정부성모병원의 경우 출력용도의 게시판부착용에 오전(~12:00),오후(12:01~),전체 구분하여 출력 할 수 있도록 변경함_의정부 이혜민ITC(20090606)
- if((getUserInfo("dutplceinstcd") == uijeongbuinstcd) || (getUserInfo("dutplceinstcd") == sunggainstcd) || (getUserInfo("dutplceinstcd") == vincentinstcd) ){
- rdo_prntstat.visible = false;
- rdo_prntstat013.visible = true;
- }else{
- rdo_prntstat.visible = true;
- rdo_prntstat013.visible = false;
- }
- */
-
- // 성가, 의정부, 성빈센트병원 요청: 출력용도에 [당일접수포함] 선택, 당일접수포함 선택후 출력용도 선택시에는 당일접수환자 포함하여 게시판용,업무용의 명단이 출력되도록 해야 함 (2009.06.23 JJE)
- model.setValue("/root/main/cond/gettdayacptyn", tdayAcptYN);
- if(tdayAcptYN == "Y" ){
- bol_tdayacptyn.visible = true;
- cap_tdayacptyn.visible = true;
- }else{
- bol_tdayacptyn.visible = false;
- cap_tdayacptyn.visible = false;
- }
-
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 진료과의 의사 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDeptDoctSearch(typegubn){
- cmb_orddr.disabled = false;
-
- model.removenode("/root/main/outrsrvpatlist");
- model.refresh();
-
-
- if(model.getValue("/root/main/cond/orddeptcd") == "0000000000" && model.getValue("/root/main/cond/pid") == "") {
- //messageBox("전체진료과는 현재 조회할 수 없습니다", "E");
- // return;
-
- }
- model.makeValue("/root/send/cond/ordfromdd", model.getValue("/root/main/cond/ordtodd"));
- model.makeValue("/root/send/reqdata/orddd", model.getValue("/root/main/cond/ordfromdd"));
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/prcpspecflag", model.getValue("/root/main/cond/prcpspecflag"));
-
- var sordclsdeptflag = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/ordclsdeptflag"); // 센터/대표/분과/서브 구분
- var ssupdeptcd = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/supdeptcd"); // 상위부서코드
- var sorddeptkind = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/orddeptkind"); // 센터/대표 구분
-
- var sorddeptflag = "";
-
- if (sorddeptkind == "C") { // 센터이면
- sorddeptflag = "C";
- //} else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
- // sorddeptflag = "A";
- } else { // 그외에 기타과
- sorddeptflag = "etc";
- }
-
- model.setValue("/root/main/cond/ordclsdeptflag",sorddeptflag);
- model.setValue("/root/main/cond/supdeptcd",ssupdeptcd);
-
- model.makeValue("/root/send/reqdata/ordclsdeptflag", model.getValue("/root/main/cond/ordclsdeptflag"));
- model.makeValue("/root/send/reqdata/supdeptcd", model.getValue("/root/main/cond/supdeptcd"));
-
-
-
-
- submit("TRMNO00104");
- if(getNodesetCount("/root/init/orddr/orddr") > 0){
- for(var i = 0; i < grd_OutRsrvPatList.cols;i++) {
- grd_OutRsrvPatList.colsort(i) = "asc";
- }
- //addComboInstance("/root/init/orddr", "userid^usernm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
- addComboInstance("/root/init/orddr", "userid^userdepthngnm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
-
- model.resetInstanceNode("/root/main/cond/orddr");
- } else {
- model.makenode("/root/init/orddr");
- model.makenode("/root/init/orddr/orddr");
- model.makenode("/root/init/orddr/orddr/userid");
- model.makenode("/root/init/orddr/orddr/usernm");
- //addComboInstance("/root/init/orddr", "userid^usernm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
- addComboInstance("/root/init/orddr", "userid^userdepthngnm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
-
- cmb_orddr.select(0);
-
- }
- model.setValue("/root/main/cond/orddeptnm", cmb_orddept.label);
- cmb_orddr.refresh();
- }
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 외래진료예약 환자 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBtnRefClicked(prntyn){
-
- group2.attribute("visibility") = "hidden"; //20100202-kys-추가
- //model.removeNodeset("/root/main/outrsrvpatlist/outrsrvpatinfo");
-
- model.removenode("/root/main/outrsrvpatlist");
- model.refresh();
-
-
-
- var sorddept = model.getValue("/root/main/cond/orddeptcd");
- var sorddr = model.getValue("/root/main/cond/orddr");
- var pid = model.getValue("/root/main/cond/pid");
- var rsrvflag7 = model.getValue("/root/main/cond/rsrvflag7"); // 기타포함 조회여부_20090312(ByJA)
-
- var fromDate = model.getValue("/root/main/cond/ordfromdd"); // fromdd
- var endDate = model.getValue("/root/main/cond/ordtodd"); // todd
- var sdaycnt = getDateInterval(fromDate, endDate); // todd - fromdd 일수계산
- //alert(sdaycnt);
-
- if(cmb_orddept.value == "") {
- messageBox("진료과를 선택하지 ","E007");
- return;
- }
-
- // 1. 기타포함 조회는 해당진료과,진료일자 하루로 제한_20090312(ByJA)
- if(rsrvflag7 == "Y" && (sorddept == "0000000000" || sdaycnt != 0)){
- messageBox("[기타포함]조회는 해당진료과,진료일자 하루만 가능합니다.", "E");
- model.setValue("/root/main/cond/ordfromdd", getCurrentDate());
- model.setValue("/root/main/cond/ordtodd" , getCurrentDate());
- model.setFocus("cmb_orddept");
- model.refresh();
- return;
- }
- // 2. 전체진료과, 전체의사 일경우는 조회일자 하루로 제한
- if (sorddept == "0000000000" && sorddr == "00000000" && pid == "" && sdaycnt != 0) {
- messageBox("전체진료과/전체의사 조회는 조회일자가 하루만 가능합니다.", "E");
- //model.removeNodeset("/root/main/outrsrvpatlist/outrsrvpatinfo");
- //model.removenode("/root/main/outrsrvpatlist");
- //model.makeValue("/root/main/outrsrvpatlist","");
- //model.refresh();
-
-
- model.setValue("/root/main/cond/ordfromdd", getCurrentDate());
- model.setValue("/root/main/cond/ordtodd", getCurrentDate());
- model.refresh();
- return;
- }
- model.makenode("/root/send/req");
- model.copynode("/root/send/req", "/root/main/cond");
- model.makeValue("/root/send/req/MDdeptcd", MDdeptcd); // 내과부서코드 하드코딩_20090423(ByJA)
-
- if(prntyn == "P"){ //출력함수에서 호출한경우 조회예약시간setting추가-20100203-kys(출력시는 입력시간으로 조회, 조회버튼으로 조회시는 12:00으로 set)
- model.makeValue("/root/send/req/prntrsrvtm", model.getValue("/root/temp/tmpprntrsrvtm"));
- }else{
- model.makeValue("/root/send/req/prntrsrvtm", "1200");
- }
-
- //20090811-kys(서울성모이면서 등록번호로 조회시 예약대기인 경우 예약대기로 표시)
- if((getUserInfo("dutplceinstcd") == seoulinstcd) && pid != ""){
- model.makeValue("/root/send/req/rsrvreteyn", "Y");
- }
- if(submit("TRMNO01801")){
- model.setValue("/root/main/cond/cnt", grd_OutRsrvPatList.rows-1);
- opt_cnt.refresh();
- }
- model.setValue("/root/main/cond/orddrnm", cmb_orddr.label);
-
- var dethyn;
- var medamtpostyn;
- for(var i = grd_OutRsrvPatList.fixedRows; i < grd_OutRsrvPatList.rows; i++) {
- dethyn = model.getValue("/root/main/outrsrvpatlist/outrsrvpatinfo["+ i +"]/dethyn");
- medamtpostyn = model.getValue("/root/main/outrsrvpatlist/outrsrvpatinfo["+ i +"]/medamtpostyn");
- if(dethyn == "Y") {
- grd_OutRsrvPatList.cellstyle("background-color", i, 1, i, grd_OutRsrvPatList.cols-1) ="#999999";
- } else if(medamtpostyn == "V") {
- grd_OutRsrvPatList.cellstyle("background-color", i, 1, i, grd_OutRsrvPatList.cols-1) ="#ffff00";
- }
- }
-
- //grd_OutRsrvPatList.sortClear();
- //20090811-kys(예약대기일경우 bold체로 셀 font표시)-서울성모인경우에만..
- if((getUserInfo("dutplceinstcd") == seoulinstcd) && pid != ""){
- for(var i=1;i<=getNodesetCount("/root/main/outrsrvpatlist/outrsrvpatinfo");i++){
- //간호테이블의 입원외래구분과 실제 환자의 입원외래구분이 다른경우 셀 색상표시
- if(model.getValue("/root/main/outrsrvpatlist/outrsrvpatinfo["+i+"]/orddd") == "예약대기"){
- grd_OutRsrvPatList.cellstyle("font-weight", i, 1) = "bold";
- }
- }
- }
-
-
-
- grd_OutRsrvPatList.refresh();
- //grd_OutRsrvPatList.dispatch("onmouseup");
- }
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 외래진료예약 환자 조회(게시판부착용)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBoardSearch(){
- if(cmb_orddept.value == "") {
- messageBox("진료과를 선택하지 ","E007");
- return;
- }
- //model.removeNodeset("/root/temp/boarddata/outrsrvpatlist/outrsrvpatinfo");
- model.removenode("/root/main/outrsrvpatlist");
- model.refresh();
- model.makenode("/root/send/req");
- model.copynode("/root/send/req", "/root/main/cond");
- model.makeValue("/root/send/req/MDdeptcd", MDdeptcd); // 내과부서코드 하드코딩_20090423(ByJA)
- model.makeValue("/root/send/req/prntrsrvtm", model.getValue("/root/temp/tmpprntrsrvtm")); // 20100203-kys-출력입력예약시간추가
- if(submit("TRMNO01802")){
- grd_OutRsrvPatList.refresh();
- }
- model.setValue("/root/main/cond/orddrnm", cmb_orddr.label);
- model.makeValue("/root/main/cond/curdd", getCurrentDate());
- }
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 검색 기능
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fUseridPopup(pPath, pNodeID, pNodeNM, pNodeRrgsNo1, pNodeRrgsNo2, pDOC) {
- model.removeNodeset("/root/properties/parameters/SendData/SendDatavalue");
-
- modal("SMMNE03700", 1, event.screenX-600, event.screenY, "SMMNE03700", "", "/root/init/searchitem");
-
- var pParam = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- var pParamValue = pParam.split("|");
-
- ipt_pid.Value = pParamValue[0];
- }
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 외래재진예약 출력
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClickPrint(){
- //출력방식 추가_20100127_SMY
- var sPrntMthd = model.getValue("/root/main/cond/prntmthd");
- if (sPrntMthd == "") {
- messageBox("출력방식을 선택하지 ","E007");
- return;
- }
-
- var sPrntusge = model.getValue("/root/main/cond/prntusge");
- if (sPrntusge == "") {
- messageBox("출력용도를 선택하지 ","E007");
- return;
- }
- if(cmb_orddr.value == "00000000") { // 전체의사인 경우에는 모든 의사을 조회하면서 출력
- if(getNodesetCount("/root/init/orddr/orddr") > 0){
- var iLength = instance1.selectNodes("/root/init/orddr/orddr").length;
- for(var i = 2; i <= iLength; i++) {
- var sUserid = model.getValue("/root/init/orddr/orddr["+i+"]/userid");
- if(sUserid != ""){ // 전체인경우 제외
- cmb_orddr.value = sUserid;
- if (sPrntusge == "A" || sPrntusge == "AAM" || sPrntusge == "APM" || sPrntusge == "E") { // 게시판 부착용
- fBoardSearch();
- if (getNodesetCount("/root/temp/boarddata/outrsrvpatlist/outrsrvpatinfo") > 0) { // 자료가 존재하면 출력함
- fPrintPreview(sPrntusge);
- }
- } else if (sPrntusge == "B" || sPrntusge == "C" || sPrntusge == "D" || sPrntusge == "F" || sPrntusge == "G" || sPrntusge=="H") { //업무용, 라벨출력
- fBtnRefClicked("P");
-
- // sort정렬
- //grd_OutRsrvPatList.sortClear();
- //grd_OutRsrvPatList.sort(1, 3, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- grd_OutRsrvPatList.sortClear();
-
- if (sPrntusge == "B" || sPrntusge == "F") { // 시간순
- //2010-03-02 ycd 업무용 출력시 게시판용과 동일하게 출력되도록 Sort 로직 주석처리
- //grd_OutRsrvPatList.sort(1, 2, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- } else if (sPrntusge == "C") { // 등록번호순
- grd_OutRsrvPatList.sort(1, 3, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- }else if (sPrntusge == "D") { // 이름순
- grd_OutRsrvPatList.sort(1, 4, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- }
- grd_OutRsrvPatList.gridToInstance();
-
-
- if (grd_OutRsrvPatList.rows > 1) { // 자료가 존재하면 출력함
- fPrintPreview(sPrntusge);
- }
- }
- }
- }
- }
- } else {
- if (sPrntusge == "A" || sPrntusge == "AAM" || sPrntusge == "APM" || sPrntusge == "E") { // 게시판 부착용
- fBoardSearch();
- if (getNodesetCount("/root/temp/boarddata/outrsrvpatlist/outrsrvpatinfo") > 0) { // 자료가 존재하면 출력함
- fPrintPreview(sPrntusge);
- }
- } else if (sPrntusge == "B" || sPrntusge == "C" || sPrntusge == "D" || sPrntusge == "F"|| sPrntusge == "G" || sPrntusge == "H") { //업무용, 라벨출력
- fBtnRefClicked("P"); //추가-20100203-kys(출력시 재조회한다-출력입력시간때문.)
-
- grd_OutRsrvPatList.sortClear();
- if (sPrntusge == "B" || sPrntusge == "F"|| sPrntusge == "G") { // 시간순
- //2010-03-02 ycd 업무용 출력시 게시판용과 동일하게 출력되도록 Sort 로직 주석처리
- //grd_OutRsrvPatList.sort(1, 2, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- } else if (sPrntusge == "C") { // 등록번호순
- grd_OutRsrvPatList.sort(1, 3, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- }else if (sPrntusge == "D") { // 이름순
- grd_OutRsrvPatList.sort(1, 4, grd_OutRsrvPatList.rows-1, grd_OutRsrvPatList.cols-1) = "asc";
- }
- grd_OutRsrvPatList.gridToInstance();
-
- if (grd_OutRsrvPatList.rows > 1) { // 자료가 존재하면 출력함
- //grd_OutRsrvPatList.gridToInstance();
- fPrintPreview(sPrntusge);
- }
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.09.17
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택된 출력물을 출력 작업
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPrintPreview(pPrntusge){
- if (pPrntusge == "A" || pPrntusge == "AAM" || pPrntusge == "APM" || pPrntusge == "E") { // 게시판 부착용
- model.removenode("/root/temp/boarddata/cond");
- //send 재구성
- //model.makeValue("/root/temp/boarddata/cond","");
- model.makeNode("/root/temp/boarddata/cond");
- model.copyNode("/root/temp/boarddata/cond", "/root/main/cond");
-
- //여의도 성모 : 환자이름에 *포함_20100219_SMY
- if(getUserInfo("dutplceinstcd") == yeuidoinstcd){
- model.makeValue("/root/temp/boarddata/cond/instflag", "yeuido");
- }
-
- exeReportPreview("RPMNO01800", "XMLSTR", "", "", "true", "", "", "", "", "true");//20090923_미리보기없이출력_kys
-
- } else if (pPrntusge == "B" || pPrntusge == "C" || pPrntusge == "D") { //업무용
- model.removenode("/root/temp/printdata");
- //send 재구성
- model.makeValue("/root/temp/printdata","");
- model.copyNode("/root/temp/printdata", "/root/main");
- //exeReportPreview("RPMNO01801", "XMLSTR", "");
- exeReportPreview("RPMNO01801", "XMLSTR", "", "", "true", "", "", "", "", "true");//20090923_미리보기없이출력_kys
- } else if (pPrntusge == "F") { //라벨출력
- model.removenode("/root/temp/printdata");
- //send 재구성
- model.makeValue("/root/temp/printdata","");
- model.copyNode("/root/temp/printdata", "/root/main");
- //exeReportPreview("RPMNO01801", "XMLSTR", "");
- exeReportPreview("RPMNO01802", "XMLSTR", "", "", "true", "", "", "", "", "true");//201100404_미리보기없이출력_kys
- } else if (pPrntusge == "G") { //라벨(안과전용)
- model.removenode("/root/temp/printdata");
- //send 재구성
- model.makeValue("/root/temp/printdata","");
- model.copyNode("/root/temp/printdata", "/root/main");
-
- exeReportPreview("RPMNO01803", "XMLSTR", "", "", "true", "", "", "", "", "true");//201100404_미리보기없이출력_kys
- } else if(pPrntusge == "H") { //라벨(안과전용)
- model.removenode("/root/temp/printdata");
- //send 재구성
- model.makeValue("/root/temp/printdata","");
- model.copyNode("/root/temp/printdata", "/root/main");
-
- exeReportPreview("RPMNO01804", "XMLSTR");//201100404_미리보기없이출력_kys
- }
- }
- /**
- * @desc : 콤보박스에 원하는 instance node와 value를 설정
- * @
- * @param :
- * @event :
- * @return :
- * @---------------------------------------------------
- */
- function addComboInstance(combopath, nodename, nodeval, parentnode){
- nodename = nodename.split("^");
- nodeval = nodeval.split("^");
- if(nodename.length != nodeval.length){
- return;
- }
-
- var label = model.instances(0).createElement(nodename[0]);
- var val = model.instances(0).createElement(nodename[1]);
- var combo = model.instances(0).createElement(parentnode);
- label.value = "" + nodeval[0] + "";
- val.value = "" + nodeval[1] + "";
-
- combo.appendChild(label);
- combo.appendChild(val);
-
- chkNode = model.instances(0).selectSingleNode(combopath);
- if(chkNode == null){
- model.makeNode(combopath);
- srcNode = model.instances(0).selectSingleNode(combopath);
- }else{
- srcNode = model.instances(0).selectSingleNode(combopath);
- }
-
- desNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
- srcNode.insertBefore(combo, desNode);
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2008. 01. 01
- * @by : 김병국
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자의 진료내역을 가져온다.
- * @param :
- * @param : yr, dt
- * @return :
- * @---------------------------------------------------
- */
-
- function fCalcDate(yr, dt) {
-
- dt = dt.toDate("YYYYMMDD");
- dt = dt.getAddDate(yr, "Y");
- dt = dt.getDateFormat("YYYYMMDD");
-
- return dt;
- }
- /**
- * @group :
- * @ver : 2010. 02. 02
- * @by : 김양수
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 출력시 출력할 예약시간을 받는다.
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fGetRsrvTm(sprntmthd, sprntusge) {
- //20100202-kys-출력시 오전오후시간을 입력하여 출력할수 있도록 변경
- var msgstr = "";
- var msgstr2 = "";
- if(sprntmthd == "AAM" ){
- msgstr = radio2.label + "(오전)";
- msgstr2 = "까지";
- model.makeValue("/root/temp/tmpprntrsrvtm" , "1200"); //오전일 경우에만 디폴트 12:00 set
- }else if(sprntmthd == "APM"){
- msgstr = radio2.label + "(오후)";
- msgstr2 = "부터";
- }
- caption12.text = msgstr + " 리스트에 포함시킬 예약시간을 지정하십시오.";
- caption13.text = msgstr2;
-
- ipt_prntrsrvtm.refresh();
- group2.attribute("visibility") = "visible";
- }
- /**
- * @group :
- * @ver : 2011. 01. 16
- * @by : 박성호
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 리스트를 엑셀로 저장한다.
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fExcel()
- {
- if (grd_OutRsrvPatList.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "외래진료예약 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_OutRsrvPatList.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
|