?? timesheetwebimpl.java.svn-base
字號(hào):
package com.nsi.components.timesheet;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.nsi.control.exceptions.GeneralFailureException;
import com.nsi.control.exceptions.NsiEventException;
import com.nsi.control.web.ModelManager;
import com.nsi.control.web.ModelUpdateListener;
import com.nsi.util.ValHelper;
/**
* @author Chris Ye, created on Oct 6, 2008
*
* TimeSheetWebImpl
*/
public class TimeSheetWebImpl extends TimeSheetModel implements ModelUpdateListener
{
private static Log log = LogFactory.getLog(TimeSheetWebImpl.class);
/**
* constructor of TimeSheetWebImpl
* @param mm
*/
public TimeSheetWebImpl(ModelManager mm)
{
mm.addListener("com.nsi.components.timesheet.TsBackHandler", this);
}
public void performUpdate() throws GeneralFailureException
{
log.debug("performUpdate() -- invoked");
String resourceid = getResourceid();
String startweek = getStartweek();
String timesheetid = getTimesheetid();
try
{
TimeSheetSrc src = new TimeSheetSrc();
if( ValHelper.getInstance().isNotNullAndEmpty(timesheetid))
{
if( src.isExistTimeSheetbyTSID(timesheetid))
{
src.load();
copy( src.getInfo());
}
}
else
{
if( src.isExistTimeSheetbyRSIDandWKBGN(resourceid, startweek) )
{
src.load();
copy( src.getInfo());
}
}
}
catch(NsiEventException nsievex)
{
log.error("performUpdate() -- caught NsiEventException : ", nsievex );
throw new GeneralFailureException( "performUpdate() -- caught NsiEventException : ", nsievex) ;
}
catch(GeneralFailureException gex)
{
log.error("performUpdate() -- caught GeneralFailureException : ", gex );
throw gex;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -