This commit is contained in:
@ -70,6 +70,9 @@
|
||||
<Reference Include="BouncyCastle.Crypto, Version=1.8.6.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Portable.BouncyCastle.1.8.6\lib\net40\BouncyCastle.Crypto.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport">
|
||||
<HintPath>..\DLL\FastReport.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.SharpZipLib, Version=1.2.0.246, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SharpZipLib.1.2.0\lib\net45\ICSharpCode.SharpZipLib.dll</HintPath>
|
||||
</Reference>
|
||||
@ -112,6 +115,7 @@
|
||||
<Compile Include="EncryptHelper.cs" />
|
||||
<Compile Include="EnumHelper.cs" />
|
||||
<Compile Include="ExcelHelper.cs" />
|
||||
<Compile Include="FastReportHelper.cs" />
|
||||
<Compile Include="FileHelper.cs" />
|
||||
<Compile Include="HttpHelper.cs" />
|
||||
<Compile Include="JsonHelper.cs" />
|
||||
|
208
Common/FastReportHelper.cs
Normal file
208
Common/FastReportHelper.cs
Normal file
@ -0,0 +1,208 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FastReport;
|
||||
using FastReport.Export.Pdf;
|
||||
namespace Epost.Common
|
||||
{
|
||||
public class FastReportHelper
|
||||
{
|
||||
#region 打印方法(winform)
|
||||
public static void Report_SKU(string filename, string batchid, string goodsname, string sku, string z_quantity, string quantity, string barcode, string z_unit, string unit, string block, string senddate, out Report reps/*,out MemoryStream strm1*/)
|
||||
{
|
||||
Report rep = null;
|
||||
try
|
||||
{
|
||||
if (block != "总分")
|
||||
{
|
||||
block = block + "通道";
|
||||
}
|
||||
rep = new Report();
|
||||
rep.Load(filename);//读取配置文件
|
||||
rep.SetParameterValue("batchid", batchid); // p1参数名
|
||||
rep.SetParameterValue("goodsname", goodsname); // p1参数名
|
||||
rep.SetParameterValue("sku", sku); // p1参数名
|
||||
rep.SetParameterValue("barcode", barcode); // p1参数名
|
||||
rep.SetParameterValue("z_quantity", z_quantity); // p1参数名
|
||||
rep.SetParameterValue("quantity", quantity); // p1参数名
|
||||
rep.SetParameterValue("z_unit", z_unit); // p1参数名
|
||||
rep.SetParameterValue("unit", unit); // p1参数名
|
||||
rep.SetParameterValue("block", block); // p1参数名
|
||||
rep.SetParameterValue("senddate", senddate); // p1参数名
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss开始打印\r\n"));
|
||||
rep.Prepare();
|
||||
rep.PrintSettings.ShowDialog = false;
|
||||
rep.Print();
|
||||
reps = rep;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
reps = null;
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ex.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 打印方法(winform)
|
||||
public static void Report_Box(string filename, string boxno, string shopid, string shopname, string barcode, string orderid, string city, string orderway, string totalcount, string printstate, string senddate, string loc, out Report reps/*,out MemoryStream strm1*/)
|
||||
{
|
||||
Report rep = null;
|
||||
try
|
||||
{
|
||||
rep = new Report();
|
||||
rep.Load(filename);//读取配置文件
|
||||
rep.SetParameterValue("boxno", boxno); // p1参数名
|
||||
rep.SetParameterValue("shopid", shopid); // p1参数名
|
||||
rep.SetParameterValue("shopname", shopname); // p1参数名
|
||||
rep.SetParameterValue("barcode", barcode); // p1参数名
|
||||
rep.SetParameterValue("orderid", orderid); // p1参数名
|
||||
rep.SetParameterValue("city", city); // p1参数名
|
||||
rep.SetParameterValue("orderway", orderway); // p1参数名
|
||||
rep.SetParameterValue("totalcount", totalcount); // p1参数名
|
||||
rep.SetParameterValue("printstate", printstate); // p1参数名
|
||||
rep.SetParameterValue("senddate", senddate); // p1参数名
|
||||
rep.SetParameterValue("loc", loc); // p1参数名
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss开始打印\r\n"));
|
||||
rep.Prepare();
|
||||
rep.PrintSettings.ShowDialog = false;
|
||||
rep.Print();
|
||||
reps = rep;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
reps = null;
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ex.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 打印方法(winform)
|
||||
public static void ReportSkuList(string filename, DataTable table, string boxcode, string boxno, string shopid, string shopname, string senddate, out Report reps/*,out MemoryStream strm1*/)
|
||||
{
|
||||
Report rep = null;
|
||||
try
|
||||
{
|
||||
rep = new Report();
|
||||
rep.Load(filename);//读取配置文件
|
||||
// DataTable table = new DataTable();//设置DataTable
|
||||
table.TableName = "RepList";//设置表名
|
||||
rep.SetParameterValue("boxcode", boxcode); // p1参数名
|
||||
rep.SetParameterValue("boxno", boxno); // p1参数名
|
||||
rep.SetParameterValue("shopid", shopid); // p1参数名
|
||||
rep.SetParameterValue("shopname", shopname); // p1参数名
|
||||
|
||||
rep.SetParameterValue("senddate", senddate); // p1参数名
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss开始打印\r\n"));
|
||||
rep.RegisterData(table, "RepList");
|
||||
rep.Prepare();
|
||||
rep.PrintSettings.ShowDialog = false;
|
||||
rep.Print();
|
||||
|
||||
reps = rep;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
reps = null;
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ex.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 打印方法DN(winform)
|
||||
public static void ReportDNList(string filename, DataTable table, string orderwayname, string boxcount, string shopid, string shopname, string address, string city, string readtime, string senddate, string orderid, out Report reps/*,out MemoryStream strm1*/)
|
||||
{
|
||||
Report rep = null;
|
||||
try
|
||||
{
|
||||
rep = new Report();
|
||||
rep.Load(filename);//读取配置文件
|
||||
// DataTable table = new DataTable();//设置DataTable
|
||||
|
||||
rep.SetParameterValue("shopid", shopid); // p1参数名
|
||||
rep.SetParameterValue("shopname", shopname); // p1参数名
|
||||
rep.SetParameterValue("orderwayname", orderwayname); // p1参数名
|
||||
rep.SetParameterValue("boxcount", boxcount); // p1参数名
|
||||
rep.SetParameterValue("address", address); // p1参数名
|
||||
rep.SetParameterValue("lighttime", readtime); // p1参数名
|
||||
rep.SetParameterValue("city", city); // p1参数名
|
||||
rep.SetParameterValue("partcode", address); // p1参数名
|
||||
rep.SetParameterValue("orderid", orderid); // p1参数名
|
||||
var time = Convert.ToDateTime(senddate).ToString("yyyy/MM/dd");
|
||||
|
||||
|
||||
rep.SetParameterValue("senddate", time.Replace("-", "/")); // p1参数名
|
||||
table.TableName = "DNList";//设置表名
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss开始打印\r\n"));
|
||||
rep.RegisterData(table, "DNList");
|
||||
rep.Prepare();
|
||||
rep.PrintSettings.ShowDialog = false;
|
||||
rep.Print();
|
||||
reps = rep;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
reps = null;
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ex.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印方法DN(winform)
|
||||
public static void ReportDNList_PDF(string filename, DataTable table, string orderwayname, string boxcount, string shopid, string shopname, string address, string city, string readtime, string senddate, string orderid, out Report reps/*,out MemoryStream strm1*/)
|
||||
{
|
||||
Report rep = null;
|
||||
try
|
||||
{
|
||||
string PDF_File = ConfigurationManager.AppSettings["PDF_File"] + "\\" + DateTime.Now.ToString("yyyyMMdd");
|
||||
rep = new Report();
|
||||
rep.Load(filename);//读取配置文件
|
||||
// DataTable table = new DataTable();//设置DataTable
|
||||
|
||||
rep.SetParameterValue("shopid", shopid); // p1参数名
|
||||
rep.SetParameterValue("shopname", shopname); // p1参数名
|
||||
rep.SetParameterValue("orderwayname", orderwayname); // p1参数名
|
||||
rep.SetParameterValue("boxcount", boxcount); // p1参数名
|
||||
rep.SetParameterValue("address", address); // p1参数名
|
||||
rep.SetParameterValue("lighttime", readtime); // p1参数名
|
||||
rep.SetParameterValue("city", city); // p1参数名
|
||||
rep.SetParameterValue("partcode", address); // p1参数名
|
||||
rep.SetParameterValue("orderid", orderid); // p1参数名
|
||||
|
||||
rep.SetParameterValue("senddate", senddate); // p1参数名
|
||||
table.TableName = "DNList";//设置表名
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss开始打印\r\n"));
|
||||
rep.RegisterData(table, "DNList");
|
||||
rep.Prepare();
|
||||
//rep.PrintSettings.ShowDialog = false;
|
||||
//rep.Print();
|
||||
if (!Directory.Exists(PDF_File))
|
||||
{
|
||||
DirectoryInfo f = System.IO.Directory.CreateDirectory(PDF_File);
|
||||
|
||||
}
|
||||
PDFExport expPdf = new PDFExport();
|
||||
rep.Export(expPdf, PDF_File + "\\" + shopid + "_" + DateTime.Now.ToString("yyyyMMdd") + ".pdf");
|
||||
reps = rep;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
reps = null;
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ex.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
BIN
DLL/FastReport.Bars.dll
Normal file
BIN
DLL/FastReport.Bars.dll
Normal file
Binary file not shown.
BIN
DLL/FastReport.Editor.dll
Normal file
BIN
DLL/FastReport.Editor.dll
Normal file
Binary file not shown.
BIN
DLL/FastReport.Service.dll
Normal file
BIN
DLL/FastReport.Service.dll
Normal file
Binary file not shown.
BIN
DLL/FastReport.VSDesign.dll
Normal file
BIN
DLL/FastReport.VSDesign.dll
Normal file
Binary file not shown.
BIN
DLL/FastReport.Web.dll
Normal file
BIN
DLL/FastReport.Web.dll
Normal file
Binary file not shown.
2671
DLL/FastReport.Web.xml
Normal file
2671
DLL/FastReport.Web.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
DLL/FastReport.dll
Normal file
BIN
DLL/FastReport.dll
Normal file
Binary file not shown.
BIN
DLL/FastReportWebApi.dll
Normal file
BIN
DLL/FastReportWebApi.dll
Normal file
Binary file not shown.
57
DLL/FastReportWebApi.dll.config
Normal file
57
DLL/FastReportWebApi.dll.config
Normal file
@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=301879
|
||||
-->
|
||||
<configuration>
|
||||
<appSettings/>
|
||||
<!--
|
||||
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
||||
|
||||
可在 <httpRuntime> 标记上设置以下特性。
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.7.2" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.1"/>
|
||||
<httpRuntime targetFramework="4.6.1"/>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="FastReportHandler" path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
|
||||
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
|
||||
<remove name="OPTIONSVerbHandler"/>
|
||||
<remove name="TRACEVerbHandler"/>
|
||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
@ -190,6 +190,13 @@ namespace Epost.BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取所有小区
|
||||
public List<AddressstorageModel> GetOrderWayList(string block = "", string shelfid = "")
|
||||
{
|
||||
return dal.GetOrderWayList(block, shelfid);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取所有小区
|
||||
public List<AddressstorageModel> GetshelfidList(string block = "")
|
||||
{
|
||||
|
@ -30,63 +30,63 @@ namespace Epost.BLL
|
||||
public ResultModel Initialization_T(bool isback = true)
|
||||
{
|
||||
ResultModel resultModel = new ResultModel();
|
||||
//List<LabelParamModel> list = new List<LabelParamModel>();
|
||||
//try
|
||||
//{
|
||||
// DataTable dt = addrBLL.getControlList();
|
||||
// bool result = false;
|
||||
// if (dt != null && dt.Rows.Count > 0)
|
||||
// {
|
||||
// foreach (DataRow item in dt.Rows)
|
||||
// {
|
||||
// LabelParamModel model = new LabelParamModel();
|
||||
// model.ControlIP = item["ControlIP"].ToString();
|
||||
// model.Address = "9999";
|
||||
// model.Command = "FORMAT_JOB_DATA";
|
||||
// model.Parameter = "50";
|
||||
// model.Timeout = "0.5";
|
||||
// list.Add(model);
|
||||
// model = new LabelParamModel();
|
||||
// model.ControlIP = item["ControlIP"].ToString();
|
||||
// model.Address = "9999";
|
||||
// model.Command = "CONNECT";
|
||||
// model.Parameter = IP;
|
||||
// model.Timeout = "0.5";
|
||||
// list.Add(model);
|
||||
// model = new LabelParamModel();
|
||||
// model.ControlIP = item["ControlIP"].ToString();
|
||||
// model.Address = "9999";
|
||||
// model.Parameter = "11111000";
|
||||
// model.Command = "UNLOCK";
|
||||
// model.Timeout = "0.5";
|
||||
// list.Add(model);
|
||||
// model = new LabelParamModel();
|
||||
// model.ControlIP = item["ControlIP"].ToString();
|
||||
// model.Address = "9999";
|
||||
// model.Command = "LED_OFF";
|
||||
// model.Timeout = "0.5";
|
||||
// list.Add(model);
|
||||
List<LabelParamModel> list = new List<LabelParamModel>();
|
||||
try
|
||||
{
|
||||
DataTable dt = addrBLL.getControlList();
|
||||
bool result = false;
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow item in dt.Rows)
|
||||
{
|
||||
LabelParamModel model = new LabelParamModel();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Address = "9999";
|
||||
model.Command = "FORMAT_JOB_DATA";
|
||||
model.Parameter = "50";
|
||||
model.Timeout = "0.5";
|
||||
list.Add(model);
|
||||
model = new LabelParamModel();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Address = "9999";
|
||||
model.Command = "CONNECT";
|
||||
model.Parameter = IP;
|
||||
model.Timeout = "0.5";
|
||||
list.Add(model);
|
||||
model = new LabelParamModel();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Address = "9999";
|
||||
model.Parameter = "11111000";
|
||||
model.Command = "UNLOCK";
|
||||
model.Timeout = "0.5";
|
||||
list.Add(model);
|
||||
model = new LabelParamModel();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Address = "9999";
|
||||
model.Command = "LED_OFF";
|
||||
model.Timeout = "0.5";
|
||||
list.Add(model);
|
||||
|
||||
// }
|
||||
// if (list.Any())
|
||||
// {
|
||||
// resultModel = SendALL_Init(list);
|
||||
// }
|
||||
}
|
||||
if (list.Any())
|
||||
{
|
||||
resultModel = SendALL_Init(list);
|
||||
}
|
||||
|
||||
// }
|
||||
// return resultModel;
|
||||
}
|
||||
return resultModel;
|
||||
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
// resultModel.result = "0";
|
||||
// resultModel.msg = "初始化失败!";
|
||||
// LogHelper.WriteLogInfo("初始化异常:" + ex.Message);
|
||||
|
||||
//}
|
||||
resultModel.result = "0";
|
||||
resultModel.msg = "成功";
|
||||
resultModel.msg = "初始化失败!";
|
||||
LogHelper.WriteLogInfo("初始化异常:" + ex.Message);
|
||||
|
||||
}
|
||||
//resultModel.result = "0";
|
||||
//resultModel.msg = "成功";
|
||||
return resultModel;
|
||||
}
|
||||
#endregion
|
||||
|
@ -14,32 +14,32 @@ namespace Epost.BLL
|
||||
WmsTaskBLL taskbll = new WmsTaskBLL();
|
||||
public DataTable GetSkuInfoList(string sku)
|
||||
{
|
||||
if (sku.Substring(0, 1) == "2")
|
||||
{
|
||||
if (sku.Substring(1, 1) == "5")
|
||||
{
|
||||
if (sku.Length >= 7)
|
||||
{
|
||||
sku = sku.Substring(2, 6);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sku.Length >= 7)
|
||||
{
|
||||
sku = sku.Substring(1, 6);
|
||||
}
|
||||
}
|
||||
return dal.GetSkuInfo(sku);
|
||||
}
|
||||
else
|
||||
{
|
||||
//if (sku.Substring(0, 1) == "2")
|
||||
//{
|
||||
// if (sku.Substring(1, 1) == "5")
|
||||
// {
|
||||
// if (sku.Length >= 7)
|
||||
// {
|
||||
// sku = sku.Substring(2, 6);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (sku.Length >= 7)
|
||||
// {
|
||||
// sku = sku.Substring(1, 6);
|
||||
// }
|
||||
// }
|
||||
// return dal.GetSkuInfo(sku);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// return dal.GetSkuInfoList(sku);
|
||||
//}
|
||||
|
||||
return dal.GetSkuInfoList(sku);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -510,7 +510,7 @@ namespace Epost.BLL
|
||||
//show.Islock = false;
|
||||
//comBLL.ShowBoxMessage_M(show);
|
||||
//downCacheDAL.UpdateJobDownModelList(new List<ResultMessageModel> { data }, EdownCommend.Execute);
|
||||
logBLL.SaveShowMesError("商品:" + scanStr + "无任务!", "商品:" + scanStr + "无任务!");
|
||||
logBLL.SaveShowMesError("商品:" + data.ScanCode + "无任务!", "商品:" + data.ScanCode + "无任务!");
|
||||
|
||||
}
|
||||
|
||||
|
@ -288,6 +288,26 @@ namespace Epost.DAL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取所有小区
|
||||
public List<AddressstorageModel> GetOrderWayList(string block, string shelfid)
|
||||
{
|
||||
string strwhere = string.Empty;
|
||||
if (!string.IsNullOrEmpty(block))
|
||||
{
|
||||
strwhere += "and block ='" + block + "'";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(shelfid))
|
||||
{
|
||||
strwhere += "and shelfid ='" + shelfid + "'";
|
||||
}
|
||||
string sql = string.Format("select area,block,way from Addressstorage where type=1 " + strwhere + " group by area,block,way");
|
||||
DataTable dt = db.GetsqlForDT(sql);
|
||||
|
||||
return ModelConvertHelper<AddressstorageModel>.ConvertToList(dt);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取所有小区
|
||||
public List<AddressstorageModel> GetshelfidList(string block)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace Epost.DAL
|
||||
{
|
||||
strwhere = strwhere + " and block='" + block + "'";
|
||||
}
|
||||
string sql = string.Format("select id, orderid, city , fdate , boxcode, shopname, shopid, orderway, boxno,isnull(totalcount,0) as totalcount , warehouseid, state,block,printstate,senddate,loc from print_box where state=0 " + strwhere + " order by id");
|
||||
string sql = string.Format("select id, orderid, city , fdate , boxcode, shopname, shopid, orderway, boxno,isnull(totalcount,0) as totalcount , warehouseid, state,block,printstate,senddate,loc,matchid from print_box where state=0 " + strwhere + " order by id");
|
||||
return db.GetsqlForDT(sql);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -14,7 +14,7 @@ namespace Epost.DAL
|
||||
public DataTable GetSkuInfoList(string sku)
|
||||
{
|
||||
|
||||
string sql = string.Format(" SELECT * FROM skuinfo WHERE (CHARINDEX('{0}',location)>0) or sku='{1}'",
|
||||
string sql = string.Format(" SELECT top 1 * FROM orders WHERE (CHARINDEX('{0}',barcode)>0) or sku='{1}'",
|
||||
sku, sku);
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<_PublishTargetUrl>D:\驿传\GuangzhouHuiFeng_DAS</_PublishTargetUrl>
|
||||
<History>True|2025-06-23T10:49:19.8150434Z||;False|2025-06-23T18:47:53.8200239+08:00||;True|2025-06-23T18:13:17.9954519+08:00||;True|2025-06-16T16:39:46.1896351+08:00||;True|2025-06-04T15:01:49.8008687+08:00||;True|2025-01-16T15:37:40.8814043+08:00||;True|2024-12-19T15:11:44.2536385+08:00||;True|2024-12-10T19:10:26.6514077+08:00||;True|2024-12-10T18:30:34.7211512+08:00||;True|2024-12-09T14:06:46.4112259+08:00||;True|2024-12-03T14:23:26.2134334+08:00||;True|2024-11-27T18:53:48.7373661+08:00||;True|2024-11-27T14:27:33.0840789+08:00||;True|2024-11-27T14:08:15.6442660+08:00||;True|2024-11-27T12:10:03.9412549+08:00||;True|2024-11-27T11:45:31.3775097+08:00||;True|2024-11-27T11:32:00.8297320+08:00||;True|2024-11-23T20:50:04.5476409+08:00||;False|2024-11-04T17:48:25.2781696+08:00||;True|2024-11-01T16:04:56.3535724+08:00||;True|2024-09-01T10:13:37.1598955+08:00||;True|2024-08-31T17:27:57.5375469+08:00||;True|2022-07-15T16:41:13.9750291+08:00||;True|2022-07-14T14:02:20.7983427+08:00||;True|2022-07-13T17:40:22.7531000+08:00||;True|2022-07-13T17:34:22.9908701+08:00||;True|2022-07-13T17:30:06.3588502+08:00||;True|2022-07-11T10:32:06.9053981+08:00||;True|2021-04-26T10:07:37.4889549+08:00||;True|2021-04-09T10:32:51.9130162+08:00||;True|2021-04-09T10:31:50.4974012+08:00||;</History>
|
||||
<History>True|2025-06-24T06:58:06.2128620Z||;False|2025-06-24T14:57:07.8710970+08:00||;True|2025-06-24T14:54:53.0047658+08:00||;True|2025-06-24T14:21:21.1147627+08:00||;False|2025-06-24T14:20:37.2040902+08:00||;True|2025-06-24T13:14:08.5696828+08:00||;True|2025-06-24T11:28:41.9414169+08:00||;False|2025-06-24T11:28:18.5427055+08:00||;True|2025-06-23T18:49:19.8150434+08:00||;False|2025-06-23T18:47:53.8200239+08:00||;True|2025-06-23T18:13:17.9954519+08:00||;True|2025-06-16T16:39:46.1896351+08:00||;True|2025-06-04T15:01:49.8008687+08:00||;True|2025-01-16T15:37:40.8814043+08:00||;True|2024-12-19T15:11:44.2536385+08:00||;True|2024-12-10T19:10:26.6514077+08:00||;True|2024-12-10T18:30:34.7211512+08:00||;True|2024-12-09T14:06:46.4112259+08:00||;True|2024-12-03T14:23:26.2134334+08:00||;True|2024-11-27T18:53:48.7373661+08:00||;True|2024-11-27T14:27:33.0840789+08:00||;True|2024-11-27T14:08:15.6442660+08:00||;True|2024-11-27T12:10:03.9412549+08:00||;True|2024-11-27T11:45:31.3775097+08:00||;True|2024-11-27T11:32:00.8297320+08:00||;True|2024-11-23T20:50:04.5476409+08:00||;False|2024-11-04T17:48:25.2781696+08:00||;True|2024-11-01T16:04:56.3535724+08:00||;True|2024-09-01T10:13:37.1598955+08:00||;True|2024-08-31T17:27:57.5375469+08:00||;True|2022-07-15T16:41:13.9750291+08:00||;True|2022-07-14T14:02:20.7983427+08:00||;True|2022-07-13T17:40:22.7531000+08:00||;True|2022-07-13T17:34:22.9908701+08:00||;True|2022-07-13T17:30:06.3588502+08:00||;True|2022-07-11T10:32:06.9053981+08:00||;True|2021-04-26T10:07:37.4889549+08:00||;True|2021-04-09T10:32:51.9130162+08:00||;True|2021-04-09T10:31:50.4974012+08:00||;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
@ -33,19 +33,19 @@
|
||||
<publishTime>04/04/2018 15:45:12</publishTime>
|
||||
</File>
|
||||
<File Include="bin/App_global.asax.compiled">
|
||||
<publishTime>06/23/2025 18:13:15</publishTime>
|
||||
<publishTime>06/24/2025 14:54:49</publishTime>
|
||||
</File>
|
||||
<File Include="bin/App_global.asax.dll">
|
||||
<publishTime>06/23/2025 18:13:15</publishTime>
|
||||
<publishTime>06/24/2025 14:54:49</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BouncyCastle.Crypto.dll">
|
||||
<publishTime>02/24/2020 15:29:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Common.dll">
|
||||
<publishTime>06/23/2025 17:11:31</publishTime>
|
||||
<publishTime>06/24/2025 11:28:02</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Common.pdb">
|
||||
<publishTime>06/23/2025 17:11:31</publishTime>
|
||||
<publishTime>06/24/2025 11:28:02</publishTime>
|
||||
</File>
|
||||
<File Include="bin/ComposerSDK.dll">
|
||||
<publishTime>04/29/2020 16:50:14</publishTime>
|
||||
@ -63,31 +63,31 @@
|
||||
<publishTime>10/23/2017 13:15:20</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.BLL.dll">
|
||||
<publishTime>06/23/2025 17:22:01</publishTime>
|
||||
<publishTime>06/24/2025 14:54:36</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.BLL.pdb">
|
||||
<publishTime>06/23/2025 17:22:01</publishTime>
|
||||
<publishTime>06/24/2025 14:54:36</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.BLL.XmlSerializers.dll">
|
||||
<publishTime>08/26/2020 18:09:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.DAL.dll">
|
||||
<publishTime>06/23/2025 17:11:31</publishTime>
|
||||
<publishTime>06/24/2025 14:54:36</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.DAL.pdb">
|
||||
<publishTime>06/23/2025 17:11:31</publishTime>
|
||||
<publishTime>06/24/2025 14:54:36</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.DPS.dll">
|
||||
<publishTime>06/23/2025 17:22:03</publishTime>
|
||||
<publishTime>06/24/2025 14:54:40</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.DPS.pdb">
|
||||
<publishTime>06/23/2025 17:22:03</publishTime>
|
||||
<publishTime>06/24/2025 14:54:40</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.Model.dll">
|
||||
<publishTime>06/23/2025 17:11:31</publishTime>
|
||||
<publishTime>06/24/2025 11:28:01</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.Model.pdb">
|
||||
<publishTime>06/23/2025 17:11:31</publishTime>
|
||||
<publishTime>06/24/2025 11:28:01</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Epost.TestToolsWeb.dll">
|
||||
<publishTime>09/06/2018 11:57:11</publishTime>
|
||||
@ -104,6 +104,15 @@
|
||||
<File Include="bin/ExcelIntOut.pdb">
|
||||
<publishTime>04/29/2020 16:50:14</publishTime>
|
||||
</File>
|
||||
<File Include="bin/FastReport.Bars.dll">
|
||||
<publishTime>06/24/2025 09:50:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/FastReport.dll">
|
||||
<publishTime>06/24/2025 09:50:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/FastReport.Editor.dll">
|
||||
<publishTime>06/24/2025 09:50:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Google.Protobuf.dll">
|
||||
<publishTime>08/10/2018 18:51:54</publishTime>
|
||||
</File>
|
||||
@ -5652,7 +5661,7 @@
|
||||
<publishTime>05/30/2022 16:58:47</publishTime>
|
||||
</File>
|
||||
<File Include="PrecompiledApp.config">
|
||||
<publishTime>06/23/2025 18:13:08</publishTime>
|
||||
<publishTime>06/24/2025 14:54:41</publishTime>
|
||||
</File>
|
||||
<File Include="Scripts/ai.0.22.9-build00167.js">
|
||||
<publishTime>04/04/2018 15:45:12</publishTime>
|
||||
@ -7572,7 +7581,7 @@
|
||||
<publishTime>07/04/2022 14:22:38</publishTime>
|
||||
</File>
|
||||
<File Include="Web.config">
|
||||
<publishTime>06/23/2025 18:13:07</publishTime>
|
||||
<publishTime>06/24/2025 11:28:07</publishTime>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,7 +1,7 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.32126.315
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36121.58 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Epost.TestToolsWeb.Tests", "Epost.TestToolsWeb.Tests\Epost.TestToolsWeb.Tests.csproj", "{4D211913-A049-4F61-AF84-B664002363CE}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
@ -18,6 +18,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Epost.DAL", "Epost.DAL\Epos
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Epost.BLL", "Epost.BLL\Epost.BLL.csproj", "{A9841460-CC68-4350-BD71-2970E10BBDEC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrintBoxFormsApp", "PrintBoxFormsApp\PrintBoxFormsApp.csproj", "{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -100,6 +102,18 @@ Global
|
||||
{A9841460-CC68-4350-BD71-2970E10BBDEC}.Release|x64.Build.0 = Release|x64
|
||||
{A9841460-CC68-4350-BD71-2970E10BBDEC}.Release|x86.ActiveCfg = Release|x86
|
||||
{A9841460-CC68-4350-BD71-2970E10BBDEC}.Release|x86.Build.0 = Release|x86
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Release|x64.Build.0 = Release|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
240
PrintBoxFormsApp/App.config
Normal file
240
PrintBoxFormsApp/App.config
Normal file
@ -0,0 +1,240 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=301880
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="weijie_dpsEntities" connectionString="metadata=res://*/WJDB.csdl|res://*/WJDB.ssdl|res://*/WJDB.msl;provider=System.Data.SqlClient;provider connection string="data source=.;initial catalog=weijie_dps;user id=sa;password=123456;min pool size=4;max pool size=4;packet size=3072;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient"/>
|
||||
<add name="SqlLocDPSConnection" connectionString="server=DESKTOP-IC0279A\SQLEXPRESS;user id=sa;password=epost123;database=GuangZhouHuiFeng_DAS;min pool size=512;max pool size=512;packet size=3072" providerName="System.Data.SqlClient"/>
|
||||
<add name="MysqlLocDPSConnection" connectionString="Server=139.196.36.200;Port=3306;Database=xiangyang_dps;User=EpostTest; Password=antion;" />
|
||||
|
||||
<add name="OraMidConnString" connectionString="data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=139.196.36.200)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=EpostDB)));user id=C##Test;password=test"/>
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
<add key="ControlXML" value="/App_Data/EpostController.xml" />
|
||||
<add key="LabelXML" value="/App_Data/AddressStorage.xml" />
|
||||
<add key="ResultsXML" value="/App_Data/Results.xml" />
|
||||
<add key="WebAPIUrl" value="http://192.168.3.110:8072/api/WebAPI/ProcessingResult" />
|
||||
<add key="ShowMode" value="1" />
|
||||
<add key="SetupMode" value="\Epost_P\Epost.TestToolsWeb\App_Data\SetupMode.txt" />
|
||||
<add key="CARID" value="HT01" />
|
||||
<add key="ServerAPIURL" value="http://192.168.3.110:8073/api/WebAPI" />
|
||||
<add key="SleepTime" value="1" />
|
||||
|
||||
|
||||
<add key="Print_Box01" value="E:\WORK\项目文件\2025项目文件\广州会丰\打印模板\箱标签01.frx" />
|
||||
|
||||
|
||||
|
||||
</appSettings>
|
||||
<!--
|
||||
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
||||
|
||||
可在 <httpRuntime> 标记上设置以下特性。
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.6.1" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<customErrors mode="Off" defaultRedirect="~/Error/index">
|
||||
<error statusCode="404" redirect="~/Error/index"/>
|
||||
</customErrors>
|
||||
<authentication mode="None"/>
|
||||
<compilation debug="true" targetFramework="4.6.1"/>
|
||||
<httpRuntime targetFramework="4.5.2"/>
|
||||
<httpModules>
|
||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
|
||||
</httpModules>
|
||||
<sessionState mode="InProc" timeout="518400"/>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<modules>
|
||||
<remove name="FormsAuthentication"/>
|
||||
<remove name="ApplicationInsightsWebTracking"/>
|
||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
|
||||
</modules>
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
<handlers>
|
||||
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
|
||||
<remove name="OPTIONSVerbHandler"/>
|
||||
<remove name="TRACEVerbHandler"/>
|
||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
<parameters>
|
||||
<parameter value="mssqllocaldb"/>
|
||||
</parameters>
|
||||
</defaultConnectionFactory>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
|
||||
</providers>
|
||||
</entityFramework>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
<system.net>
|
||||
<settings>
|
||||
<httpWebRequest useUnsafeHeaderParsing="true"/>
|
||||
</settings>
|
||||
</system.net>
|
||||
|
||||
|
||||
<!--log日志-->
|
||||
<log4net>
|
||||
<appender name="SystemLogAppender_INFO" type="log4net.Appender.RollingFileAppender">
|
||||
<file value="Log/System_Log/" />
|
||||
<appendToFile value="true" />
|
||||
<rollingStyle value="Date" />
|
||||
<staticLogFileName value="false" />
|
||||
<datePattern value="yyyy-MM-dd".INFO.log"" />
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<!--输出格式-->
|
||||
<conversionPattern value="%date %-5level %message%newline" />
|
||||
</layout>
|
||||
<MaximumFileSize value="500M"></MaximumFileSize>
|
||||
<MaxSizeRollBackups value="-1"></MaxSizeRollBackups>
|
||||
<RollingStyle value="Composite"></RollingStyle>
|
||||
<filter type="log4net.Filter.LoggerMatchFilter">
|
||||
<loggerToMatch value="System_Log" />
|
||||
</filter>
|
||||
<filter type="log4net.Filter.DenyAllFilter" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</appender>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<appender name="SystemLogAppender_LightUp" type="log4net.Appender.RollingFileAppender">
|
||||
<file value="Log/System_Log/" />
|
||||
<appendToFile value="true" />
|
||||
|
||||
<staticLogFileName value="false" />
|
||||
<datePattern value="yyyy-MM-dd".LIGHTUP.log"" />
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<!--输出格式-->
|
||||
<conversionPattern value="%date %-5level %message%newline"/>
|
||||
</layout>
|
||||
<MaximumFileSize value="500M"></MaximumFileSize>
|
||||
<MaxSizeRollBackups value="-1"></MaxSizeRollBackups>
|
||||
<RollingStyle value="Composite"></RollingStyle>
|
||||
<filter type="log4net.Filter.LoggerMatchFilter">
|
||||
<loggerToMatch value="LightUp"/>
|
||||
</filter>
|
||||
<filter type="log4net.Filter.DenyAllFilter"/>
|
||||
</appender>
|
||||
<appender name="SystemLogAppender_JobDown" type="log4net.Appender.RollingFileAppender">
|
||||
<file value="Log/System_Log/"/>
|
||||
<appendToFile value="true"/>
|
||||
<rollingStyle value="Date"/>
|
||||
<staticLogFileName value="false"/>
|
||||
<datePattern value="yyyy-MM-dd".JOBDOWN.log""/>
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<!--输出格式-->
|
||||
<conversionPattern value="%date %-5level %message%newline"/>
|
||||
</layout>
|
||||
<MaximumFileSize value="500M"></MaximumFileSize>
|
||||
<MaxSizeRollBackups value="-1"></MaxSizeRollBackups>
|
||||
<RollingStyle value="Composite"></RollingStyle>
|
||||
<filter type="log4net.Filter.LoggerMatchFilter">
|
||||
<loggerToMatch value="JobDown"/>
|
||||
</filter>
|
||||
<filter type="log4net.Filter.DenyAllFilter"/>
|
||||
</appender>
|
||||
<appender name="SystemLogAppender_Error" type="log4net.Appender.RollingFileAppender">
|
||||
<file value="Log/System_Log/"/>
|
||||
<appendToFile value="true"/>
|
||||
<rollingStyle value="Date"/>
|
||||
<staticLogFileName value="false"/>
|
||||
<datePattern value="yyyy-MM-dd".ERROR.log""/>
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<!--输出格式-->
|
||||
<conversionPattern value="%date %-5level %message%newline" />
|
||||
</layout>
|
||||
<MaximumFileSize value="500M"></MaximumFileSize>
|
||||
<MaxSizeRollBackups value="-1"></MaxSizeRollBackups>
|
||||
<RollingStyle value="Composite"></RollingStyle>
|
||||
<filter type="log4net.Filter.LoggerMatchFilter">
|
||||
<loggerToMatch value="ErrorLog" />
|
||||
|
||||
</filter>
|
||||
<filter type="log4net.Filter.DenyAllFilter" />
|
||||
|
||||
</appender>
|
||||
<root>
|
||||
<level value="ALL" />
|
||||
<appender-ref ref="SystemLogAppender_INFO" />
|
||||
<appender-ref ref="SystemLogAppender_JobDown" />
|
||||
<appender-ref ref="SystemLogAppender_LightUp" />
|
||||
<appender-ref ref="SystemLogAppender_Error" />
|
||||
|
||||
</root>
|
||||
</log4net>
|
||||
<!--/log日志-->
|
||||
</configuration>
|
40
PrintBoxFormsApp/Form1.Designer.cs
generated
Normal file
40
PrintBoxFormsApp/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,40 @@
|
||||
namespace PrintBoxFormsApp
|
||||
{
|
||||
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.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
20
PrintBoxFormsApp/Form1.cs
Normal file
20
PrintBoxFormsApp/Form1.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PrintBoxFormsApp
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
104
PrintBoxFormsApp/PrintBoxFormsApp.csproj
Normal file
104
PrintBoxFormsApp/PrintBoxFormsApp.csproj
Normal file
@ -0,0 +1,104 @@
|
||||
<?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>{6AF05017-5BC1-41E5-B4E4-747BF25A4B28}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>PrintBoxFormsApp</RootNamespace>
|
||||
<AssemblyName>PrintBoxFormsApp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<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' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="FastReport">
|
||||
<HintPath>..\DLL\FastReport.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<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.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PrintList.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PrintList.Designer.cs">
|
||||
<DependentUpon>PrintList.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<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>
|
||||
</Compile>
|
||||
<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>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Common\Epost.Common.csproj">
|
||||
<Project>{44C36CA3-D672-40D1-AC94-91115DE29A2D}</Project>
|
||||
<Name>Epost.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Epost.BLL\Epost.BLL.csproj">
|
||||
<Project>{A9841460-CC68-4350-BD71-2970E10BBDEC}</Project>
|
||||
<Name>Epost.BLL</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Epost.Model\Epost.Model.csproj">
|
||||
<Project>{07648CB8-934F-48E1-9DDA-46C8F9A5936D}</Project>
|
||||
<Name>Epost.Model</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
39
PrintBoxFormsApp/PrintList.Designer.cs
generated
Normal file
39
PrintBoxFormsApp/PrintList.Designer.cs
generated
Normal file
@ -0,0 +1,39 @@
|
||||
namespace PrintBoxFormsApp
|
||||
{
|
||||
partial class PrintList
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "PrintList";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
144
PrintBoxFormsApp/PrintList.cs
Normal file
144
PrintBoxFormsApp/PrintList.cs
Normal file
@ -0,0 +1,144 @@
|
||||
using Epost.BLL;
|
||||
using Epost.Common;
|
||||
using Epost.Model;
|
||||
using FastReport;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PrintBoxFormsApp
|
||||
{
|
||||
public partial class PrintList : Form
|
||||
{
|
||||
|
||||
Print_BoxBLL boxbll = new Print_BoxBLL();
|
||||
AddressstorageBLL addrBLL = new AddressstorageBLL();
|
||||
private Thread timerThreadDown;//创建线程11111111111111111111111111111
|
||||
private Thread timerThreadUp;//创建线程
|
||||
int SleepTime = 1;
|
||||
public PrintList()
|
||||
{
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(ConfigurationManager.AppSettings["SleepTime"]))
|
||||
{
|
||||
int.TryParse(ConfigurationManager.AppSettings["SleepTime"], out SleepTime);
|
||||
}
|
||||
|
||||
InitializeComponent();
|
||||
if (System.Diagnostics.Process.GetProcessesByName("ReturnDataForms").ToList().Count > 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
//存在
|
||||
MessageBox.Show("请关闭已经启动的程序后再进行尝试");
|
||||
System.Diagnostics.Process[] ps = System.Diagnostics.Process.GetProcessesByName("ReturnDataForms");
|
||||
foreach (System.Diagnostics.Process p in ps)
|
||||
{
|
||||
p.Kill();
|
||||
}
|
||||
MessageBox.Show("已经帮您关闭进程,请您重新启动");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
LogHelper.WriteLogInfo("程序已经启动提示异常:" + ex.Message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
LogHelper.WriteLogInfo("程序启动-版本20191228");
|
||||
timerThreadDown = new Thread(new ThreadStart(GetWorkList));
|
||||
timerThreadDown.Start();
|
||||
//timerThreadUp = new Thread(new ThreadStart(GetWorkList_DN));
|
||||
//timerThreadUp.Start();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#region 获取订单信息
|
||||
private void GetWorkList()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
LogHelper.WriteLogInfo("打印程序运行中");
|
||||
Print();
|
||||
|
||||
Thread.Sleep(1000 * SleepTime);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLogInfo(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":程序异常!\r\n" + ex.Message);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
public void Print()
|
||||
{
|
||||
try
|
||||
{
|
||||
//换箱打印
|
||||
print_box();
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLogInfo("打印异常:" + ex.Message, LogHelper.Log_Type.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 换箱打印
|
||||
public void print_box()
|
||||
{
|
||||
List<AddressstorageModel> Arealist = addrBLL.GetOrderWayList();
|
||||
if (Arealist.Any())
|
||||
{
|
||||
foreach (AddressstorageModel areaitem in Arealist)
|
||||
{
|
||||
//查询需要打印的列表
|
||||
DataTable dt = boxbll.GetPrintList(areaitem.way);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
string filePath = ConfigurationManager.AppSettings["Print_Box" + areaitem.area];
|
||||
LogHelper.WriteLogInfo("文件路径" + filePath + "\r\n");
|
||||
foreach (DataRow item in dt.Rows)
|
||||
{
|
||||
string totalcount = string.Empty;
|
||||
//if (Convert.ToInt32(item["totalcount"].ToString()) > 0)
|
||||
//{
|
||||
// totalcount = "共" + item["totalcount"].ToString() + "箱";
|
||||
//}
|
||||
//string boxno = "第" + item["boxno"].ToString() + "箱";
|
||||
FastReportHelper.Report_Box(@filePath, "", item["shopid"].ToString(), item["shopname"].ToString(), item["boxcode"].ToString(), item["matchid"].ToString(), "", item["orderway"].ToString(), totalcount, item["printstate"].ToString(), item["senddate"].ToString(), item["loc"].ToString(), out Report rep);
|
||||
boxbll.UpPrintList(item["id"].ToString());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
22
PrintBoxFormsApp/Program.cs
Normal file
22
PrintBoxFormsApp/Program.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PrintBoxFormsApp
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new PrintList());
|
||||
}
|
||||
}
|
||||
}
|
33
PrintBoxFormsApp/Properties/AssemblyInfo.cs
Normal file
33
PrintBoxFormsApp/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("PrintBoxFormsApp")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("PrintBoxFormsApp")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("6af05017-5bc1-41e5-b4e4-747bf25a4b28")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
PrintBoxFormsApp/Properties/Resources.Designer.cs
generated
Normal file
71
PrintBoxFormsApp/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本: 4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PrintBoxFormsApp.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 强类型资源类,用于查找本地化字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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 ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PrintBoxFormsApp.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
PrintBoxFormsApp/Properties/Resources.resx
Normal file
117
PrintBoxFormsApp/Properties/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
||||
<?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>
|
30
PrintBoxFormsApp/Properties/Settings.Designer.cs
generated
Normal file
30
PrintBoxFormsApp/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PrintBoxFormsApp.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
PrintBoxFormsApp/Properties/Settings.settings
Normal file
7
PrintBoxFormsApp/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?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>
|
Reference in New Issue
Block a user