From 62da771e07444a31510dc73b70e986195d597e62 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Fri, 1 Mar 2019 16:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=87=E4=BB=95=E8=BE=BE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=A8=A1=E5=9E=8B=E3=80=82=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj | 5 + WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx | 1 + .../Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs | 264 ++++++++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx create mode 100644 WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs diff --git a/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj b/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj index 2736737..499ffe4 100644 --- a/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj +++ b/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj @@ -168,6 +168,10 @@ HisInterface.asmx Component + + WsdInterface.asmx + Component + @@ -184,6 +188,7 @@ PreserveNewest + diff --git a/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx new file mode 100644 index 0000000..48f850a --- /dev/null +++ b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx @@ -0,0 +1 @@ +<%@ WebService Language="C#" CodeBehind="WsdInterface.asmx.cs" Class="Cmdjy.ws.WsdInterface" %> diff --git a/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs new file mode 100644 index 0000000..8b5e8ac --- /dev/null +++ b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs @@ -0,0 +1,264 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Services; + +namespace Cmdjy.ws +{ + /// + /// 万仕达,服务调用接口 + /// + [WebService(Namespace = "http://Djy.wondersgroup.com/")] + [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + [System.ComponentModel.ToolboxItem(false)] + // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 + // [System.Web.Script.Services.ScriptService] + public class WsdInterface:System.Web.Services.WebService + { + + [WebMethod(Description = "获取代煎药处方信息")] + public string GetData(WsdPrescriptionInfo info) { + //获取数据 + + //实例化WsdResult + var result = new WsdRequest { + + }; + //编码:json串 + 加密信息 + return "Hello World"; + } + } + + public class WsdRequest + { + /// + /// 处方起始流水号。按照数字从1开始累加。返回结果包含此编号的处方。 + /// + public string StartNo { get; set; } + /// + /// 最大本次获取的处方数量。根据客户网络和服务器配置情况自行调整 + /// + public string MaxCount { get; set; } + } + + public class WsdResult + { + /// + /// 本次发送的处方数 + /// + public int Count { get; set; } + /// + /// 是否还有处方未下载。不已历史是否下载为准,只计算此次下载后是否剩余未下载。 + /// + public bool More { get; set; } + public List Prescriptions { get; set; } + } + + /// + /// HIS发送的处方信息 + /// + public class WsdPrescriptionInfo + { + /// + /// 处方流水号 + /// + public int Id { get; set; } + /// + /// 处方类型 + /// + public WsdPrescriptionType Type { get; set; } + /// + /// 如果为退方,这里传要退的处方流水号。此编号在下单应答消息中提供 + /// + public string RawRecordId { get; set; } + /// + /// 药品明细数量 + /// + public string DrugCount { get; set; } + /// + /// 处方备注 + /// + public string Remark { get; set; } + /// + /// 带回病房 否 + /// + public string TakeBack { get; set; } + /// + /// "操作类型": "煎药自取", or "操作类型": "煎药快递", or "操作类型": "配药快递" + /// + public string OpType { get; set; } + /// + /// 操作员 + /// + public string OpUser { get; set; } + /// + /// 病区 + /// + public string Area { get; set; } + /// + /// 病床号 + /// + public string Bed { get; set; } + /// + /// 操作时间 + /// + public string OpDatatime { get; set; } + /// + /// 处方号 + /// + public string PrescriptionNo { get; set; } + /// + /// 处方日期 + /// + public string PrescriptionDatatime { get; set; } + /// + /// 单位编号 医疗机构编号 + /// + public string HosNo { get; set; } + /// + /// 医疗机构名称 + /// + public string HosName { get; set; } + /// + /// 发票号 + /// + public string InvoiceNo { get; set; } + /// + /// 病人编号 + /// + public string PatientNo { get; set; } + /// + /// 病人卡号 + /// + public string CardNo { get; set; } + /// + /// 科室名称 + /// + public string DepName { get; set; } + /// + /// 病人年龄 + /// + public string PatientAge { get; set; } + /// + /// 病人生日 + /// + public string PatientBrithday { get; set; } + /// + /// 病人手机号码 + /// + public string PatientMobile { get; set; } + /// + /// 病人电话 + /// + public string PatientPhone { get; set; } + /// + /// 所在区县街道 + /// + public string District { get; set; } + /// + /// 送货地址 + /// + public string PostAddress { get; set; } + /// + /// 送货时间 + /// + public string PostDatatime { get; set; } + /// + /// 贴数 + /// + public string UseCount { get; set; } + /// + /// 病人性别 + /// + public string PatientSex { get; set; } + /// + /// 病人姓名 + /// + public string PatientName { get; set; } + /// + /// 医生姓名 + /// + public string DoctorName { get; set; } + /// + /// 诊断 + /// + public string Diagnosis { get; set; } + /// + /// 用法 + /// + public string Usage { get; set; } + /// + /// 处方对应药品 + /// + public List Drugs { get; set; } + } + + /// + /// HIS发送的药品信息 + /// + public class WsdDrugInfo + { + /// + /// 药品流水号 + /// + public int Id { get; set; } + /// + /// 处方流水号 + /// + public string PrescriptionId { get; set; } + /// + /// "药品医保代码":"YP0306401000650", + /// + public string DrugNo { get; set; } + /// + /// 药品单价 0.085 + /// + public string Price { get; set; } + /// + /// 单贴数量 + /// + public string Count { get; set; } + /// + /// 单位 克 + /// + public string Unit { get; set; } + /// + /// 单项总价 + /// + public string Sum { get; set; } + /// + /// 规格 15.00000000 + /// + public string DrugType { get; set; } + /// + /// 药品编码 + /// + public string DrugLocalNo { get; set; } + /// + /// 药品名称 + /// + public string DrugName { get; set; } + /// + /// 特殊要求 + /// + public string Remark { get; set; } + } + + /// + /// 处方类型 + /// + [Flags] + public enum WsdPrescriptionType + { + /// + /// 订单 + /// + Order = 1, + /// + /// 撤销订单,退单 + /// + CancelOrder = 2, + } + +}