123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- /*
-
- (SMMNA01800.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- function finit() {
- ipt_execdd.value = getCurrentDate();//헌혈년월세팅
- ipt_stockdd.value = getCurrentDate();//헌혈증서재고량세팅
- //현재매수세팅
-
-
- //뭔지 모르겠음..
- fQuery();
-
- //레포트미리보기생성
- makeReportPreview(0,98,1195,650);
-
- //레포트출력
- freport();
- }
- //--------------------------------------
- // 출력을 위한 기본 정보 설정
- //--------------------------------------
- function fQuery() {
- //뭔지 모르겠음..
- submit("TRMNA01801");
- }
- //-------------------------------------------
- // 리포트 출력
- //-------------------------------------------
- function freport(){
-
- var xPathData = "/root/main/reportinfo/reportlist";
- var temp = "";
-
- temp = model.getValue("/root/main/cond/execdd");
- temp = temp.substr(0,4) + "년 " + temp.substr(4,2) + "월 분";
- model.setValue(xPathData + "/execyymm1", temp ); // 2007년 12월 분
-
- temp = model.getValue("/root/temp/stockdd");
- temp = temp.substr(0,4) + " 년 " + temp.substr(4,2) + " 월 " + temp.substr(6,2) + " 일 현재 총" + model.getValue("/root/temp/stockcnt") + " 매 ";
-
- model.setValue(xPathData + "/stockmsg",temp ); // 2007년 12월01일 현재 10 매
- model.setValue(xPathData + "/instcd", getUserInfo("dutplceinstcd") ); // 병원코드
-
- temp = model.getValue("/root/main/cond/execdd");
- temp = temp.substr(0,4) + "0101";
- model.setValue(xPathData + "/execddfr", temp ); // 처음일자
- temp = model.getValue("/root/main/cond/execdd");
- temp = temp.substr(0,6) + "31";
- model.setValue(xPathData + "/execddto", temp ); // 마지막일자
-
- temp = model.getValue("/root/main/cond/execdd");
- temp = temp.substr(0,6);
- model.setValue(xPathData + "/execyymm2", temp ); // 년월
- model.removenode("/root/send/report");
- model.makeNode("/root/send/report");
- model.copyNode("/root/send/report","/root/main/reportinfo/reportlist");
-
- //노드에값 세팅후 rex파일 호출
- exeReportPreview("RPMNA01800", "XML", "/root/send/report");
- }
- /*
- /**
- * @group :
- * @ver : 2007.07.11
- * @by : 신혁춘
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : com_wardcd 내용 검색
- * @param :
- * @return :
- * @---------------------------------------------------
- * /
- function fwardcd(){
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW06301");
- }
- /**
- * @group :
- * @ver : 2007.07.11
- * @by : 신혁춘
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : com_roomcd 내용 검색
- * @param :
- * @return :
- * @---------------------------------------------------
- * /
- function froomcd(){
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- if(submit("TRMNW06302")){
- model.removenode("/root/hngnms");
- com_roomcd.refresh();
- com_roomcd.value = ""
- com_hngnm.refresh();
- com_hngnm.value = ""
- }
- }
- /**
- * @group :
- * @ver : 2007.07.11
- * @by : 신혁춘
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : com_hngnm 내용 검색
- * @param :
- * @return :
- * @---------------------------------------------------
- * /
- function fhngnm(){
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/roomcd", model.getValue("/root/main/cond/roomcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- if(submit("TRMNW06303")){
- com_hngnm.refresh();
- com_hngnm.value = ""
- }
- }
- */
|