package com.cim.idm.wmsextend.generic.schedule;

import com.cim.idm.framework.exception.ext.FrameworkErrorSignal;
import com.cim.idm.framework.exception.ext.NotFoundSignal;
//import com.cim.idm.mwmsextend.erpinterface.service.ERPInterfaceServiceImpl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class ErpInterface implements Job {
	private static Log log = LogFactory.getLog(ErpInterface.class);	
	
	
	/*
	* Name : execute
	* Desc : This function is execute Erp Interface
	* Author : ZXY IDM Team
	* Date : 2011.03.11
	*/
	public void execute(JobExecutionContext context) throws JobExecutionException 
	{		
		String tableName = (String) context.getJobDetail().getJobDataMap().get("tableName");
		String dataType = (String) context.getJobDetail().getJobDataMap().get("dataType");
		try {
			try {
//				ERPInterfaceServiceImpl.checkErpInterface(dataType, tableName);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		} catch (FrameworkErrorSignal e) {
			log.error(e);
		} catch (NotFoundSignal e) {
		}
	}
}
