1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- package main
-
- import (
- _ "XT_New/routers"
- "XT_New/service"
- "encoding/xml"
- "github.com/astaxie/beego"
- )
-
- func init() {
- service.ConnectDB()
- }
-
- 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"`
- }
|