function fSearch() { if ( model.getValue("/root/send/frdd") == "" ) { alert("½ÃÀÛÀÏÀ» ÀÔ·Â ÇØ ÁÖ¼¼¿ä."); model.setFocus("ipt_dsch1"); return; } if ( model.getValue("/root/send/todd") == "" ) { alert("Á¾·áÀÏÀ» ÀÔ·Â ÇØ ÁÖ¼¼¿ä."); model.setFocus("ipt_dsch2"); return; } var srhflag = model.getValue("/root/send/srhflag"); if ( srhflag == "PRF" ) { submit("TRMQS00102"); model.copyNode("/root/main/statcnt", "/root/main/prflist/statcnt"); grd_prfdeptlist.subtotalPosition = "above"; grd_prfdeptlist.subtotal("average", -1, 1, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_prfdeptlist.subtotal("average", -1, 2, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_prfdeptlist.subtotal("average", -1, 3, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_prfdeptlist.subtotal("average", -1, 4, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_prfdeptlist.subtotal("average", -1, 5, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_prfdeptlist.subtotal("sum", -1, 6, "#,###", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); } else if ( srhflag == "RESI" ) { submit("TRMQS00103"); grd_resideptlist.subtotalPosition = "above"; grd_resideptlist.subtotal("average", -1, 1, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_resideptlist.subtotal("average", -1, 2, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_resideptlist.subtotal("average", -1, 3, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_resideptlist.subtotal("average", -1, 4, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_resideptlist.subtotal("average", -1, 5, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_resideptlist.subtotal("average", -1, 6, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_resideptlist.subtotal("sum", -1, 7, "#,###", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); } else if ( srhflag == "NURS" ) { submit("TRMQS00104"); grd_nurswardlist.subtotalPosition = "above"; grd_nurswardlist.subtotal("average", -1, 1, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("average", -1, 2, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("average", -1, 3, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("average", -1, 4, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("average", -1, 5, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("average", -1, 6, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("average", -1, 7, "#,###.9", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); grd_nurswardlist.subtotal("sum", -1, 8, "#,###", "background-color:#7ca8d9; font-weight:bold; ", 0, "Àüü"); } model.refresh(); //¿Ö Çѹø¿¡ °è»êÀÌ ¾ÈµÇ´Â °ÇÁö ÂÁ. opt_ptg.refresh(); model.recalculate(); opt_ptg.refresh(); model.recalculate(); } function fSetData( ptgflag, srhflag, nodeset1, nodeset2) { model.removeNodeset(nodeset1); if ( nodeset2 != null ) { model.removeNodeset(nodeset2); } model.makeValue("/root/send/ptgflag", ptgflag); model.makeValue("/root/send/srhflag", srhflag); }