main.go 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package main
  2. import (
  3. _ "XT_New/routers"
  4. "XT_New/service"
  5. "encoding/xml"
  6. "github.com/astaxie/beego"
  7. )
  8. func init() {
  9. service.ConnectDB()
  10. }
  11. func main() {
  12. //service.NewAutoCreateWeekSchedules()
  13. //service.BeginAutoCreateWeekDisinfectionJob()
  14. //service.BeginAutoCreatePlanJob()
  15. // //service.AutoClearSchedules()
  16. //service.BeginAutoCreateStaffScheduleJob()
  17. //service.BeginAutoCreateDrugJob()
  18. //service.BeginAutoCreateStockJob()
  19. //beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 6000
  20. //beego.BConfig.WebConfig.AutoRender = false
  21. //
  22. beego.Run()
  23. }
  24. type Envelope struct {
  25. XMLName xml.Name `xml:"soap:Envelope"`
  26. Soap string `xml:"xmlns:soap,attr"`
  27. Xsi string `xml:"xmlns:xsi,attr"`
  28. Xsd string `xml:"xmlns:xsd,attr"`
  29. Body Body `xml:"soap:Body"`
  30. }
  31. type Body struct {
  32. XMLName xml.Name `xml:"soap:Body"`
  33. GetReportReq GetReportReq `xml:"GetReportList"`
  34. }
  35. type GetReportReq struct {
  36. XMLName xml.Name `xml:"http://tempuri.org/ GetReportList"`
  37. Key string `xml:"key"`
  38. BeginDateTime string `xml:"BeginDateTime"`
  39. EndDateTime string `xml:"EndDateTime"`
  40. DateType int `xml:"DateType"`
  41. PrintState int `xml:"PrintState"`
  42. }
  43. type EnvelopeTwo struct {
  44. XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
  45. Body EnvelopeBody `xml:"Body"`
  46. }
  47. type EnvelopeBody struct {
  48. GetReportListResponse GetReportListResponse `xml:"GetReportListResponse"`
  49. }
  50. type GetReportListResponse struct {
  51. XMLName xml.Name `xml:"http://tempuri.org/ GetReportListResponse"`
  52. GetReportListResult string `xml:"GetReportListResult"`
  53. }
  54. type ReportData struct {
  55. Res int `json:"Res"`
  56. Error string `json:"Error"`
  57. Data []Data `json:"Data"`
  58. }
  59. type Data struct {
  60. RecordID string `json:"RecordID"`
  61. PatientName string `json:"PatientName"`
  62. Sex string `json:"Sex"`
  63. Age int `json:"Age"`
  64. AgeUnit string `json:"AgeUnit"`
  65. OfficeName string `json:"OfficeName"`
  66. BedCode string `json:"BedCode"`
  67. Barcode string `json:"Barcode"`
  68. CustomerBarcode string `json:"CustomerBarcode"`
  69. SampleCode string `json:"SampleCode"`
  70. SampleCategory string `json:"SampleCategory"`
  71. SampleDescription string `json:"SampleDescription"`
  72. Diagnostics string `json:"Diagnostics"`
  73. TakeSampleDateTime string `json:"TakeSampleDateTime"`
  74. ReceiveDateTime string `json:"ReceiveDateTime"`
  75. AuditDateTime string `json:"AuditDateTime"`
  76. InspectDate string `json:"InspectDate"`
  77. SendDoctor string `json:"SendDoctor"`
  78. InspectDoctorName string `json:"InspectDoctorName"`
  79. AuditorName string `json:"AuditorName"`
  80. Instrument string `json:"Instrument"`
  81. Comment string `json:"Comment"`
  82. }