/* »ó´ã±â·Ï(SMMND01900.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ //**Àü¿ªº¯¼ö**// /** * @group : * @ver : 2007.07.11 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fDone(){ //**±×¸®µå ÃʱâÈ­**// model.removeNodeset("/root/main/hdmatnpatlist"); model.removeNodeset("/root/main/pdmatnpatlist"); model.removeNodeset("/root/main/cnstcntshistlist"); model.removeNodeset("/root/main/hmdlspipeinfolist"); // Ç÷¾×Åõ¼® µµ°ü°ü¸® model.removeNodeset("/root/main/avfinfolist"); // µ¿Á¤¸Æ·ç °ü¸® model.removeNodeset("/root/main/oprtinfolist"); // ½Ã¼ú°ú ÁßÀç //**°øÅëÄÚµå °¡Á®¿À±â**// zbcfGetCodeList( new Array ( "M0133" // µµ°ü°ü¸® ºÎÀ§ , "M0134" // µµ°ü°ü¸® Á¾·ù1 , "M0135" // µµ°ü°ü¸® Á¾·ù2 , "M0136" // Ç÷¾×Åõ¼®µµ°ü Á¦°ÅÀÌÀ¯ , "M0137" // µ¿Á¤¸Æ·ç °ü¸® Á¾·ù , "M0138" // µ¿Á¤¸Æ·ç °ü¸® ºÎÀ§ , "M0139" // µ¿Á¤¸Æ·ç »ç¿ëÇ÷°ü , "M0140" // ½Ã¼úÁ¾·ù , "M0141" // ½Ã¼ú¿øÀÎ , "M0142" // CathÁ¾·ù , "M0133" // ºÎÀ§ , "M0144" // º¹¸·Åõ¼®µµ°ü Á¦°ÅÀÌÀ¯ , "M0145" // °¨¿°Á¾·ù , "M0146" // ¿øÀÎ±Õ , "M0147" // ¿¹ÈÄ ) , new Array ( "/root/init/M0133list" // µµ°ü°ü¸® ºÎÀ§ , "/root/init/M0134list" // µµ°ü°ü¸® Á¾·ù1 , "/root/init/M0135list" // µµ°ü°ü¸® Á¾·ù2 , "/root/init/M0136list" // Ç÷¾×Åõ¼®µµ°ü Á¦°ÅÀÌÀ¯ , "/root/init/M0137list" // µµ°ü°ü¸® Á¾·ù1 , "/root/init/M0138list" // µµ°ü°ü¸® Á¾·ù2 , "/root/init/M0139list" // Ç÷¾×Åõ¼®µµ°ü Á¦°ÅÀÌÀ¯ , "/root/init/M0140list" // ½Ã¼úÁ¾·ù , "/root/init/M0141list" // ½Ã¼ú¿øÀÎ , "/root/init/M0142list" // CathÁ¾·ù , "/root/init/M0133list" // ºÎÀ§ , "/root/init/M0144list" // º¹¸·Åõ¼®µµ°ü Á¦°ÅÀÌÀ¯ , "/root/init/M0145list" // °¨¿°Á¾·ù , "/root/init/M0146list" // ¿øÀÎ±Õ , "/root/init/M0147list" // ¿¹ÈÄ ) ); //** À¯ÁöȯÀÚ¸®½ºÆ® ¼³Á¤ **// // fSrchHDMatnPatList(); // Ç÷¾×Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® Á¶È¸ // grd_hdmatnpatinfo.visible = true; // grd_pdmatnpatinfo.visible = false; grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; //** »ó´ÜȯÀÚ È­¸é¼³Á¤ **// var node = getGlobalVariable("paminfo"); setCSVToNode("/root/temp/paminfo", node); if(getNodesetCount("/root/temp/paminfo/list") > 0) { var sSelPid = model.getValue("/root/temp/paminfo/list/pid"); // µî·Ï¹øÈ£ model.setValue("/root/main/condition/pid", sSelPid); } fSrchHDMatnPatList(); // Ç÷¾×Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® Á¶È¸ // fSrchPDMatnPatList(); // º¹¸·Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® Á¶È¸ // // var sSelPid = grd_pdmatnpatinfo.textmatrix(1, 1); // µî·Ï¹øÈ£ // var sMaintePatRgstDD = grd_pdmatnpatinfo.textmatrix(1, 4); // À¯ÁöȯÀÚ µî·ÏÀÏÀÚ // // fInit(); // ÃʱâÈ­ // fGetPatInfo(sSelPid, sMaintePatRgstDD); // ȯÀÚÁ¤º¸ ¼³Á¤ // // if(grd_hdmatnpatinfo.rows > 1) { // model.setValue("/root/main/condition/dialflag", "H"); // grd_hdmatnpatinfo.visible = true; // grd_pdmatnpatinfo.visible = false; // grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // // grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // ¼±Åà Çà ¼¿ »ö»ó ÁöÁ¤ // grd_hdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 4) = "#ffd9ff"; // model.toggle("case1"); // btn_hdreccase.selected = true; // // fPatBaseHDPipeInfo(); // Ç÷¾×Åõ¼® ȯÀÚ ±âº»Á¤º¸ ¹× ÃÖÁ¾ µµ°ü±â·Ï Á¤º¸ Á¶È¸ // } else if(grd_pdmatnpatinfo.rows > 1){ // model.setValue("/root/main/condition/dialflag", "P"); // grd_hdmatnpatinfo.visible = false; // grd_pdmatnpatinfo.visible = true; // grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // // grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // ¼±Åà Çà ¼¿ »ö»ó ÁöÁ¤ // grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 4) = "#ffd9ff"; // model.toggle("case2"); // btn_pdreccase.selected = true; // // fPatBasePDPipeInfo(); // º¹¸·Åõ¼® ȯÀÚ ±âº»Á¤º¸ ¹× ÃÖÁ¾ µµ°ü±â·Ï Á¤º¸ Á¶È¸ // } // // btn_crt.disabled = false; // ½Å±Ôµî·Ï¹öư Ȱ¼ºÈ­ // txt_hdcnstcnts.disabled = true; // »ó´ã³»¿ë ÅØ½ºÆ®¹Ú½º ºñȰ¼ºÈ­ // txt_pdcnstcnts.disabled = true; // btn_savehdcnstcnts.disabled = true; // ÀúÀå¹öư ºñȰ¼ºÈ­ // btn_savepdcnstcnts.disabled = true; // btn_pop.disabled = false; // // grd_rechistinfo.allstyle("all", "background-color") = "white"; // // fSrchCnstcntsHist (); // »ó´ã±â·Ï ¸®½ºÆ® Á¶È¸ } /** * @group : * @ver : 2007.06.12 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : Ç÷¾×Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchHDMatnPatList(){ fInit(); // ÃʱâÈ­ model.removenode ("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid ", model.getValue("/root/main/condition/pid")); model.makeValue ("/root/send/reqdata/dialflag", model.getValue("/root/main/condition/dialflag")); // Åõ¼®±¸ºÐ (H:Ç÷¾×) model.removeNodeset("/root/main/hdmatnpatlist"); submit("TRMND01301"); if(model.getValue("/root/main/condition/pid") != "") { grd_hdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // Ç÷¾×Åõ¼® À¯ÁöȯÀÚ¸®½ºÆ® ¼¿ »ö»ó ÁöÁ¤ fGetPatInfo(model.getValue("/root/main/hdmatnpatlist/hdmatnpatinfo[1]/pid"), model.getValue("/root/main/hdmatnpatlist/hdmatnpatinfo[1]/maintepatrgstdd")); // º¹¸·Åõ¼® À¯ÁöȯÀÚ Á¤º¸ ¼³Á¤ // ȯÀÚº° µµ°ü±â·Ï ¸®½ºÆ® Á¶È¸ } } /** * @group : * @ver : 2007.06.13 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : º¹¸·Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchPDMatnPatList(){ fInit(); // ÃʱâÈ­ model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid", model.getValue("/root/main/condition/pid")); model.makeValue ("/root/send/reqdata/dialflag", "P"); // Åõ¼®±¸ºÐ (P:º¹¸·) model.removeNodeset("/root/main/pdmatnpatlist"); // model.removeNodeset("/root/main/pdmatnpatlist"); submit("TRMND01401"); if(model.getValue("/root/main/condition/pid") != "") { grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // º¹¸·Åõ¼® À¯ÁöȯÀÚ¸®½ºÆ® ¼¿ »ö»ó ÁöÁ¤ fGetPatInfo(model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/pid"), model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/maintepatrgstdd")); // º¹¸·Åõ¼® À¯ÁöȯÀÚ Á¤º¸ ¼³Á¤ // ȯÀÚº° µµ°ü±â·Ï ¸®½ºÆ® Á¶È¸ } } /** * @group : * @ver : 2007.06.12 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : Ç÷¾×Åõ¼® À¯ÁöȯÀÚ Á¤º¸ ¼³Á¤ * (Ç÷¾×Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® ´õºí Ŭ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fGetPatInfo(sSelPid, sMaintePatRgstDD) { //±â·ÏÀÚ Á¤º¸ ¼³Á¤ model.makeValue("/root/main/reclist/recinfo/recid", getUserId()); // ÇöÀç ·Î±×ÀÎÇÑ »ç¿ëÀÚ ID model.makeValue("/root/main/reclist/recinfo/recnm", getUserName()); // ÇöÀç ·Î±×ÀÎÇÑ »ç¿ëÀÚ¸í // ±â·ÏÀϽà ¼³Á¤ model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // ±â·ÏÀÏÀÚ model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // ±â·Ï½Ã°£ // ȯÀÚ Á¤º¸ ¼³Á¤ model.makeValue("/root/main/reclist/recinfo/pid" , sSelPid); // µî·Ï¹øÈ£ model.makeValue("/root/main/reclist/recinfo/maintepatrgstdd", sMaintePatRgstDD); // À¯ÁöȯÀÚµî·ÏÀÏÀÚ model.makeValue("/root/main/reclist/recinfo/dialflag" , model.getValue("/root/main/condition/dialflag")); // Åõ¼®±¸ºÐ model.makeValue("/root/main/reclist/recinfo/cnstrecflag" , model.getValue("/root/main/condition/dialflag")); // »ó´ã±â·Ï±¸ºÐ model.refresh(); } /** * @group : * @ver : 2007.07.19 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : À¯ÁöȯÀÚ¸®½ºÆ® Á¶È¸½Ã ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // Ç÷¾×Åõ¼®À¯ÁöȯÀÚ ¸®½ºÆ® »ö»ó ÃʱâÈ­ grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // º¹¸·Åõ¼®À¯ÁöȯÀÚ ¸®½ºÆ® »ö»ó ÃʱâÈ­ // ±â·ÏÁ¤º¸ ÃʱâÈ­ fClearChildNode("/root/main/reclist/recinfo"); fClearChildNode("/root/main/getbaselist/getbaseinfo"); //model.removeNodeset("/root/main/getbaselist"); // ȯÀڱ⺻Á¤º¸ model.removeNodeset("/root/main/hmdlspipeinfolist"); // Ç÷¾×Åõ¼® µµ°ü°ü¸® model.removeNodeset("/root/main/avfinfolist"); // µ¿Á¤¸Æ·ç °ü¸® model.removeNodeset("/root/main/oprtinfolist"); // ½Ã¼ú°ú ÁßÀç model.removeNodeset("/root/main/peritcoduitlist"); // º¹¸·Åõ¼® µµ°ü°ü¸® model.removeNodeset("/root/main/t_setlist"); // T-Set model.removeNodeset("/root/main/infclist"); // °¨¿°°ü¸® model.removeNodeset("/root/main/cnstcntshistlist"); // »ó´ã±â·Ï ¸®½ºÆ® model.refresh(); } /** * @group : * @ver : 2007.07.21 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : »ó´ã³»¿ë ÀúÀå (ÀúÀå¹öư Ŭ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fCnstInfo(recdd, rectm) { //** ½Å±Ôµî·ÏÀÏ °æ¿ì µ¿Àϱâ·ÏÀÏÀÚ µµ°ü±â·Ï Á¸Àç È®ÀÎ **// if(model.getValue("/root/main/reclist/recinfo/status") == "i") { model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid") ); model.makeValue ("/root/send/reqdata/recdd", model.getValue("/root/main/reclist/recinfo/recdd")); model.makeValue ("/root/send/reqdata/rectm", model.getValue("/root/main/reclist/recinfo/rectm")); model.removeNodeset("/root/main/chklist"); submit("TRMND01904"); // µ¿Àϱâ·ÏÀÏÀÚ¿¡ µµ°ü±â·Ï Á¸Àç ÇÒ °æ¿ì if(model.getValue("/root/main/chklist/chkinfo/pid") != "") { messageBox("µ¿ÀÏÀÏÀÚ¿¡ »ó´ã±â·ÏÀÌ Á¸ÀçÇÕ´Ï´Ù.", "E"); // ±â·ÏÀϽà ¼³Á¤ model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // ±â·ÏÀÏÀÚ model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // ±â·Ï½Ã°£ model.refresh(); return; } } //** »ó´ã³»¿ë ÀúÀå½ÇÇà **// model.removenode("/root/send"); model.makeNode ("/root/send/savedata"); copyNodeType ("/root/send/savedata", "/root/main/reclist/recinfo"); submit("TXMND01901"); } /** * @group : * @ver : 2007.07.23 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : »ó´ã±â·Ï ¸®½ºÆ® Á¶È¸ (À¯ÁöȯÀÚ ¸®½ºÆ® ´õºí Ŭ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fSrchCnstcntsHist() { model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // µî·Ï¹øÈ£ model.makeValue ("/root/send/reqdata/cnstrecflag", model.getValue("/root/main/reclist/recinfo/cnstrecflag")); // »ó´ã±â·Ï±¸ºÐ model.removeNodeset("/root/main/cnstcntshistlist"); submit("TRMND01901"); } /** * @group : * @ver : 2007.07.23 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : Ç÷¾×Åõ¼® ȯÀÚ ±âº»Á¤º¸ ¹× ÃÖÁ¾ µµ°ü±â·Ï Á¤º¸ Á¶È¸ (À¯ÁöȯÀÚ ¸®½ºÆ® ´õºí Ŭ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fPatBaseHDPipeInfo() { model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // µî·Ï¹øÈ£ model.makeValue ("/root/send/reqdata/maintepatrgstdd", model.getValue("/root/main/reclist/recinfo/maintepatrgstdd")); // À¯Áöµî·ÏÀÏÀÚ model.removeNodeset("/root/main/hmdlspipeinfolist"); // Ç÷¾×Åõ¼® µµ°ü°ü¸® model.removeNodeset("/root/main/avfinfolist"); // µ¿Á¤¸Æ·ç °ü¸® model.removeNodeset("/root/main/oprtinfolist"); // ½Ã¼ú°ú ÁßÀç model.removeNodeset("/root/main/getbaselist"); // ȯÀڱ⺻Á¤º¸ submit("TRMND01902"); } /** * @group : * @ver : 2007.07.31 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : º¹¸·Åõ¼® ȯÀÚ ±âº»Á¤º¸ ¹× ÃÖÁ¾ µµ°ü±â·Ï Á¤º¸ Á¶È¸ (À¯ÁöȯÀÚ ¸®½ºÆ® ´õºí Ŭ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fPatBasePDPipeInfo() { model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // µî·Ï¹øÈ£ model.makeValue ("/root/send/reqdata/maintepatrgstdd", model.getValue("/root/main/reclist/recinfo/maintepatrgstdd")); // À¯ÁöȯÀÚµî·ÏÀÏÀÚ model.removeNodeset("/root/main/peritcoduitlist"); // º¹¸·Åõ¼® µµ°ü°ü¸® model.removeNodeset("/root/main/t_setlist"); // T-Set °ü¸® model.removeNodeset("/root/main/infclist/infcinfo"); // °¨¿°°ü¸® model.removeNodeset("/root/main/getbaselist"); // ȯÀڱ⺻Á¤º¸ submit("TRMND01905"); } /** * @group : * @ver : 2007.07.30 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : »ó´ã³»¿ë Á¶È¸ (»ó´ã±â·Ï¸®½ºÆ® ´õºí Ŭ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fSrchCnstcntsInfo(iRow) { model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // µî·Ï¹øÈ£ model.makeValue ("/root/send/reqdata/cnstrecflag", model.getValue("/root/main/reclist/recinfo/cnstrecflag")); // »ó´ã±â·Ï±¸ºÐ model.makeValue ("/root/send/reqdata/recdd" , model.getValue("/root/main/cnstcntshistlist/cnstcntshistinfo["+iRow+"]/recdd")); // ±â·ÏÀÏÀÚ model.makeValue ("/root/send/reqdata/rectm" , model.getValue("/root/main/cnstcntshistlist/cnstcntshistinfo["+iRow+"]/rectm")); // ±â·Ï½Ã°£ model.removenode("/root/temp/getcnstcntsinfo"); submit("TRMND01903"); model.setValue("/root/main/reclist/recinfo/status" , "u"); // »óŰª ¼³Á¤ (update) model.setValue("/root/main/reclist/recinfo/cnstcnts", model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/cnstcnts")); model.setValue("/root/main/reclist/recinfo/recdd" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recdd")); model.setValue("/root/main/reclist/recinfo/rectm" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/rectm")); model.setValue("/root/main/reclist/recinfo/recid" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recid")); model.setValue("/root/main/reclist/recinfo/recnm" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recnm")); grd_rechistinfo.allstyle("all", "background-color") = "white"; grd_rechistinfo.cellstyle("background-color", iRow, 1, iRow, 4) = "#ffd9ff"; if( model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "H") { txt_hdcnstcnts.disabled = false; // »ó´ã³»¿ë ÅØ½ºÆ®¹Ú½º Ȱ¼ºÈ­ btn_savehdcnstcnts.disabled = false; // ÀúÀå¹öư Ȱ¼ºÈ­ ipt_recdd.disabled = true; // ±â·ÏÀϽà ºñȰ¼ºÈ­ ipt_rectm.disabled = true; btn_clock.disabled = true; } else if (model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "P") { txt_pdcnstcnts.disabled = false; // »ó´ã³»¿ë ÅØ½ºÆ®¹Ú½º Ȱ¼ºÈ­ btn_savepdcnstcnts.disabled = false; // ÀúÀå¹öư Ȱ¼ºÈ­ ipt_recdd2.disabled = true; // ±â·ÏÀϽà ºñȰ¼ºÈ­ ipt_rectm2.disabled = true; btn_clock2.disabled = true; } model.refresh(); } /** * @group : * @ver : 2007.07.30 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : ½Å±Ôµî·Ï¹öư Ŭ¸¯ ½Ã * @param : * @return : * @--------------------------------------------------- */ function fSetNewRecInfo(){ fSrchCnstcntsHist(); // »ó´ã±â·Ï ¸®½ºÆ® Á¶È¸ if(model.getValue("/root/main/reclist/recinfo/pid") == "") { messageBox("Ç÷¾×Åõ¼® À¯ÁöȯÀÚ¸¦ ¼±ÅÃÇÑ ÈÄ", "I", "½Å±Ôµî·ÏÀ» ÇÒ ¼ö ÀÖ½À´Ï´Ù."); return; } if( model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "H") { txt_hdcnstcnts.disabled = false; // »ó´ã³»¿ë ÅØ½ºÆ®¹Ú½º Ȱ¼ºÈ­ btn_savehdcnstcnts.disabled = false; // ÀúÀå¹öư Ȱ¼ºÈ­ ipt_recdd.disabled = false; // ±â·ÏÀϽà Ȱ¼ºÈ­ ipt_rectm.disabled = false; btn_clock.disabled = false; } else if (model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "P") { txt_pdcnstcnts.disabled = false; // »ó´ã³»¿ë ÅØ½ºÆ®¹Ú½º Ȱ¼ºÈ­ btn_savepdcnstcnts.disabled = false; // ÀúÀå¹öư Ȱ¼ºÈ­ ipt_recdd2.disabled = false; // ±â·ÏÀϽà Ȱ¼ºÈ­ ipt_rectm2.disabled = false; btn_clock2.disabled = false; } model.setValue("/root/main/reclist/recinfo/status", "i"); // »óŰª ¼³Á¤ (insert) // ±â·ÏÀϽà ¼³Á¤ model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // ±â·ÏÀÏÀÚ model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // ±â·Ï½Ã°£ model.refresh(); // ȯÀÚº° µµ°ü±â·Ï ¸®½ºÆ® Çà Ãß°¡ grd_rechistinfo.addItem(); // Çà Ãß°¡ var iRow = grd_rechistinfo.rows - 1; // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/recdd", model.getValue("/root/main/reclist/recinfo/recdd")); // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/rectm", model.getValue("/root/main/reclist/recinfo/rectm")); // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/recnm", model.getValue("/root/main/reclist/recinfo/recnm")); grd_rechistinfo.textmatrix(iRow, 1) = model.getValue("/root/main/reclist/recinfo/recdd"); grd_rechistinfo.textmatrix(iRow, 2) = model.getValue("/root/main/reclist/recinfo/rectm"); grd_rechistinfo.textmatrix(iRow, 3) = model.getValue("/root/main/reclist/recinfo/recnm"); // ÃʱâÈ­ for(var i=1; i<=grd_rechistinfo.rows; i++) { grd_rechistinfo.cellstyle("background-color", i, 1, i, 3) = "white"; // ȯÀÚº° »ó´ã±â·Ï ¸®½ºÆ® ¼¿ »ö»ó ÃʱâÈ­ (white) } model.setValue("/root/main/reclist/recinfo/cnstcnts", ""); model.refresh(); } /** * @group : * @ver : 2007.08.07 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é»ó´Ü Á¤º¸¼³Á¤ * @param : ±×¸®µå ID (pGrd), Åõ¼®±¸ºÐ(pFlag) * @return : * @--------------------------------------------------- */ function fsetHngBaseInfo(pGrd, pPath){ //**»ó´ÜÁ¤º¸ ÃʱâÈ­**// delPatientInfos(); //È­¸é»ó´ÜÁ¤º¸ »èÁ¦ setGlobalVariable("paminfo", ""); //¿ø¹«Á¤º¸ reset if(getNodesetCount("/root/main/paminfo") > 0) { model.removeNodeset("/root/main/paminfo/list"); } var iRow = pGrd.row; // »ó´Ü ȯÀÚÁ¤º¸ parameter // var sIoflag = model.getValue(pPath + "[" + iRow + "]/histstat" ); //¿ø¹« ÀÔ¿ø¿Ü·¡±¸ºÐ(histstat) var sPid = model.getValue(pPath + "[" + iRow + "]/pid " ); //µî·Ï¹øÈ£ model.removenode ("/root/send/reqdata"); model.makeNode ("/root/send/reqdata"); model.makeValue ("/root/send/reqdata/pid" , sPid ); model.makeValue ("/root/send/reqdata/histstat", sIoflag); model.removeNodeset("/root/temp/gettoplist"); submit("TRMND00103"); var sCretno = model.getValue("/root/temp/gettoplist/gettopinfo/cretno" ); //»ý¼º¹øÈ£ var sSeqno = model.getValue("/root/temp/gettoplist/gettopinfo/seqno" ); //ÀϷùøÈ£ var sInstcd = model.getValue("/root/temp/gettoplist/gettopinfo/instcd" ); //±â°üÄÚµå var sIndd = model.getValue("/root/temp/gettoplist/gettopinfo/indd" ); //ÀÔ¿øÀÏÀÚ var sOrddd = model.getValue("/root/temp/gettoplist/gettopinfo/orddd" ); //Áø·áÀÏÀÚ var sAcptseqno = model.getValue("/root/temp/gettoplist/gettopinfo/acptseqno" ); //µî·ÏÀϷùøÈ£ var sOrgorddd = model.getValue("/root/temp/gettoplist/gettopinfo/orgorddd" ); //¿øÁø·áÀÏÀÚ var sIoflag = model.getValue("/root/temp/gettoplist/gettopinfo/ioflag" ); //ÀÔ¿ø¿Ü·¡±¸ºÐ var sParam; if(sIoflag == "O") { //¿Ü·¡È¯ÀÚÀÏ °æ¿ì(histstat : "O") sParam = (sIoflag + "¢Ë" + sPid + "¢Ë" + sOrddd + "¢Ë" + sCretno + "¢Ë" + sInstcd + "¢Ë" + sAcptseqno + "¢Ë" + sOrgorddd ); } else { //ÀÔ¿ø/ÀÀ±ÞȯÀÚÀÏ °æ¿ì(histstat : "I", "E") sParam = (sIoflag + "¢Ë" + sPid + "¢Ë" + sIndd + "¢Ë" + sCretno + "¢Ë" + sInstcd + "¢Ë" ); } setParameter("condparam", sParam); modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;"); var node = getGlobalVariable("paminfo"); setCSVToNode("/root/main/paminfo", node); }