/** * @desc : È­¸é ÃʱâÈ­ * @id : * @event : * @return : void * @authur : ÀÌÀ±ÁÖ */ function fInitialize() { zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","W","/root/init/wardcdlsit","depthngnm","asc"); zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","D","/root/init/orddeptlist","depthngnm","asc"); zbcfGetCodeList(new Array("A0058"),new Array("/root/init/srchrslt")); addComboItem("cmb_deptcd", "Àüü", "-"); addComboItem("cmb_wardcd", "Àüü", "-"); addComboItem("cmb_srchrslt", "Àüü", "-"); model.setValue("/root/main/cond/orddeptcd","-"); var jobkindcd = getUserInfo("jobkindcd"); if ( jobkindcd.substring(0,2) == "03") { model.setValue("/root/main/cond/orddeptcd",getUserInfo("dutplcecd")); } model.setValue("/root/main/cond/wardcd","-"); model.setValue("/root/main/cond/srchrslt","-"); model.setValue("/root/main/cond/flag","A"); model.refresh(); } function fSearch() { if(submit("TRMMR05010")){ } } function fCnstReq() { var selectedrow = grd_pathistlist.row; if (selectedrow < 1) { return; } var nurreqyn = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/nurreqyn"); var pid = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/pid"); var hngnm = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/hngnm"); var orddd = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/indd"); var cretno = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/cretno"); var ordtype = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/ordtype"); var indschacptstat = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/indschacptstat"); if (indschacptstat != "A") { messageBox("Àç¿øÁßÀÇ È¯ÀÚ°¡ ¾Æ´Ï¶ó ¿äû ºÒ°¡ÇÕ´Ï´Ù","I"); return; } if ( nurreqyn == "Y") { messageBox("ÀÌ¹Ì ¿äûµÇ¾ú½À´Ï´Ù","I"); return; } if( "6" != messageBox(pid+" "+ hngnm+" ¿µ¾ç°Ë»ö°á°ú ¿µ¾çºÒ·®À§Ç豺À¸·Î \n¿µ¾çÁýÁßÁö¿ø´ë»óÀÚ ÀÔ´Ï´Ù.\n NST·Î ÀÇ·ÚÇϽñ⠹ٶø´Ï´Ù.(T.º»¿ø: 5206 / Ä¥°î: 2594)", "Q999")) { return; } model.makeValue("/root/send/savedata/pid",pid); model.makeValue("/root/send/savedata/orddd",orddd); model.makeValue("/root/send/savedata/cretno",cretno); model.makeValue("/root/send/savedata/ordtype",ordtype); model.makeValue("/root/send/savedata/nurreqyn","Y"); if(submit("TXMMR05010")){ grd_pathistlist.valueMatrix(selectedrow, grd_pathistlist.colRef("nstreqyn")) = "Y"; } } function fCnstCnclReq() { var selectedrow = grd_pathistlist.row; if (selectedrow < 1) { return; } var nurreqyn = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/nurreqyn"); var pid = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/pid"); var hngnm = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/hngnm"); var orddd = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/indd"); var cretno = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/cretno"); var ordtype = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/ordtype"); var indschacptstat = model.getValue("/root/main/result/pathistlist["+ selectedrow +"]/indschacptstat"); if (indschacptstat != "A") { messageBox("Àç¿øÁßÀÇ È¯ÀÚ°¡ ¾Æ´Ï¶ó ¿äû Ãë¼Ò ºÒ°¡ÇÕ´Ï´Ù","I"); return; } if ( nurreqyn == "N") { messageBox("ÀÌ¹Ì ¿äû Ãë¼Ò µÇ¾ú½À´Ï´Ù","I"); return; } if( "6" != messageBox(pid+" "+ hngnm+" ¿äû Ãë¼ÒÇϽðڽÀ´Ï±î?", "Q999")) { return; } model.makeValue("/root/send/savedata/pid",pid); model.makeValue("/root/send/savedata/orddd",orddd); model.makeValue("/root/send/savedata/cretno",cretno); model.makeValue("/root/send/savedata/ordtype",ordtype); model.makeValue("/root/send/savedata/nurreqyn","N"); if(submit("TXMMR05010")){ grd_pathistlist.valueMatrix(selectedrow, grd_pathistlist.colRef("nstreqyn")) = "N"; } }