123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- /**
- * 파 일 명 : SPADC62200.js
- * 설 명 : (팝업)회신내역서식 Javascriot
- * 설 계 자 : 김귀남
- * 작 성 자 : 김귀남
- * 수정이력 : 2008.09.03 / 최초작성 / 김귀남
- */
- var modaltype = ""; // 진료 (emr) / 약제 (ast) 구분
- //****************Emr & Ast******************************************************
- /* 초기화
- */
- function finit(){
- if(model.getValue("/root/temp/cnstinfo/formrecseq") != ""){
- modaltype = "emr";
- getReplCnst();
-
- }else if(model.getValue("/root/temp/replform/replcnts") != ""){
- modaltype = "ast";
- model.setValue("/root/main/formdata/replinfo/replcnts", model.getValue("/root/temp/replform/replcnts"));
- }
-
- model.refresh();
- }
- /******************************************************************************
-
-
- //****************Emr***********************************************************
- /* 진료측에서 회신내용 확인시
- * 회신내용을 불러와 화면에 출력
- */
- function getReplCnst(){
-
- model.setValue("/root/send/srchinfo/formrecseq", model.getValue("/root/temp/cnstinfo/formrecseq"));
- model.setValue("/root/send/srchinfo/pid", model.getValue("/root/temp/cnstinfo/pid"));
- if(submit("TXADC66201")){
- var success = submit("TRADC62201");
-
- if(success){
- if(model.getValue("/root/main/formdata/replinfo/replcnts") == "") messageBox("회신내역이", "E014");
- }
- }
-
- }
- //******************************************************************************
-
- //****************Ast***********************************************************
- /* 회신내용 작성 후 확인 팝업
- * replcnts : 회신내용
- * sel : 확인 = cfm, 취소 = null 내용 전달
- * 부모창에서 에서 sel 값을 판단하여 행위 결정
- * 2008-11-17 EN에 대해서 회신내용을 수정가능하도록 처리한다.
- * 2009-01-22 PN에 대해서 회신내용 수정가능하도록 처리. formflag : EN -> NST 변경
- */
-
- function fSendReplForm(replcnts,flag){
- model.setValue("/root/temp/replform/replcnts", replcnts);
-
- //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
- model.makeValue("/root/temp/replform/formflag", flag);
- //2008-11-17 EN에 대해서 회신내용을 수정가능하도록 처리한다.
- //2009-01-22 PN에 대해서 회신내용 수정가능하도록 처리. formflag : EN -> NST 변경
- if (flag == "NST"){
- model.setValue("/root/temp/replform/formflag", "NST");
- }
-
-
- modal("SPADC62200", 1, 0, 0 ,"SPADC62200","/root/temp/replform", "/root/temp/replform");
- var sel = model.getValue("/root/temp/replform/sel");
-
- return sel;
-
- }
- //******************************************************************************
- //****************Ast***********************************************************
- /**회신시 - 회신 내용 [확인] messageBox
- */
- function fAstConfirm(){
- if (checkOpener()) {
-
- //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
- //if(messageBox("현재의 " + 회신내용으로 회신하겠습니다.\n","Q003") == 6){
- if(messageBox("현재의 " + caption2.text + "으로 " + (caption2.text).substr(0,2) + "하겠습니다.\n","Q003") == 6){
- opener.model.makeValue("/root/temp/formdata/replinfo/replcnts", model.getValue("/root/main/formdata/replinfo/replcnts"));
- opener.model.setValue("/root/temp/replform/sel", "cfm");
- opener.model.refresh();
- window.close();
- }else{
- btn_can.dispatch("DOMActivate");
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
- }
- }
- //******************************************************************************
- //****************Ast***********************************************************
- /**회신시 - 회신 내용 [취소] messageBox
- */
- function fAstCancel(){
- if ( checkOpener() ) {
- opener.model.setValue("/root/temp/replform/sel", "");
- opener.model.refresh();
- window.close();
- } else {
- window.close();
- }
- }
- //******************************************************************************
|