diff --git a/WebSiteCode/Cmdjy/Cmdjy.sln b/WebSiteCode/Cmdjy/Cmdjy.sln
index e542739..3af051e 100644
--- a/WebSiteCode/Cmdjy/Cmdjy.sln
+++ b/WebSiteCode/Cmdjy/Cmdjy.sln
@@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommonHelper", "CommonHelpe
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CmdjyHisFront", "CmdjyHisFront\CmdjyHisFront.csproj", "{E8B0B70C-74D8-419D-94DD-19FF4015C23B}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WsdInterfaceModels", "WsdInterfaceModels\WsdInterfaceModels.csproj", "{925C0CBC-0FFA-4C54-8683-540637FA9E3E}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -39,6 +41,10 @@ Global
{E8B0B70C-74D8-419D-94DD-19FF4015C23B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E8B0B70C-74D8-419D-94DD-19FF4015C23B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E8B0B70C-74D8-419D-94DD-19FF4015C23B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {925C0CBC-0FFA-4C54-8683-540637FA9E3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {925C0CBC-0FFA-4C54-8683-540637FA9E3E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {925C0CBC-0FFA-4C54-8683-540637FA9E3E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {925C0CBC-0FFA-4C54-8683-540637FA9E3E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj b/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj
index b25cc6c..f6455d7 100644
--- a/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj
+++ b/WebSiteCode/Cmdjy/Cmdjy/Cmdjy.csproj
@@ -196,6 +196,7 @@
+
@@ -305,6 +306,10 @@
{d0fe758c-da33-45c7-8110-563056a58717}
HisInterfaceModels
+
+ {925c0cbc-0ffa-4c54-8683-540637fa9e3e}
+ WsdInterfaceModels
+
10.0
diff --git a/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs b/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs
new file mode 100644
index 0000000..3edb71a
--- /dev/null
+++ b/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Mvc;
+
+namespace Cmdjy.Controllers
+{
+ public class WsdInterfaceController : Controller
+ {
+ // GET: WsdInterface
+ public ActionResult Index()
+ {
+ return View();
+ }
+ }
+}
\ No newline at end of file
diff --git a/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs
index 1328ada..85d5839 100644
--- a/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs
+++ b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs
@@ -6,6 +6,7 @@ using Cmdjy.Bll;
using Cmdjy.Dal;
using CommonHelper;
using Newtonsoft.Json;
+using WsdInterfaceModels;
namespace Cmdjy.ws
{
@@ -160,296 +161,4 @@ namespace Cmdjy.ws
return result;
}
}
-
- ///
- /// 第三方请求数据
- ///
- public class WsdRequest
- {
- ///
- /// 代煎药厂商编码。
- ///
- public string CompanyCode { get; set; }
- ///
- /// 代煎药厂商名称
- ///
- public string CompanyName { get; set; }
- ///
- /// 处方起始流水号。按照数字从1开始累加。返回结果包含此编号的处方。
- ///
- public string StartNo { get; set; }
- ///
- /// 最大本次获取的处方数量。根据客户网络和服务器配置情况自行调整
- ///
- public string MaxCount { get; set; }
- }
- ///
- /// 服务器响应数据
- ///
- public class WsdResult
- {
- ///
- /// 返回信息代码
- ///
- public EnumCode Code { get; set; }
- ///
- /// 返回信息
- ///
- public string Msg { get; set; }
- ///
- /// 本次发送的处方数
- ///
- public int Count { get; set; }
- ///
- /// 是否还有处方未下载。不已历史是否下载为准,只计算此次下载后是否剩余未下载。
- ///
- public bool More { get; set; }
- ///
- /// 处方信息
- ///
- public List Prescriptions { get; set; }
- }
-
- ///
- /// 返回信息代码
- ///
- [Flags]
- public enum EnumCode
- {
- ///
- /// 执行成功。
- ///
- Success = 1,
- ///
- /// 发生异常,异常信息见msg参数。
- ///
- Exception = 2,
- }
-
- ///
- /// 处方信息
- ///
- 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 string Zlh { get; set; }
- ///
- /// 收费序号
- ///
- public int Sfxh { get; set; }
- ///
- /// 收费费用序号
- ///
- public string Sffyxh { get; set; }
- ///
- /// 处方对应药品
- ///
- public List Drugs { get; set; }
- }
-
- ///
- /// 药品信息
- ///
- 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,
- ///
- /// 测试方。无效处方,测试用
- ///
- TestOrder = 4,
- ///
- /// 空处方,无此处方,调用方应该跳过该处方
- ///
- NullOrder = 8,
- }
-
}
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/EnumCode.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/EnumCode.cs
new file mode 100644
index 0000000..ab90d65
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/EnumCode.cs
@@ -0,0 +1,20 @@
+using System;
+
+namespace WsdInterfaceModels
+{
+ ///
+ /// 返回信息代码
+ ///
+ [Flags]
+ public enum EnumCode
+ {
+ ///
+ /// 执行成功。
+ ///
+ Success = 1,
+ ///
+ /// 发生异常,异常信息见msg参数。
+ ///
+ Exception = 2,
+ }
+}
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/Properties/AssemblyInfo.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..d13e06c
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("WsdInterfaceModels")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("WsdInterfaceModels")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("925c0cbc-0ffa-4c54-8683-540637fa9e3e")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdDrugInfo.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdDrugInfo.cs
new file mode 100644
index 0000000..49858c9
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdDrugInfo.cs
@@ -0,0 +1,53 @@
+namespace WsdInterfaceModels
+{
+ ///
+ /// 药品信息
+ ///
+ 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; }
+ }
+}
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdInterfaceModels.csproj b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdInterfaceModels.csproj
new file mode 100644
index 0000000..48f682d
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdInterfaceModels.csproj
@@ -0,0 +1,52 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {925C0CBC-0FFA-4C54-8683-540637FA9E3E}
+ Library
+ Properties
+ WsdInterfaceModels
+ WsdInterfaceModels
+ v4.6.1
+ 512
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdPrescriptionInfo.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdPrescriptionInfo.cs
new file mode 100644
index 0000000..91b1f7c
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdPrescriptionInfo.cs
@@ -0,0 +1,155 @@
+using System.Collections.Generic;
+
+namespace WsdInterfaceModels
+{
+ ///
+ /// 处方信息
+ ///
+ 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 string Zlh { get; set; }
+ ///
+ /// 收费序号
+ ///
+ public int Sfxh { get; set; }
+ ///
+ /// 收费费用序号
+ ///
+ public string Sffyxh { get; set; }
+ ///
+ /// 处方对应药品
+ ///
+ public List Drugs { get; set; }
+ }
+}
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdPrescriptionType.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdPrescriptionType.cs
new file mode 100644
index 0000000..0b3a678
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdPrescriptionType.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace WsdInterfaceModels
+{
+
+ ///
+ /// 处方类型
+ ///
+ [Flags]
+ public enum WsdPrescriptionType
+ {
+ ///
+ /// 订单
+ ///
+ Order = 1,
+ ///
+ /// 撤销订单,退单
+ ///
+ CancelOrder = 2,
+ ///
+ /// 测试方。无效处方,测试用
+ ///
+ TestOrder = 4,
+ ///
+ /// 空处方,无此处方,调用方应该跳过该处方
+ ///
+ NullOrder = 8,
+ }
+}
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdRequest.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdRequest.cs
new file mode 100644
index 0000000..883d3b3
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdRequest.cs
@@ -0,0 +1,25 @@
+namespace WsdInterfaceModels
+{
+ ///
+ /// 第三方请求数据
+ ///
+ public class WsdRequest
+ {
+ ///
+ /// 代煎药厂商编码。
+ ///
+ public string CompanyCode { get; set; }
+ ///
+ /// 代煎药厂商名称
+ ///
+ public string CompanyName { get; set; }
+ ///
+ /// 处方起始流水号。按照数字从1开始累加。返回结果包含此编号的处方。
+ ///
+ public string StartNo { get; set; }
+ ///
+ /// 最大本次获取的处方数量。根据客户网络和服务器配置情况自行调整
+ ///
+ public string MaxCount { get; set; }
+ }
+}
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs
new file mode 100644
index 0000000..b08c5e2
--- /dev/null
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs
@@ -0,0 +1,31 @@
+using System.Collections.Generic;
+
+namespace WsdInterfaceModels
+{
+ ///
+ /// 服务器响应数据
+ ///
+ public class WsdResult
+ {
+ ///
+ /// 返回信息代码
+ ///
+ public EnumCode Code { get; set; }
+ ///
+ /// 返回信息
+ ///
+ public string Msg { get; set; }
+ ///
+ /// 本次发送的处方数
+ ///
+ public int Count { get; set; }
+ ///
+ /// 是否还有处方未下载。不已历史是否下载为准,只计算此次下载后是否剩余未下载。
+ ///
+ public bool More { get; set; }
+ ///
+ /// 处方信息
+ ///
+ public List Prescriptions { get; set; }
+ }
+}