123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827 |
- /*
-
- (SMMNW03900_HSCT Infusion기록.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var xTopAttributePath = "/root/main/topattribute";
- var xRecgrupListPath = "/root/main/recgrup/recgruplist";
- var xHIsgrupListPath = "/root/main/histgrup/histgruplist";
- var xRecHIstPntListPath = "/root/main/rechistpntgrup/rechistpntlist";
- var xClsListPath = "/root/main/detlgrup/detlgruplist"
- var xHIsgrupListBKPath = "/root/temp/histgrup/histgruplist";
- var xlrgListPath = "/root/main/lrggrup/lrggruplist"
- var xCondPath = "/root/main/cond";
- var xClsListBKPath = "/root/temp/main/detlgrup/detlgruplist";
- var xPopWndClsListBKPath = "/root/temp/main/cond/execpopwnddetlgrup/execpopwnddetlgruplist";
- var xExecDetlListPath = "/root/main/cond/execdetlgrup/execdetlgruplist";
- var xPopWndExecDetlListPath = "/root/main/cond/execpopwnddetlgrup/execpopwnddetlgruplist";
- var xDelDeliveExecPrcpListPath = "/root/main/cond/delivedetlgrup/delivedetlgruplist";
- var xBlodReturnReqGrupListPath = "/root/main/cond/blodreturnreqgrup/blodreturnreqgruplist";
- var xBlodExecRecGrupListPath = "/root/main/cond/blodexecrecgrup/blodexecrecgruplist";
- /**
- * @group :
- * @ver : 2007.08.17
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT 시간/상세정보 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fHsctInit(){
- // model.removeNodeset("/root/main/cond/tnssideeffectgrup");// 삭제후 부작용 코드 초기화
-
- model.setValue(input18.attribute("ref"), getCurrentDate());
- model.setValue(input4.attribute("ref"), getCurrentDate());
- model.setValue(input6.attribute("ref"), getCurrentDate());
- model.setValue(input3.attribute("ref"), getCurrentTime());
- model.setValue(input1.attribute("ref"), getCurrentTime());
- model.setValue(input7.attribute("ref"), getCurrentTime());
- model.setValue(radio4.attribute("ref"), "1");
- model.setValue(radio3.attribute("ref"), "1");
- model.setValue(radio5.attribute("ref"), "1");
- model.setValue(radio2.attribute("ref"), "1");
- model.setValue(radio6.attribute("ref"), "1");
- model.setValue(radio1.attribute("ref"), "2");
- model.setValue(input15.attribute("ref"), "");
- model.setValue(radio7.attribute("ref"), "1");
- model.setValue(radio8.attribute("ref"), "1");
- model.setValue(input16.attribute("ref"), "");
- model.setValue(input17.attribute("ref"), "");
- model.refresh();
- input15.disabled = true ;// 프리텍스트 disabled
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT Infusion 삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelHsctRec(){
- if(messageBox("","Q001") != 6) return;// 저장하시겠습니까?
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- model.makeValue("/root/send/detlgrup",datagrid2.getupdatedataAll("i"));
- if(submit("TXMNW03911")){
- }
- fGetCellProcInfoList();//Cell 처리정보 리스트
- fGetExecList();//수행리스트
- fHsctInit();//HSCT 시간/상세정보 초기화
- messageBox("정보 삭제가 ","I002");
- }
- /**
- * @group :
- * @ver : 2007.08.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행 리스트 더블클릭시 상세정보 모두
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetExecDetlInfo(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- var iRow = datagrid1.Row ;
- var grupcd = "" ;
- // alert(datagrid1.labelmatrix(iRow, 5));
- if( datagrid1.labelmatrix(iRow, 5).length > 7 ){
- grupcd = datagrid1.labelmatrix(iRow, 5) ;
- // alert(grupcd);
- } else if( datagrid1.labelmatrix(iRow, 5).length <= 7 ) {
- messageBox("그룹코드가 ","I004");
- return ;
- }
- model.makeValue("/root/send/grupcd", grupcd);
- if(submit("TRMNW03906")){// 기본정보
- }
- if(submit("TRMNW03907")){// 공여자정보
- }
- if(submit("TRMNW03908")){// Cell 처리 정보
- }
- datagrid2.colDisabled(1) = true;// 선택 disabled
- if(submit("TRMNW03909")){// 투여 상세정보
- }
- // model.removeNodeset("/root/main/cond/tnssideeffectgrup");// 삭제후 부작용 코드 초기화
- model.refresh();
- if(radio1.value == "1" && input15.value == "" ) {
- //alert(datagrid2.labelmatrix(1, 10)) ;
- }
- model.makeValue("/root/send/grupcd", datagrid2.labelmatrix(1, 10) );
- if(submit("TRMNW03920")){// Side Effect 정보
- if(radio1.value == "1" && input15.value != "" ) {
- for(var i = 1 ; i < datagrid5.rows; i++ ){// 전체를 돌면서 중증도 내역선택시 상태를 초기화
-
- datagrid5.textmatrix(i,1) = "false";
- }
- datagrid5.colDisabled(1) = true;// 선택 disabled
-
- input15.disabled = false ;// 프리텍스트 disabled
- } else if( radio1.value == "1" && input15.value == "" ) {
- for(var i = 1 ; i < datagrid5.rows; i++ ){// 전체를 돌면서 중증도 내역선택시 상태를 초기화
-
- datagrid5.colDisabled(1) = false;// 선택 disabled
- }
-
- input15.disabled = true ;// 프리텍스트 disabled
- } else if( radio1.value == "2" ) {
- for(var i = 1 ; i < datagrid5.rows; i++ ){// 전체를 돌면서 중증도 내역선택시 상태를 초기화
-
- datagrid5.textmatrix(i,1) = "false";
- datagrid5.colDisabled(1) = true;// 선택 disabled
- }
- input15.disabled = true ;// 프리텍스트 disabled
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetExecList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- if(submit("TRMNW03905")){
- }
- model.setValue(input18.attribute("ref"), getCurrentDate());// 기준일에 현재날짜(디폴트)
- model.setValue(input4.attribute("ref"), getCurrentDate());// 기준일에 현재날짜(디폴트)
- model.setValue(input6.attribute("ref"), getCurrentDate());// 기준일에 현재날짜(디폴트)
- model.setValue(input3.attribute("ref"), getCurrentTime());
- model.setValue(input1.attribute("ref"), getCurrentTime());
- model.setValue(input7.attribute("ref"), getCurrentTime());
- }
- /**
- * @group :
- * @ver : 2007.03.30
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT 기록 저장한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fHsctRecSave(){
- var inpt = "" ;
- var cnt = 0 ;
- model.removeNode ("/root/send");
- if(radio1.value == "1"){
- if(datagrid5.row < 1){
- cnt = cnt + 1;
- }
- for(var i=1; i<= datagrid5.rows; i++){
- if( datagrid5.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- }
- }
- // if(cnt < 1){
- // messageBox("Side Effect 선택 정보가 ","I004");
- // return;
- // }
- }
- cnt = 0 ;
- for(var i=1; i<= datagrid2.rows; i++){
- if( datagrid2.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- inpt = datagrid2.labelmatrix(1, 9) ;
- }
- }
- if(cnt < 1){
- messageBox("Cell 처리 선택 정보가 ","I004");
- return;
- };
- // alert(datagrid2.getupdatedataAll("i"));
- // alert(datagrid5.getupdatedataAll("i"));
- model.makeValue("/root/send/detlgrup",datagrid2.getupdatedataAll("i"));
- model.makeValue("/root/send/sidegrup",datagrid5.getupdatedataAll("i"));
- if(messageBox("","Q002") != 6) return;// 저장하시겠습니까?
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/execdd", input18.value);
- model.makeValue("/root/send/exectm", input3.value);
- model.makeValue("/root/send/indd", output8.value);
- model.makeValue("/root/send/ordtypenm", output9.value);
- model.makeValue("/root/send/depthngnm", output10.value);
- model.makeValue("/root/send/medispclidnm", output11.value);
- model.makeValue("/root/send/atdoctidnm", output12.value);
- model.makeValue("/root/send/termhngnm", output1.value);
- model.makeValue("/root/send/dnornm", output15.value);
- model.makeValue("/root/send/dnorage", output17.value);
- model.makeValue("/root/send/dnorsex", output18.value);
- model.makeValue("/root/send/dnorbtype", output19.value);
-
- model.makeValue("/root/send/tnsstrdd", input4.value);
- model.makeValue("/root/send/tnsstrtm", input1.value);
- model.makeValue("/root/send/tnsenddd", input6.value);
- model.makeValue("/root/send/tnsendtm", input7.value);
- model.makeValue("/root/send/filteryn", radio4.value);
- model.makeValue("/root/send/vadssel", radio3.value);
- model.makeValue("/root/send/ekgyn", radio5.value);
- model.makeValue("/root/send/inptouptyn", radio2.value);
- model.makeValue("/root/send/pltsel", radio6.value);
- model.makeValue("/root/send/sideyn", radio1.value);
- model.makeValue("/root/send/tnssideeffecttext", input15.value);
- model.makeValue("/root/send/cultureyn", radio7.value);
- model.makeValue("/root/send/postyn", radio8.value);
- model.makeValue("/root/send/infusionbag", input16.value);
- model.makeValue("/root/send/remark", input17.value);
- if(inpt == "INPUT"){// 등록시
- // model.makeValue("/root/send/recgrup",datagrid2.getupdatedataAll("i"));
- // model.makeValue("/root/send/histgrup",grd_histgrup.getupdatedataAll("i"));
- if(submit("TXMNW03910")){
- fGetCellProcInfoList();// Cell 처리 정보 리스트
- fHsctInit();//HSCT 시간/상세정보 초기화
- for(var i = 1 ; i < datagrid5.rows; i++ ){// 전체를 돌면서 중증도 내역선택시 상태를 초기화
-
- datagrid5.textmatrix(i,1) = "false";
- datagrid5.colDisabled(1) = true ;// 선택 disabled
- }
- messageBox("정보 저장이 ","I002");
- }
- } else if (inpt == "UPDATE") {//수정시
- //
- // model.makeValue("/root/send/recgrup",datagrid2.getupdatedataAll("i"));
- // model.makeValue("/root/send/histgrup",grd_histgrup.getupdatedataAll("i"));
- if(submit("TXMNW03912")){
- messageBox("정보 업데이트가 ","I002");
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈부작용 코드
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fTnsSideEffectList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- if(submit("TRMNW03904")){
- }
- // model.setfocus("button3");
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공여자 정보 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDnorInfoList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- if(submit("TRMNW03902")){
- }
- // model.setfocus("button3");
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Cell 처리정보 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCellProcInfoList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- if(submit("TRMNW03903")){
- }
- datagrid2.colDisabled(1) = false;
- }
- /**
- * @group :
- * @ver : 2007.08.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 개인정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientInfo(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/pid", input2.value);
- model.makeValue("/root/send/prcpddfrom2", input9.value);
- model.makeValue("/root/send/prcpddto2", input10.value);
- if( model.getValue("/root/main/cond/pid") == "" ){
- messageBox("혈액번호는 ","I003");
- model.setfocus("input2");
- return;
- } else if( input9.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input9");
- return;
- } else if( input10.value == "" ){
- messageBox("불출일자는 ","I003");
- model.setfocus("input10");
- return;
- }
- if(submit("TRMNW03901")){
- }
- // model.setfocus("button3");
- }
- /* 혈액불출 스크립트 참조 시작 */
- /* 혈액불출관리 참조 스크립트 시작 20070809 */
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 미수행기록 목록에서 선택항목 체크(더블클릭)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGridSel() {
- var sRowCnt2 = datagrid2.rows-datagrid2.fixedrows;
- var iRow = datagrid2.Row ;
- if( datagrid2.labelmatrix(iRow, 1) == "FALSE" || datagrid2.labelmatrix(iRow, 1) == "false" ){
- datagrid2.textmatrix(iRow, 1) = "true" ;
- } else if( datagrid2.labelmatrix(iRow, 1) == "true" ) {
- datagrid2.textmatrix(iRow, 1) = "FALSE" ;
- }
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행기록 내역 상세정보 (더블클릭)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodExecRecDetlinfo() {
- var sRowCnt = datagrid3.rows-datagrid3.fixedrows;
- var iRow = datagrid3.row ;
- model.setValue(output5.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/blodno"));
- model.setValue(output6.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/prcpnm"));
- model.setValue(output7.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/abo") + model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/rh") );
- model.setValue(input4.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrddtm").substring(0,8));
- model.setValue(input5.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrddtm").substring(8,14));
- model.setValue(input6.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendddtm").substring(0,8));
- model.setValue(input7.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendddtm").substring(8,14));
- model.setValue(output10.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursedeptnm"));
- model.setValue(output11.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursenm"));
- model.setValue(output8.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptnm"));
- model.setValue(output9.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm"));
- model.setValue(combo3.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnssideeffect"));
- model.setValue(input1.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/caution"));
- model.setValue(radio1.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/discontinuyn"));
- model.setValue(combo4.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/discontinu"));
- model.setValue(input8.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/drugqty"));
- model.setValue(textarea1.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsrec"));
- /*
- model.makeValue("/root/send/tnsstrnurseid", sp[0] );
- model.makeValue("/root/send/tnsstrnursenm", sp[1] );
- model.makeValue("/root/send/tnsstrnursedeptcd", sp[5] );
- model.makeValue("/root/send/tnsstrnursedeptnm", sp[4] );
- */
- model.setValue(output12.attribute("ref"),
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnurseid")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursenm")+","+","+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursedeptnm")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursedeptcd")
- );
- // alert(output12.value);
- model.setValue(output13.attribute("ref"),
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnurseid")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm")+","+","+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptnm")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptcd")
- );
- // alert(output13.value);
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnurseid")+","+
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm")+","+
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptcd")+","+
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm")
- model.refresh();
- var sRowCnt2 = datagrid2.rows-datagrid2.fixedrows;
-
- for(var i=1; i<= sRowCnt2; i++){ // 선택한 값이 불출신청 상태인지 체크
- datagrid2.textmatrix(i, 1) = "FALSE" ;
- }
- }
- /**
- * @group :
- * @ver : 2007.07.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈 수행 내역 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetBlodExecRecList(blodpidflag){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- if( model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") == "" && model.getValue("/root/main/cond/blodno") == "" ){
-
- messageBox("혈액번호/등록번호를 ","C001");
- model.setfocus("input13");
- return;
-
- }
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNR01024")){
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT Infusion기록 기록저장 버튼
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fTnsRecSave(){
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/blodno") == ""){
- messageBox("혈액번호를 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/prcpnm") == ""){
- messageBox("혈액명을 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/abo") == ""){
- messageBox("혈액형을 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrdd") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrtm") == "" ) {
- messageBox("수혈시작시간을 ","C001");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsenddd") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendtm") == "" ) {
- messageBox("수혈종료시간을 ","C001");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursdeptnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursall") == "") {
- messageBox("수혈시작 간호사를 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursdeptnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursall") == "") {
- messageBox("수혈종료 간호사를 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsrec") == "" ) {
- messageBox("수혈기록을 ","C001");
- return;
- }
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") ) ;
- model.makeValue("/root/send/blodno",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/blodno") ) ;
- model.makeValue("/root/send/tnsstrddtm",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrdd") + model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrtm") );
- model.makeValue("/root/send/tnsendddtm",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsenddd") + model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendtm") );
-
- model.makeValue("/root/send/tnsstrnursall",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursall") );
- model.makeValue("/root/send/tnsendnursall",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursall") );
- model.makeValue("/root/send/sideeffectcomcodelist",model.getValue("/root/main/cond/tnsnursereccdgrup/sideeffectcomcodelist") );
- model.makeValue("/root/send/caution",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/caution") );
- model.makeValue("/root/send/discontinuyn",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/discontinuyn") );
- model.makeValue("/root/send/discontinucomcodelist",model.getValue("/root/main/cond/tnsnursereccdgrup/discontinucomcodelist") );
- model.makeValue("/root/send/drugqty",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/drugqty") );
- model.makeValue("/root/send/tnsrec",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsrec") );
- var sp = model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursall").split(",");
- //alert(sp);
- model.makeValue("/root/send/tnsstrnurseid", sp[0] );
- model.makeValue("/root/send/tnsstrnursenm", sp[1] );
- model.makeValue("/root/send/tnsstrnursedeptcd", sp[5] );
- model.makeValue("/root/send/tnsstrnursedeptnm", sp[4] );
- var sp2 = model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursall").split(",");
- //alert(sp2);
- model.makeValue("/root/send/tnsendnurseid", sp2[0] );
- model.makeValue("/root/send/tnsendnursenm", sp2[1] );
- model.makeValue("/root/send/tnsendnursedeptcd", sp2[5] );
- model.makeValue("/root/send/tnsendnursedeptnm", sp2[4] );
- /* 저장 / 업데이트 구분 체크 시작 */
- var check = "" ;
- var sRowCnt = datagrid3.rows-datagrid3.fixedrows;
-
- for(var i=1; i<= sRowCnt; i++){ // 선택한 값이 불출신청 상태인지 체크
- // alert(datagrid3.labelmatrix(i, 3));
- //
- // alert(output5.value);
- if( datagrid3.labelmatrix(i, 3) == output5.value ) {
- check = "Y" ;
- }
- }
- /* 저장 / 업데이트 구분 체크 끝 */
- if( check != "Y" ){// 신규 저장
- //alert("신규 저장");
- model.makeValue("/root/send/detlgrup",datagrid2.getupdatedataAll("i"));
- if(messageBox("","Q002") != 6) return;// 저장하시겠습니까?
- if(submit("TXMNR01031")){
- model.copyNode("/root/hidden/main","/root/main");
- var pidblodflag = '';
- if(input12.value != ""){
- pidblodflag = 'pid';
- } else if (input13.value !="") {
- pidblodflag = 'blod';
- }
- fBlodDeliveList(pidblodflag);// 혈액불출내역 리스트
- fGetBlodNoExecRecList(pidblodflag); //수혈 미수행 내역 리스트
- fGetBlodExecRecList(pidblodflag); //수혈 수행 내역 리스트
- }
- } else if( check == "Y") {// 업데이트
- //alert("업데이트");
- if(messageBox("","Q002") != 6) return;// 저장하시겠습니까?
- model.makeValue("/root/send/detlgrup",datagrid3.getupdatedataAll("i"));
- if(submit("TXMNR01032")){
- model.copyNode("/root/hidden/main","/root/main");
- var pidblodflag = '';
- if(input12.value != ""){
- pidblodflag = 'pid';
- } else if (input13.value !="") {
- pidblodflag = 'blod';
- }
- fBlodDeliveList(pidblodflag);// 혈액불출내역 리스트
- fGetBlodNoExecRecList(pidblodflag); //수혈 미수행 내역 리스트
- fGetBlodExecRecList(pidblodflag); //수혈 수행 내역 리스트
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 미수행기록목록에서 선택한 혈액정보 기록버튼
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fExecRec(){
- var sRowCnt = datagrid2.rows-datagrid2.fixedrows;
- var cnt = 0 ;
- model.removenode("/root/send");
- model.makeValue("/root/send/detlgrup",datagrid2.getupdatedataAll("i"));
-
- var blodno = "" ;
- var prcpnm = "" ;
- var aborh = "" ;
-
- for(var i=1; i<= sRowCnt; i++){
- // alert(datagrid2.labelmatrix(i, 1));
- if( datagrid2.labelmatrix(i, 1) == "true" ) {
- blodno += datagrid2.labelmatrix(i, 2) + "," ;
- prcpnm += datagrid2.labelmatrix(i, 3) + "," ;
- aborh += datagrid2.labelmatrix(i, 4)+datagrid2.labelmatrix(i, 5) + "," ;
- cnt = cnt + 1;
- }
- }
- // alert(blodno.substr(0,blodno.length-1));
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- fClearChildNode("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/sideeffectcomcodelist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/discontinucomcodelist");
-
- model.refresh();
- model.setValue(output5.attribute("ref"), blodno.substr(0,blodno.length-1) );
- model.setValue(output6.attribute("ref"), prcpnm.substr(0,prcpnm.length-1) );
- model.setValue(output7.attribute("ref"), aborh.substr(0,aborh.length-1) );
- model.setValue(radio1.attribute("ref"), "N" );
- model.setValue(input4.attribute("ref"), getCurrentDate() );
- model.setValue(input5.attribute("ref"), getCurrentTime() );
- if(submit("TRMNR01023")){
- model.copyNode("/root/hidden/main","/root/main");
- }
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액요청서 선택했을때...
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodReqDoc(){
- var sRowCnt = datagrid7.rows-datagrid7.fixedrows;
-
- var cnt = 0 ;
- model.removeNode ("/root/send/report");
- for(var i=1; i<= sRowCnt; i++){ // 선택한 값이 불출신청 상태인지 체크
- // alert(datagrid7.labelmatrix(i, 1));
- if( datagrid7.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- if( datagrid7.labelmatrix(i, 2) != "매칭검사" ) {
-
- messageBox("매칭검사 상태 이외에는 혈액요청서를 출력 ","E001");
- return;
-
- }
- if( datagrid7.labelmatrix(i, 8).length < 5 ) {
-
- messageBox("혈액번호가 ","I004");
- return;
-
- }
- model.makeValue("/root/send/report/delivedetlgrup/delivedetlgruplist["+cnt+"]","");
- model.copyNode( "/root/send/report/delivedetlgrup/delivedetlgruplist["+cnt+"]", "/root/main/cond/delivedetlgrup/delivedetlgruplist["+i+"]" );
- // alert(instance1.selectSingleNode("/root/send/report/delivedetlgrup/delivedetlgruplist"+"["+cnt+"]").xml);
- }
- }
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- model.makeValue("/root/send/report/patientnm",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/patientnm") );
- model.makeValue("/root/send/report/pid",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") );
- model.makeValue("/root/send/report/sexage",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/sexage") );
- model.makeValue("/root/send/report/btypee",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/btype") );
-
-
- exeReportPreview("RFMNR01000", "XMLSTR");
-
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출 내역 선택 삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelDeliveExecPrcp(){
- var sRowCnt = datagrid7.rows-datagrid7.fixedrows;
- var cnt = 0 ;
- for(var i=1; i<= sRowCnt; i++){ // 선택한 값이 불출신청 상태인지 체크
- // alert(datagrid7.labelmatrix(i, 1));
- if( datagrid7.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- if( datagrid7.labelmatrix(i, 2) != "불출신청" ) {
-
- messageBox("불출신청 이외의 상태에서는 삭제할 수 ","I004");
- return;
-
- }
- }
- }
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- alert("개발 중입니다.");
- return ;
- // model.removenode("/root/send");
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNR01021")){
- }
- //model.setfocus("input13");
- fGetExecDetlList();// 수행처방내역리스트
- fGettDeliveDetlList();// 불출신청 내역 리스트
- }
- /**
- * @group :
- * @ver : 2007.07.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈 미수행 내역 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetBlodNoExecRecList(blodpidflag){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- if( model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") == "" && model.getValue("/root/main/cond/blodno") == "" ){
-
- messageBox("혈액번호/등록번호를 ","C001");
- model.setfocus("input13");
- return;
-
- }
- /* HSCT Infusion기록 내용 초기화 */
- fClearChildNode("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/sideeffectcomcodelist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/discontinucomcodelist");
-
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNR01021")){
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출내역의 혈액반납의뢰 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodReturnSave(){
- var sRowCnt = datagrid1.rows-datagrid1.fixedrows;
- var cnt = 0 ;
- model.removenode("/root/send");
- model.makeValue("/root/send/detlgrup",datagrid1.getupdatedataAll("i"));
-
- var saveyn = 0 ;
- for(var i=1; i<= sRowCnt; i++){
- //alert(datagrid1.labelmatrix(i, 1));
- if( datagrid1.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- // ****************************** 반납사유 필수 로직 추가 ***************************************
- //alert(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/etcprcpresncd"));
- if(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/reqflag") == "-" || model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/reqflag") == ""){//반납/폐기를 체크
- messageBox("반납/폐기를 ","C002");
- return;
- }
- if(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/returnabandondate") == "-" || model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/returnabandondate") == ""){//반납/폐기일 체크
- messageBox("반납/폐기일을 ","C002");
- return;
- }
- if(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/etcprcpresncd") == "-" || model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/etcprcpresncd") == ""){//반납사유 체크
- messageBox("반납/폐기 사유를 ","C002");
- return;
- }
- }
- }
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- if(submit("TXMNR01030")){
- model.copyNode("/root/hidden/main","/root/main");
- }
- /* 반납/폐기 이후 정보 조회 실행 */
- var pidblodflag = '';
- if(input12.value != ""){
- pidblodflag = 'pid';
- } else if (input13.value !="") {
- pidblodflag = 'blod';
- }
- fBlodDeliveList(pidblodflag); //혈액불출 리스트 조회버튼
- fGetBlodNoExecRecList(pidblodflag); //수혈 미수행 내역 리스트
- }
- /**
- * @group :
- * @ver : 2007.07.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출 내역 조회 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodDeliveList(blodpidflag){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- if( model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") == "" && model.getValue("/root/main/cond/blodno") == "" ){
-
- messageBox("혈액번호/등록번호를 ","C001");
- model.setfocus("input13");
- return;
-
- }
- model.removenode("/root/send");
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNR01020")){
- }
- model.setfocus("input13");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 불출신청 내역 조회 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGettDeliveDetlList(){
- if( model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist") == "" ){
-
- // messageBox("병동을 ","C002");
- // model.setfocus("combo7");
- // return;
-
- }
- model.removenode("/root/send");
-
- model.makeValue("/root/send/prcpddfrom", input2.value);
- model.makeValue("/root/send/prcpddto", input11.value);
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- model.makeValue("/root/send/hngnm", combo8.value);
- model.makeValue("/root/send/pid", input3.value);
- if(submit("TRMNR01009")){
- }
- }
- /**
- * @group :
- * @ver : 2007.04.02
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행처방 선택시 체크사항
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelchange(){
- var iRow = datagrid5.row ;
- // alert(parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/prcpqty")));
- //
- // alert(parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/appno")));
- if( parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/prcpqty")) <= parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/appno")) ) {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("신청수량이 처방수량보다 클 수 ","I004");
- return;
- }
- if( model.getValue(xExecDetlListPath+"["+iRow+"]/prcpstatcd") == "D/C") {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("D/C 상태에서는 신청할 수 ","I004");
- return;
- } else if( model.getValue(xExecDetlListPath+"["+iRow+"]/prcpstatcd") == "의사") {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("의사 상태에서는 신청할 수 ","I004");
- return;
- } else if( model.getValue(xExecDetlListPath+"["+iRow+"]/prcpstatcd") == "완료") {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("완료 상태에서는 신청할 수 ","I004");
- return;
- }
-
- }
- /**
- * @group :
- * @ver : 2007.04.02
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 값이 변경되었을때, 상태값을 변경한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChangedGridCol(){
- var sDetlGrupRow = datagrid5.row;
- var sDetlGrupBKRow=0;
- var num = model.getValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/num");
- for(var i=1; i<= getNodesetCount(xPopWndClsListBKPath); i++){
- if(model.getValue(xPopWndClsListBKPath+"["+i+"]/num") == num){
- sDetlGrupBKRow = i;
- break;
- }
- }
- if(event.keyCode == "32") {
- messageBox("신청수량에 스페이스를 넣을 수 ","I004");
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/stat","-");
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/appno","");
- datagrid5.refresh();
- return;
- }
- var irr = datagrid5.textmatrix(sDetlGrupRow,6) ;
- if(model.getValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/appno") == "0" || model.getValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/appno") == ""){
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/stat","-");
- datagrid5.rebuild();
- //return;
- }
- // alert(instance1.selectSingleNode(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]").xml);
- //
- // alert(instance1.selectSingleNode(xPopWndClsListBKPath+"["+sDetlGrupBKRow+"]").xml);
- if(instance1.selectSingleNode(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]").xml != instance1.selectSingleNode(xPopWndClsListBKPath+"["+sDetlGrupBKRow+"]").xml){
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/stat","I");
- datagrid5.rebuild();
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출관리 init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopWndSave(){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- model.removenode("/root/send");
- model.makeValue("/root/send/detlgrup",datagrid5.getupdatedataAll("i"));
-
- var saveyn = 0 ;
- for(var i=1; i<= sRowCnt; i++){
- if(model.getValue(xPopWndExecDetlListPath+"["+i+"]/stat") != "-") {
- saveyn = 1 ;
- }
- if(model.getValue(xPopWndExecDetlListPath+"["+i+"]/stat") != "-" && model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno") == ""){
- messageBox("신청수량은 ","I003");
- return;
- }
- // if( !isNumber(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) ) {
- //
- // messageBox("숫자형을 ","C001");
- // return;
- //
- // }
- if( parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) < 1 || parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) == " " ) {
- messageBox("신청수량은 1건 이하로 입력할 수 ","E001");
- return;
- }
-
- if( parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/delivepossno")) < parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) ) {
- messageBox("신청수량은 불출수량보다 크게 입력 ","E001");
- return;
- }
- // alert( model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopedd") );
- // alert( model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopetm") );
- if(model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopedd") == "" || model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopetm") == ""){
- messageBox("예약일자/예약시간은 ","I003");
- return;
- }
-
- }
- if(saveyn <= 0 ){
- messageBox("수정사항이 없어 저장 ","E001");
- return;
- }
-
- //alert("result : " + saveyn);
- // if(saveyn <= 0 ){
- // messageBox("수정사항이 없어 저장 ","E001");
- // return;
- // }
- //alert(model.getValue("/root/main/cond/clsflag"));
- //alert(model.getValue("/root/main/cond/recflag"));
-
-
- //if(messageBox("","Q002") != 6) return;
- //alert(model.getValue("/root/main/cond/todd"));
- // model.makeValue("/root/send/lrggrupcd", model.getValue(xCondPath+"/lrggrupcd"));
- // model.makeValue("/root/send/clsflag", model.getValue("/root/main/cond/clsflag"));
- // model.makeValue("/root/send/recflag", model.getValue("/root/main/cond/recflag"))
- // model.makeValue("/root/send/todd2", model.getValue("/root/main/cond/todd"))
- //alert(model.getValue("/root/send/todd2"));
- if(submit("TXMNR01008")){
- model.copyNode("/root/hidden/main","/root/main");
- }
- // grd_detlgrup.row = 1;
- window.close();
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출관리 init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopWndInit(){
- model.makeValue("/root/send/prcpddfrom", opener.window.javascript.getParameter("prcpddfrom") );
- model.makeValue("/root/send/prcpddto", opener.window.javascript.getParameter("prcpddto") );
- model.makeValue("/root/send/wardcd", opener.window.javascript.getParameter("wardcd") );
- model.makeValue("/root/send/roomcd", opener.window.javascript.getParameter("roomcd") );
- model.makeValue("/root/send/pid", opener.window.javascript.getParameter("pid") );
- model.makeValue("/root/send/queryprcpdd", opener.window.javascript.getParameter("queryprcpdd") );
- model.makeValue("/root/send/queryprcpno", opener.window.javascript.getParameter("queryprcpno") );
- model.makeValue("/root/send/queryprcphistno", opener.window.javascript.getParameter("queryprcphistno") );
- //alert(prcpddfrom); alert(prcpddto); alert(wardcd); alert(roomcd); alert(pid);
-
- if(submit("TRMNR01007")){
- model.copyNode("/root/temp/main","/root/main");
- }
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출신청 팝업
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopWnd(){
- var iRows = datagrid5.rows;
- var queryprcpdd = "" ;
- var queryprcpno = "" ;
- var queryprcphistno = "" ;
- var checkcnt = 0 ;
- for(var i = 1 ; i < datagrid5.rows; i++ ) {// 전체를 돌면서 그룹에 값이 체크되어 있는것 초기화
- if( model.getValue(xExecDetlListPath+"["+ i +"]/sel") == "true" ) {
- // alert("111");
- queryprcpdd = queryprcpdd + "'" + model.getValue(xExecDetlListPath+"["+ i +"]/prcpdd2") + "'," ;
- queryprcpno = queryprcpno + "" + model.getValue(xExecDetlListPath+"["+ i +"]/prcpno") + "," ;
- // alert(model.getValue(xExecDetlListPath+"["+ i +"]/prcphistno"));
- queryprcphistno = queryprcphistno + "" + model.getValue(xExecDetlListPath+"["+ i +"]/prcphistno") + "," ;
- checkcnt++ ;
- } else {
- // alert("222");
-
- }
-
- }
- if( checkcnt <= 0 ) {
-
- messageBox("수혈처방내역을 ","C002");
- return 0 ;
-
- }
- queryprcpdd = queryprcpdd.replace(/-/g,"")
- // alert(queryprcpdd.replace(/-/g,""));
- // alert(queryprcpdd.substr(0,queryprcpdd.length-1));
- // alert(queryprcpno.substr(0,queryprcpno.length-1));
- // alert(queryprcphistno.substr(0,queryprcphistno.length-1));
- queryprcpdd = queryprcpdd.substr(0,queryprcpdd.length-1) ;
- queryprcpno = queryprcpno.substr(0,queryprcpno.length-1) ;
- queryprcphistno = queryprcphistno.substr(0,queryprcphistno.length-1) ;
- // for(var i = 0 ; i < data.length; i++ ) {
- //
- // queryprcpno = queryprcpno + data[i] ;
- //
- // }
- setParameter("prcpddfrom", input2.value);
- setParameter("prcpddto", input11.value);
- setParameter("wardcd", combo7.value);
- setParameter("roomcd", combo2.value);
- setParameter("pid", input3.value);
- setParameter("queryprcpdd", queryprcpdd);
- setParameter("queryprcpno", queryprcpno);
- setParameter("queryprcphistno", queryprcphistno);
- var left = event.screenX-1000;
- var top = event.screenY+50;
- modal("SMMNR01001",1,left,top);
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행처방내역 조회 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetExecDetlList(){
- if( model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist") == "" ){
-
- // messageBox("병동을 ","C002");
- // model.setfocus("combo7");
- // return;
-
- }
- model.removenode("/root/send");
- model.makeValue("/root/send/prcpddfrom", input2.value);
- model.makeValue("/root/send/prcpddto", input11.value);
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- model.makeValue("/root/send/hngnm", combo8.value);
- model.makeValue("/root/send/pid", input3.value);
- if(submit("TRMNR01006")){
- }
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- if(submit("TRMNR01004")){
- }
- model.setfocus("combo8");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병실 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetRoomList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", cmb_wardcd.value);
- //alert(cmb_wardcd.value);
- if(submit("TRMNR01003")){
- }
- model.setfocus("combo2");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병동 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetWardList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist/wardcd"));
- if(submit("TRMNR01002")){
- }
- // model.setfocus("combo7");
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출관리 init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- fGetWardList();// 병동코드 리스트
- }
- /* 혈액불출 스크립트 참조 끝 */
|