台州海关TD3600上线版本
This commit is contained in:
86
JJServer/JJServer.csproj
Normal file
86
JJServer/JJServer.csproj
Normal file
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{7B76DDF5-F6A7-42D5-AFE1-C9FC2C151B8E}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>JJServer</RootNamespace>
|
||||
<AssemblyName>JJServer</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="log4net, Version=3.2.0.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\log4net.3.2.0\lib\netstandard2.0\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Configuration.ConfigurationManager.4.5.0\lib\net461\System.Configuration.ConfigurationManager.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.OracleClient" />
|
||||
<Reference Include="System.Data.SQLite">
|
||||
<HintPath>..\JJMediSys\dll\System.Data.SQLite.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.SQLite.EF6">
|
||||
<HintPath>..\JJMediSys\dll\System.Data.SQLite.EF6.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.SQLite.Linq">
|
||||
<HintPath>..\JJMediSys\dll\System.Data.SQLite.Linq.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Security.AccessControl, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Security.AccessControl.4.5.0\lib\net461\System.Security.AccessControl.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Security.Permissions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Security.Permissions.4.5.0\lib\net461\System.Security.Permissions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Security.Principal.Windows, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Security.Principal.Windows.4.5.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ServiceProcess" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="jyData.cs" />
|
||||
<Compile Include="MyServer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SqlHelper.cs" />
|
||||
<Compile Include="Sqlite.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
115
JJServer/MyServer.cs
Normal file
115
JJServer/MyServer.cs
Normal file
@@ -0,0 +1,115 @@
|
||||
using log4net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JJServer
|
||||
{
|
||||
public class MyServer
|
||||
{
|
||||
public static ILog logger = LogManager.GetLogger("WebLogger");
|
||||
bool ServerStatus = false;
|
||||
public Patient_Info Curpatient_Info;
|
||||
public SqlHelper mSqlHelper = new SqlHelper();
|
||||
static List<PatientDatail> spatientDatails = new List<PatientDatail>();
|
||||
|
||||
|
||||
|
||||
|
||||
public void Init()
|
||||
{
|
||||
mSqlHelper.initDB();
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
}
|
||||
|
||||
public bool GetServerStatus()
|
||||
{
|
||||
return ServerStatus;
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
ServerStatus = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void GetTranData(ref List<PatientDatail> mpatientDatails)
|
||||
{
|
||||
mpatientDatails = spatientDatails;
|
||||
spatientDatails = null;
|
||||
}
|
||||
|
||||
public void SetTranData( List<PatientDatail> mpatientDatails)
|
||||
{
|
||||
spatientDatails = mpatientDatails;
|
||||
}
|
||||
|
||||
public DataTable GetHistory()
|
||||
{
|
||||
return mSqlHelper.GetRecord();
|
||||
}
|
||||
|
||||
public void ParseData(PatientDatail INData)
|
||||
{
|
||||
List<PatientDatail> patientDatails = new List<PatientDatail>();
|
||||
patientDatails.Add(INData);
|
||||
//foreach(jyData jd in INData.jyDatas)
|
||||
//{
|
||||
// mSqlHelper.InsertARecord(INData.PatientInfo.CardNo, INData.PatientInfo.Name, jd.Barcode, jd.itemInfo, jd.sgname, jd.sgxx, 1, INData.PatientInfo.Memo);
|
||||
//}
|
||||
foreach(OrginData orginData in INData.OrginDatas)
|
||||
{
|
||||
mSqlHelper.InsertARecord(orginData.PatID, orginData.PatName, orginData.PatAge, orginData.PatSex, orginData.Barcode, orginData.Tuble, orginData.ItemName, orginData.ItemCount, orginData.ItemType, orginData.DoDept, orginData.OprDept, orginData.OprTime, orginData.PrintTime, orginData.ItemStatus, orginData.ItemsDetails, orginData.PrinterDev);
|
||||
}
|
||||
spatientDatails = patientDatails;
|
||||
}
|
||||
|
||||
public string Candispensestr = "";
|
||||
public string GetDaylyCountInfo(List<string> Candispense)
|
||||
{
|
||||
if(Candispensestr=="")
|
||||
{
|
||||
foreach(string str in Candispense)
|
||||
{
|
||||
if(Candispensestr=="")
|
||||
{
|
||||
Candispensestr = "\'"+str+"\'";
|
||||
}
|
||||
else
|
||||
{
|
||||
Candispensestr = Candispensestr + ",\'" + str+"\'";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
string Sql = "SELECT COUNT(DISTINCT CardNo) AS UniqueCardNoCount,COUNT(CASE WHEN Tube in("+ Candispensestr + ") THEN 1 END) AS SGCount,COUNT(CASE WHEN Tube not in("+ Candispensestr + ") THEN 1 END) AS BQCount FROM TranList; ";
|
||||
DataTable dataTable = mSqlHelper.ExecQuery(Sql);
|
||||
if(dataTable.Rows.Count<=0)
|
||||
{
|
||||
return "0|0|0";
|
||||
}
|
||||
return dataTable.Rows[0]["UniqueCardNoCount"].ToString() + "|" + dataTable.Rows[0]["SGCount"].ToString() + "|" + dataTable.Rows[0]["BQCount"].ToString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
37
JJServer/Properties/AssemblyInfo.cs
Normal file
37
JJServer/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("JJServer")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("JJServer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("7b76ddf5-f6a7-42d5-afe1-c9fc2c151b8e")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
|
||||
96
JJServer/SqlHelper.cs
Normal file
96
JJServer/SqlHelper.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using log4net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JJServer
|
||||
{
|
||||
public class SqlHelper
|
||||
{
|
||||
private JJServer.SQLiteDBHelper _mgr;
|
||||
public ILog logger = JJServer.MyServer.logger;
|
||||
string file = "";
|
||||
string CurDay = "";
|
||||
public void initDB()
|
||||
{
|
||||
|
||||
string path = System.IO.Directory.GetCurrentDirectory();
|
||||
string Datastr = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
CurDay = Datastr;
|
||||
file = string.Format("{0}\\DATA\\{1}.dict", path, Datastr);
|
||||
//file = string.Format("{0}\\DATA\\History.dict", path);
|
||||
logger.Info("初始化DB=>" + file);
|
||||
bool exist = File.Exists(file);
|
||||
if (exist != true)
|
||||
{
|
||||
System.IO.File.Create(file).Dispose();
|
||||
JJServer.SQLiteDBHelper.CreateDB(file);
|
||||
}
|
||||
int Ret = OpenCon();
|
||||
if (Ret == 0)
|
||||
{
|
||||
LoadData();
|
||||
}
|
||||
}
|
||||
|
||||
public int OpenCon()
|
||||
{
|
||||
this._mgr = new JJServer.SQLiteDBHelper(file);
|
||||
this._mgr.SetDataSource(file, null);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void LoadData() //PrintType 1试管 2回执
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
dt = JJServer.SQLiteDBHelper.ExecQuery("Select ID, PatID, PatName ,PatAge, PatSex ,Barcode , Tuble, ItemName , DoDept,OprDept,OprTime,PrintTime,ItemStatus,ItemsDetails,PrinterDev from TranList");
|
||||
if (dt == null)
|
||||
{
|
||||
string sql = string.Format("CREATE TABLE TranList(ID INTEGER PRIMARY KEY,PatID TEXT,PatName TEXT, PatAge TEXT,PatSex TEXT, Barcode TEXT , Tuble TEXT, ItemName TEXT , ItemCount TEXT , ItemType TEXT, DoDept TEXT, OprDept TEXT, OprTime TEXT, PrintTime TEXT, ItemStatus TEXT, ItemsDetails TEXT, PrinterDev TEXT)");
|
||||
bool Ret = JJServer.SQLiteDBHelper.ExecuteCommand(sql);
|
||||
// JJServer.SQLiteDBHelper.ExecuteCommand("CREATE UNIQUE INDEX idx_cardno_barcode ON TranList (PatID, Barcode)");
|
||||
}
|
||||
}
|
||||
|
||||
public void CheckDay()
|
||||
{
|
||||
string Datastr = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
if (!CurDay.Equals(Datastr))
|
||||
{
|
||||
initDB();
|
||||
}
|
||||
}
|
||||
|
||||
public void InsertARecord(string PatID, string PatName, string PatAge, string PatSex, string Barcode, string Tuble, string ItemName, string ItemCount, string ItemType, string DoDept, string OprDept, string OprTime, string PrintTime, string ItemStatus, string ItemsDetails, string PrinterDev)
|
||||
{
|
||||
CheckDay();
|
||||
string sql = string.Format("INSERT OR REPLACE INTO Tranlist ( PatID, PatName ,PatAge, PatSex ,Barcode , Tuble, ItemName ,ItemCount,ItemType, DoDept,OprDept,OprTime,PrintTime,ItemStatus,ItemsDetails,PrinterDev ) Values (\'{0}\',\'{1}\',\'{2}\',\'{3}\',\'{4}\',\'{5}\',\'{6}\',\'{7}\',\'{8}\',\'{9}\',\'{10}\',\'{11}\',\'{12}\',\'{13}\',\'{14}\',\'{15}\')", PatID, PatName, PatAge, PatSex, Barcode, Tuble, ItemName, ItemCount, ItemType, DoDept, OprDept, OprTime, PrintTime, ItemStatus, ItemsDetails, PrinterDev);
|
||||
logger.Info("==>插入打印数据");
|
||||
logger.Info(sql);
|
||||
bool Ret = JJServer.SQLiteDBHelper.ExecuteCommand(sql);
|
||||
}
|
||||
|
||||
|
||||
public DataTable GetRecord()
|
||||
{
|
||||
CheckDay();
|
||||
string sql = "Select * from TranList where 1=1";
|
||||
return JJServer.SQLiteDBHelper.ExecQuery(sql);
|
||||
}
|
||||
|
||||
public DataTable ExecQuery(string sql)
|
||||
{
|
||||
CheckDay();
|
||||
return JJServer.SQLiteDBHelper.ExecQuery(sql);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
162
JJServer/Sqlite.cs
Normal file
162
JJServer/Sqlite.cs
Normal file
@@ -0,0 +1,162 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Data.SQLite;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
namespace JJServer
|
||||
{
|
||||
/// <summary>
|
||||
/// 说明:这是一个针对System.Data.SQLite的数据库常规操作封装的通用类。
|
||||
/// </summary>
|
||||
public class SQLiteDBHelper
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string connectionString = string.Empty;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static SQLiteConnection connection = null;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="dbPath">数据库文件路径</param>
|
||||
public SQLiteDBHelper(string dbPath)
|
||||
{
|
||||
this.connectionString = "Data Source=" + dbPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建数据库文件
|
||||
/// </summary>
|
||||
/// <param name="dbPath"></param>
|
||||
public static void CreateDB(string dbPath)
|
||||
{
|
||||
using (SQLiteConnection connection = new SQLiteConnection("Data Source=" + dbPath))
|
||||
{
|
||||
connection.Open();
|
||||
using (SQLiteCommand command = new SQLiteCommand(connection))
|
||||
{
|
||||
//command.CommandText = "CREATE TABLE Tranlist(ID INTEGER PRIMARY KEY,Name TEXT,IDNo TEXT,Sex TEXT,Nation TEXT,Phone TEXT,Address TEXT,Remarks TEXT,Time TEXT)";
|
||||
//command.ExecuteNonQuery();
|
||||
//command.CommandText = "DROP TABLE Tranlist";
|
||||
//command.ExecuteNonQuery();
|
||||
bool ret = ExecuteCommand("CREATE TABLE Tranlist(ID INTEGER PRIMARY KEY,Name TEXT,IDNo TEXT,Sex TEXT,Nation TEXT,Phone TEXT,Address TEXT,Remarks TEXT,Time TEXT)");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 打开连接
|
||||
/// </summary>
|
||||
/// <param name="dataSource"></param>
|
||||
/// <param name="password"></param>
|
||||
public void SetDataSource(string dataSource, string password)
|
||||
{
|
||||
connectionString = string.Format("Data Source={0};Pooling=true;FailIfMissing=false", dataSource);
|
||||
|
||||
|
||||
connection = new SQLiteConnection(connectionString);
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(password))
|
||||
{
|
||||
//connection.SetPassword(password);
|
||||
}
|
||||
connection.Open();
|
||||
}
|
||||
|
||||
|
||||
#region 通用方法
|
||||
/// <summary>
|
||||
/// 查询表
|
||||
/// </summary>
|
||||
/// <param name="sqlStr"></param>
|
||||
/// <returns></returns>
|
||||
public static DataTable ExecQuery(string sqlStr)
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
try
|
||||
{
|
||||
SQLiteDataAdapter OraDa = new SQLiteDataAdapter(sqlStr, connection);
|
||||
OraDa.Fill(dt);
|
||||
return dt;
|
||||
}
|
||||
catch (SQLiteException e)
|
||||
{
|
||||
string s = e.Message;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增、删、改操作
|
||||
/// </summary>
|
||||
/// <param name="commandStr">sql语句</param>
|
||||
/// <returns>是否成功</returns>
|
||||
public static bool ExecuteCommand(string sqlStr)
|
||||
{
|
||||
using (SQLiteCommand cmd = new SQLiteCommand(sqlStr, connection))
|
||||
{
|
||||
try
|
||||
{
|
||||
if (cmd.ExecuteNonQuery() > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ToString();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据查询语句,获取表中记录的条数 select count(*) from t_Developer
|
||||
/// </summary>
|
||||
/// <param name="sqlStr"></param>
|
||||
/// <returns></returns>
|
||||
public static int GetRecordCount(string sqlStr)
|
||||
{
|
||||
using (SQLiteCommand cmd = new SQLiteCommand(sqlStr, connection))
|
||||
{
|
||||
try
|
||||
{
|
||||
cmd.CommandText = sqlStr;
|
||||
SQLiteDataReader dr = cmd.ExecuteReader();
|
||||
if (dr.Read())
|
||||
{
|
||||
return dr.FieldCount;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.ToString();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
61
JJServer/jyData.cs
Normal file
61
JJServer/jyData.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JJServer
|
||||
{
|
||||
public class jyData
|
||||
{
|
||||
public string sgname { get; set; } //试管名
|
||||
public string sgxx { get; set; } //试管信息 生成标签的串
|
||||
public string bqxx { get; set; } //回执信息 生成回执的串
|
||||
public int bqtype { get; set; } //1试管标签 2回执标签 3电子标签
|
||||
public string Barcode { get; set; } //标签一维码
|
||||
public string itemInfo { get; set; } //项目信息
|
||||
}
|
||||
|
||||
public class PatientDatail
|
||||
{
|
||||
public int ID { get; set; } //序号
|
||||
public Patient_Info PatientInfo { get; set; } //患者唯一信息
|
||||
public int ItemCount { get; set; } //试管数量
|
||||
public int RecpCount { get; set; } //回执数量
|
||||
public List<jyData> jyDatas { get; set; }
|
||||
public List<OrginData> OrginDatas { get; set; }
|
||||
}
|
||||
|
||||
public struct OrginData //原始检验信息 各医院需自定义 传给服务做记录
|
||||
{
|
||||
public string PatID { get; set; }
|
||||
public string PatName { get; set; }
|
||||
public string PatAge { get; set; }
|
||||
public string PatSex { get; set; }
|
||||
public string Barcode { get; set; }
|
||||
public string Tuble { get; set; }
|
||||
public string ItemName { get; set; }
|
||||
public string ItemCount { get; set; }
|
||||
public string ItemType { get; set; }
|
||||
public string DoDept { get; set; }
|
||||
public string OprDept { get; set; }
|
||||
public string OprTime { get; set; }
|
||||
public string PrintTime { get; set; }
|
||||
public string ItemStatus { get; set; }
|
||||
public string ItemsDetails { get; set; }
|
||||
public string PrinterDev { get; set; }
|
||||
}
|
||||
|
||||
public struct Patient_Info
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Age { get; set; }
|
||||
public string CardNo { get; set; }
|
||||
public string Sex { get; set; }
|
||||
public string BedNo { get; set; }
|
||||
public string Memo { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
8
JJServer/packages.config
Normal file
8
JJServer/packages.config
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="log4net" version="3.2.0" targetFramework="net461" />
|
||||
<package id="System.Configuration.ConfigurationManager" version="4.5.0" targetFramework="net461" />
|
||||
<package id="System.Security.AccessControl" version="4.5.0" targetFramework="net461" />
|
||||
<package id="System.Security.Permissions" version="4.5.0" targetFramework="net461" />
|
||||
<package id="System.Security.Principal.Windows" version="4.5.0" targetFramework="net461" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user