81 lines
3.3 KiB
C#
81 lines
3.3 KiB
C#
using HL_FristAidPlatform_Bussiness;
|
||
using HL_FristAidPlatform_Help;
|
||
using HL_FristAidPlatform_Models;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
|
||
namespace HL_FristAidPlatform_Service
|
||
{
|
||
/// <summary>
|
||
///
|
||
/// </summary>
|
||
public class TimedJob //: Job
|
||
{
|
||
/// <summary>
|
||
///
|
||
/// </summary>
|
||
public TimedJob() { }
|
||
|
||
private T_Service_PatientBLL bll = new T_Service_PatientBLL();
|
||
private T_Service_Apoplexy_PatientsTimeAxisBLL apoplexybLL = new T_Service_Apoplexy_PatientsTimeAxisBLL();
|
||
|
||
|
||
//[Invoke(Begin = "2022-01-04 21:01", Interval = 1000 * 60 * 5, SkipWhileExecuting = true)]
|
||
//public void PushContent()
|
||
//{
|
||
// //判断当前时间是否在工作时间段内
|
||
// string _strWorkingDayAM = "03:00";
|
||
// string _strWorkingDayPM = "21:00";
|
||
// TimeSpan dspWorkingDayAM = DateTime.Parse(_strWorkingDayAM).TimeOfDay;
|
||
// TimeSpan dspWorkingDayPM = DateTime.Parse(_strWorkingDayPM).TimeOfDay;
|
||
// DateTime t1 = DateTime.Now;
|
||
// TimeSpan dspNow = t1.TimeOfDay;
|
||
// if (dspNow > dspWorkingDayAM && dspNow < dspWorkingDayPM)
|
||
// {
|
||
|
||
// }
|
||
// else
|
||
// {
|
||
// //需要定时处理的程序写
|
||
// GUIDModel guidmodel = new GUIDModel();
|
||
// guidmodel = bll.GetApoplexyPaient();
|
||
// if (guidmodel != null)
|
||
// {
|
||
|
||
// ApoplexyReportModelList lst = new ApoplexyReportModelList();
|
||
// ApoplexyReportModel model = new ApoplexyReportModel();
|
||
// List<ApoplexyReportModel> modelList = new List<ApoplexyReportModel>();
|
||
// model.Archives = new Archives();
|
||
// model.ArchivesCases = new ArchivesCases();
|
||
// model.RYQK = new RYQK();
|
||
// model.HealthExam = new HealthExam();
|
||
// model.TOAST = new T_Service_Apoplexy_TOAST();
|
||
// model.RSZL = new T_Service_Apoplexy_RSZL();
|
||
// model.XGZL = new T_Service_Apoplexy_XGZL();
|
||
// model.NCXZYJC = new T_Service_Apoplexy_NCXZYJC();
|
||
// model.NCXSS = new T_Service_Apoplexy_NCXSS();
|
||
// model.ZYYW = new T_Service_Apoplexy_ZYYW();
|
||
// model.DMLSS = new T_Service_Apoplexy_DMLSS();
|
||
// model.CEACZ = new T_Service_Apoplexy_CEACZ();
|
||
// model.SHYW = new T_Service_Apoplexy_SHYW();
|
||
// model.CYPG = new CYPG();
|
||
// model.KFZL = new T_Service_Apoplexy_KFZL();
|
||
// model.JKJY = new T_Service_Apoplexy_JKJY();
|
||
// model.CYQK = new CYQK();
|
||
// model.NCXYWB = new T_Service_Apoplexy_NCXYWB();
|
||
// model.NCXAVM = new T_Service_Apoplexy_NCXAVM();
|
||
|
||
// model = bll.ReportSinglePatientXML(guidmodel.GUID);
|
||
// modelList.Add(model);
|
||
// lst.ApoplexyReportList = model;
|
||
// string xmldata = XmlHelp.XmlSerialize<ApoplexyReportModelList>(lst);
|
||
// DirectCaseReporting.sendXml(xmldata, guidmodel.GUID);
|
||
|
||
// }
|
||
// }
|
||
// //GC.Collect(); //.NetCore的垃圾处理程序,慎重添加
|
||
//}
|
||
|
||
}
|
||
}
|