123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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);
- }
|