/* º¹¸·Åõ¼® History °ü¸®(SMMND02200.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ //** Àü¿ªº¯¼ö **// /** * @group : * @ver : 2007.06.15 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fDone(){ //**»ó´ÜÁ¤º¸ ÃʱâÈ­**// delPatientInfos(); //È­¸é»ó´ÜÁ¤º¸ »èÁ¦ setGlobalVariable("paminfo", ""); //¿ø¹«Á¤º¸ reset //**±×¸®µå ÃʱâÈ­**// model.removeNodeset("/root/main/pdmatnpatlist"); // º¹¸·Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® model.removeNodeset("/root/main/pdhistlist"); // º¹¸·Åõ¼® History ¸®½ºÆ® // Á¶È¸ÀÏÀÚ ¼³Á¤ model.makeValue("/root/main/condition/srchtodd", getCurrentDate()); // ÇöÀçÀÏÀÚ model.makeValue("/root/main/condition/srchfromdd", getDateCalc(getCurrentDate(), 365)); // 365ÀÏ ÀÌÀü ÀÏÀÚ model.refresh(); //**°øÅëÄÚµå °¡Á®¿À±â**// zbcfGetCodeList( new Array ( "M0130" // APDÁ¾·ù , "M0131" // º¹¸·Åõ¼®¾× ȸ»ç¸í , "M0132" // º¹¸·Åõ¼®¾× ) , new Array ( "/root/init/M0130list" // APDÁ¾·ù , "/root/init/M0131list" // º¹¸·Åõ¼®¾× ȸ»ç¸í , "/root/init/M0132list" // º¹¸·Åõ¼®¾× ) ); } /** * @group : * @ver : 2007.06.15 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : º¹¸·Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchPDMatnPatList(){ 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/pdmatnpatinfo"); // º¹¸·Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® ÃʱâÈ­ model.removeNodeset("/root/main/pdhistlist/pdhistinfo"); // º¹¸·Åõ¼® History ¸®½ºÆ® ÃʱâÈ­ model.setValue("/root/main/condition/selpid" ,""); submit("TRMND02201"); } /** * @group : * @ver : 2007.06.15 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼±ÅÃÇÑ È¯ÀÚÁ¤º¸ ¼³Á¤ (º¹¸·Åõ¼® À¯ÁöȯÀÚ ¸®½ºÆ® ´õºíŬ¸¯ ½Ã) * @param : * @return : * @--------------------------------------------------- */ function fGetPatInfo(){ var iRow = grd_pdmatnpatinfo.row; var sSelPid = grd_pdmatnpatinfo.textmatrix(iRow, 1); // µî·Ï¹øÈ£ model.setValue("/root/main/condition/selpid", sSelPid); // Á¶È¸Á¶°Ç ÃʱâÈ­ model.setValue("/root/main/condition/srchflag", 1); // Á¶È¸±¸ºÐ Default¼³Á¤ (1:Àüü) model.makeValue("/root/main/condition/srchtodd", getCurrentDate()); // Á¶È¸ÀÏÀÚ (ÇöÀçÀÏÀÚ) model.makeValue("/root/main/condition/srchfromdd", getDateCalc(getCurrentDate(), 365)); // Á¶È¸ÀÏÀÚ (365ÀÏ ÀÌÀü ÀÏÀÚ) // À¯ÁöȯÀÚ ¸®½ºÆ® ¼¿ »ö»ó ÃʱâÈ­ (white) for(var i=1; i<=grd_pdmatnpatinfo.rows; i++) { grd_pdmatnpatinfo.cellstyle("background-color", i, 1, i, 4) = "white"; } // ¼±Åà Çà ¼¿ »ö»ó ÁöÁ¤ #ffd9ff grd_pdmatnpatinfo.cellstyle("background-color", iRow, 1, iRow, 4) = "red"; model.refresh(); } /** * @group : * @ver : 2007.06.15 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : º¹¸·Åõ¼® Histoty ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchPDHistList(){ // Á¶È¸±â°£ üũ if(model.getValue("/root/main/condition/srchfromdd") > model.getValue("/root/main/condition/srchtodd")) { messageBox("¿¹¾àÀÏÀÚ ±â°£ÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.", "E"); var sCurrentDate = getCurrentDate(); // ÇöÀçÀÏÀÚ model.setValue("/root/main/condition/srchfromdd", getDateCalc(sCurrentDate, 365)); model.setValue("/root/main/condition/srchtodd" , sCurrentDate); model.refresh(); } model.removenode("/root/send"); model.makeNode("/root/send"); model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/condition/selpid")); model.makeValue("/root/send/reqdata/srchfromdd", model.getValue("/root/main/condition/srchfromdd")); model.makeValue("/root/send/reqdata/srchtodd", model.getValue("/root/main/condition/srchtodd")); model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag")); model.removeNodeset("/root/main/pdhistlist/pdhistinfo"); // À¯ÁöȯÀÚ ¸®½ºÆ® ¼¿ »ö»ó ÃʱâÈ­ (white) for(var i=1; i<=grd_pdmatnpatinfo.rows; i++) { grd_pdmatnpatinfo.cellstyle("background-color", i, 1, i, 4) = "white"; } submit("TRMND02202"); } function fUseridPopup(pPath, pNodeID, pNodeNM, pNodeRrgsNo1, pNodeRrgsNo2, pDOC) { model.removeNodeset("/root/properties/parameters/SendData/SendDatavalue"); modal("SMMNE03700", 1, event.screenX-100, event.screenY-100, "SMMNE03700", pPath+pNodeID, "/root/init/searchitem"); var pParam = model.getValue("/root/properties/parameters/SendData/SendDatavalue"); var pParamValue = pParam.split("|"); model.setValue(pPath+pNodeID, pParamValue[0]); ipt_pid.refresh(); }