44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using Kingdee.BOS.Contracts;
|
|
using Kingdee.BOS.Core;
|
|
using Kingdee.BOS.ServiceHelper;
|
|
using Kingdee.BOS.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Pilot.Report.Exploitation.Receivables
|
|
{
|
|
[Description("定时刷新应收款报表的数据")]
|
|
[HotUpdate]
|
|
public class ReceivablesAutoExecute : IScheduleService
|
|
{
|
|
public void Run(Kingdee.BOS.Context ctx, Schedule schedule)
|
|
{
|
|
try
|
|
{
|
|
DBServiceHelper.Execute(ctx, "/*dialect*/ EXEC PR_YingShouMingXi_yuyubo");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw new Exception("PR_YingShouMingXi_yuyubo:"+ex.Message);
|
|
}
|
|
finally
|
|
{
|
|
try
|
|
{
|
|
DBServiceHelper.Execute(ctx, "/*dialect*/ EXEC ZPR_SalesRportShareData");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw new Exception("ZPR_SalesRportShareData:"+ex.Message);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|