/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì ´Ü¹®¸Þ½ÃÁöÁ¶È¸ (ZMS00300.js) - Version : 1) : Ver.1.00.00 - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : °øÅëÄڵ彺ũ¸³Æ®È£Ãâ * @return : * @--------------------------------------------------- */ function fInitcomcd() { // °øÅëÄÚµå ½ºÅ©¸³Æ® È£Ãâ zbcfGetCodeList( new Array("Z0008"), new Array("/root/init/comcd")); zbcfGetCodeList( new Array("Z0010"), new Array("/root/init/comcd")); fInsertInstance("Z0008", "Àüü", "-"); } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃʱâÈ­ * @return : * @--------------------------------------------------- */ function fInitialize() { model.removeNodeset("/root/main/list/msglist"); model.resetInstanceNode("/root/send"); model.setValue("/root/send/trsmreqdtfrom", getCurrentDate()); // Ãâ·Â¿äûÀÏÀÚ¿¡ default·Î ´çÀϳ¯ÀÚ setting model.setValue("/root/send/trsmreqdtto", getCurrentDate()); // Ãâ·Â¿äûÀÏÀÚ¿¡ default·Î ´çÀϳ¯ÀÚ setting grd_msglist.mergeCells = "bycol"; grd_msglist.mergeCol(0) = true; grd_msglist.mergeCol(1) = true; grd_msglist.mergeCol(2) = true; grd_msglist.mergeCol(3) = true; grd_msglist.mergeCol(4) = false; grd_msglist.mergeCol(5) = false; grd_msglist.mergeCol(6) = false; grd_msglist.mergeCol(7) = false; grd_msglist.mergeCol(8) = false; grd_msglist.merge(); model.refresh(); } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±×¸®µåÀÇ µ¥ÀÌÅ͸¦ ÇÏ´Ü¿¡ ¹Ý¿µ * @return : * @--------------------------------------------------- */ function fFetchFromGrid() { var cur_row = grd_msglist.row; var temp; var formatID; var is_selected; if ( cur_row > 0 ) { /* is_selected = model.getValue("/root/main/list/msglist["+cur_row+"]/isselected"); if(is_selected == "true") { //alert("¾÷µ¥ÀÌÆ®: "+is_selected); grd_msglist.rowStatus(cur_row) = 2; } else { //alert(is_selected); grd_msglist.removeStatus(cur_row, 2); } alert(is_selected); */ model.copyNode("/root/main/item","/root/main/list/msglist["+cur_row+"]"); model.refresh(); } } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁöÁ¤µÈ ÀνºÅϽº¸¦ »ðÀÔ * @return : * @--------------------------------------------------- */ function fInsertInstance(cdGroupID, codeName, codeID) { //model.refresh(); model.copyNode("/root/hidden/comcd","/root/init/comcd"); var nodelist = instance1.selectNodes("/root/hidden/comcd/"+cdGroupID); var newNode = instance1.createNode("element", cdGroupID, ""); var childnode1 = instance1.createNode("element", "cdnm", ""); var childnode2 = instance1.createNode("element", "cdid", ""); newNode.appendChild(childnode1); newNode.appendChild(childnode2); if (nodelist.length > 0) { var currNode = root.hidden.comcd.insertBefore(newNode, nodelist.item(0)); model.setValue("/root/hidden/comcd/"+cdGroupID+"[1]/cdnm", codeName); model.setValue("/root/hidden/comcd/"+cdGroupID+"[1]/cdid", codeID); } } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : Áï½ÃÀü¼Û <-> ¿¹¾àÀü¼Û »óÅ º¯°æ * @return : * @--------------------------------------------------- */ function fChangeState() { var chk = model.getValue("/root/send/rsrvyn"); if(chk=="0") { ipt_trsmreqdt.disabled = true; } else { ipt_trsmreqdt.disabled = false; } } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ´Ü¹®¸Þ½ÃÁö Àü¼Û ¿¹¾àÀ» Ãë¼ÒÇÏ´Â ¸Þ¼Òµå * @return : * @--------------------------------------------------- */ function fCancelReservedMsg() { var cur_row = grd_msglist.row; var index; var rsrvyn; var msgstate; var yn; var s_cnt=0; if (cur_row == -1) { messageBox("Ãë¼ÒÇÒ ¸Þ½ÃÁö°¡ ¼±ÅõÇÁö ", "E007"); return; } for ( var i= 0; i < grd_msglist.selectedRows; i++) { index = grd_msglist.selectedrow(i); rsrvyn = model.getValue("/root/main/list/msglist["+ index +"]/rsrvyn"); msgstate = model.getValue("/root/main/list/msglist["+ index +"]/msgstate"); if (rsrvyn=="1" && msgstate=="ZM00") { grd_msglist.addStatus(index,"update"); s_cnt++; } } if (s_cnt == 0) { messageBox("¼±ÅÃµÈ ÇàÁß¿¡¼­ ¿¹¾àÃë¼Ò ´ë»óÀÌ Æ÷ÇÔµÇÁö", "E007"); return; } yn = messageBox("ÃÑ "+ s_cnt +" °ÇÀÇ ´Ü¹®¸Þ½ÃÁö ¿¹¾àÀü¼ÛÀ» Ãë¼Ò\n", "S001"); if (yn=="2" || yn=="7") // Ãë¼Ò¸¦ ´©¸¥°æ¿ì { grd_msglist.clearStatus(); return; } else if (yn=="6") // ¿¹¸¦ ´©¸¥°æ¿ì { // ¿¹¾à Ãë¼Ò ´ë»ó¸¸ °ñ¶ó¼­ »óÅ º¯°æÇÑ´Ù.. for (var i= 0; i < grd_msglist.selectedRows; i++) { index = grd_msglist.selectedrow(i); rsrvyn = model.getValue("/root/main/list/msglist["+ index +"]/rsrvyn"); msgstate = model.getValue("/root/main/list/msglist["+ index +"]/msgstate"); if (rsrvyn=="1" && msgstate=="ZM00") { model.setValue("/root/main/list/msglist["+ index +"]/msgstate", 'ZM04'); } } model.setValue("/root/send/msglist", grd_msglist.getUpdateData()); submit("TXZMS00301"); } }