Commit eb195acc authored by Denny's avatar Denny

NET Framework 4.0 测试用例项目提交

parent 2d7c12fc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace MilitaryGuaranteeCard
{
/// <summary>
/// Dll导入
/// </summary>
public class DllImport
{
#region Define
/// <summary>
/// 动态库路径
/// </summary>
private const String DllPath = @"PLA\RW_VC_MMSC.dll";
#endregion
#region DllImport
[DllImport(DllPath, EntryPoint = "UnloadTargetDll", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern void UnloadTargetDll();
[DllImport(DllPath, EntryPoint = "OpenComm", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int OpenComm(string devPort);
[DllImport(DllPath, EntryPoint = "CloseComm", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int CloseComm();
[DllImport(DllPath, EntryPoint = "PowerOn", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int PowerOn(IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "PowerOff", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int PowerOff(IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "ReadCard", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int ReadCard(uint zone, uint addr, uint len, IntPtr recData, ref uint pLen);
[DllImport(DllPath, EntryPoint = "WriteCard", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int WriteCard (uint zone,uint addr,uint len,byte[] sendData,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "ChkSecret", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int ChkSecret (int keyType,byte[] key,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "WriteSecret", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int WriteSecret (int keyType,byte[] key,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "ReadSecret", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int ReadSecret (int keyType,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "HexStrToByte", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int HexStrToByte (string str,ref byte[] data);
[DllImport(DllPath, EntryPoint = "ByteToHexStr", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int ByteToHexStr (byte[] data,uint size,ref string str);
[DllImport(DllPath, EntryPoint = "HexByteToDec", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int HexByteToDec (byte[] strBytes,ref ulong dec);
[DllImport(DllPath, EntryPoint = "DecToHexByte", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int DecToHexByte (ulong dec,ref byte[] strBytes) ;
[DllImport(DllPath, EntryPoint = "SetKeyVersion", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int SetKeyVersion (int keyKind,int keyVer,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "Chk1608Secret", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int Chk1608Secret (int keyNo,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "Authenfic1608", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int Authenfic1608 (IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "HexByteToLong", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int HexByteToLong (byte[] strBytes,ref ulong dec);
[DllImport(DllPath, EntryPoint = "LongToHexByte", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int LongToHexByte (ulong dec,ref byte[] strBytes);
[DllImport(DllPath, EntryPoint = "Signature", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int Signature (byte[] idInfo,byte[] info,int infoLen,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "VerifySignet", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int VerifySignet (byte[] idInfo,byte[] info,int infoLen,byte[] infoSign,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "WriteIDInfo", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int WriteIDInfo (byte[] idInfo,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "PINOpfunc", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int PINOpfunc (int iopType,int slot,byte[] pinInfo,int pinInfoLen,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "UpdateIDInfo", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int UpdateIDInfo (byte[] rightInfo,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "LockUserCard", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int LockUserCard (IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "ReadSamIDInfo", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int ReadSamIDInfo (IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "GetICCardNo", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int GetICCardNo (int slot,IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "PowerOnSam", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int PowerOnSam (IntPtr recData,ref uint pLen);
[DllImport(DllPath, EntryPoint = "HexStrToByte", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi, SetLastError = false)]
public static extern int GetUpdateIDRight (byte[] icCardNo,byte[] hospitalId,IntPtr recData,ref uint pLen);
#endregion
}
}

using ClosedXML.Excel;
using DocumentFormat.OpenXml.Spreadsheet;
using System;
using System.Data;
using System.Data.OleDb;
using System.IO;
namespace MilitaryGuaranteeCard
{
/// <summary>
/// Excel帮助类
/// </summary>
public class ExcelHelper
{
private static object m_lock = new object();
private static ExcelHelper m_excelHelper = null;
public static ExcelHelper GetInstance
{
get
{
if (m_excelHelper == null)
{
lock (m_lock)
{
if (m_excelHelper == null)
{
m_excelHelper = new ExcelHelper();
}
return m_excelHelper;
}
}
return m_excelHelper;
}
}
public static DataSet ReadExcel(string path)
{
try
{
string fileSuffix = System.IO.Path.GetExtension(path);
if (string.IsNullOrEmpty(fileSuffix))
return null;
using (DataSet ds = new DataSet())
{
string connStr = "";
if (fileSuffix == ".xls")
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Excel 8.0;HDR = Yes;IMEX=1\"";
else
connStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path + ";Extended Properties=\"Excel 12.0;HDR = Yes;IMEX=1\"";
string sql_select = "SELECT * FROM [SQL Results$]";
using (OleDbConnection conn = new OleDbConnection(connStr))
using (OleDbDataAdapter cmd = new OleDbDataAdapter(sql_select, conn))
{
OpenConn(conn);
cmd.Fill(ds);
CloseConn(conn);
}
if (ds == null || ds.Tables.Count <= 0) return null;
//Clear.BHC.Common.logManager.WriteLogByPath("Excel_Log", "Excel表数据查询成功");
return ds;
}
}
catch (Exception ex)
{
throw new Exception($"ReadExcel函数发生异常:{ex.Message}");
}
}
public static void OpenConn(OleDbConnection conn)
{
conn.Open();
}
public static void CloseConn(OleDbConnection conn)
{
conn.Close();
}
/// <summary>
/// 根据条件获取表格
/// </summary>
/// <param name="path">路径</param>
/// <param name="sheetname">表名</param>
/// <param name="condition">条件</param>
/// <returns></returns>
/// <exception cref="Exception"></exception>
public static DataSet ReadExcel2(string path, string sheetName, string condition)
{
if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(sheetName))
{
throw new ArgumentException("路径或工作表名称不能为空。");
}
try
{
// 判断文件后缀,选择合适的连接字符串
string fileSuffix = Path.GetExtension(path);
if (string.IsNullOrEmpty(fileSuffix))
{
throw new FileNotFoundException("文件后缀无法识别,请检查路径是否正确。");
}
string connStr = "";
if (fileSuffix.ToLower() == ".xls")
{
connStr = $"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={path};Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\"";
}
else if (fileSuffix.ToLower() == ".xlsx")
{
connStr = $"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={path};Extended Properties=\"Excel 12.0;HDR=Yes;IMEX=1\"";
}
else
{
throw new NotSupportedException("仅支持 .xls 和 .xlsx 格式的文件。");
}
string query = $"SELECT * FROM [{sheetName}$]";
if (!string.IsNullOrEmpty(condition))
{
query += $" {condition}";
}
using (OleDbConnection conn = new OleDbConnection(connStr))
{
conn.Open();
using (OleDbCommand cmd = new OleDbCommand(query, conn))
using (OleDbDataAdapter adapter = new OleDbDataAdapter(cmd))
{
DataSet ds = new DataSet();
adapter.Fill(ds);
if (ds.Tables.Count > 0)
{
return ds;
}
return null;
}
}
}
catch (OleDbException oleDbEx)
{
throw new Exception($"数据库操作异常:{oleDbEx.Message}");
}
catch (Exception ex)
{
throw new Exception($"ReadExcel2函数发生异常:{ex}");
}
}
/// <summary>
/// 使用外部控件读取excel数据
/// </summary>
/// <param name="path"></param>
/// <param name="sheetname"></param>
/// <returns></returns>
public static IXLWorksheet ReadExcel3(string path, string sheetname)
{
try
{
using (var workbook = new XLWorkbook(path))
{
var worksheet = workbook.Worksheet(sheetname);
return worksheet;
}
}
catch (Exception ex)
{
throw new Exception($"ReadExcel3函数发生异常:{ex.Message}");
}
}
}
}
namespace MilitaryGuaranteeCard
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.txtDevPort = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btnOpen = new System.Windows.Forms.Button();
this.btnPowerOn = new System.Windows.Forms.Button();
this.btnPowerOff = new System.Windows.Forms.Button();
this.btnReadCard = new System.Windows.Forms.Button();
this.rtbOutput = new System.Windows.Forms.RichTextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtExcelName = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtSheetName = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// txtDevPort
//
this.txtDevPort.Location = new System.Drawing.Point(105, 25);
this.txtDevPort.Name = "txtDevPort";
this.txtDevPort.Size = new System.Drawing.Size(105, 25);
this.txtDevPort.TabIndex = 1;
this.txtDevPort.Text = "USB";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 10F);
this.label1.Location = new System.Drawing.Point(14, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(85, 17);
this.label1.TabIndex = 2;
this.label1.Text = "设备端口:";
//
// btnOpen
//
this.btnOpen.Font = new System.Drawing.Font("宋体", 10F);
this.btnOpen.Location = new System.Drawing.Point(222, 25);
this.btnOpen.Name = "btnOpen";
this.btnOpen.Size = new System.Drawing.Size(104, 33);
this.btnOpen.TabIndex = 3;
this.btnOpen.Text = "打开设备";
this.btnOpen.UseVisualStyleBackColor = true;
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
//
// btnPowerOn
//
this.btnPowerOn.Font = new System.Drawing.Font("宋体", 10F);
this.btnPowerOn.Location = new System.Drawing.Point(430, 25);
this.btnPowerOn.Name = "btnPowerOn";
this.btnPowerOn.Size = new System.Drawing.Size(104, 33);
this.btnPowerOn.TabIndex = 4;
this.btnPowerOn.Text = "IC卡上电";
this.btnPowerOn.UseVisualStyleBackColor = true;
this.btnPowerOn.Click += new System.EventHandler(this.btnPowerOn_Click);
//
// btnPowerOff
//
this.btnPowerOff.Font = new System.Drawing.Font("宋体", 10F);
this.btnPowerOff.Location = new System.Drawing.Point(585, 24);
this.btnPowerOff.Name = "btnPowerOff";
this.btnPowerOff.Size = new System.Drawing.Size(104, 33);
this.btnPowerOff.TabIndex = 5;
this.btnPowerOff.Text = "IC卡下电";
this.btnPowerOff.UseVisualStyleBackColor = true;
this.btnPowerOff.Click += new System.EventHandler(this.btnPowerOff_Click);
//
// btnReadCard
//
this.btnReadCard.Font = new System.Drawing.Font("宋体", 10F);
this.btnReadCard.Location = new System.Drawing.Point(587, 76);
this.btnReadCard.Name = "btnReadCard";
this.btnReadCard.Size = new System.Drawing.Size(104, 33);
this.btnReadCard.TabIndex = 6;
this.btnReadCard.Text = "读取卡片";
this.btnReadCard.UseVisualStyleBackColor = true;
this.btnReadCard.Click += new System.EventHandler(this.btnReadCard_Click);
//
// rtbOutput
//
this.rtbOutput.Location = new System.Drawing.Point(17, 152);
this.rtbOutput.Name = "rtbOutput";
this.rtbOutput.Size = new System.Drawing.Size(743, 377);
this.rtbOutput.TabIndex = 9;
this.rtbOutput.Text = "";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 10F);
this.label2.Location = new System.Drawing.Point(14, 87);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(141, 21);
this.label2.TabIndex = 11;
this.label2.Text = "Excel文件名:";
//
// txtExcelName
//
this.txtExcelName.Location = new System.Drawing.Point(136, 83);
this.txtExcelName.Name = "txtExcelName";
this.txtExcelName.Size = new System.Drawing.Size(151, 25);
this.txtExcelName.TabIndex = 10;
this.txtExcelName.Text = "medical_card_schedule";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 10F);
this.label3.Location = new System.Drawing.Point(307, 87);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(143, 21);
this.label3.TabIndex = 13;
this.label3.Text = "表名(Sheet):";
//
// txtSheetName
//
this.txtSheetName.Location = new System.Drawing.Point(429, 81);
this.txtSheetName.Name = "txtSheetName";
this.txtSheetName.Size = new System.Drawing.Size(105, 25);
this.txtSheetName.TabIndex = 12;
this.txtSheetName.Text = "SQL Results";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(785, 562);
this.Controls.Add(this.txtSheetName);
this.Controls.Add(this.txtExcelName);
this.Controls.Add(this.rtbOutput);
this.Controls.Add(this.btnReadCard);
this.Controls.Add(this.btnPowerOff);
this.Controls.Add(this.btnPowerOn);
this.Controls.Add(this.btnOpen);
this.Controls.Add(this.txtDevPort);
this.Controls.Add(this.label2);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "军人保障卡测试";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox txtDevPort;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnOpen;
private System.Windows.Forms.Button btnPowerOn;
private System.Windows.Forms.Button btnPowerOff;
private System.Windows.Forms.Button btnReadCard;
private System.Windows.Forms.RichTextBox rtbOutput;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtExcelName;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtSheetName;
}
}
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
using System;
using System.IO;
using System.Reflection;
using log4net;
using log4net.Config;
using log4net.Repository;
namespace MilitaryGuaranteeCard
{
/// <summary>
/// 日志
/// </summary>
public class Logger
{
#region LazyLoading
private static readonly Lazy<Logger> Lazy = new Lazy<Logger>(() => new Logger());
public static Logger Instance => Lazy.Value;
#endregion
#region Define
/// <summary>
/// 将消息记录到 log4net 框架中
/// </summary>
private ILog _logger;
/// <summary>
/// 存储库
/// </summary>
private readonly ILoggerRepository _repository;
#endregion
/// <summary>
/// 构造器
/// </summary>
public Logger()
{
// 日志目录
String logDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs");
// 手动创建各个子文件夹
string[] subDirectories = { "NormalLogs", "ServiceLogs", "WarnLogs", "ErrorLogs" };
foreach (var subDir in subDirectories)
{
string fullPath = Path.Combine(logDirectory, subDir);
if (!Directory.Exists(fullPath))
{
Directory.CreateDirectory(fullPath);
}
}
// 获取当前应用程序的log4net日志存储库
_repository = LogManager.CreateRepository("PLA");
// 使用指定的配置文件配置
XmlConfigurator.Configure(_repository, new FileInfo(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "log4net.config")));
}
#region Methods
/// <summary>
/// 普通日志
/// </summary>
/// <param name="message">消息</param>
/// <param name="exception">执行过程中发生的错误</param>
public void NormalLogs(String message, Exception exception)
{
//检索或创建命名记录器
_logger = LogManager.GetLogger(_repository.Name, "NormalLogs");
if (exception != null)
{
_logger.Info(message, exception);
}
else
{
_logger.Info(message);
}
}
/// <summary>
/// 服务日志
/// </summary>
/// <param name="message">消息</param>
/// <param name="exception">执行过程中发生的错误</param>
public void ServiceLogs(String message, Exception exception)
{
//检索或创建命名记录器
_logger = LogManager.GetLogger(_repository.Name, "ServiceLogs");
if (exception != null)
{
_logger.Info(message, exception);
}
else
{
_logger.Info(message);
}
}
/// <summary>
/// 警告日志
/// </summary>
/// <param name="message"></param>
/// <param name="exception"></param>
public void WarnLogs(String message, Exception exception)
{
// 检索或创建命名记录器
_logger = LogManager.GetLogger(_repository.Name, "WarnLogs");
if (exception!=null)
{
_logger.Warn(message,exception);
}
else
{
_logger.Warn(message);
}
}
/// <summary>
/// 错误日志
/// </summary>
/// <param name="message">消息</param>
/// <param name="exception">执行过程中发生的错误</param>
public void ErrorLogs(String message, Exception exception)
{
//检索或创建命名记录器
_logger = LogManager.GetLogger(_repository.Name, "ErrorLogs");
if (exception != null)
{
_logger.Error(message, exception);
}
else
{
_logger.Error(message);
}
}
#endregion
}
}
\ No newline at end of file
<?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>{EC8375E3-F9F7-4486-B856-D4515B2286A6}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>MilitaryGuaranteeCard</RootNamespace>
<AssemblyName>MilitaryGuaranteeCard</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="ClosedXML, Version=0.64.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
<HintPath>..\packages\ClosedXML.0.64.0\lib\net40-client\ClosedXML.dll</HintPath>
</Reference>
<Reference Include="DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\DocumentFormat.OpenXml.1.0\lib\DocumentFormat.OpenXml.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=2.0.17.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.17\lib\net40\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<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.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DllImport.cs" />
<Compile Include="ExcelHelper.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Logger.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="log4net.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
<None Include="PLA\medical_card_schedule.xls">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Content Include="PLA\RW_VC_MMSC.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="PLA\RW_VC_MMSC.pdb">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace MilitaryGuaranteeCard
{
internal static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("MilitaryGuaranteeCard")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("P R C")]
[assembly: AssemblyProduct("MilitaryGuaranteeCard")]
[assembly: AssemblyCopyright("Copyright © P R C 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("ec8375e3-f9f7-4486-b856-d4515b2286a6")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace MilitaryGuaranteeCard.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MilitaryGuaranteeCard.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace MilitaryGuaranteeCard.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<!-- This section contains the log4net configuration settings -->
<log4net>
<appender name="NormalAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件路径,会自动创建-->
<file value="Logs/NormalLogs/" />
<!--编码格式:UTF-8 -->
<param name="Encoding" value="utf-8" />
<!--是否是向文件中追加日志-->
<param name="AppendToFile" value="true" />
<!--log备份文件最大数量,超过设置数量会滚动覆盖之前的日志-->
<param name="MaxSizeRollBackups" value="5" />
<!--最大文件大小(KB/MB/GB)-->
<param name="MaximumFileSize" value="1GB" />
<!--日志文件名是否是固定不变的-->
<param name="StaticLogFileName" value="false" />
<!--日志文件名格式为:2018-08-31.log-->
<datePattern value="yyyy-MM-dd'.log'" />
<!--日志滚动方式:混合方式(文件大小和日期)-->
<param name="RollingStyle" value="Composite" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %message%newline" />
</layout>
</appender>
<appender name="ServiceAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件路径,会自动创建-->
<file value="Logs/ServiceLogs/" />
<param name="Encoding" value="utf-8" />
<!--是否是向文件中追加日志-->
<param name="AppendToFile" value="true" />
<!--log备份文件最大数量,超过设置数量会滚动覆盖之前的日志-->
<param name="MaxSizeRollBackups" value="5" />
<!--最大文件大小(KB/MB/GB)-->
<param name="MaximumFileSize" value="1GB" />
<!--日志文件名是否是固定不变的-->
<param name="StaticLogFileName" value="false" />
<!--日志文件名格式为:2018-08-31.log-->
<datePattern value="yyyy-MM-dd'.log'" />
<!--日志滚动方式:混合方式(文件大小和日期)-->
<param name="RollingStyle" value="Composite" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %message%newline" />
</layout>
</appender>
<appender name="WarnAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件路径,会自动创建-->
<file value="Logs/WarnLogs/" />
<!--编码:UTF-8-->
<param name="Encoding" value="utf-8" />
<!--是否是向文件中追加日志-->
<param name="AppendToFile" value="true" />
<!--log备份文件最大数量,超过设置数量会滚动覆盖之前的日志-->
<param name="MaxSizeRollBackups" value="5" />
<!--最大文件大小(KB/MB/GB)-->
<param name="MaximumFileSize" value="1GB" />
<!--日志文件名是否是固定不变的-->
<param name="StaticLogFileName" value="false" />
<!--日志文件名格式为:2018-08-31.log-->
<datePattern value="yyyy-MM-dd'.log'" />
<!--日志滚动方式:混合方式(文件大小和日期)-->
<param name="RollingStyle" value="Composite" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %message%newline" />
</layout>
</appender>
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件路径,会自动创建-->
<file value="Logs/ErrorLogs/" />
<!--编码:UTF-8-->
<param name="Encoding" value="utf-8" />
<!--是否是向文件中追加日志-->
<param name="AppendToFile" value="true" />
<!--log备份文件最大数量,超过设置数量会滚动覆盖之前的日志-->
<param name="MaxSizeRollBackups" value="5" />
<!--最大文件大小(KB/MB/GB)-->
<param name="MaximumFileSize" value="1GB" />
<!--日志文件名是否是固定不变的-->
<param name="StaticLogFileName" value="false" />
<!--日志文件名格式为:2018-08-31.log-->
<datePattern value="yyyy-MM-dd'.log'" />
<!--日志滚动方式:混合方式(文件大小和日期)-->
<param name="RollingStyle" value="Composite" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %message%newline" />
</layout>
</appender>
<!-- Setup the root category, add the appenders and set the default level -->
<logger name="NormalLogs">
<level value="ALL" />
<appender-ref ref="NormalAppender" />
</logger>
<logger name="ServiceLogs">
<level value="ALL" />
<appender-ref ref="ServiceAppender" />
</logger>
<logger name="WarnLogs">
<level value="ALL" />
<appender-ref ref="WarnAppender" />
</logger>
<logger name="ErrorLogs">
<level value="ALL" />
<appender-ref ref="ErrorAppender" />
</logger>
</log4net>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ClosedXML" version="0.64.0" targetFramework="net40" />
<package id="DocumentFormat.OpenXml" version="1.0" targetFramework="net40" />
<package id="log4net" version="2.0.17" targetFramework="net40" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net40" />
</packages>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35506.116
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MilitaryGuaranteeCard", "MilitaryGuaranteeCard\MilitaryGuaranteeCard.csproj", "{EC8375E3-F9F7-4486-B856-D4515B2286A6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EC8375E3-F9F7-4486-B856-D4515B2286A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC8375E3-F9F7-4486-B856-D4515B2286A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC8375E3-F9F7-4486-B856-D4515B2286A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC8375E3-F9F7-4486-B856-D4515B2286A6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment