/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì ´Ü¹®¸Þ½ÃÁöÇü½Ä°ü¸® (ZMS00200.js) - Version : 1) : Ver.1.00.00 - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : °øÅëÄڵ彺ũ¸³Æ®È£Ãâ * @return : * @--------------------------------------------------- */ function fInitcomcd() { // °øÅëÄÚµå ½ºÅ©¸³Æ® È£Ãâ //zbcfGetKindCodeList( new Array("Z0001Z000901"), new Array("/root/init/comcd")); zbcfGetKindCodeList(new Array("Z0001"), new Array("Z0009"), new Array("/root/init/comcd"), false, new Array("cdnm"), new Array("asc")); fInsertInstance("Z0001Z0009", "Àüü", "-"); } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃʱâÈ­ * @return : * @--------------------------------------------------- */ function fInitialize() { model.removeNodeset("/root/main/list/msgfrmtlist"); model.resetInstanceNode("/root/send"); model.resetInstanceNode("/root/main/item"); // °øÅëÄÚµå ½ºÅ©¸³Æ® È£Ãâ //zbcfGetCodeList( new Array("Z0001Z000901"), new Array("/root/init/comcd")); model.refresh(); cmb_bizabbr.select(0); } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±×¸®µå¿¡ ÀÖ´Â µ¥ÀÌÅ͸¦ ÇÏ´ÜÀ¸·Î ¿Å°Ü¿È * @return : * @--------------------------------------------------- */ function fUpdateGrid() { var cur_row = grd_msgformatlist.row; var temp; var formatID; if ( cur_row > 0 ) { model.copyNode("/root/main/item","/root/main/list/msgfrmtlist["+cur_row+"]"); formatID = model.getValue("/root/main/list/msgfrmtlist["+cur_row+"]/msgfrmtid"); temp = formatID.split("."); model.setValue("/root/hidden/serial", temp[2]); model.refresh(); } } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±×¸®µåÀÇ µ¥ÀÌÅ͸¦ ÇÏ´Ü¿¡ ¹Ý¿µ * @return : * @--------------------------------------------------- */ function fFetchFromGrid() { var cur_row = grd_msgformatlist.row; var temp; var formatID; if ( cur_row > 0 ) { model.copyNode("/root/main/item","/root/main/list/msgfrmtlist["+cur_row+"]"); formatID = model.getValue("/root/main/list/msgfrmtlist["+cur_row+"]/msgfrmtid"); temp = formatID.split("."); model.setValue("/root/hidden/serial", temp[2]); model.refresh(); } } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÇÏ´ÜÆû¿¡ ÀÔ·ÂµÈ °ªµéÀ» üũÇÑ´Ù. * @return : * @--------------------------------------------------- */ function fCheckFormField() { // °¢ Çʵ尪À» üũÇÑ´Ù. if(model.getValue("/root/main/item/bizabbr").getTrim()=="") { messageBox("¾÷¹«½Ã½ºÅÛ ", "I003"); model.setFocus("cmb_syscdinput"); return false; } if(model.getValue("/root/hidden/serial").getTrim()=="") { messageBox("¸Þ½ÃÁöÇü½Ä¹øÈ£´Â ", "I003"); model.setFocus("ipt_serial"); return false; } if(model.getValue("/root/main/item/replytelno").getTrim()=="") { messageBox("ȸ½Å¹øÈ£´Â ", "I003"); model.setFocus("ipt_replytelno"); return false; } if(model.getValue("/root/main/item/rsrvtime").getTrim()=="") { messageBox("¿¹¾à¹ß¼Û½Ã°£Àº ", "I003"); model.setFocus("ipt_rsrvtime"); return false; } if(model.getValue("/root/main/item/rsrvtime").length != 4) { messageBox("¿¹¾à¹ß¼Û½Ã°£ÀÌ mm:ss Çü½Ä°ú ", "E004"); model.setFocus("ipt_rsrvtime"); return false; } if(model.getValue("/root/main/item/msgfrmtcnts").getTrim()=="") { messageBox("¸Þ½ÃÁöÇü½ÄÀº ", "I003"); model.setFocus("tar_msgformat"); return false; } return true; } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¾÷¹«½Ã½ºÅÛ¸í°ú ÀϷùøÈ£¸¦ Á¶ÇÕÇÏ¿© Á¶È¸Á¶°Ç¿¡ Æ÷Ç﵃ ¸Þ½ÃÁöÇü½ÄÀ» ¸¸µç´Ù. * @return : * @--------------------------------------------------- */ function fSetMsgFormatID() { var bizabbr = model.getValue("/root/main/item/bizabbr"); var serial = model.getValue("/root/hidden/serial"); switch(serial.length) { case 1 : serial = "000"+serial; break case 2 : serial = "00"+serial; break case 3 : serial = "0"+serial; break default: } model.setValue("/root/hidden/serial", serial); model.setValue("/root/main/item/msgfrmtid", "sms."+bizabbr+"."+serial); model.refresh(); } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¾÷¹«½Ã½ºÅÛ¸í°ú ÀϷùøÈ£¸¦ Á¶ÇÕÇÏ¿© ¸Þ½ÃÁöÇü½ÄÀ» ¸¸µç´Ù. * @return : * @--------------------------------------------------- */ function fChkBizCombo() { var bizabbr = model.getValue("/root/send/bizabbr"); var serial = model.getValue("/root/send/serial"); if (bizabbr == "-") { model.setValue("/root/send/msgfrmtid", ""); model.setValue("/root/send/serial", ""); ipt_msgfrmtno.disabled = true; model.refresh(); return; } else { ipt_msgfrmtno.disabled = false; } if(serial.getTrim()=="") model.setValue("/root/send/msgfrmtid", ""); else model.setValue("/root/send/msgfrmtid", "sms."+bizabbr+"."+serial); model.refresh(); } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¾÷¹«½Ã½ºÅÛ¸í°ú ÀϷùøÈ£¸¦ Á¶ÇÕÇÏ¿© ¸Þ½ÃÁöÇü½ÄÀ» ¸¸µç´Ù. * @return : * @--------------------------------------------------- */ function fChkMsgFormatID() { var bizabbr = model.getValue("/root/send/bizabbr"); var serial = model.getValue("/root/send/serial"); if(bizabbr.getTrim()=="-") { messageBox("¾÷¹«½Ã½ºÅÛÀ»", "C002"); model.setFocus("cmb_bizabbr"); return; } if(serial.getTrim()=="") model.setValue("/root/send/msgfrmtid", ""); else model.setValue("/root/send/msgfrmtid", "sms."+bizabbr+"."+serial); 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", "cdengabbrnm", ""); 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]/cdengabbrnm", codeID); } } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃʱâÈ­ * @return : * @--------------------------------------------------- */ function fChkFormatID() { var cond = model.getValue("/root/main/item/msgfrmtid"); model.setValue("/root/send/checkcond", cond); if(submit("TXZMS00202")) { messageBox(model.getValue("/root/hidden/msg/info/contents"), "I999"); } /* model.resetInstanceNode("/root/send"); model.resetInstanceNode("/root/main/item"); fInsertInstance("bizabbr", "Àüü", "-"); model.refresh(); cmb_bizabbr.select(0); */ } /** * @group : * @ver : 2006.12.20 * @by : ÀÌ»óÁØ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±×¸®µåµ¥ÀÌÅÍ ÀúÀå * @return : * @--------------------------------------------------- */ function fSaveGrid() { model.setValue("/root/send/msgfrmtlist",grd_msgformatlist.getUpdateData()); if ( submit("TXZMS00201") ) { grd_msgformatlist.clearStatus(); // submit() ¼º°øÇÏ¸é ±×¸®µåÀÇ i,u,d »óÅ Á¦°Å } }