using System; using System.Collections.Generic; using System.Linq; using System.Text; using Quartz; namespace QMTask.DataDeal { /// /// MilkRun中间库写入 /// public class MilkRunWriteDataJob : IJob { /// /// 执行方法 /// /// public virtual void Execute(IJobExecutionContext context) { try { //调用服务端方法 QMAPP.ServicesAgent.ServiceAgent sa = new ServiceUtil().GetServiceAgent(); Object obj = sa.InvokeServiceFunction("MilkRunInterfaceBLL_WriteData"); context.Result = "true"; } catch (Exception ex) { context.Result = "false"; throw; } } } }