/** * @desc : È­¸éÃʱâÈ­ * * @param : * @return : * @author : °æºÏ´ëÇб³ * @--------------------------------------------------- */ function fIni(){ var screen_kind = parent.window.javascript.fGetMenuParam(); var currentdate = getCurrentDate(); model.setValue("/root/send/cent/ioflag","-"); model.setValue("/root/send/cent/termflag","1"); model.setValue("/root/send/cent/inputday", currentdate); model.setValue("/root/send/cent/inputday2", currentdate); zbcfGetCodeList(new Array("M381"), new Array("/root/init/status")); fSelectGubun(screen_kind); grd_1.frozenCols = grd_1.colRef("age"); model.refresh(); } function fGetIndxPat(){ var screen_kind = parent.window.javascript.fGetMenuParam(); model.makeValue("/root/send/reqdata/recflag",screen_kind); model.makeValue("/root/send/reqdata/pid",model.getValue("/root/send/cent/pid")); model.makeValue("/root/send/reqdata/ioflag",model.getValue("/root/send/cent/ioflag")); model.makeValue("/root/send/reqdata/termflag",model.getValue("/root/send/cent/termflag")); model.makeValue("/root/send/reqdata/inputday",model.getValue("/root/send/cent/inputday")); model.makeValue("/root/send/reqdata/inputday2",model.getValue("/root/send/cent/inputday2")); model.makeValue("/root/send/reqdata/cpyn",model.getValue("/root/send/cent/cpyn")); model.makeValue("/root/send/reqdata/cdstyn",model.getValue("/root/send/cent/cdstyn")); model.makeValue("/root/send/reqdata/fuyn",model.getValue("/root/send/cent/fuyn")); submit("TRMRH00110"); model.refresh(); fSelectGubun(screen_kind); } function fSelectPat() { var selectedRow = grd_1.row; var pid = model.getValue("/root/main/patinfo["+selectedRow+"]/pid"); var orddd = model.getValue("/root/main/patinfo["+selectedRow+"]/orddd"); var dschdd = model.getValue("/root/main/patinfo["+selectedRow+"]/dschdd"); var cretno = model.getValue("/root/main/patinfo["+selectedRow+"]/cretno"); var orddrid = model.getValue("/root/main/patinfo["+selectedRow+"]/orddrid"); var orddeptcd = model.getValue("/root/main/patinfo["+selectedRow+"]/orddeptcd"); var ioflag = model.getValue("/root/main/patinfo["+selectedRow+"]/ioflag"); var patnm = model.getValue("/root/main/patinfo["+selectedRow+"]/hngnm"); var age = model.getValue("/root/main/patinfo["+selectedRow+"]/age"); var sex = model.getValue("/root/main/patinfo["+selectedRow+"]/sex"); var juso = model.getValue("/root/main/patinfo["+selectedRow+"]/juso"); var rrgstno = model.getValue("/root/main/patinfo["+selectedRow+"]/rrgstno"); var hometel = model.getValue("/root/main/patinfo["+selectedRow+"]/hometel"); var mpphontel = model.getValue("/root/main/patinfo["+selectedRow+"]/mpphontel"); var diag = model.getValue("/root/main/patinfo["+selectedRow+"]/diag"); var status = model.getValue("/root/main/patinfo["+selectedRow+"]/status"); var futel = model.getValue("/root/main/patinfo["+selectedRow+"]/futel"); model.setValue("/root/main/dpatinfo/pid",pid); model.setValue("/root/main/dpatinfo/orddd",orddd); model.setValue("/root/main/dpatinfo/cretno",cretno); model.setValue("/root/main/dpatinfo/dschdd",dschdd); model.setValue("/root/main/dpatinfo/age",age); model.setValue("/root/main/dpatinfo/sex",sex); model.setValue("/root/main/dpatinfo/juso",juso); model.setValue("/root/main/dpatinfo/rrgstno",rrgstno); model.setValue("/root/main/dpatinfo/hngnm",patnm); model.setValue("/root/main/dpatinfo/hometel",hometel); model.setValue("/root/main/dpatinfo/mpphontel",mpphontel); model.setValue("/root/main/dpatinfo/diag",diag); model.setValue("/root/main/dpatinfo/futel",futel); model.setValue("/root/main/dpatinfo/status",status); model.refresh(); var recflag = model.getValue("/root/send/reqdata/recflag"); var patinfo = pid+"¢Ë"+orddd+"¢Ë"+cretno+"¢Ë"+orddrid+"¢Ë"+ioflag+"¢Ë"+orddeptcd+"¢Ë"+patnm+"¢Ë"+recflag; opener.window.javascript.fSelectPat(patinfo); } /* Ç׸ñ ±¸ºÐ */ function fSelectGubun(screen_kind) { if ( screen_kind == "A") { grd_1.colHidden(grd_1.colRef("cpyn")) = false; model.toggle("case1"); } else if ( screen_kind == "B" || screen_kind == "C" ) { grd_1.colHidden(grd_1.colRef("cdstyn")) = false; model.toggle("case2"); } else if ( screen_kind == "D" || screen_kind == "E") { grd_1.colHidden(grd_1.colRef("fuyn")) = false; model.toggle("case3"); } } function fsaveGridToExcel(grdObj){ var sTitle = "ÁöÇ¥°ü¸® ȯÀÚ¸®½ºÆ®"; var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); if (fileName != ""){ grdObj.saveExcel(fileName, sTitle, true, true, "", "", true); } } function fSave(status){ var recflag = parent.window.javascript.fGetMenuParam(); var pid = model.getValue("/root/main/dpatinfo/pid"); var orddd = model.getValue("/root/main/dpatinfo/orddd"); var cretno = model.getValue("/root/main/dpatinfo/cretno"); var futel = model.getValue("/root/main/dpatinfo/futel"); model.makeValue("/root/send/reqdata/recflag",recflag); model.makeValue("/root/send/reqdata/pid",pid); model.makeValue("/root/send/reqdata/orddd",orddd); model.makeValue("/root/send/reqdata/cretno",cretno); model.makeValue("/root/send/reqdata/status",status); model.makeValue("/root/send/reqdata/futel",futel); submit("TXMRH00110"); var indxcnt = model.getValue("/root/hidden/indxcnt/cnt") ; if (indxcnt == 1) { messageBox("Á¤»óÀûÀ¸·Î 󸮵Ǿú½À´Ï´Ù","I099"); } }