jz.kai 11 miesięcy temu
rodzic
commit
d445c399da

+ 179 - 0
BLL/Account.cs

@@ -0,0 +1,179 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* account.cs
+*
+* 功 能: N/A
+* 类 名: account
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Collections.Generic;
+using Maticsoft.Common;
+using Jpsoft.Model;
+namespace Jpsoft.BLL
+{
+	/// <summary>
+	/// account
+	/// </summary>
+	public partial class Account
+	{
+		private readonly Jpsoft.DAL.Account dal=new Jpsoft.DAL.Account();
+		public Account()
+		{}
+		#region  BasicMethod
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			return dal.Exists(id_);
+		}
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Account model)
+		{
+			return dal.Add(model);
+		}
+
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Account model)
+		{
+			return dal.Update(model);
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			return dal.Delete(id_);
+		}
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			return dal.DeleteList(id_list );
+		}
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Account GetModel(string id_)
+		{
+			
+			return dal.GetModel(id_);
+		}
+
+		/// <summary>
+		/// 得到一个对象实体,从缓存中
+		/// </summary>
+		public Jpsoft.Model.Account GetModelByCache(string id_)
+		{
+			
+			string CacheKey = "accountModel-" + id_;
+			object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
+			if (objModel == null)
+			{
+				try
+				{
+					objModel = dal.GetModel(id_);
+					if (objModel != null)
+					{
+						int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
+						Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
+					}
+				}
+				catch{}
+			}
+			return (Jpsoft.Model.Account)objModel;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			return dal.GetList(strWhere);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Account> GetModelList(string strWhere)
+		{
+			DataSet ds = dal.GetList(strWhere);
+			return DataTableToList(ds.Tables[0]);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Account> DataTableToList(DataTable dt)
+		{
+			List<Jpsoft.Model.Account> modelList = new List<Jpsoft.Model.Account>();
+			int rowsCount = dt.Rows.Count;
+			if (rowsCount > 0)
+			{
+				Jpsoft.Model.Account model;
+				for (int n = 0; n < rowsCount; n++)
+				{
+					model = dal.DataRowToModel(dt.Rows[n]);
+					if (model != null)
+					{
+						modelList.Add(model);
+					}
+				}
+			}
+			return modelList;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetAllList()
+		{
+			return GetList("");
+		}
+
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			return dal.GetRecordCount(strWhere);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		//{
+			//return dal.GetList(PageSize,PageIndex,strWhere);
+		//}
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 6 - 0
BLL/BLL.csproj

@@ -122,11 +122,17 @@
     </Reference>
     </Reference>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
+    <Compile Include="Account.cs" />
     <Compile Include="AssemblyInfo.cs">
     <Compile Include="AssemblyInfo.cs">
       <SubType>Code</SubType>
       <SubType>Code</SubType>
     </Compile>
     </Compile>
+    <Compile Include="Customer.cs" />
+    <Compile Include="Flaw.cs" />
+    <Compile Include="Label.cs" />
+    <Compile Include="Staff.cs" />
     <Compile Include="Stock.cs" />
     <Compile Include="Stock.cs" />
     <Compile Include="Pub.cs" />
     <Compile Include="Pub.cs" />
+    <Compile Include="Work.cs" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\DAL\DAL.csproj">
     <ProjectReference Include="..\DAL\DAL.csproj">

+ 179 - 0
BLL/Customer.cs

@@ -0,0 +1,179 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* customer.cs
+*
+* 功 能: N/A
+* 类 名: customer
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Collections.Generic;
+using Maticsoft.Common;
+using Jpsoft.Model;
+namespace Jpsoft.BLL
+{
+	/// <summary>
+	/// customer
+	/// </summary>
+	public partial class Customer
+	{
+		private readonly Jpsoft.DAL.Customer dal=new Jpsoft.DAL.Customer();
+		public Customer()
+		{}
+		#region  BasicMethod
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			return dal.Exists(id_);
+		}
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Customer model)
+		{
+			return dal.Add(model);
+		}
+
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Customer model)
+		{
+			return dal.Update(model);
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			return dal.Delete(id_);
+		}
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			return dal.DeleteList(id_list );
+		}
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Customer GetModel(string id_)
+		{
+			
+			return dal.GetModel(id_);
+		}
+
+		/// <summary>
+		/// 得到一个对象实体,从缓存中
+		/// </summary>
+		public Jpsoft.Model.Customer GetModelByCache(string id_)
+		{
+			
+			string CacheKey = "customerModel-" + id_;
+			object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
+			if (objModel == null)
+			{
+				try
+				{
+					objModel = dal.GetModel(id_);
+					if (objModel != null)
+					{
+						int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
+						Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
+					}
+				}
+				catch{}
+			}
+			return (Jpsoft.Model.Customer)objModel;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			return dal.GetList(strWhere);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Customer> GetModelList(string strWhere)
+		{
+			DataSet ds = dal.GetList(strWhere);
+			return DataTableToList(ds.Tables[0]);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Customer> DataTableToList(DataTable dt)
+		{
+			List<Jpsoft.Model.Customer> modelList = new List<Jpsoft.Model.Customer>();
+			int rowsCount = dt.Rows.Count;
+			if (rowsCount > 0)
+			{
+				Jpsoft.Model.Customer model;
+				for (int n = 0; n < rowsCount; n++)
+				{
+					model = dal.DataRowToModel(dt.Rows[n]);
+					if (model != null)
+					{
+						modelList.Add(model);
+					}
+				}
+			}
+			return modelList;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetAllList()
+		{
+			return GetList("");
+		}
+
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			return dal.GetRecordCount(strWhere);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		//{
+			//return dal.GetList(PageSize,PageIndex,strWhere);
+		//}
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 179 - 0
BLL/Flaw.cs

@@ -0,0 +1,179 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* flaw.cs
+*
+* 功 能: N/A
+* 类 名: flaw
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Collections.Generic;
+using Maticsoft.Common;
+using Jpsoft.Model;
+namespace Jpsoft.BLL
+{
+	/// <summary>
+	/// flaw
+	/// </summary>
+	public partial class Flaw
+	{
+		private readonly Jpsoft.DAL.Flaw dal=new Jpsoft.DAL.Flaw();
+		public Flaw()
+		{}
+		#region  BasicMethod
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			return dal.Exists(id_);
+		}
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Flaw model)
+		{
+			return dal.Add(model);
+		}
+
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Flaw model)
+		{
+			return dal.Update(model);
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			return dal.Delete(id_);
+		}
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			return dal.DeleteList(id_list );
+		}
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Flaw GetModel(string id_)
+		{
+			
+			return dal.GetModel(id_);
+		}
+
+		/// <summary>
+		/// 得到一个对象实体,从缓存中
+		/// </summary>
+		public Jpsoft.Model.Flaw GetModelByCache(string id_)
+		{
+			
+			string CacheKey = "flawModel-" + id_;
+			object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
+			if (objModel == null)
+			{
+				try
+				{
+					objModel = dal.GetModel(id_);
+					if (objModel != null)
+					{
+						int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
+						Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
+					}
+				}
+				catch{}
+			}
+			return (Jpsoft.Model.Flaw)objModel;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			return dal.GetList(strWhere);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Flaw> GetModelList(string strWhere)
+		{
+			DataSet ds = dal.GetList(strWhere);
+			return DataTableToList(ds.Tables[0]);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Flaw> DataTableToList(DataTable dt)
+		{
+			List<Jpsoft.Model.Flaw> modelList = new List<Jpsoft.Model.Flaw>();
+			int rowsCount = dt.Rows.Count;
+			if (rowsCount > 0)
+			{
+				Jpsoft.Model.Flaw model;
+				for (int n = 0; n < rowsCount; n++)
+				{
+					model = dal.DataRowToModel(dt.Rows[n]);
+					if (model != null)
+					{
+						modelList.Add(model);
+					}
+				}
+			}
+			return modelList;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetAllList()
+		{
+			return GetList("");
+		}
+
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			return dal.GetRecordCount(strWhere);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		//{
+			//return dal.GetList(PageSize,PageIndex,strWhere);
+		//}
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 179 - 0
BLL/Label.cs

@@ -0,0 +1,179 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* label.cs
+*
+* 功 能: N/A
+* 类 名: label
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Collections.Generic;
+using Maticsoft.Common;
+using Jpsoft.Model;
+namespace Jpsoft.BLL
+{
+	/// <summary>
+	/// label
+	/// </summary>
+	public partial class Label
+	{
+		private readonly Jpsoft.DAL.Label dal=new Jpsoft.DAL.Label();
+		public Label()
+		{}
+		#region  BasicMethod
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			return dal.Exists(id_);
+		}
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Label model)
+		{
+			return dal.Add(model);
+		}
+
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Label model)
+		{
+			return dal.Update(model);
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			return dal.Delete(id_);
+		}
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			return dal.DeleteList(id_list );
+		}
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Label GetModel(string id_)
+		{
+			
+			return dal.GetModel(id_);
+		}
+
+		/// <summary>
+		/// 得到一个对象实体,从缓存中
+		/// </summary>
+		public Jpsoft.Model.Label GetModelByCache(string id_)
+		{
+			
+			string CacheKey = "labelModel-" + id_;
+			object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
+			if (objModel == null)
+			{
+				try
+				{
+					objModel = dal.GetModel(id_);
+					if (objModel != null)
+					{
+						int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
+						Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
+					}
+				}
+				catch{}
+			}
+			return (Jpsoft.Model.Label)objModel;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			return dal.GetList(strWhere);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Label> GetModelList(string strWhere)
+		{
+			DataSet ds = dal.GetList(strWhere);
+			return DataTableToList(ds.Tables[0]);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Label> DataTableToList(DataTable dt)
+		{
+			List<Jpsoft.Model.Label> modelList = new List<Jpsoft.Model.Label>();
+			int rowsCount = dt.Rows.Count;
+			if (rowsCount > 0)
+			{
+				Jpsoft.Model.Label model;
+				for (int n = 0; n < rowsCount; n++)
+				{
+					model = dal.DataRowToModel(dt.Rows[n]);
+					if (model != null)
+					{
+						modelList.Add(model);
+					}
+				}
+			}
+			return modelList;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetAllList()
+		{
+			return GetList("");
+		}
+
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			return dal.GetRecordCount(strWhere);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		//{
+			//return dal.GetList(PageSize,PageIndex,strWhere);
+		//}
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 179 - 0
BLL/Staff.cs

@@ -0,0 +1,179 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* staff.cs
+*
+* 功 能: N/A
+* 类 名: staff
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Collections.Generic;
+using Maticsoft.Common;
+using Jpsoft.Model;
+namespace Jpsoft.BLL
+{
+	/// <summary>
+	/// staff
+	/// </summary>
+	public partial class Staff
+	{
+		private readonly Jpsoft.DAL.Staff dal=new Jpsoft.DAL.Staff();
+		public Staff()
+		{}
+		#region  BasicMethod
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			return dal.Exists(id_);
+		}
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Staff model)
+		{
+			return dal.Add(model);
+		}
+
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Staff model)
+		{
+			return dal.Update(model);
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			return dal.Delete(id_);
+		}
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			return dal.DeleteList(id_list );
+		}
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Staff GetModel(string id_)
+		{
+			
+			return dal.GetModel(id_);
+		}
+
+		/// <summary>
+		/// 得到一个对象实体,从缓存中
+		/// </summary>
+		public Jpsoft.Model.Staff GetModelByCache(string id_)
+		{
+			
+			string CacheKey = "staffModel-" + id_;
+			object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
+			if (objModel == null)
+			{
+				try
+				{
+					objModel = dal.GetModel(id_);
+					if (objModel != null)
+					{
+						int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
+						Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
+					}
+				}
+				catch{}
+			}
+			return (Jpsoft.Model.Staff)objModel;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			return dal.GetList(strWhere);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Staff> GetModelList(string strWhere)
+		{
+			DataSet ds = dal.GetList(strWhere);
+			return DataTableToList(ds.Tables[0]);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Staff> DataTableToList(DataTable dt)
+		{
+			List<Jpsoft.Model.Staff> modelList = new List<Jpsoft.Model.Staff>();
+			int rowsCount = dt.Rows.Count;
+			if (rowsCount > 0)
+			{
+				Jpsoft.Model.Staff model;
+				for (int n = 0; n < rowsCount; n++)
+				{
+					model = dal.DataRowToModel(dt.Rows[n]);
+					if (model != null)
+					{
+						modelList.Add(model);
+					}
+				}
+			}
+			return modelList;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetAllList()
+		{
+			return GetList("");
+		}
+
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			return dal.GetRecordCount(strWhere);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		//{
+			//return dal.GetList(PageSize,PageIndex,strWhere);
+		//}
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 179 - 0
BLL/Work.cs

@@ -0,0 +1,179 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* work.cs
+*
+* 功 能: N/A
+* 类 名: work
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Collections.Generic;
+using Maticsoft.Common;
+using Jpsoft.Model;
+namespace Jpsoft.BLL
+{
+	/// <summary>
+	/// work
+	/// </summary>
+	public partial class Work
+	{
+		private readonly Jpsoft.DAL.Work dal=new Jpsoft.DAL.Work();
+		public Work()
+		{}
+		#region  BasicMethod
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			return dal.Exists(id_);
+		}
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Work model)
+		{
+			return dal.Add(model);
+		}
+
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Work model)
+		{
+			return dal.Update(model);
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			return dal.Delete(id_);
+		}
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			return dal.DeleteList(id_list );
+		}
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Work GetModel(string id_)
+		{
+			
+			return dal.GetModel(id_);
+		}
+
+		/// <summary>
+		/// 得到一个对象实体,从缓存中
+		/// </summary>
+		public Jpsoft.Model.Work GetModelByCache(string id_)
+		{
+			
+			string CacheKey = "workModel-" + id_;
+			object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
+			if (objModel == null)
+			{
+				try
+				{
+					objModel = dal.GetModel(id_);
+					if (objModel != null)
+					{
+						int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
+						Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
+					}
+				}
+				catch{}
+			}
+			return (Jpsoft.Model.Work)objModel;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			return dal.GetList(strWhere);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Work> GetModelList(string strWhere)
+		{
+			DataSet ds = dal.GetList(strWhere);
+			return DataTableToList(ds.Tables[0]);
+		}
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public List<Jpsoft.Model.Work> DataTableToList(DataTable dt)
+		{
+			List<Jpsoft.Model.Work> modelList = new List<Jpsoft.Model.Work>();
+			int rowsCount = dt.Rows.Count;
+			if (rowsCount > 0)
+			{
+				Jpsoft.Model.Work model;
+				for (int n = 0; n < rowsCount; n++)
+				{
+					model = dal.DataRowToModel(dt.Rows[n]);
+					if (model != null)
+					{
+						modelList.Add(model);
+					}
+				}
+			}
+			return modelList;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetAllList()
+		{
+			return GetList("");
+		}
+
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			return dal.GetRecordCount(strWhere);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		//{
+			//return dal.GetList(PageSize,PageIndex,strWhere);
+		//}
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 392 - 0
DAL/Account.cs

@@ -0,0 +1,392 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* account.cs
+*
+* 功 能: N/A
+* 类 名: account
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Maticsoft.DBUtility;//Please add references
+namespace Jpsoft.DAL
+{
+	/// <summary>
+	/// 数据访问类:account
+	/// </summary>
+	public partial class Account
+	{
+		public Account()
+		{}
+		#region  BasicMethod
+
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) from base_account");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			return DbHelperMySQL.Exists(strSql.ToString(),parameters);
+		}
+
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Account model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("insert into base_account(");
+			strSql.Append("id_,customer_id,work_id,type_,plan_number,actual_amount,cloth_amount,roll_amount,total_amount,del_flag,create_by,create_time,update_by,update_time)");
+			strSql.Append(" values (");
+			strSql.Append("@id_,@customer_id,@work_id,@type_,@plan_number,@actual_amount,@cloth_amount,@roll_amount,@total_amount,@del_flag,@create_by,@create_time,@update_by,@update_time)");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36),
+					new MySqlParameter("@customer_id", MySqlDbType.VarChar,36),
+					new MySqlParameter("@work_id", MySqlDbType.VarChar,36),
+					new MySqlParameter("@type_", MySqlDbType.Int32,1),
+					new MySqlParameter("@plan_number", MySqlDbType.VarChar,255),
+					new MySqlParameter("@actual_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@cloth_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@roll_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@total_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@create_time", MySqlDbType.Timestamp),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_time", MySqlDbType.Timestamp)};
+			parameters[0].Value = model.id_;
+			parameters[1].Value = model.customer_id;
+			parameters[2].Value = model.work_id;
+			parameters[3].Value = model.type_;
+			parameters[4].Value = model.plan_number;
+			parameters[5].Value = model.actual_amount;
+			parameters[6].Value = model.cloth_amount;
+			parameters[7].Value = model.roll_amount;
+			parameters[8].Value = model.total_amount;
+			parameters[9].Value = model.del_flag;
+			parameters[10].Value = model.create_by;
+			parameters[11].Value = model.create_time;
+			parameters[12].Value = model.update_by;
+			parameters[13].Value = model.update_time;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Account model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("update base_account set ");
+			strSql.Append("customer_id=@customer_id,");
+			strSql.Append("work_id=@work_id,");
+			strSql.Append("type_=@type_,");
+			strSql.Append("plan_number=@plan_number,");
+			strSql.Append("actual_amount=@actual_amount,");
+			strSql.Append("cloth_amount=@cloth_amount,");
+			strSql.Append("roll_amount=@roll_amount,");
+			strSql.Append("total_amount=@total_amount,");
+			strSql.Append("del_flag=@del_flag,");
+			strSql.Append("create_by=@create_by,");
+			strSql.Append("update_by=@update_by");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@customer_id", MySqlDbType.VarChar,36),
+					new MySqlParameter("@work_id", MySqlDbType.VarChar,36),
+					new MySqlParameter("@type_", MySqlDbType.Int32,1),
+					new MySqlParameter("@plan_number", MySqlDbType.VarChar,255),
+					new MySqlParameter("@actual_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@cloth_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@roll_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@total_amount", MySqlDbType.Decimal,10),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)};
+			parameters[0].Value = model.customer_id;
+			parameters[1].Value = model.work_id;
+			parameters[2].Value = model.type_;
+			parameters[3].Value = model.plan_number;
+			parameters[4].Value = model.actual_amount;
+			parameters[5].Value = model.cloth_amount;
+			parameters[6].Value = model.roll_amount;
+			parameters[7].Value = model.total_amount;
+			parameters[8].Value = model.del_flag;
+			parameters[9].Value = model.create_by;
+			parameters[10].Value = model.update_by;
+			parameters[11].Value = model.id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_account ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 批量删除数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_account ");
+			strSql.Append(" where id_ in ("+id_list + ")  ");
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Account GetModel(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,customer_id,work_id,type_,plan_number,actual_amount,cloth_amount,roll_amount,total_amount,del_flag,create_by,create_time,update_by,update_time from base_account ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			Jpsoft.Model.Account model=new Jpsoft.Model.Account();
+			DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
+			if(ds.Tables[0].Rows.Count>0)
+			{
+				return DataRowToModel(ds.Tables[0].Rows[0]);
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Account DataRowToModel(DataRow row)
+		{
+			Jpsoft.Model.Account model=new Jpsoft.Model.Account();
+			if (row != null)
+			{
+				if(row["id_"]!=null)
+				{
+					model.id_=row["id_"].ToString();
+				}
+				if(row["customer_id"]!=null)
+				{
+					model.customer_id=row["customer_id"].ToString();
+				}
+				if(row["work_id"]!=null)
+				{
+					model.work_id=row["work_id"].ToString();
+				}
+				if(row["type_"]!=null && row["type_"].ToString()!="")
+				{
+					model.type_=int.Parse(row["type_"].ToString());
+				}
+				if(row["plan_number"]!=null)
+				{
+					model.plan_number=row["plan_number"].ToString();
+				}
+				if(row["actual_amount"]!=null && row["actual_amount"].ToString()!="")
+				{
+					model.actual_amount=decimal.Parse(row["actual_amount"].ToString());
+				}
+				if(row["cloth_amount"]!=null && row["cloth_amount"].ToString()!="")
+				{
+					model.cloth_amount=decimal.Parse(row["cloth_amount"].ToString());
+				}
+				if(row["roll_amount"]!=null && row["roll_amount"].ToString()!="")
+				{
+					model.roll_amount=decimal.Parse(row["roll_amount"].ToString());
+				}
+				if(row["total_amount"]!=null && row["total_amount"].ToString()!="")
+				{
+					model.total_amount=decimal.Parse(row["total_amount"].ToString());
+				}
+				if(row["del_flag"]!=null && row["del_flag"].ToString()!="")
+				{
+					if((row["del_flag"].ToString()=="1")||(row["del_flag"].ToString().ToLower()=="true"))
+					{
+						model.del_flag=true;
+					}
+					else
+					{
+						model.del_flag=false;
+					}
+				}
+				if(row["create_by"]!=null)
+				{
+					model.create_by=row["create_by"].ToString();
+				}
+				if(row["create_time"]!=null && row["create_time"].ToString()!="")
+				{
+					model.create_time=DateTime.Parse(row["create_time"].ToString());
+				}
+				if(row["update_by"]!=null)
+				{
+					model.update_by=row["update_by"].ToString();
+				}
+				if(row["update_time"]!=null && row["update_time"].ToString()!="")
+				{
+					model.update_time=DateTime.Parse(row["update_time"].ToString());
+				}
+			}
+			return model;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,customer_id,work_id,type_,plan_number,actual_amount,cloth_amount,roll_amount,total_amount,del_flag,create_by,create_time,update_by,update_time ");
+			strSql.Append(" FROM base_account ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/// <summary>
+		/// 获取记录总数
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) FROM base_account ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			object obj = DbHelperMySQL.GetSingle(strSql.ToString());
+			if (obj == null)
+			{
+				return 0;
+			}
+			else
+			{
+				return Convert.ToInt32(obj);
+			}
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("SELECT * FROM ( ");
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
+			if (!string.IsNullOrEmpty(orderby.Trim()))
+			{
+				strSql.Append("order by T." + orderby );
+			}
+			else
+			{
+				strSql.Append("order by T.id_ desc");
+			}
+			strSql.Append(")AS Row, T.*  from base_account T ");
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
+			{
+				strSql.Append(" WHERE " + strWhere);
+			}
+			strSql.Append(" ) TT");
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/*
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		{
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@PageSize", MySqlDbType.Int32),
+					new MySqlParameter("@PageIndex", MySqlDbType.Int32),
+					new MySqlParameter("@IsReCount", MySqlDbType.Bit),
+					new MySqlParameter("@OrderType", MySqlDbType.Bit),
+					new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
+					};
+			parameters[0].Value = "base_account";
+			parameters[1].Value = "id_";
+			parameters[2].Value = PageSize;
+			parameters[3].Value = PageIndex;
+			parameters[4].Value = 0;
+			parameters[5].Value = 0;
+			parameters[6].Value = strWhere;	
+			return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
+		}*/
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 347 - 0
DAL/Customer.cs

@@ -0,0 +1,347 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* customer.cs
+*
+* 功 能: N/A
+* 类 名: customer
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Maticsoft.DBUtility;//Please add references
+namespace Jpsoft.DAL
+{
+	/// <summary>
+	/// 数据访问类:customer
+	/// </summary>
+	public partial class Customer
+	{
+		public Customer()
+		{}
+		#region  BasicMethod
+
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) from base_customer");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			return DbHelperMySQL.Exists(strSql.ToString(),parameters);
+		}
+
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Customer model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("insert into base_customer(");
+			strSql.Append("id_,company_,name_,phone_,del_flag,create_by,create_time,update_by,update_time)");
+			strSql.Append(" values (");
+			strSql.Append("@id_,@company_,@name_,@phone_,@del_flag,@create_by,@create_time,@update_by,@update_time)");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36),
+					new MySqlParameter("@company_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@phone_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@create_time", MySqlDbType.Timestamp),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_time", MySqlDbType.Timestamp)};
+			parameters[0].Value = model.id_;
+			parameters[1].Value = model.company_;
+			parameters[2].Value = model.name_;
+			parameters[3].Value = model.phone_;
+			parameters[4].Value = model.del_flag;
+			parameters[5].Value = model.create_by;
+			parameters[6].Value = model.create_time;
+			parameters[7].Value = model.update_by;
+			parameters[8].Value = model.update_time;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Customer model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("update base_customer set ");
+			strSql.Append("company_=@company_,");
+			strSql.Append("name_=@name_,");
+			strSql.Append("phone_=@phone_,");
+			strSql.Append("del_flag=@del_flag,");
+			strSql.Append("create_by=@create_by,");
+			strSql.Append("update_by=@update_by");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@company_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@phone_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)};
+			parameters[0].Value = model.company_;
+			parameters[1].Value = model.name_;
+			parameters[2].Value = model.phone_;
+			parameters[3].Value = model.del_flag;
+			parameters[4].Value = model.create_by;
+			parameters[5].Value = model.update_by;
+			parameters[6].Value = model.id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_customer ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 批量删除数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_customer ");
+			strSql.Append(" where id_ in ("+id_list + ")  ");
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Customer GetModel(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,company_,name_,phone_,del_flag,create_by,create_time,update_by,update_time from base_customer ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			Jpsoft.Model.Customer model=new Jpsoft.Model.Customer();
+			DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
+			if(ds.Tables[0].Rows.Count>0)
+			{
+				return DataRowToModel(ds.Tables[0].Rows[0]);
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Customer DataRowToModel(DataRow row)
+		{
+			Jpsoft.Model.Customer model=new Jpsoft.Model.Customer();
+			if (row != null)
+			{
+				if(row["id_"]!=null)
+				{
+					model.id_=row["id_"].ToString();
+				}
+				if(row["company_"]!=null)
+				{
+					model.company_=row["company_"].ToString();
+				}
+				if(row["name_"]!=null)
+				{
+					model.name_=row["name_"].ToString();
+				}
+				if(row["phone_"]!=null)
+				{
+					model.phone_=row["phone_"].ToString();
+				}
+				if(row["del_flag"]!=null && row["del_flag"].ToString()!="")
+				{
+					if((row["del_flag"].ToString()=="1")||(row["del_flag"].ToString().ToLower()=="true"))
+					{
+						model.del_flag=true;
+					}
+					else
+					{
+						model.del_flag=false;
+					}
+				}
+				if(row["create_by"]!=null)
+				{
+					model.create_by=row["create_by"].ToString();
+				}
+				if(row["create_time"]!=null && row["create_time"].ToString()!="")
+				{
+					model.create_time=DateTime.Parse(row["create_time"].ToString());
+				}
+				if(row["update_by"]!=null)
+				{
+					model.update_by=row["update_by"].ToString();
+				}
+				if(row["update_time"]!=null && row["update_time"].ToString()!="")
+				{
+					model.update_time=DateTime.Parse(row["update_time"].ToString());
+				}
+			}
+			return model;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,company_,name_,phone_,del_flag,create_by,create_time,update_by,update_time ");
+			strSql.Append(" FROM base_customer ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/// <summary>
+		/// 获取记录总数
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) FROM base_customer ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			object obj = DbHelperMySQL.GetSingle(strSql.ToString());
+			if (obj == null)
+			{
+				return 0;
+			}
+			else
+			{
+				return Convert.ToInt32(obj);
+			}
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("SELECT * FROM ( ");
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
+			if (!string.IsNullOrEmpty(orderby.Trim()))
+			{
+				strSql.Append("order by T." + orderby );
+			}
+			else
+			{
+				strSql.Append("order by T.id_ desc");
+			}
+			strSql.Append(")AS Row, T.*  from base_customer T ");
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
+			{
+				strSql.Append(" WHERE " + strWhere);
+			}
+			strSql.Append(" ) TT");
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/*
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		{
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@PageSize", MySqlDbType.Int32),
+					new MySqlParameter("@PageIndex", MySqlDbType.Int32),
+					new MySqlParameter("@IsReCount", MySqlDbType.Bit),
+					new MySqlParameter("@OrderType", MySqlDbType.Bit),
+					new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
+					};
+			parameters[0].Value = "base_customer";
+			parameters[1].Value = "id_";
+			parameters[2].Value = PageSize;
+			parameters[3].Value = PageIndex;
+			parameters[4].Value = 0;
+			parameters[5].Value = 0;
+			parameters[6].Value = strWhere;	
+			return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
+		}*/
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 6 - 0
DAL/DAL.csproj

@@ -141,11 +141,17 @@
     </ProjectReference>
     </ProjectReference>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
+    <Compile Include="Account.cs" />
     <Compile Include="AssemblyInfo.cs">
     <Compile Include="AssemblyInfo.cs">
       <SubType>Code</SubType>
       <SubType>Code</SubType>
     </Compile>
     </Compile>
     <Compile Include="BaseClass.cs" />
     <Compile Include="BaseClass.cs" />
+    <Compile Include="Customer.cs" />
+    <Compile Include="Flaw.cs" />
+    <Compile Include="Label.cs" />
+    <Compile Include="Staff.cs" />
     <Compile Include="Stock.cs" />
     <Compile Include="Stock.cs" />
+    <Compile Include="Work.cs" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">

+ 329 - 0
DAL/Flaw.cs

@@ -0,0 +1,329 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* flaw.cs
+*
+* 功 能: N/A
+* 类 名: flaw
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Maticsoft.DBUtility;//Please add references
+namespace Jpsoft.DAL
+{
+	/// <summary>
+	/// 数据访问类:flaw
+	/// </summary>
+	public partial class Flaw
+	{
+		public Flaw()
+		{}
+		#region  BasicMethod
+
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) from base_flaw");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			return DbHelperMySQL.Exists(strSql.ToString(),parameters);
+		}
+
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Flaw model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("insert into base_flaw(");
+			strSql.Append("id_,name_,del_flag,create_by,create_time,update_by,update_time)");
+			strSql.Append(" values (");
+			strSql.Append("@id_,@name_,@del_flag,@create_by,@create_time,@update_by,@update_time)");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@create_time", MySqlDbType.Timestamp),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_time", MySqlDbType.Timestamp)};
+			parameters[0].Value = model.id_;
+			parameters[1].Value = model.name_;
+			parameters[2].Value = model.del_flag;
+			parameters[3].Value = model.create_by;
+			parameters[4].Value = model.create_time;
+			parameters[5].Value = model.update_by;
+			parameters[6].Value = model.update_time;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Flaw model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("update base_flaw set ");
+			strSql.Append("name_=@name_,");
+			strSql.Append("del_flag=@del_flag,");
+			strSql.Append("create_by=@create_by,");
+			strSql.Append("update_by=@update_by");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)};
+			parameters[0].Value = model.name_;
+			parameters[1].Value = model.del_flag;
+			parameters[2].Value = model.create_by;
+			parameters[3].Value = model.update_by;
+			parameters[4].Value = model.id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_flaw ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 批量删除数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_flaw ");
+			strSql.Append(" where id_ in ("+id_list + ")  ");
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Flaw GetModel(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,name_,del_flag,create_by,create_time,update_by,update_time from base_flaw ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			Jpsoft.Model.Flaw model=new Jpsoft.Model.Flaw();
+			DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
+			if(ds.Tables[0].Rows.Count>0)
+			{
+				return DataRowToModel(ds.Tables[0].Rows[0]);
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Flaw DataRowToModel(DataRow row)
+		{
+			Jpsoft.Model.Flaw model=new Jpsoft.Model.Flaw();
+			if (row != null)
+			{
+				if(row["id_"]!=null)
+				{
+					model.id_=row["id_"].ToString();
+				}
+				if(row["name_"]!=null)
+				{
+					model.name_=row["name_"].ToString();
+				}
+				if(row["del_flag"]!=null && row["del_flag"].ToString()!="")
+				{
+					if((row["del_flag"].ToString()=="1")||(row["del_flag"].ToString().ToLower()=="true"))
+					{
+						model.del_flag=true;
+					}
+					else
+					{
+						model.del_flag=false;
+					}
+				}
+				if(row["create_by"]!=null)
+				{
+					model.create_by=row["create_by"].ToString();
+				}
+				if(row["create_time"]!=null && row["create_time"].ToString()!="")
+				{
+					model.create_time=DateTime.Parse(row["create_time"].ToString());
+				}
+				if(row["update_by"]!=null)
+				{
+					model.update_by=row["update_by"].ToString();
+				}
+				if(row["update_time"]!=null && row["update_time"].ToString()!="")
+				{
+					model.update_time=DateTime.Parse(row["update_time"].ToString());
+				}
+			}
+			return model;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,name_,del_flag,create_by,create_time,update_by,update_time ");
+			strSql.Append(" FROM base_flaw ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/// <summary>
+		/// 获取记录总数
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) FROM base_flaw ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			object obj = DbHelperMySQL.GetSingle(strSql.ToString());
+			if (obj == null)
+			{
+				return 0;
+			}
+			else
+			{
+				return Convert.ToInt32(obj);
+			}
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("SELECT * FROM ( ");
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
+			if (!string.IsNullOrEmpty(orderby.Trim()))
+			{
+				strSql.Append("order by T." + orderby );
+			}
+			else
+			{
+				strSql.Append("order by T.id_ desc");
+			}
+			strSql.Append(")AS Row, T.*  from base_flaw T ");
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
+			{
+				strSql.Append(" WHERE " + strWhere);
+			}
+			strSql.Append(" ) TT");
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/*
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		{
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@PageSize", MySqlDbType.Int32),
+					new MySqlParameter("@PageIndex", MySqlDbType.Int32),
+					new MySqlParameter("@IsReCount", MySqlDbType.Bit),
+					new MySqlParameter("@OrderType", MySqlDbType.Bit),
+					new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
+					};
+			parameters[0].Value = "base_flaw";
+			parameters[1].Value = "id_";
+			parameters[2].Value = PageSize;
+			parameters[3].Value = PageIndex;
+			parameters[4].Value = 0;
+			parameters[5].Value = 0;
+			parameters[6].Value = strWhere;	
+			return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
+		}*/
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 329 - 0
DAL/Label.cs

@@ -0,0 +1,329 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* label.cs
+*
+* 功 能: N/A
+* 类 名: label
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Maticsoft.DBUtility;//Please add references
+namespace Jpsoft.DAL
+{
+	/// <summary>
+	/// 数据访问类:label
+	/// </summary>
+	public partial class Label
+	{
+		public Label()
+		{}
+		#region  BasicMethod
+
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) from base_label");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			return DbHelperMySQL.Exists(strSql.ToString(),parameters);
+		}
+
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Label model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("insert into base_label(");
+			strSql.Append("id_,name_,del_flag,create_by,create_time,update_by,update_time)");
+			strSql.Append(" values (");
+			strSql.Append("@id_,@name_,@del_flag,@create_by,@create_time,@update_by,@update_time)");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@create_time", MySqlDbType.Timestamp),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_time", MySqlDbType.Timestamp)};
+			parameters[0].Value = model.id_;
+			parameters[1].Value = model.name_;
+			parameters[2].Value = model.del_flag;
+			parameters[3].Value = model.create_by;
+			parameters[4].Value = model.create_time;
+			parameters[5].Value = model.update_by;
+			parameters[6].Value = model.update_time;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Label model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("update base_label set ");
+			strSql.Append("name_=@name_,");
+			strSql.Append("del_flag=@del_flag,");
+			strSql.Append("create_by=@create_by,");
+			strSql.Append("update_by=@update_by");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)};
+			parameters[0].Value = model.name_;
+			parameters[1].Value = model.del_flag;
+			parameters[2].Value = model.create_by;
+			parameters[3].Value = model.update_by;
+			parameters[4].Value = model.id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_label ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 批量删除数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_label ");
+			strSql.Append(" where id_ in ("+id_list + ")  ");
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Label GetModel(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,name_,del_flag,create_by,create_time,update_by,update_time from base_label ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			Jpsoft.Model.Label model=new Jpsoft.Model.Label();
+			DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
+			if(ds.Tables[0].Rows.Count>0)
+			{
+				return DataRowToModel(ds.Tables[0].Rows[0]);
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Label DataRowToModel(DataRow row)
+		{
+			Jpsoft.Model.Label model=new Jpsoft.Model.Label();
+			if (row != null)
+			{
+				if(row["id_"]!=null)
+				{
+					model.id_=row["id_"].ToString();
+				}
+				if(row["name_"]!=null)
+				{
+					model.name_=row["name_"].ToString();
+				}
+				if(row["del_flag"]!=null && row["del_flag"].ToString()!="")
+				{
+					if((row["del_flag"].ToString()=="1")||(row["del_flag"].ToString().ToLower()=="true"))
+					{
+						model.del_flag=true;
+					}
+					else
+					{
+						model.del_flag=false;
+					}
+				}
+				if(row["create_by"]!=null)
+				{
+					model.create_by=row["create_by"].ToString();
+				}
+				if(row["create_time"]!=null && row["create_time"].ToString()!="")
+				{
+					model.create_time=DateTime.Parse(row["create_time"].ToString());
+				}
+				if(row["update_by"]!=null)
+				{
+					model.update_by=row["update_by"].ToString();
+				}
+				if(row["update_time"]!=null && row["update_time"].ToString()!="")
+				{
+					model.update_time=DateTime.Parse(row["update_time"].ToString());
+				}
+			}
+			return model;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,name_,del_flag,create_by,create_time,update_by,update_time ");
+			strSql.Append(" FROM base_label ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/// <summary>
+		/// 获取记录总数
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) FROM base_label ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			object obj = DbHelperMySQL.GetSingle(strSql.ToString());
+			if (obj == null)
+			{
+				return 0;
+			}
+			else
+			{
+				return Convert.ToInt32(obj);
+			}
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("SELECT * FROM ( ");
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
+			if (!string.IsNullOrEmpty(orderby.Trim()))
+			{
+				strSql.Append("order by T." + orderby );
+			}
+			else
+			{
+				strSql.Append("order by T.id_ desc");
+			}
+			strSql.Append(")AS Row, T.*  from base_label T ");
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
+			{
+				strSql.Append(" WHERE " + strWhere);
+			}
+			strSql.Append(" ) TT");
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/*
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		{
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@PageSize", MySqlDbType.Int32),
+					new MySqlParameter("@PageIndex", MySqlDbType.Int32),
+					new MySqlParameter("@IsReCount", MySqlDbType.Bit),
+					new MySqlParameter("@OrderType", MySqlDbType.Bit),
+					new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
+					};
+			parameters[0].Value = "base_label";
+			parameters[1].Value = "id_";
+			parameters[2].Value = PageSize;
+			parameters[3].Value = PageIndex;
+			parameters[4].Value = 0;
+			parameters[5].Value = 0;
+			parameters[6].Value = strWhere;	
+			return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
+		}*/
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 338 - 0
DAL/Staff.cs

@@ -0,0 +1,338 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* staff.cs
+*
+* 功 能: N/A
+* 类 名: staff
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Maticsoft.DBUtility;//Please add references
+namespace Jpsoft.DAL
+{
+	/// <summary>
+	/// 数据访问类:staff
+	/// </summary>
+	public partial class Staff
+	{
+		public Staff()
+		{}
+		#region  BasicMethod
+
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) from base_staff");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			return DbHelperMySQL.Exists(strSql.ToString(),parameters);
+		}
+
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Staff model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("insert into base_staff(");
+			strSql.Append("id_,serial_number,name_,del_flag,create_by,create_time,update_by,update_time)");
+			strSql.Append(" values (");
+			strSql.Append("@id_,@serial_number,@name_,@del_flag,@create_by,@create_time,@update_by,@update_time)");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36),
+					new MySqlParameter("@serial_number", MySqlDbType.VarChar,10),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@create_time", MySqlDbType.Timestamp),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_time", MySqlDbType.Timestamp)};
+			parameters[0].Value = model.id_;
+			parameters[1].Value = model.serial_number;
+			parameters[2].Value = model.name_;
+			parameters[3].Value = model.del_flag;
+			parameters[4].Value = model.create_by;
+			parameters[5].Value = model.create_time;
+			parameters[6].Value = model.update_by;
+			parameters[7].Value = model.update_time;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Staff model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("update base_staff set ");
+			strSql.Append("serial_number=@serial_number,");
+			strSql.Append("name_=@name_,");
+			strSql.Append("del_flag=@del_flag,");
+			strSql.Append("create_by=@create_by,");
+			strSql.Append("update_by=@update_by");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@serial_number", MySqlDbType.VarChar,10),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)};
+			parameters[0].Value = model.serial_number;
+			parameters[1].Value = model.name_;
+			parameters[2].Value = model.del_flag;
+			parameters[3].Value = model.create_by;
+			parameters[4].Value = model.update_by;
+			parameters[5].Value = model.id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_staff ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 批量删除数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_staff ");
+			strSql.Append(" where id_ in ("+id_list + ")  ");
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Staff GetModel(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,serial_number,name_,del_flag,create_by,create_time,update_by,update_time from base_staff ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			Jpsoft.Model.Staff model=new Jpsoft.Model.Staff();
+			DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
+			if(ds.Tables[0].Rows.Count>0)
+			{
+				return DataRowToModel(ds.Tables[0].Rows[0]);
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Staff DataRowToModel(DataRow row)
+		{
+			Jpsoft.Model.Staff model=new Jpsoft.Model.Staff();
+			if (row != null)
+			{
+				if(row["id_"]!=null)
+				{
+					model.id_=row["id_"].ToString();
+				}
+				if(row["serial_number"]!=null)
+				{
+					model.serial_number=row["serial_number"].ToString();
+				}
+				if(row["name_"]!=null)
+				{
+					model.name_=row["name_"].ToString();
+				}
+				if(row["del_flag"]!=null && row["del_flag"].ToString()!="")
+				{
+					if((row["del_flag"].ToString()=="1")||(row["del_flag"].ToString().ToLower()=="true"))
+					{
+						model.del_flag=true;
+					}
+					else
+					{
+						model.del_flag=false;
+					}
+				}
+				if(row["create_by"]!=null)
+				{
+					model.create_by=row["create_by"].ToString();
+				}
+				if(row["create_time"]!=null && row["create_time"].ToString()!="")
+				{
+					model.create_time=DateTime.Parse(row["create_time"].ToString());
+				}
+				if(row["update_by"]!=null)
+				{
+					model.update_by=row["update_by"].ToString();
+				}
+				if(row["update_time"]!=null && row["update_time"].ToString()!="")
+				{
+					model.update_time=DateTime.Parse(row["update_time"].ToString());
+				}
+			}
+			return model;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,serial_number,name_,del_flag,create_by,create_time,update_by,update_time ");
+			strSql.Append(" FROM base_staff ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/// <summary>
+		/// 获取记录总数
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) FROM base_staff ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			object obj = DbHelperMySQL.GetSingle(strSql.ToString());
+			if (obj == null)
+			{
+				return 0;
+			}
+			else
+			{
+				return Convert.ToInt32(obj);
+			}
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("SELECT * FROM ( ");
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
+			if (!string.IsNullOrEmpty(orderby.Trim()))
+			{
+				strSql.Append("order by T." + orderby );
+			}
+			else
+			{
+				strSql.Append("order by T.id_ desc");
+			}
+			strSql.Append(")AS Row, T.*  from base_staff T ");
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
+			{
+				strSql.Append(" WHERE " + strWhere);
+			}
+			strSql.Append(" ) TT");
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/*
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		{
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@PageSize", MySqlDbType.Int32),
+					new MySqlParameter("@PageIndex", MySqlDbType.Int32),
+					new MySqlParameter("@IsReCount", MySqlDbType.Bit),
+					new MySqlParameter("@OrderType", MySqlDbType.Bit),
+					new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
+					};
+			parameters[0].Value = "base_staff";
+			parameters[1].Value = "id_";
+			parameters[2].Value = PageSize;
+			parameters[3].Value = PageIndex;
+			parameters[4].Value = 0;
+			parameters[5].Value = 0;
+			parameters[6].Value = strWhere;	
+			return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
+		}*/
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 547 - 0
DAL/Work.cs

@@ -0,0 +1,547 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* work.cs
+*
+* 功 能: N/A
+* 类 名: work
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+using System.Data;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Maticsoft.DBUtility;//Please add references
+namespace Jpsoft.DAL
+{
+	/// <summary>
+	/// 数据访问类:work
+	/// </summary>
+	public partial class Work
+	{
+		public Work()
+		{}
+		#region  BasicMethod
+
+		/// <summary>
+		/// 是否存在该记录
+		/// </summary>
+		public bool Exists(string id_)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) from base_work");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			return DbHelperMySQL.Exists(strSql.ToString(),parameters);
+		}
+
+
+		/// <summary>
+		/// 增加一条数据
+		/// </summary>
+		public bool Add(Jpsoft.Model.Work model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("insert into base_work(");
+			strSql.Append("id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,estimate_remark,unit_price,reason_,cloth_price,wages_,roll_length,tag_operator,tag_factor,tag_factor_save,tag_unit,is_integer,remark_,status_,del_flag,create_by,create_time,update_by,update_time)");
+			strSql.Append(" values (");
+			strSql.Append("@id_,@customer_id,@name_,@width_,@number_,@process_date,@process_volume,@process_remark,@process_number,@ratio_,@colour_,@estimate_quantity,@estimate_remark,@unit_price,@reason_,@cloth_price,@wages_,@roll_length,@tag_operator,@tag_factor,@tag_factor_save,@tag_unit,@is_integer,@remark_,@status_,@del_flag,@create_by,@create_time,@update_by,@update_time)");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36),
+					new MySqlParameter("@customer_id", MySqlDbType.VarChar,36),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@width_", MySqlDbType.Double),
+					new MySqlParameter("@number_", MySqlDbType.VarChar,10),
+					new MySqlParameter("@process_date", MySqlDbType.Timestamp),
+					new MySqlParameter("@process_volume", MySqlDbType.Int32,11),
+					new MySqlParameter("@process_remark", MySqlDbType.VarChar,100),
+					new MySqlParameter("@process_number", MySqlDbType.Int32,11),
+					new MySqlParameter("@ratio_", MySqlDbType.Decimal,10),
+					new MySqlParameter("@colour_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@estimate_quantity", MySqlDbType.Decimal,10),
+					new MySqlParameter("@estimate_remark", MySqlDbType.VarChar,100),
+					new MySqlParameter("@unit_price", MySqlDbType.Decimal,10),
+					new MySqlParameter("@reason_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@cloth_price", MySqlDbType.Decimal,10),
+					new MySqlParameter("@wages_", MySqlDbType.Decimal,10),
+					new MySqlParameter("@roll_length", MySqlDbType.Decimal,10),
+					new MySqlParameter("@tag_operator", MySqlDbType.VarChar,10),
+					new MySqlParameter("@tag_factor", MySqlDbType.Decimal,10),
+					new MySqlParameter("@tag_factor_save", MySqlDbType.Decimal,10),
+					new MySqlParameter("@tag_unit", MySqlDbType.VarChar,10),
+					new MySqlParameter("@is_integer", MySqlDbType.Bit),
+					new MySqlParameter("@remark_", MySqlDbType.VarChar,255),
+					new MySqlParameter("@status_", MySqlDbType.Bit),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@create_time", MySqlDbType.Timestamp),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_time", MySqlDbType.Timestamp)};
+			parameters[0].Value = model.id_;
+			parameters[1].Value = model.customer_id;
+			parameters[2].Value = model.name_;
+			parameters[3].Value = model.width_;
+			parameters[4].Value = model.number_;
+			parameters[5].Value = model.process_date;
+			parameters[6].Value = model.process_volume;
+			parameters[7].Value = model.process_remark;
+			parameters[8].Value = model.process_number;
+			parameters[9].Value = model.ratio_;
+			parameters[10].Value = model.colour_;
+			parameters[11].Value = model.estimate_quantity;
+			parameters[12].Value = model.estimate_remark;
+			parameters[13].Value = model.unit_price;
+			parameters[14].Value = model.reason_;
+			parameters[15].Value = model.cloth_price;
+			parameters[16].Value = model.wages_;
+			parameters[17].Value = model.roll_length;
+			parameters[18].Value = model.tag_operator;
+			parameters[19].Value = model.tag_factor;
+			parameters[20].Value = model.tag_factor_save;
+			parameters[21].Value = model.tag_unit;
+			parameters[22].Value = model.is_integer;
+			parameters[23].Value = model.remark_;
+			parameters[24].Value = model.status_;
+			parameters[25].Value = model.del_flag;
+			parameters[26].Value = model.create_by;
+			parameters[27].Value = model.create_time;
+			parameters[28].Value = model.update_by;
+			parameters[29].Value = model.update_time;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 更新一条数据
+		/// </summary>
+		public bool Update(Jpsoft.Model.Work model)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("update base_work set ");
+			strSql.Append("customer_id=@customer_id,");
+			strSql.Append("name_=@name_,");
+			strSql.Append("width_=@width_,");
+			strSql.Append("number_=@number_,");
+			strSql.Append("process_date=@process_date,");
+			strSql.Append("process_volume=@process_volume,");
+			strSql.Append("process_remark=@process_remark,");
+			strSql.Append("process_number=@process_number,");
+			strSql.Append("ratio_=@ratio_,");
+			strSql.Append("colour_=@colour_,");
+			strSql.Append("estimate_quantity=@estimate_quantity,");
+			strSql.Append("estimate_remark=@estimate_remark,");
+			strSql.Append("unit_price=@unit_price,");
+			strSql.Append("reason_=@reason_,");
+			strSql.Append("cloth_price=@cloth_price,");
+			strSql.Append("wages_=@wages_,");
+			strSql.Append("roll_length=@roll_length,");
+			strSql.Append("tag_operator=@tag_operator,");
+			strSql.Append("tag_factor=@tag_factor,");
+			strSql.Append("tag_factor_save=@tag_factor_save,");
+			strSql.Append("tag_unit=@tag_unit,");
+			strSql.Append("is_integer=@is_integer,");
+			strSql.Append("remark_=@remark_,");
+			strSql.Append("status_=@status_,");
+			strSql.Append("del_flag=@del_flag,");
+			strSql.Append("create_by=@create_by,");
+			strSql.Append("update_by=@update_by");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@customer_id", MySqlDbType.VarChar,36),
+					new MySqlParameter("@name_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@width_", MySqlDbType.Double),
+					new MySqlParameter("@number_", MySqlDbType.VarChar,10),
+					new MySqlParameter("@process_date", MySqlDbType.Timestamp),
+					new MySqlParameter("@process_volume", MySqlDbType.Int32,11),
+					new MySqlParameter("@process_remark", MySqlDbType.VarChar,100),
+					new MySqlParameter("@process_number", MySqlDbType.Int32,11),
+					new MySqlParameter("@ratio_", MySqlDbType.Decimal,10),
+					new MySqlParameter("@colour_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@estimate_quantity", MySqlDbType.Decimal,10),
+					new MySqlParameter("@estimate_remark", MySqlDbType.VarChar,100),
+					new MySqlParameter("@unit_price", MySqlDbType.Decimal,10),
+					new MySqlParameter("@reason_", MySqlDbType.VarChar,100),
+					new MySqlParameter("@cloth_price", MySqlDbType.Decimal,10),
+					new MySqlParameter("@wages_", MySqlDbType.Decimal,10),
+					new MySqlParameter("@roll_length", MySqlDbType.Decimal,10),
+					new MySqlParameter("@tag_operator", MySqlDbType.VarChar,10),
+					new MySqlParameter("@tag_factor", MySqlDbType.Decimal,10),
+					new MySqlParameter("@tag_factor_save", MySqlDbType.Decimal,10),
+					new MySqlParameter("@tag_unit", MySqlDbType.VarChar,10),
+					new MySqlParameter("@is_integer", MySqlDbType.Bit),
+					new MySqlParameter("@remark_", MySqlDbType.VarChar,255),
+					new MySqlParameter("@status_", MySqlDbType.Bit),
+					new MySqlParameter("@del_flag", MySqlDbType.Bit),
+					new MySqlParameter("@create_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@update_by", MySqlDbType.VarChar,36),
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)};
+			parameters[0].Value = model.customer_id;
+			parameters[1].Value = model.name_;
+			parameters[2].Value = model.width_;
+			parameters[3].Value = model.number_;
+			parameters[4].Value = model.process_date;
+			parameters[5].Value = model.process_volume;
+			parameters[6].Value = model.process_remark;
+			parameters[7].Value = model.process_number;
+			parameters[8].Value = model.ratio_;
+			parameters[9].Value = model.colour_;
+			parameters[10].Value = model.estimate_quantity;
+			parameters[11].Value = model.estimate_remark;
+			parameters[12].Value = model.unit_price;
+			parameters[13].Value = model.reason_;
+			parameters[14].Value = model.cloth_price;
+			parameters[15].Value = model.wages_;
+			parameters[16].Value = model.roll_length;
+			parameters[17].Value = model.tag_operator;
+			parameters[18].Value = model.tag_factor;
+			parameters[19].Value = model.tag_factor_save;
+			parameters[20].Value = model.tag_unit;
+			parameters[21].Value = model.is_integer;
+			parameters[22].Value = model.remark_;
+			parameters[23].Value = model.status_;
+			parameters[24].Value = model.del_flag;
+			parameters[25].Value = model.create_by;
+			parameters[26].Value = model.update_by;
+			parameters[27].Value = model.id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+		/// <summary>
+		/// 删除一条数据
+		/// </summary>
+		public bool Delete(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_work ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+		/// <summary>
+		/// 批量删除数据
+		/// </summary>
+		public bool DeleteList(string id_list )
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("delete from base_work ");
+			strSql.Append(" where id_ in ("+id_list + ")  ");
+			int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
+			if (rows > 0)
+			{
+				return true;
+			}
+			else
+			{
+				return false;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Work GetModel(string id_)
+		{
+			
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,estimate_remark,unit_price,reason_,cloth_price,wages_,roll_length,tag_operator,tag_factor,tag_factor_save,tag_unit,is_integer,remark_,status_,del_flag,create_by,create_time,update_by,update_time from base_work ");
+			strSql.Append(" where id_=@id_ ");
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@id_", MySqlDbType.VarChar,36)			};
+			parameters[0].Value = id_;
+
+			Jpsoft.Model.Work model=new Jpsoft.Model.Work();
+			DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
+			if(ds.Tables[0].Rows.Count>0)
+			{
+				return DataRowToModel(ds.Tables[0].Rows[0]);
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+
+		/// <summary>
+		/// 得到一个对象实体
+		/// </summary>
+		public Jpsoft.Model.Work DataRowToModel(DataRow row)
+		{
+			Jpsoft.Model.Work model=new Jpsoft.Model.Work();
+			if (row != null)
+			{
+				if(row["id_"]!=null)
+				{
+					model.id_=row["id_"].ToString();
+				}
+				if(row["customer_id"]!=null)
+				{
+					model.customer_id=row["customer_id"].ToString();
+				}
+				if(row["name_"]!=null)
+				{
+					model.name_=row["name_"].ToString();
+				}
+					//model.width_=row["width_"].ToString();
+				if(row["number_"]!=null)
+				{
+					model.number_=row["number_"].ToString();
+				}
+				if(row["process_date"]!=null && row["process_date"].ToString()!="")
+				{
+					model.process_date=DateTime.Parse(row["process_date"].ToString());
+				}
+				if(row["process_volume"]!=null && row["process_volume"].ToString()!="")
+				{
+					model.process_volume=int.Parse(row["process_volume"].ToString());
+				}
+				if(row["process_remark"]!=null)
+				{
+					model.process_remark=row["process_remark"].ToString();
+				}
+				if(row["process_number"]!=null && row["process_number"].ToString()!="")
+				{
+					model.process_number=int.Parse(row["process_number"].ToString());
+				}
+				if(row["ratio_"]!=null && row["ratio_"].ToString()!="")
+				{
+					model.ratio_=decimal.Parse(row["ratio_"].ToString());
+				}
+				if(row["colour_"]!=null)
+				{
+					model.colour_=row["colour_"].ToString();
+				}
+				if(row["estimate_quantity"]!=null && row["estimate_quantity"].ToString()!="")
+				{
+					model.estimate_quantity=decimal.Parse(row["estimate_quantity"].ToString());
+				}
+				if(row["estimate_remark"]!=null)
+				{
+					model.estimate_remark=row["estimate_remark"].ToString();
+				}
+				if(row["unit_price"]!=null && row["unit_price"].ToString()!="")
+				{
+					model.unit_price=decimal.Parse(row["unit_price"].ToString());
+				}
+				if(row["reason_"]!=null)
+				{
+					model.reason_=row["reason_"].ToString();
+				}
+				if(row["cloth_price"]!=null && row["cloth_price"].ToString()!="")
+				{
+					model.cloth_price=decimal.Parse(row["cloth_price"].ToString());
+				}
+				if(row["wages_"]!=null && row["wages_"].ToString()!="")
+				{
+					model.wages_=decimal.Parse(row["wages_"].ToString());
+				}
+				if(row["roll_length"]!=null && row["roll_length"].ToString()!="")
+				{
+					model.roll_length=decimal.Parse(row["roll_length"].ToString());
+				}
+				if(row["tag_operator"]!=null)
+				{
+					model.tag_operator=row["tag_operator"].ToString();
+				}
+				if(row["tag_factor"]!=null && row["tag_factor"].ToString()!="")
+				{
+					model.tag_factor=decimal.Parse(row["tag_factor"].ToString());
+				}
+				if(row["tag_factor_save"]!=null && row["tag_factor_save"].ToString()!="")
+				{
+					model.tag_factor_save=decimal.Parse(row["tag_factor_save"].ToString());
+				}
+				if(row["tag_unit"]!=null)
+				{
+					model.tag_unit=row["tag_unit"].ToString();
+				}
+				if(row["is_integer"]!=null && row["is_integer"].ToString()!="")
+				{
+					if((row["is_integer"].ToString()=="1")||(row["is_integer"].ToString().ToLower()=="true"))
+					{
+						model.is_integer=true;
+					}
+					else
+					{
+						model.is_integer=false;
+					}
+				}
+				if(row["remark_"]!=null)
+				{
+					model.remark_=row["remark_"].ToString();
+				}
+				if(row["status_"]!=null && row["status_"].ToString()!="")
+				{
+					if((row["status_"].ToString()=="1")||(row["status_"].ToString().ToLower()=="true"))
+					{
+						model.status_=true;
+					}
+					else
+					{
+						model.status_=false;
+					}
+				}
+				if(row["del_flag"]!=null && row["del_flag"].ToString()!="")
+				{
+					if((row["del_flag"].ToString()=="1")||(row["del_flag"].ToString().ToLower()=="true"))
+					{
+						model.del_flag=true;
+					}
+					else
+					{
+						model.del_flag=false;
+					}
+				}
+				if(row["create_by"]!=null)
+				{
+					model.create_by=row["create_by"].ToString();
+				}
+				if(row["create_time"]!=null && row["create_time"].ToString()!="")
+				{
+					model.create_time=DateTime.Parse(row["create_time"].ToString());
+				}
+				if(row["update_by"]!=null)
+				{
+					model.update_by=row["update_by"].ToString();
+				}
+				if(row["update_time"]!=null && row["update_time"].ToString()!="")
+				{
+					model.update_time=DateTime.Parse(row["update_time"].ToString());
+				}
+			}
+			return model;
+		}
+
+		/// <summary>
+		/// 获得数据列表
+		/// </summary>
+		public DataSet GetList(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,estimate_remark,unit_price,reason_,cloth_price,wages_,roll_length,tag_operator,tag_factor,tag_factor_save,tag_unit,is_integer,remark_,status_,del_flag,create_by,create_time,update_by,update_time ");
+			strSql.Append(" FROM base_work ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/// <summary>
+		/// 获取记录总数
+		/// </summary>
+		public int GetRecordCount(string strWhere)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("select count(1) FROM base_work ");
+			if(strWhere.Trim()!="")
+			{
+				strSql.Append(" where "+strWhere);
+			}
+			object obj = DbHelperMySQL.GetSingle(strSql.ToString());
+			if (obj == null)
+			{
+				return 0;
+			}
+			else
+			{
+				return Convert.ToInt32(obj);
+			}
+		}
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
+		{
+			StringBuilder strSql=new StringBuilder();
+			strSql.Append("SELECT * FROM ( ");
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
+			if (!string.IsNullOrEmpty(orderby.Trim()))
+			{
+				strSql.Append("order by T." + orderby );
+			}
+			else
+			{
+				strSql.Append("order by T.id_ desc");
+			}
+			strSql.Append(")AS Row, T.*  from base_work T ");
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
+			{
+				strSql.Append(" WHERE " + strWhere);
+			}
+			strSql.Append(" ) TT");
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
+			return DbHelperMySQL.Query(strSql.ToString());
+		}
+
+		/*
+		/// <summary>
+		/// 分页获取数据列表
+		/// </summary>
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
+		{
+			MySqlParameter[] parameters = {
+					new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
+					new MySqlParameter("@PageSize", MySqlDbType.Int32),
+					new MySqlParameter("@PageIndex", MySqlDbType.Int32),
+					new MySqlParameter("@IsReCount", MySqlDbType.Bit),
+					new MySqlParameter("@OrderType", MySqlDbType.Bit),
+					new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
+					};
+			parameters[0].Value = "base_work";
+			parameters[1].Value = "id_";
+			parameters[2].Value = PageSize;
+			parameters[3].Value = PageIndex;
+			parameters[4].Value = 0;
+			parameters[5].Value = 0;
+			parameters[6].Value = strWhere;	
+			return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
+		}*/
+
+		#endregion  BasicMethod
+		#region  ExtensionMethod
+
+		#endregion  ExtensionMethod
+	}
+}
+

+ 159 - 0
Model/Account.cs

@@ -0,0 +1,159 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* account.cs
+*
+* 功 能: N/A
+* 类 名: account
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+namespace Jpsoft.Model
+{
+	/// <summary>
+	/// account:实体类(属性说明自动提取数据库字段的描述信息)
+	/// </summary>
+	[Serializable]
+	public partial class Account
+	{
+		public Account()
+		{}
+		#region Model
+		private string _id_;
+		private string _customer_id;
+		private string _work_id;
+		private int? _type_;
+		private string _plan_number;
+		private decimal? _actual_amount;
+		private decimal? _cloth_amount;
+		private decimal? _roll_amount;
+		private decimal? _total_amount;
+		private bool _del_flag;
+		private string _create_by;
+		private DateTime? _create_time;
+		private string _update_by;
+		private DateTime? _update_time;
+		/// <summary>
+		/// 
+		/// </summary>
+		public string id_
+		{
+			set{ _id_=value;}
+			get{return _id_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string customer_id
+		{
+			set{ _customer_id=value;}
+			get{return _customer_id;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string work_id
+		{
+			set{ _work_id=value;}
+			get{return _work_id;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public int? type_
+		{
+			set{ _type_=value;}
+			get{return _type_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string plan_number
+		{
+			set{ _plan_number=value;}
+			get{return _plan_number;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? actual_amount
+		{
+			set{ _actual_amount=value;}
+			get{return _actual_amount;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? cloth_amount
+		{
+			set{ _cloth_amount=value;}
+			get{return _cloth_amount;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? roll_amount
+		{
+			set{ _roll_amount=value;}
+			get{return _roll_amount;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? total_amount
+		{
+			set{ _total_amount=value;}
+			get{return _total_amount;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool del_flag
+		{
+			set{ _del_flag=value;}
+			get{return _del_flag;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string create_by
+		{
+			set{ _create_by=value;}
+			get{return _create_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? create_time
+		{
+			set{ _create_time=value;}
+			get{return _create_time;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string update_by
+		{
+			set{ _update_by=value;}
+			get{return _update_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? update_time
+		{
+			set{ _update_time=value;}
+			get{return _update_time;}
+		}
+		#endregion Model
+
+	}
+}
+

+ 114 - 0
Model/Customer.cs

@@ -0,0 +1,114 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* customer.cs
+*
+* 功 能: N/A
+* 类 名: customer
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+namespace Jpsoft.Model
+{
+	/// <summary>
+	/// customer:实体类(属性说明自动提取数据库字段的描述信息)
+	/// </summary>
+	[Serializable]
+	public partial class Customer
+	{
+		public Customer()
+		{}
+		#region Model
+		private string _id_;
+		private string _company_;
+		private string _name_;
+		private string _phone_;
+		private bool _del_flag;
+		private string _create_by;
+		private DateTime? _create_time;
+		private string _update_by;
+		private DateTime? _update_time;
+		/// <summary>
+		/// 
+		/// </summary>
+		public string id_
+		{
+			set{ _id_=value;}
+			get{return _id_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string company_
+		{
+			set{ _company_=value;}
+			get{return _company_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string name_
+		{
+			set{ _name_=value;}
+			get{return _name_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string phone_
+		{
+			set{ _phone_=value;}
+			get{return _phone_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool del_flag
+		{
+			set{ _del_flag=value;}
+			get{return _del_flag;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string create_by
+		{
+			set{ _create_by=value;}
+			get{return _create_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? create_time
+		{
+			set{ _create_time=value;}
+			get{return _create_time;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string update_by
+		{
+			set{ _update_by=value;}
+			get{return _update_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? update_time
+		{
+			set{ _update_time=value;}
+			get{return _update_time;}
+		}
+		#endregion Model
+
+	}
+}
+

+ 96 - 0
Model/Flaw.cs

@@ -0,0 +1,96 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* flaw.cs
+*
+* 功 能: N/A
+* 类 名: flaw
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+namespace Jpsoft.Model
+{
+	/// <summary>
+	/// flaw:实体类(属性说明自动提取数据库字段的描述信息)
+	/// </summary>
+	[Serializable]
+	public partial class Flaw
+	{
+		public Flaw()
+		{}
+		#region Model
+		private string _id_;
+		private string _name_;
+		private bool _del_flag;
+		private string _create_by;
+		private DateTime? _create_time;
+		private string _update_by;
+		private DateTime? _update_time;
+		/// <summary>
+		/// 
+		/// </summary>
+		public string id_
+		{
+			set{ _id_=value;}
+			get{return _id_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string name_
+		{
+			set{ _name_=value;}
+			get{return _name_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool del_flag
+		{
+			set{ _del_flag=value;}
+			get{return _del_flag;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string create_by
+		{
+			set{ _create_by=value;}
+			get{return _create_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? create_time
+		{
+			set{ _create_time=value;}
+			get{return _create_time;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string update_by
+		{
+			set{ _update_by=value;}
+			get{return _update_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? update_time
+		{
+			set{ _update_time=value;}
+			get{return _update_time;}
+		}
+		#endregion Model
+
+	}
+}
+

+ 96 - 0
Model/Label.cs

@@ -0,0 +1,96 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* label.cs
+*
+* 功 能: N/A
+* 类 名: label
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+namespace Jpsoft.Model
+{
+	/// <summary>
+	/// label:实体类(属性说明自动提取数据库字段的描述信息)
+	/// </summary>
+	[Serializable]
+	public partial class Label
+	{
+		public Label()
+		{}
+		#region Model
+		private string _id_;
+		private string _name_;
+		private bool _del_flag;
+		private string _create_by;
+		private DateTime? _create_time;
+		private string _update_by;
+		private DateTime? _update_time;
+		/// <summary>
+		/// 
+		/// </summary>
+		public string id_
+		{
+			set{ _id_=value;}
+			get{return _id_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string name_
+		{
+			set{ _name_=value;}
+			get{return _name_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool del_flag
+		{
+			set{ _del_flag=value;}
+			get{return _del_flag;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string create_by
+		{
+			set{ _create_by=value;}
+			get{return _create_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? create_time
+		{
+			set{ _create_time=value;}
+			get{return _create_time;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string update_by
+		{
+			set{ _update_by=value;}
+			get{return _update_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? update_time
+		{
+			set{ _update_time=value;}
+			get{return _update_time;}
+		}
+		#endregion Model
+
+	}
+}
+

+ 6 - 0
Model/Model.csproj

@@ -120,10 +120,16 @@
     </Reference>
     </Reference>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
+    <Compile Include="Account.cs" />
     <Compile Include="AssemblyInfo.cs">
     <Compile Include="AssemblyInfo.cs">
       <SubType>Code</SubType>
       <SubType>Code</SubType>
     </Compile>
     </Compile>
+    <Compile Include="Customer.cs" />
+    <Compile Include="Flaw.cs" />
+    <Compile Include="Label.cs" />
+    <Compile Include="Staff.cs" />
     <Compile Include="Stock.cs" />
     <Compile Include="Stock.cs" />
+    <Compile Include="Work.cs" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">

+ 105 - 0
Model/Staff.cs

@@ -0,0 +1,105 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* staff.cs
+*
+* 功 能: N/A
+* 类 名: staff
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+namespace Jpsoft.Model
+{
+	/// <summary>
+	/// staff:实体类(属性说明自动提取数据库字段的描述信息)
+	/// </summary>
+	[Serializable]
+	public partial class Staff
+	{
+		public Staff()
+		{}
+		#region Model
+		private string _id_;
+		private string _serial_number;
+		private string _name_;
+		private bool _del_flag;
+		private string _create_by;
+		private DateTime? _create_time;
+		private string _update_by;
+		private DateTime? _update_time;
+		/// <summary>
+		/// 
+		/// </summary>
+		public string id_
+		{
+			set{ _id_=value;}
+			get{return _id_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string serial_number
+		{
+			set{ _serial_number=value;}
+			get{return _serial_number;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string name_
+		{
+			set{ _name_=value;}
+			get{return _name_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool del_flag
+		{
+			set{ _del_flag=value;}
+			get{return _del_flag;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string create_by
+		{
+			set{ _create_by=value;}
+			get{return _create_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? create_time
+		{
+			set{ _create_time=value;}
+			get{return _create_time;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string update_by
+		{
+			set{ _update_by=value;}
+			get{return _update_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? update_time
+		{
+			set{ _update_time=value;}
+			get{return _update_time;}
+		}
+		#endregion Model
+
+	}
+}
+

+ 303 - 0
Model/Work.cs

@@ -0,0 +1,303 @@
+/**  版本信息模板在安装目录下,可自行修改。
+* work.cs
+*
+* 功 能: N/A
+* 类 名: work
+*
+* Ver    变更日期             负责人  变更内容
+* ───────────────────────────────────
+* V0.01  2024-07-27 10:51:14   N/A    初版
+*
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
+*┌──────────────────────────────────┐
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
+*│ 版权所有:动软卓越(北京)科技有限公司              │
+*└──────────────────────────────────┘
+*/
+using System;
+namespace Jpsoft.Model
+{
+	/// <summary>
+	/// work:实体类(属性说明自动提取数据库字段的描述信息)
+	/// </summary>
+	[Serializable]
+	public partial class Work
+	{
+		public Work()
+		{}
+		#region Model
+		private string _id_;
+		private string _customer_id;
+		private string _name_;
+		private double? _width_;
+		private string _number_;
+		private DateTime? _process_date;
+		private int? _process_volume;
+		private string _process_remark;
+		private int? _process_number;
+		private decimal? _ratio_;
+		private string _colour_;
+		private decimal? _estimate_quantity;
+		private string _estimate_remark;
+		private decimal? _unit_price;
+		private string _reason_;
+		private decimal? _cloth_price;
+		private decimal? _wages_;
+		private decimal? _roll_length;
+		private string _tag_operator;
+		private decimal? _tag_factor;
+		private decimal? _tag_factor_save;
+		private string _tag_unit;
+		private bool _is_integer;
+		private string _remark_;
+		private bool _status_;
+		private bool _del_flag;
+		private string _create_by;
+		private DateTime? _create_time;
+		private string _update_by;
+		private DateTime? _update_time;
+		/// <summary>
+		/// 
+		/// </summary>
+		public string id_
+		{
+			set{ _id_=value;}
+			get{return _id_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string customer_id
+		{
+			set{ _customer_id=value;}
+			get{return _customer_id;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string name_
+		{
+			set{ _name_=value;}
+			get{return _name_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public double? width_
+		{
+			set{ _width_=value;}
+			get{return _width_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string number_
+		{
+			set{ _number_=value;}
+			get{return _number_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? process_date
+		{
+			set{ _process_date=value;}
+			get{return _process_date;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public int? process_volume
+		{
+			set{ _process_volume=value;}
+			get{return _process_volume;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string process_remark
+		{
+			set{ _process_remark=value;}
+			get{return _process_remark;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public int? process_number
+		{
+			set{ _process_number=value;}
+			get{return _process_number;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? ratio_
+		{
+			set{ _ratio_=value;}
+			get{return _ratio_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string colour_
+		{
+			set{ _colour_=value;}
+			get{return _colour_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? estimate_quantity
+		{
+			set{ _estimate_quantity=value;}
+			get{return _estimate_quantity;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string estimate_remark
+		{
+			set{ _estimate_remark=value;}
+			get{return _estimate_remark;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? unit_price
+		{
+			set{ _unit_price=value;}
+			get{return _unit_price;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string reason_
+		{
+			set{ _reason_=value;}
+			get{return _reason_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? cloth_price
+		{
+			set{ _cloth_price=value;}
+			get{return _cloth_price;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? wages_
+		{
+			set{ _wages_=value;}
+			get{return _wages_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? roll_length
+		{
+			set{ _roll_length=value;}
+			get{return _roll_length;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string tag_operator
+		{
+			set{ _tag_operator=value;}
+			get{return _tag_operator;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? tag_factor
+		{
+			set{ _tag_factor=value;}
+			get{return _tag_factor;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public decimal? tag_factor_save
+		{
+			set{ _tag_factor_save=value;}
+			get{return _tag_factor_save;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string tag_unit
+		{
+			set{ _tag_unit=value;}
+			get{return _tag_unit;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool is_integer
+		{
+			set{ _is_integer=value;}
+			get{return _is_integer;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string remark_
+		{
+			set{ _remark_=value;}
+			get{return _remark_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool status_
+		{
+			set{ _status_=value;}
+			get{return _status_;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public bool del_flag
+		{
+			set{ _del_flag=value;}
+			get{return _del_flag;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string create_by
+		{
+			set{ _create_by=value;}
+			get{return _create_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? create_time
+		{
+			set{ _create_time=value;}
+			get{return _create_time;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public string update_by
+		{
+			set{ _update_by=value;}
+			get{return _update_by;}
+		}
+		/// <summary>
+		/// 
+		/// </summary>
+		public DateTime? update_time
+		{
+			set{ _update_time=value;}
+			get{return _update_time;}
+		}
+		#endregion Model
+
+	}
+}
+

+ 115 - 0
WinForms/Configure.Designer.cs

@@ -0,0 +1,115 @@
+namespace WinForms
+{
+    partial class Configure
+    {
+        /// <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.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.tabPage3 = new System.Windows.Forms.TabPage();
+            this.tabPage4 = new System.Windows.Forms.TabPage();
+            this.tabControl1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // tabControl1
+            // 
+            this.tabControl1.Controls.Add(this.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Controls.Add(this.tabPage3);
+            this.tabControl1.Controls.Add(this.tabPage4);
+            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.tabControl1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.tabControl1.Location = new System.Drawing.Point(0, 0);
+            this.tabControl1.Multiline = true;
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(800, 450);
+            this.tabControl1.TabIndex = 1;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Location = new System.Drawing.Point(4, 26);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage1.Size = new System.Drawing.Size(792, 420);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "串口";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Location = new System.Drawing.Point(4, 26);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(755, 420);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "数据库";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // tabPage3
+            // 
+            this.tabPage3.Location = new System.Drawing.Point(4, 26);
+            this.tabPage3.Name = "tabPage3";
+            this.tabPage3.Size = new System.Drawing.Size(755, 420);
+            this.tabPage3.TabIndex = 2;
+            this.tabPage3.Text = "采集";
+            this.tabPage3.UseVisualStyleBackColor = true;
+            // 
+            // tabPage4
+            // 
+            this.tabPage4.Location = new System.Drawing.Point(4, 26);
+            this.tabPage4.Name = "tabPage4";
+            this.tabPage4.Size = new System.Drawing.Size(755, 420);
+            this.tabPage4.TabIndex = 3;
+            this.tabPage4.Text = "打印";
+            this.tabPage4.UseVisualStyleBackColor = true;
+            // 
+            // Configure
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.tabControl1);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Name = "Configure";
+            this.Text = "Configure";
+            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+            this.tabControl1.ResumeLayout(false);
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TabPage tabPage3;
+        private System.Windows.Forms.TabPage tabPage4;
+    }
+}

+ 20 - 0
WinForms/Configure.cs

@@ -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 WinForms
+{
+    public partial class Configure : Form
+    {
+        public Configure()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 120 - 0
WinForms/Configure.resx

@@ -0,0 +1,120 @@
+<?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>

+ 591 - 0
WinForms/Default.Designer.cs

@@ -0,0 +1,591 @@
+namespace WinForms
+{
+    partial class Default
+    {
+        /// <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()
+        {
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Default));
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
+            this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label15 = new System.Windows.Forms.Label();
+            this.label14 = new System.Windows.Forms.Label();
+            this.label13 = new System.Windows.Forms.Label();
+            this.label11 = new System.Windows.Forms.Label();
+            this.label12 = new System.Windows.Forms.Label();
+            this.label9 = new System.Windows.Forms.Label();
+            this.label10 = new System.Windows.Forms.Label();
+            this.label8 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
+            this.button15 = new System.Windows.Forms.Button();
+            this.button14 = new System.Windows.Forms.Button();
+            this.button13 = new System.Windows.Forms.Button();
+            this.button12 = new System.Windows.Forms.Button();
+            this.button11 = new System.Windows.Forms.Button();
+            this.button10 = new System.Windows.Forms.Button();
+            this.button9 = new System.Windows.Forms.Button();
+            this.button8 = new System.Windows.Forms.Button();
+            this.button7 = new System.Windows.Forms.Button();
+            this.button6 = new System.Windows.Forms.Button();
+            this.button5 = new System.Windows.Forms.Button();
+            this.button4 = new System.Windows.Forms.Button();
+            this.button3 = new System.Windows.Forms.Button();
+            this.button2 = new System.Windows.Forms.Button();
+            this.button1 = new System.Windows.Forms.Button();
+            this.dataGridView1 = new System.Windows.Forms.DataGridView();
+            this.groupBox3 = new System.Windows.Forms.GroupBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.groupBox2 = new System.Windows.Forms.GroupBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            this.toolStrip1.SuspendLayout();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+            this.groupBox3.SuspendLayout();
+            this.groupBox2.SuspendLayout();
+            this.groupBox1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // toolStrip1
+            // 
+            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.toolStrip1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+            this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
+            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.toolStripButton2});
+            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
+            this.toolStrip1.Name = "toolStrip1";
+            this.toolStrip1.Size = new System.Drawing.Size(37, 450);
+            this.toolStrip1.TabIndex = 0;
+            this.toolStrip1.Text = "toolStrip1";
+            // 
+            // toolStripButton2
+            // 
+            this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+            this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
+            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
+            this.toolStripButton2.Name = "toolStripButton2";
+            this.toolStripButton2.Size = new System.Drawing.Size(34, 53);
+            this.toolStripButton2.Text = "配置";
+            this.toolStripButton2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
+            this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.SystemColors.Control;
+            this.panel1.Controls.Add(this.label15);
+            this.panel1.Controls.Add(this.label14);
+            this.panel1.Controls.Add(this.label13);
+            this.panel1.Controls.Add(this.label11);
+            this.panel1.Controls.Add(this.label12);
+            this.panel1.Controls.Add(this.label9);
+            this.panel1.Controls.Add(this.label10);
+            this.panel1.Controls.Add(this.label8);
+            this.panel1.Controls.Add(this.label7);
+            this.panel1.Controls.Add(this.button15);
+            this.panel1.Controls.Add(this.button14);
+            this.panel1.Controls.Add(this.button13);
+            this.panel1.Controls.Add(this.button12);
+            this.panel1.Controls.Add(this.button11);
+            this.panel1.Controls.Add(this.button10);
+            this.panel1.Controls.Add(this.button9);
+            this.panel1.Controls.Add(this.button8);
+            this.panel1.Controls.Add(this.button7);
+            this.panel1.Controls.Add(this.button6);
+            this.panel1.Controls.Add(this.button5);
+            this.panel1.Controls.Add(this.button4);
+            this.panel1.Controls.Add(this.button3);
+            this.panel1.Controls.Add(this.button2);
+            this.panel1.Controls.Add(this.button1);
+            this.panel1.Controls.Add(this.dataGridView1);
+            this.panel1.Controls.Add(this.groupBox3);
+            this.panel1.Controls.Add(this.groupBox2);
+            this.panel1.Controls.Add(this.groupBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.panel1.Location = new System.Drawing.Point(37, 0);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(763, 450);
+            this.panel1.TabIndex = 1;
+            // 
+            // label15
+            // 
+            this.label15.AutoSize = true;
+            this.label15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label15.Location = new System.Drawing.Point(7, 421);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(92, 16);
+            this.label15.TabIndex = 70;
+            this.label15.Text = "打印数量:";
+            // 
+            // label14
+            // 
+            this.label14.AutoSize = true;
+            this.label14.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label14.Location = new System.Drawing.Point(179, 384);
+            this.label14.Name = "label14";
+            this.label14.Size = new System.Drawing.Size(58, 16);
+            this.label14.TabIndex = 69;
+            this.label14.Text = "精度:";
+            // 
+            // label13
+            // 
+            this.label13.AutoSize = true;
+            this.label13.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label13.Location = new System.Drawing.Point(7, 384);
+            this.label13.Name = "label13";
+            this.label13.Size = new System.Drawing.Size(92, 16);
+            this.label13.TabIndex = 68;
+            this.label13.Text = "长度单位:";
+            // 
+            // label11
+            // 
+            this.label11.AutoSize = true;
+            this.label11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label11.Location = new System.Drawing.Point(179, 347);
+            this.label11.Name = "label11";
+            this.label11.Size = new System.Drawing.Size(58, 16);
+            this.label11.TabIndex = 67;
+            this.label11.Text = "加码:";
+            // 
+            // label12
+            // 
+            this.label12.AutoSize = true;
+            this.label12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label12.Location = new System.Drawing.Point(7, 347);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(58, 16);
+            this.label12.TabIndex = 66;
+            this.label12.Text = "色泽:";
+            // 
+            // label9
+            // 
+            this.label9.AutoSize = true;
+            this.label9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label9.Location = new System.Drawing.Point(179, 310);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(58, 16);
+            this.label9.TabIndex = 65;
+            this.label9.Text = "编号:";
+            // 
+            // label10
+            // 
+            this.label10.AutoSize = true;
+            this.label10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label10.Location = new System.Drawing.Point(7, 310);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(58, 16);
+            this.label10.TabIndex = 64;
+            this.label10.Text = "幅宽:";
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label8.Location = new System.Drawing.Point(179, 273);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(109, 16);
+            this.label8.TabIndex = 63;
+            this.label8.Text = "品种及规格:";
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label7.Location = new System.Drawing.Point(7, 273);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(92, 16);
+            this.label7.TabIndex = 43;
+            this.label7.Text = "客户名称:";
+            // 
+            // button15
+            // 
+            this.button15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button15.Location = new System.Drawing.Point(182, 209);
+            this.button15.Name = "button15";
+            this.button15.Size = new System.Drawing.Size(171, 50);
+            this.button15.TabIndex = 62;
+            this.button15.Text = "幅宽";
+            this.button15.UseVisualStyleBackColor = true;
+            // 
+            // button14
+            // 
+            this.button14.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button14.Location = new System.Drawing.Point(5, 209);
+            this.button14.Name = "button14";
+            this.button14.Size = new System.Drawing.Size(171, 50);
+            this.button14.TabIndex = 61;
+            this.button14.Text = "品种及规格";
+            this.button14.UseVisualStyleBackColor = true;
+            // 
+            // button13
+            // 
+            this.button13.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button13.Location = new System.Drawing.Point(182, 153);
+            this.button13.Name = "button13";
+            this.button13.Size = new System.Drawing.Size(171, 50);
+            this.button13.TabIndex = 60;
+            this.button13.Text = "颜色";
+            this.button13.UseVisualStyleBackColor = true;
+            // 
+            // button12
+            // 
+            this.button12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button12.Location = new System.Drawing.Point(5, 153);
+            this.button12.Name = "button12";
+            this.button12.Size = new System.Drawing.Size(171, 50);
+            this.button12.TabIndex = 59;
+            this.button12.Text = "加码";
+            this.button12.UseVisualStyleBackColor = true;
+            // 
+            // button11
+            // 
+            this.button11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button11.Location = new System.Drawing.Point(182, 97);
+            this.button11.Name = "button11";
+            this.button11.Size = new System.Drawing.Size(171, 50);
+            this.button11.TabIndex = 58;
+            this.button11.Text = "工单编号";
+            this.button11.UseVisualStyleBackColor = true;
+            // 
+            // button10
+            // 
+            this.button10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button10.Location = new System.Drawing.Point(5, 97);
+            this.button10.Name = "button10";
+            this.button10.Size = new System.Drawing.Size(171, 50);
+            this.button10.TabIndex = 57;
+            this.button10.Text = "换单";
+            this.button10.UseVisualStyleBackColor = true;
+            this.button10.Click += new System.EventHandler(this.button10_Click);
+            // 
+            // button9
+            // 
+            this.button9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button9.Location = new System.Drawing.Point(682, 364);
+            this.button9.Name = "button9";
+            this.button9.Size = new System.Drawing.Size(75, 37);
+            this.button9.TabIndex = 56;
+            this.button9.Text = "长度";
+            this.button9.UseVisualStyleBackColor = true;
+            // 
+            // button8
+            // 
+            this.button8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button8.Location = new System.Drawing.Point(682, 407);
+            this.button8.Name = "button8";
+            this.button8.Size = new System.Drawing.Size(75, 37);
+            this.button8.TabIndex = 55;
+            this.button8.Text = "标签";
+            this.button8.UseVisualStyleBackColor = true;
+            // 
+            // button7
+            // 
+            this.button7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button7.Location = new System.Drawing.Point(601, 364);
+            this.button7.Name = "button7";
+            this.button7.Size = new System.Drawing.Size(75, 37);
+            this.button7.TabIndex = 54;
+            this.button7.Text = "卷号";
+            this.button7.UseVisualStyleBackColor = true;
+            // 
+            // button6
+            // 
+            this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button6.Location = new System.Drawing.Point(561, 407);
+            this.button6.Name = "button6";
+            this.button6.Size = new System.Drawing.Size(115, 37);
+            this.button6.TabIndex = 53;
+            this.button6.Text = "导出数据";
+            this.button6.UseVisualStyleBackColor = true;
+            // 
+            // button5
+            // 
+            this.button5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button5.Location = new System.Drawing.Point(520, 364);
+            this.button5.Name = "button5";
+            this.button5.Size = new System.Drawing.Size(75, 37);
+            this.button5.TabIndex = 52;
+            this.button5.Text = "刷新";
+            this.button5.UseVisualStyleBackColor = true;
+            // 
+            // button4
+            // 
+            this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button4.Location = new System.Drawing.Point(439, 407);
+            this.button4.Name = "button4";
+            this.button4.Size = new System.Drawing.Size(115, 37);
+            this.button4.TabIndex = 51;
+            this.button4.Text = "打印选中项";
+            this.button4.UseVisualStyleBackColor = true;
+            // 
+            // button3
+            // 
+            this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button3.Location = new System.Drawing.Point(439, 364);
+            this.button3.Name = "button3";
+            this.button3.Size = new System.Drawing.Size(75, 37);
+            this.button3.TabIndex = 50;
+            this.button3.Text = "打印";
+            this.button3.UseVisualStyleBackColor = true;
+            // 
+            // button2
+            // 
+            this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button2.Location = new System.Drawing.Point(358, 407);
+            this.button2.Name = "button2";
+            this.button2.Size = new System.Drawing.Size(75, 37);
+            this.button2.TabIndex = 49;
+            this.button2.Text = "删除";
+            this.button2.UseVisualStyleBackColor = true;
+            // 
+            // button1
+            // 
+            this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.button1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.button1.Location = new System.Drawing.Point(358, 364);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(75, 37);
+            this.button1.TabIndex = 48;
+            this.button1.Text = "完成";
+            this.button1.UseVisualStyleBackColor = true;
+            // 
+            // dataGridView1
+            // 
+            this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
+            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5;
+            this.dataGridView1.Location = new System.Drawing.Point(358, 6);
+            this.dataGridView1.Name = "dataGridView1";
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
+            this.dataGridView1.RowTemplate.Height = 23;
+            this.dataGridView1.Size = new System.Drawing.Size(399, 352);
+            this.dataGridView1.TabIndex = 47;
+            // 
+            // groupBox3
+            // 
+            this.groupBox3.Controls.Add(this.label6);
+            this.groupBox3.Controls.Add(this.label4);
+            this.groupBox3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBox3.Location = new System.Drawing.Point(241, 11);
+            this.groupBox3.Name = "groupBox3";
+            this.groupBox3.Size = new System.Drawing.Size(112, 75);
+            this.groupBox3.TabIndex = 46;
+            this.groupBox3.TabStop = false;
+            this.groupBox3.Text = "实际累计";
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label6.Location = new System.Drawing.Point(6, 28);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(52, 16);
+            this.label6.TabIndex = 15;
+            this.label6.Text = "12121";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(82, 51);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(24, 16);
+            this.label4.TabIndex = 15;
+            this.label4.Text = "米";
+            // 
+            // groupBox2
+            // 
+            this.groupBox2.Controls.Add(this.label5);
+            this.groupBox2.Controls.Add(this.label3);
+            this.groupBox2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBox2.Location = new System.Drawing.Point(123, 11);
+            this.groupBox2.Name = "groupBox2";
+            this.groupBox2.Size = new System.Drawing.Size(112, 75);
+            this.groupBox2.TabIndex = 45;
+            this.groupBox2.TabStop = false;
+            this.groupBox2.Text = "本缸累计";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label5.Location = new System.Drawing.Point(6, 28);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(52, 16);
+            this.label5.TabIndex = 14;
+            this.label5.Text = "12121";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label3.Location = new System.Drawing.Point(82, 51);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(24, 16);
+            this.label3.TabIndex = 14;
+            this.label3.Text = "米";
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.label2);
+            this.groupBox1.Controls.Add(this.label1);
+            this.groupBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBox1.Location = new System.Drawing.Point(5, 11);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(112, 75);
+            this.groupBox1.TabIndex = 44;
+            this.groupBox1.TabStop = false;
+            this.groupBox1.Text = "当前读数";
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(6, 28);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(52, 16);
+            this.label2.TabIndex = 13;
+            this.label2.Text = "12121";
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.Location = new System.Drawing.Point(82, 51);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(24, 16);
+            this.label1.TabIndex = 13;
+            this.label1.Text = "米";
+            // 
+            // Default
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.panel1);
+            this.Controls.Add(this.toolStrip1);
+            this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.Name = "Default";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "恒利达印染厂";
+            this.toolStrip1.ResumeLayout(false);
+            this.toolStrip1.PerformLayout();
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+            this.groupBox3.ResumeLayout(false);
+            this.groupBox3.PerformLayout();
+            this.groupBox2.ResumeLayout(false);
+            this.groupBox2.PerformLayout();
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.ToolStrip toolStrip1;
+        private System.Windows.Forms.ToolStripButton toolStripButton2;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label11;
+        private System.Windows.Forms.Label label12;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.Label label10;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Button button15;
+        private System.Windows.Forms.Button button14;
+        private System.Windows.Forms.Button button13;
+        private System.Windows.Forms.Button button12;
+        private System.Windows.Forms.Button button11;
+        private System.Windows.Forms.Button button10;
+        private System.Windows.Forms.Button button9;
+        private System.Windows.Forms.Button button8;
+        private System.Windows.Forms.Button button7;
+        private System.Windows.Forms.Button button6;
+        private System.Windows.Forms.Button button5;
+        private System.Windows.Forms.Button button4;
+        private System.Windows.Forms.Button button3;
+        private System.Windows.Forms.Button button2;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.DataGridView dataGridView1;
+        private System.Windows.Forms.GroupBox groupBox3;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.GroupBox groupBox2;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.GroupBox groupBox1;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label label13;
+        private System.Windows.Forms.Label label14;
+        private System.Windows.Forms.Label label15;
+    }
+}

+ 33 - 0
WinForms/Default.cs

@@ -0,0 +1,33 @@
+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 WinForms
+{
+    public partial class Default : Form
+    {
+        public Default()
+        {
+            InitializeComponent();
+        }
+
+        private void toolStripButton2_Click(object sender, EventArgs e)
+        {
+            Configure configureForm = new Configure();
+            configureForm.TopLevel = false;
+            configureForm.Show();
+        }
+
+        private void button10_Click(object sender, EventArgs e)
+        {
+            SelectWork selectWork = new SelectWork();
+            selectWork.ShowDialog();
+        }
+    }
+}

+ 139 - 0
WinForms/Default.resx

@@ -0,0 +1,139 @@
+<?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>
+  <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+        YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
+        YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
+        0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
+        bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
+        VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
+        c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
+        Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
+        mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
+        kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
+        TgDQASA1MVpwzwAAAABJRU5ErkJggg==
+</value>
+  </data>
+</root>

+ 1 - 1
WinForms/Program.cs

@@ -14,7 +14,7 @@ namespace WinForms
         {
         {
             Application.EnableVisualStyles();
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
             Application.SetCompatibleTextRenderingDefault(false);
-            Application.Run(new Test());
+            Application.Run(new Default());
         }
         }
     }
     }
 }
 }

+ 50 - 0
WinForms/SelectWork.Designer.cs

@@ -0,0 +1,50 @@
+namespace WinForms
+{
+    partial class SelectWork
+    {
+        /// <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.SuspendLayout();
+            // 
+            // SelectWork
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(698, 450);
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "SelectWork";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "工单";
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+    }
+}

+ 54 - 0
WinForms/SelectWork.cs

@@ -0,0 +1,54 @@
+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 WinForms
+{
+    public partial class SelectWork : Form
+    {
+        public SelectWork()
+        {
+            InitializeComponent();
+            BindData();
+        }
+
+        private void BindData()
+        {
+            Jpsoft.BLL.Work bll = new Jpsoft.BLL.Work();
+            DataSet dataSet = bll.GetAllList();
+            DataTable dataTable = dataSet.Tables[0];
+            //ucDataGridView1.DataSource = dataSet.Tables[0];
+            //ucPagerControl21.DataSource = dataTable.AsEnumerable().ToList();
+            List<object> lstSource = new List<object>();
+            foreach (DataRow dataRow in dataTable.Rows)
+            {
+                Jpsoft.Model.Work model = new Jpsoft.Model.Work();
+                model.id_ = dataRow["id_"].ToString();
+                lstSource.Add(model);
+            }
+            //this.ucDataGridView1.DataSource = lstSource;
+            //this.ucPagerControl21.DataSource = lstSource;
+        }
+
+        private void btnSearch_BtnClick(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnSubmit_BtnClick(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnCancel_BtnClick(object sender, EventArgs e)
+        {
+            this.Close();
+        }
+    }
+}

+ 120 - 0
WinForms/SelectWork.resx

@@ -0,0 +1,120 @@
+<?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>

+ 29 - 0
WinForms/WinForms.csproj

@@ -38,11 +38,30 @@
     <Reference Include="System" />
     <Reference Include="System" />
     <Reference Include="System.Data" />
     <Reference Include="System.Data" />
     <Reference Include="System.Deployment" />
     <Reference Include="System.Deployment" />
+    <Reference Include="System.Design" />
     <Reference Include="System.Drawing" />
     <Reference Include="System.Drawing" />
     <Reference Include="System.Windows.Forms" />
     <Reference Include="System.Windows.Forms" />
     <Reference Include="System.Xml" />
     <Reference Include="System.Xml" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
+    <Compile Include="Configure.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Configure.Designer.cs">
+      <DependentUpon>Configure.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Default.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Default.Designer.cs">
+      <DependentUpon>Default.cs</DependentUpon>
+    </Compile>
+    <Compile Include="SelectWork.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="SelectWork.Designer.cs">
+      <DependentUpon>SelectWork.cs</DependentUpon>
+    </Compile>
     <Compile Include="Test.cs">
     <Compile Include="Test.cs">
       <SubType>Form</SubType>
       <SubType>Form</SubType>
     </Compile>
     </Compile>
@@ -51,6 +70,15 @@
     </Compile>
     </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="Configure.resx">
+      <DependentUpon>Configure.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Default.resx">
+      <DependentUpon>Default.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="SelectWork.resx">
+      <DependentUpon>SelectWork.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Test.resx">
     <EmbeddedResource Include="Test.resx">
       <DependentUpon>Test.cs</DependentUpon>
       <DependentUpon>Test.cs</DependentUpon>
     </EmbeddedResource>
     </EmbeddedResource>
@@ -85,5 +113,6 @@
       <Name>Model</Name>
       <Name>Model</Name>
     </ProjectReference>
     </ProjectReference>
   </ItemGroup>
   </ItemGroup>
+  <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>
 </Project>