/** * @desc : È­¸éÃʱâÈ­ * * @param : * @return : * @author : °æºÏ´ëÇб³ * @--------------------------------------------------- */ function fInit(){ model.setValue("/root/send/reqdata/bsddfrom", getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); model.setValue("/root/send/reqdata/bsddto", getCurrentDate()); model.refresh(); grd_monthlyprofit.mergecells = "bycol"; grd_monthlyprofit.mergecol(1) = true; grd_monthlyprofit.mergecol(2) = false; grd_monthlyprofit.mergecol(3) = false; grd_monthlyprofit.mergecol(4) = false; grd_monthlyprofit.mergecol(5) = false; grd_monthlyprofit.mergecol(6) = false; grd_monthlyprofit.mergecol(7) = false; grd_monthlyprofit.mergecol(8) = false; grd_monthlyprofit.mergecol(9) = false; grd_monthlyprofit.mergecol(10) = false; grd_monthlyprofit.mergecol(11) = false; } function fSearch(){ if (submit("TRRIS00701")) { grd_monthlyprofit.rebuildStyle(); var iCnt = getNodesetCount(grd_monthlyprofit.nodeset); //alert(grd_monthlyprofit.rows +","+ grd_monthlyprofit.fixedrows); for (var i = grd_monthlyprofit.fixedrows; i <= grd_monthlyprofit.rows; i++) { if (grd_monthlyprofit.valueMatrix(i, grd_monthlyprofit.colref("mon")) == "¼Ò°è") { grd_monthlyprofit.cellStyle("background-color", i, 0, i, 11) = "#FFFFDA"; } if (grd_monthlyprofit.valueMatrix(i, grd_monthlyprofit.colref("mon")) == "ÇÕ°è") { grd_monthlyprofit.cellStyle("background-color", i, 0, i, 11) = "#FFBBFF"; } } } }