123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- package main
-
- import (
- "encoding/xml"
- "net/http"
-
- _ "XT_New/routers"
- "XT_New/service"
- "github.com/astaxie/beego"
- )
-
- func init() {
- service.ConnectDB()
- go func() {
- http.ListenAndServe("localhost:6060", nil)
- }()
- }
-
- func main() {
- //service.NewAutoCreateWeekSchedules()
-
- //service.BeginAutoCreateWeekDisinfectionJob()
- //service.BeginAutoCreatePlanJob()
- // //service.AutoClearSchedules()
- //service.BeginAutoCreateStaffScheduleJob()
- //service.BeginAutoCreateDrugJob()
- //service.BeginAutoCreateStockJob()
-
- //beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 6000
- //beego.BConfig.WebConfig.AutoRender = false
- //
-
- beego.Run()
-
- }
-
- type Envelope struct {
- XMLName xml.Name `xml:"soap:Envelope"`
- Soap string `xml:"xmlns:soap,attr"`
- Xsi string `xml:"xmlns:xsi,attr"`
- Xsd string `xml:"xmlns:xsd,attr"`
- Body Body `xml:"soap:Body"`
- }
-
- type Body struct {
- XMLName xml.Name `xml:"soap:Body"`
- GetReportReq GetReportReq `xml:"GetReportList"`
- }
-
- type GetReportReq struct {
- XMLName xml.Name `xml:"http://tempuri.org/ GetReportList"`
- Key string `xml:"key"`
- BeginDateTime string `xml:"BeginDateTime"`
- EndDateTime string `xml:"EndDateTime"`
- DateType int `xml:"DateType"`
- PrintState int `xml:"PrintState"`
- }
-
- type EnvelopeTwo struct {
- XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
- Body EnvelopeBody `xml:"Body"`
- }
-
- type EnvelopeBody struct {
- GetReportListResponse GetReportListResponse `xml:"GetReportListResponse"`
- }
-
- type GetReportListResponse struct {
- XMLName xml.Name `xml:"http://tempuri.org/ GetReportListResponse"`
- GetReportListResult string `xml:"GetReportListResult"`
- }
-
- type ReportData struct {
- Res int `json:"Res"`
- Error string `json:"Error"`
- Data []Data `json:"Data"`
- }
-
- type Data struct {
- RecordID string `json:"RecordID"`
- PatientName string `json:"PatientName"`
- Sex string `json:"Sex"`
- Age int `json:"Age"`
- AgeUnit string `json:"AgeUnit"`
- OfficeName string `json:"OfficeName"`
- BedCode string `json:"BedCode"`
- Barcode string `json:"Barcode"`
- CustomerBarcode string `json:"CustomerBarcode"`
- SampleCode string `json:"SampleCode"`
- SampleCategory string `json:"SampleCategory"`
- SampleDescription string `json:"SampleDescription"`
- Diagnostics string `json:"Diagnostics"`
- TakeSampleDateTime string `json:"TakeSampleDateTime"`
- ReceiveDateTime string `json:"ReceiveDateTime"`
- AuditDateTime string `json:"AuditDateTime"`
- InspectDate string `json:"InspectDate"`
- SendDoctor string `json:"SendDoctor"`
- InspectDoctorName string `json:"InspectDoctorName"`
- AuditorName string `json:"AuditorName"`
- Instrument string `json:"Instrument"`
- Comment string `json:"Comment"`
- }
|