/* ¼ö¼úÅë°è - ¹æ ±¸ºÐº° (ÀÏÀÏ/Áß¾Ó) ¼ö¼ú °Ç¼ö - Version : 1) : Ver.1.00.01 - Create : 2012.02.27 KJS */ var scmonth = ""; //È­¸éÃʱâÈ­ function fInitialize(){ var currentdate = getCurrentDate(); scmonth = currentdate.substr(0,6); model.setValue("/root/cond/scmonth", scmonth); model.refresh(); } // ÇöȲ³»¿ª °¡Á®¿À±â function fSearch() { //model.makeValue("/root/cond/gbn", 1); submit("TRMNP20101"); model.refresh(); grd_oplist5.mergeCells = "bycol"; grd_oplist5.mergeCol(0) = true; grd_oplist5.mergeCol(1) = false; grd_oplist5.mergeCol(2) = false; grd_oplist5.merge(); } //ÀÌÀü ³â¹öư Ŭ¸¯½Ã - Àü³âµµ+¿ù·Î ¼¼ÆÃ function fClkBfYear(srchym){ var yyear = srchym.substring(0, 4); var mmont = srchym.substring(4, 6); yyear--; scmonth = yyear + mmont; model.setValue('/root/cond/scmonth', scmonth); model.refresh(); } //´ÙÀ½ ³â¹öư Ŭ¸¯½Ã - ´ÙÀ½³âµµ+¿ù·Î ¼¼ÆÃ function fClkAfYear(scmonth){ var yyear = scmonth.substring(0, 4); var mmont = scmonth.substring(4, 6); yyear++; scmonth = yyear + mmont; model.setValue('/root/cond/scmonth', scmonth); model.refresh(); } //ÀÌÀü ´Þ¹öư Ŭ¸¯½Ã - ³âµµ+Àü¿ù ¼¼ÆÃ function fClkBfMonth(scmonth){ var yyear = scmonth.substring(0, 4); var mmont = scmonth.substring(4, 6); mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM'); if(mmont == '12'){ yyear--; } scmonth = yyear + mmont; model.setValue('/root/cond/scmonth', scmonth); model.refresh(); } //´ÙÀ½ ´Þ¹öư Ŭ¸¯½Ã - ³âµµ+´ÙÀ½¿ù ¼¼ÆÃ function fClkAfMonth(scmonth){ var yyear = scmonth.substring(0, 4); var mmont = scmonth.substring(4, 6); mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM'); if(mmont == '01'){ yyear++; } scmonth = yyear + mmont; model.setValue('/root/cond/scmonth', scmonth); model.refresh(); }