/* (SMMNW13700.xrm - JScript ) - Version : Ver.1.00.01 - Desc : 2010.05.18 */ var erdeptcd; /** * @group : * @ver : 2010.05.18 * @by : byday * @type : function * @access : public * @desc : È­¸é ÃÖÃÊ ·Îµù½Ã ó¸® ÇÔ¼ö * @param : * @return : */ function fInit(){ //³¯Â¥ ¼¼ÆÃ var currentDate = getCurrentDate(); model.setValue("/root/main/cond/careinrmdd", currentDate); fSetDt(); ipt_tm1.value = "0700"; ipt_tm2.value = "0659"; submit("TRMNW04705"); // cmb_wardcd.select(0); addComboItem("cmb_roomcd", "Àüü", ""); cmb_wardcd.value = getUserInfo("dutplcecd"); fGetNursHardCdInfo("'002'", getCurrentDate()); // model.getValue("/root/code/codeinfo/codelist/cdgrupid"); erdeptcd = model.getValue("/root/code/codeinfo/codelist/cdid"); } /** * @group : * @ver : 2010.05.18 * @by : byday * @type : function * @access : public * @desc : Á¶È¸ÀÏÀÚ ¼öÁ¤½Ã ó¸® * @param : * @return : */ function fSetDt() { ipt_dd1.value = ipt_careinrmdd.value.toDate().getAddDate(-1).getDateFormat("YYYYMMDD"); ipt_dd2.value = ipt_careinrmdd.value; } /** * @group : * @ver : 2010.05.18 * @by : byday * @type : function * @access : public * @desc : °Ë»ö ¹öư * @param : * @return : */ function fSearch(){ if ( erdeptcd == model.getValue("/root/main/cond/wardcd") ) model.setValue("/root/main/cond/ordtype", "E"); else model.setValue("/root/main/cond/ordtype", "I"); if ( submit("TRMNW13701") ) { for ( var nCnt = grd_list.fixedRows; nCnt <= grd_list.rows; nCnt++ ) { if ( grd_list.valueMatrix(nCnt, grd_list.colRef("pinkyn")) == "Y" ){ grd_list.rowStyle(nCnt, "data", "background-color") = "#FFB6C1"; } else { grd_list.rowStyle(nCnt, "data", "background-color") = "#ffffff"; } } } } /** * @group : * @ver : 2010.05.18 * @by : byday * @type : function * @access : public * @desc : º´µ¿Äڵ忡 ÇØ´çµÇ´Â º´½ÇÁ¤º¸ Á¶È¸ * @param : * @return : */ function fSearchRoomcd(){ //º´½ÇÁ¤º¸ clear model.removenode('/root/init/roomcdgrup'); //¼±ÅÃÇÑ º´µ¿¿¡ ÇØ´çµÇ´Â º´½Ç Á¶È¸ submit("TRMNR01003"); addComboItem("cmb_roomcd", "Àüü", ""); } /** * @group : * @ver : 2010.05.19 * @by : byday * @type : function * @access : public * @desc : °£È£Á¤º¸Á¶»ç±â·Ï ÆË¾÷ * @param : * @return : */ function fCarePopup() { var pinkyn = model.getValue("/root/main/list/list["+grd_list.row+"]/pinkyn"); var indschacptstat = model.getValue("/root/main/list/list["+grd_list.row+"]/indschacptstat"); if ( isNull(pinkyn) || isNull(model.getValue("/root/main/list/list["+grd_list.row+"]/pagecd"))) { } else if ( indschacptstat != "A" ) { messageBox("Àç¿øÈ¯ÀÚ°¡ ¾Æ´Ï¹Ç·Î ±â·ÏÈ®ÀÎÀ» À§Çؼ­´Â ÅëÇÕ±â·ÏÁ¶È¸¸¦ ÀÌ¿ëÇϽñ⠹ٶø´Ï´Ù.", "E"); } else { //--------------------------»ó´Ü¿Ã¸®±â flag -------------------------- // 01 O:¿Ü·¡, I:ÀÔ¿ø±¸ºÐ, T:¼ö¼ú¿¹¾à , E:ÀÀ±Þ // 02 µî·Ï¹øÈ£ // 03 ¼ö¼ú½ÃÀÛÀÏÀÚ // 04 cretno(¾ø´Â °æ¿ì ""·Î ó¸®) // 05 ±â°üÄÚµå // 06 Áýµµ°úºÎ¼­ // 07 ÁýµµÀÇID // 08 ȯÀÚ±¸ºÐ // 09 F -󸮱¸ºÐ ¹«Á¶°Ç F·Î ¼³Á¤ // 10 ¼ö¼ú¿¹¾à¹øÈ£ // 11 ¼ö¼úÀ̷¹øÈ£ // 12 Á¶È¸ÀÏÀÚ 2007-09-13 ¿ÀÁöÈÆ Ãß°¡... //-------------------------------------------------------------------- var ordtype = model.getValue("/root/main/cond/ordtype");//"I"; var ioflag = model.getValue("/root/main/cond/ordtype") ; if ( ioflag == "D" ) ioflag == "I"; ordtype = ioflag; // »ó´Ü ¼¼ÆÃÀ» À§ÇÑ ÆÄ¶ó¹ÌÅÍ setParameter("condparam", ordtype + "¢Ë" + model.getValue("/root/main/list/list["+grd_list.row+"]/pid") + "¢Ë" + model.getValue("/root/main/list/list["+grd_list.row+"]/indd") + "¢Ë" + model.getValue("/root/main/list/list["+grd_list.row+"]/cretno") + "¢Ë" + model.getValue("/root/main/list/list["+grd_list.row+"]/instcd") + "¢Ë" + model.getValue("/root/main/list/list["+grd_list.row+"]/recdd") ); modal("SPMMO08900", 1, "", "", "", "SPMMO08900", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;"); //»ó´Ü ¼¼ÆÃ È­¸é »çÀÌÁî ÀÛ°Ô ¶ç¿ò (id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos) modal(model.getValue("/root/main/list/list["+grd_list.row+"]/pagecd")); } }