/* Àΰø½ÅÀå½Ç ³»È¯ÀÚ¼¼ÆÃ (SMMND03300.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ /** * @group : * @ver : 2009.01.07 * @by : dhkim * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ var instcd = getUserInfo("dutplceinstcd"); grd_mypatlist.fixedcellcheckbox(0, 0) = true; grd_mypatlist.mergeCol(0) = false; grd_mypatlist.mergeCol(2) = false; grd_mypatlist.mergeCol(3) = false; grd_mypatlist.mergeCol(4) = false; grd_mypatlist.mergeCol(5) = false; grd_mypatlist.mergeCol(6) = false; grd_mypatlist.mergeCol(7) = false; grd_mypatlist.mergeCol(8) = false; grd_mypatlist.mergeCol(9) = false; grd_mypatlist.mergeCol(10) = false; model.removeNodeset("/root/main/mypatinfo/mypatlist"); var pFlag = '-'; model.setValue("root/main/cond/userid", getUserId()); model.setValue("root/main/cond/usernm", getUserName()); model.setValue("root/main/cond/wardcd", getUserInfo("dutplcecd")); model.setValue("root/main/cond/shiftflag", pFlag); model.refresh(); fGetPatList(pFlag); setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal"); } // ȯÀÚ¸®½ºÆ® Á¶È¸ function fGetPatList(pFlag){ var today = getCurrentDate(); grd_mypatlist.attribute("height") = "663"; tar_settinginfo.visible = false; grd_mypatlist.rebuildStyle(); model.removenode("/root/send"); model.makeValue("/root/send/wardcd" , model.getValue("/root/main/cond/wardcd")); model.makeValue("/root/send/srchflag" , pFlag); model.makeValue("/root/send/rsrvfromdd", today); model.makeValue("/root/send/rsrvtodd" , today); model.makeValue("/root/send/shiftflag" , model.getValue("/root/main/cond/shiftflag")); submit("TRMND03301"); grd_mypatlist.rebuildStyle(0, 0, grd_mypatlist.rows-1, grd_mypatlist.cols-1); setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal"); } //±×¸®µå ¿ÂŬ¸¯À̺¥Æ® function fOnclick(){ if( grd_mypatlist.col != 0 && isDataCell()) { if (grd_mypatlist.mergeCol(grd_mypatlist.col) == true) { var arrRows = grd_mypatlist.mergeArea(grd_mypatlist.row, grd_mypatlist.col).split(","); var currentMysetting = model.getValue("/root/main/mypatinfo/mypatlist["+arrRows[0]+"]/mysetting") if(currentMysetting == "true" ) { currentMysetting = "false"; } else { currentMysetting = "true"; } for (var i=parseInt(arrRows[0]); i<=parseInt(arrRows[2]); i++) { model.setValue("/root/main/mypatinfo/mypatlist["+i+"]/mysetting", currentMysetting); } } else { var currentMysetting = model.getValue("/root/main/mypatinfo/mypatlist["+grd_mypatlist.selectedRow(0)+"]/mysetting") if (currentMysetting == "true") { model.setValue("/root/main/mypatinfo/mypatlist["+grd_mypatlist.selectedRow(0)+"]/mysetting","false"); } else { model.setValue("/root/main/mypatinfo/mypatlist["+grd_mypatlist.selectedRow(0)+"]/mysetting","true"); } } } grd_mypatlist.rebuildStyle(0, 0, grd_mypatlist.rows-1, grd_mypatlist.cols-1); setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal"); } //³»È¯ÀÚÀúÀå function fSave(){ model.removenode("/root/send"); model.makeValue("/root/send/mypatlist", grd_mypatlist.getUpdateDataAll("u")); if(grd_mypatlist.rows > 1){ if (submit("TXMND03301") ) { grd_mypatlist.clearStatus(); // submit() ¼º°øÇÏ¸é ±×¸®µåÀÇ i,u,d »óÅ Á¦°Å fGetPatList("setting"); // ȯÀÚ¸®½ºÆ® Á¶È¸ model.setValue("/root/main/saveinfo/message", " " + model.getValue("/root/main/settinginfo/settingtime") + "\n ["+ getUserName() + "]°£È£»çÀÇ \n ³»È¯ÀÚ°¡ Setting µÇ¾ú½À´Ï´Ù."); grd_mypatlist.attribute("height") = "405"; tar_settinginfo.visible = true; tar_settinginfo.refresh(); } } else { messageBox("ÀúÀåÇÒ ³»¿ªÀÌ ", "I004") } } //º´µ¿¼±Åú¯°æ½Ã function fWardcdChanged(){ model.removenode("/root/send"); model.makeValue("/root/send/wardcd", model.getValue("root/main/cond/wardcd")); submit("TRMND03302"); grd_mypatlist.rebuildStyle(0, 0, grd_mypatlist.rows-1, grd_mypatlist.cols-1); setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal"); }