From e8d054f998b58c77ebdfa0ad5f7a8ec51f8b0bee Mon Sep 17 00:00:00 2001
From: yibo <361071264@qq.com>
Date: Mon, 16 Jul 2018 08:20:14 +0800
Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=BE=8E=E5=8C=96=E4=BB=A5?=
=?UTF-8?q?=E5=8F=8A=E5=88=86=E5=89=B2=E5=93=81=E5=A4=87=E8=B4=A7=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ButcherFactory.BO/Bill/SegmentProduction.cs | 13 +
ButcherFactory.BO/Bill/StockUpEntity.cs | 70 +
ButcherFactory.BO/ButcherFactory.BO.csproj | 2 +
ButcherFactory.BO/Enums/DriveType.cs | 9 +-
ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs | 2 +-
.../LocalBL/SegmentProductionBL.cs | 1 +
ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs | 73 +
ButcherFactory.BO/Utils/LoginUtil.cs | 3 +-
.../ButcherFactory.Form.csproj | 70 +
.../CarcassSaleOutForm.Designer.cs | 1182 +++++++++++++++++
.../CarcassSaleOut2_/CarcassSaleOutForm.cs | 454 +++++++
.../CarcassSaleOut2_/CarcassSaleOutForm.resx | 198 +++
.../CarcassSaleOutForm.Designer.cs | 4 +-
.../CarcassSaleOut_/CarcassSaleOutForm.cs | 17 +-
ButcherFactory.Form/Controls/ColorButton.cs | 185 +++
.../Controls/FormTemplate.Designer.cs | 223 ++++
ButcherFactory.Form/Controls/FormTemplate.cs | 83 ++
.../Controls/FormTemplate.resx | 159 +++
ButcherFactory.Form/Controls/RoundPanel.cs | 81 ++
.../Controls/Utils/AoHaoSi3000DataFormat.cs | 52 +
.../Controls/Utils/DataFormatBase.cs | 70 +
.../Controls/Utils/IND560DataFormat.cs | 58 +
.../Controls/Utils/Xk3124DataFormat.cs | 121 ++
.../Controls/Utils/Xk3190A9DataFormat.cs | 136 ++
.../Controls/Utils/Xk3190D10DataFormat.cs | 130 ++
ButcherFactory.Form/Controls/WeightConfig.cs | 43 +
.../Controls/WeightControl.Designer.cs | 131 ++
ButcherFactory.Form/Controls/WeightControl.cs | 306 +++++
.../Controls/WeightControl.resx | 120 ++
.../Controls/WeightSettingFrom.Designer.cs | 305 +++++
.../Controls/WeightSettingFrom.cs | 104 ++
.../Controls/WeightSettingFrom.resx | 120 ++
.../Dialogs/ClientGoodsSetDialog.Designer.cs | 41 +-
.../Dialogs/ClientGoodsSetDialog.cs | 13 +-
.../Dialogs/ClientGoodsSetDialog.resx | 9 -
.../Dialogs/SelectBillStateDialog.Designer.cs | 165 +--
.../Dialogs/SelectBillStateDialog.cs | 6 +-
.../Dialogs/SelectBillStateDialog.resx | 33 -
.../Dialogs/SelectCustomerDialog.Designer.cs | 85 +-
.../Dialogs/SelectCustomerDialog.cs | 15 +-
.../Dialogs/SelectCustomerDialog.resx | 17 -
.../Dialogs/SelectDeliverGoodsLineDialog.cs | 9 +-
.../Dialogs/SelectStoreDialog.cs | 9 +-
.../Properties/Resources.Designer.cs | 73 +
ButcherFactory.Form/Properties/Resources.resx | 124 ++
ButcherFactory.Form/Resources/closeImg.png | Bin 0 -> 3236 bytes
.../InStoreSummaryView.Designer.cs | 2 +-
.../SegmentInStoreForm.Designer.cs | 180 +--
.../SegmentInStore_/SegmentInStoreForm.cs | 4 +-
.../SegmentInStore_/SegmentInStoreForm.resx | 2 +-
.../SegmentProductionAutoForm.Designer.cs | 434 +++---
.../SegmentProductionAutoForm.cs | 47 +-
.../SegmentProductionAutoForm.resx | 47 +-
.../SegmentStockUpForm.Designer.cs | 633 +++++++++
.../SegmentStockUp_/SegmentStockUpForm.cs | 191 +++
.../SegmentStockUp_/SegmentStockUpForm.resx | 171 +++
ButcherFactory.Form/Utils/ControlsUtil.cs | 16 +
ButcherFactory.Login/Login.xaml.cs | 2 +-
SelfHelpClient/BO/WeightBill.cs | 3 +
SelfHelpClient/DialogForm.Designer.cs | 41 +-
SelfHelpClient/DialogForm.cs | 6 +
SelfHelpClient/ItemSelect.Designer.cs | 79 +-
SelfHelpClient/MainForm.Designer.cs | 185 ++-
SelfHelpClient/MainForm.cs | 6 +-
.../Properties/Resources.Designer.cs | 100 ++
SelfHelpClient/Properties/Resources.resx | 44 +-
SelfHelpClient/ReadCardForm.Designer.cs | 108 +-
SelfHelpClient/SelfHelpClient.csproj | 10 +
SelfHelpClient/SelfHelpForm.Designer.cs | 135 +-
SelfHelpClient/SelfHelpForm.cs | 6 +
SelfHelpClient/WeightForm.Designer.cs | 342 +++--
SelfHelpClient/WeightForm.cs | 36 +-
SelfHelpClient/WeightForm.resx | 34 +
73 files changed, 6960 insertions(+), 1028 deletions(-)
create mode 100644 ButcherFactory.BO/Bill/StockUpEntity.cs
create mode 100644 ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
create mode 100644 ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.Designer.cs
create mode 100644 ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
create mode 100644 ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.resx
create mode 100644 ButcherFactory.Form/Controls/ColorButton.cs
create mode 100644 ButcherFactory.Form/Controls/FormTemplate.Designer.cs
create mode 100644 ButcherFactory.Form/Controls/FormTemplate.cs
create mode 100644 ButcherFactory.Form/Controls/FormTemplate.resx
create mode 100644 ButcherFactory.Form/Controls/RoundPanel.cs
create mode 100644 ButcherFactory.Form/Controls/Utils/AoHaoSi3000DataFormat.cs
create mode 100644 ButcherFactory.Form/Controls/Utils/DataFormatBase.cs
create mode 100644 ButcherFactory.Form/Controls/Utils/IND560DataFormat.cs
create mode 100644 ButcherFactory.Form/Controls/Utils/Xk3124DataFormat.cs
create mode 100644 ButcherFactory.Form/Controls/Utils/Xk3190A9DataFormat.cs
create mode 100644 ButcherFactory.Form/Controls/Utils/Xk3190D10DataFormat.cs
create mode 100644 ButcherFactory.Form/Controls/WeightConfig.cs
create mode 100644 ButcherFactory.Form/Controls/WeightControl.Designer.cs
create mode 100644 ButcherFactory.Form/Controls/WeightControl.cs
create mode 100644 ButcherFactory.Form/Controls/WeightControl.resx
create mode 100644 ButcherFactory.Form/Controls/WeightSettingFrom.Designer.cs
create mode 100644 ButcherFactory.Form/Controls/WeightSettingFrom.cs
create mode 100644 ButcherFactory.Form/Controls/WeightSettingFrom.resx
create mode 100644 ButcherFactory.Form/Properties/Resources.Designer.cs
create mode 100644 ButcherFactory.Form/Properties/Resources.resx
create mode 100644 ButcherFactory.Form/Resources/closeImg.png
create mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs
create mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs
create mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx
diff --git a/ButcherFactory.BO/Bill/SegmentProduction.cs b/ButcherFactory.BO/Bill/SegmentProduction.cs
index 96a0f6a..5a27bce 100644
--- a/ButcherFactory.BO/Bill/SegmentProduction.cs
+++ b/ButcherFactory.BO/Bill/SegmentProduction.cs
@@ -15,6 +15,19 @@ namespace ButcherFactory.BO
{
public string BarCode { get; set; }
+ [NonDmoProperty]
+ public string ShortCode
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(BarCode))
+ return null;
+ if (BarCode.Contains("260912011"))
+ return BarCode.Replace("260912011", "");
+ return BarCode;
+ }
+ }
+
public long? WorkUnit_ID { get; set; }
public long ProductBatch_ID { get; set; }
diff --git a/ButcherFactory.BO/Bill/StockUpEntity.cs b/ButcherFactory.BO/Bill/StockUpEntity.cs
new file mode 100644
index 0000000..7ccdbb9
--- /dev/null
+++ b/ButcherFactory.BO/Bill/StockUpEntity.cs
@@ -0,0 +1,70 @@
+using Forks.EnterpriseServices.DomainObjects2;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.BO
+{
+ public class StockUpEntity
+ {
+ public DateTime Date { get; set; }
+ public long DeliverGoodsLine_ID { get; set; }
+ public string DeliverGoodsLine_Name { get; set; }
+ public long? SequenceNumber { get; set; }
+ public long Goods_ID { get; set; }
+ public string Goods_Name { get; set; }
+ public string Goods_Spec { get; set; }
+ public string Goods_Code { get; set; }
+ public decimal? SecondNumber { get; set; }
+ public decimal? UnitNum { get; set; }
+ public decimal? SSecondNumber { get; set; }
+ public decimal? SUnitNum { get; set; }
+ public decimal? Rate { get; set; }
+ public bool Finishd
+ {
+ get { return (UnitNum ?? 0) <= (SUnitNum ?? 0); }
+ }
+ }
+
+ public class StockUpDetail
+ {
+ public long ID { get; set; }
+
+ public DateTime Date { get; set; }
+
+ public long DeliverGoodsLine_ID { get; set; }
+
+ public string DeliverGoodsLine_Name { get; set; }
+
+ public string BarCode { get; set; }
+
+ [NonDmoProperty]
+ public string ShortCode
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(BarCode))
+ return null;
+ if (BarCode.Contains("260912011"))
+ return BarCode.Replace("260912011", "");
+ return BarCode;
+ }
+ }
+
+ public long Goods_ID { get; set; }
+
+ public string Goods_Code { get; set; }
+
+ public string Goods_Spec { get; set; }
+
+ public string Goods_Name { get; set; }
+
+ public long SaleOutStoreID { get; set; }
+
+ public decimal? SecondNumber { get; set; }
+
+ public decimal? UnitNumber { get; set; }
+ }
+}
diff --git a/ButcherFactory.BO/ButcherFactory.BO.csproj b/ButcherFactory.BO/ButcherFactory.BO.csproj
index a48a59b..982a856 100644
--- a/ButcherFactory.BO/ButcherFactory.BO.csproj
+++ b/ButcherFactory.BO/ButcherFactory.BO.csproj
@@ -67,6 +67,7 @@
+
@@ -82,6 +83,7 @@
+
diff --git a/ButcherFactory.BO/Enums/DriveType.cs b/ButcherFactory.BO/Enums/DriveType.cs
index 06cb8f7..62bd722 100644
--- a/ButcherFactory.BO/Enums/DriveType.cs
+++ b/ButcherFactory.BO/Enums/DriveType.cs
@@ -8,13 +8,18 @@ namespace ButcherFactory.BO
{
public enum 设备类别
{
- 白条发货 = -1,
白条入库 = 0,
白条领用 = 1,
分割生产 = 2,
扫码入库 = 3,
+ //B3从51开始
+ 白条发货 = 51,
+ 销售备货 = 52,
+
+ //101-200是留给屠宰车间使用
+
//一下为自动转向用,无需再服务器设置到NamedValue上
- 分割生产自动化 = 200,
+ 分割生产自动化 = 201,
}
}
diff --git a/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs b/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
index be45a51..f2175cf 100644
--- a/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
+++ b/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
@@ -296,7 +296,7 @@ namespace ButcherFactory.BO.LocalBL
query.GroupBy.Expressions.Add(DQExpression.Field("Goods_Spec"));
query.Where.Conditions.Add(DQCondition.EQ(DQExpression.Snippet("CAST([_main].[InStoreTime] AS DATE)"), DQExpression.Value(DateTime.Today)));
- query.Where.Conditions.Add(DQCondition.EQ("Delete", false));
+ query.Where.Conditions.Add(DQCondition.And(DQCondition.InEQ("State", 2), DQCondition.EQ("Delete", false)));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("Goods_Code"));
var list = new BindingList();
diff --git a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
index 98c1ed9..32ce957 100644
--- a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
+++ b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
@@ -87,6 +87,7 @@ namespace ButcherFactory.BO.LocalBL
entity.ProductBatch_ID = productBatchID;
entity.RowIndex = GenerateRowIndex(productBatchID, session);
entity.BarCode = string.Format("260912011{0:yyyyMMdd}{1:00000}", batchDate, entity.RowIndex);
+ entity.Submited = true;
session.Insert(entity);
FillGroupIDAsID(session, entity.ID);
session.Commit();
diff --git a/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs b/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
new file mode 100644
index 0000000..8c58589
--- /dev/null
+++ b/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
@@ -0,0 +1,73 @@
+using ButcherFactory.BO.Utils;
+using Forks.EnterpriseServices.DomainObjects2;
+using Forks.EnterpriseServices.DomainObjects2.DQuery;
+using Forks.JsonRpc.Client;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.BO.LocalBL
+{
+ public static class SegmentStockUpBL
+ {
+ const string RpcPath = @"/MainSystem/B3Sale/Rpcs/";
+ const string MESPath = @"/MainSystem/B3ClientService/Rpcs/";
+
+ ///
+ ///
+ ///
+ /// GoodsCode:StringExt1,Weight:DecimalExt1
+ public static ExtensionObj StockUpScan(string code)
+ {
+ var json = ButcherFactoryUtil.SimpleMESCall(MESPath + "SegmentInStoreRpc/StockUpScan", code);
+ return JsonConvert.DeserializeObject(json);
+ }
+
+ public static List GetStockUpEntity(DateTime date, string code)
+ {
+ var json = RpcFacade.Call(RpcPath + "SaleOutStoreRpc/GetSaleOutStoreByGoodsCode", date, code);
+ return JsonConvert.DeserializeObject>(json);
+ }
+
+ public static List RefreshList(DateTime date, IEnumerable goodsIDs)
+ {
+ var json = RpcFacade.Call(RpcPath + "SaleOutStoreRpc/GetSaleOutStoreByGoodsIDs", date, JsonConvert.SerializeObject(goodsIDs));
+ return JsonConvert.DeserializeObject>(json);
+ }
+
+ public static bool CheckBarCodeUsed(string barCode)
+ {
+ return RpcFacade.Call(RpcPath + "SaleOutStoreRpc/CheckBarCodeUsed",barCode);
+ }
+
+ public static List GetDetails(DateTime date, long driverLineID, long goodsID)
+ {
+ var json = RpcFacade.Call(RpcPath + "SaleOutStoreRpc/GetStockUpDetails", date, driverLineID, goodsID);
+ return JsonConvert.DeserializeObject>(json);
+ }
+
+ public static void InsertStockUpDetail(StockUpDetail detail)
+ {
+ var min = new MinStockUpDetail() { BarCode = detail.BarCode, SecondNumber = detail.SecondNumber, UnitNumber = detail.UnitNumber };
+ var json = JsonConvert.SerializeObject(min);
+ var bkJson = RpcFacade.Call(RpcPath + "SaleOutStoreRpc/InsertStockUpDetail", detail.Date, detail.Goods_ID, detail.DeliverGoodsLine_ID, json);
+ if (string.IsNullOrEmpty(bkJson))
+ throw new Exception("无等待备货信息");
+ var backInfo = JsonConvert.DeserializeObject(bkJson);
+ detail.SaleOutStoreID = backInfo.LongExt1.Value;
+ detail.ID = backInfo.LongExt2.Value;
+ }
+
+ class MinStockUpDetail
+ {
+ public string BarCode { get; set; }
+
+ public decimal? SecondNumber { get; set; }
+
+ public decimal? UnitNumber { get; set; }
+ }
+ }
+}
diff --git a/ButcherFactory.BO/Utils/LoginUtil.cs b/ButcherFactory.BO/Utils/LoginUtil.cs
index dc4c3d8..a149312 100644
--- a/ButcherFactory.BO/Utils/LoginUtil.cs
+++ b/ButcherFactory.BO/Utils/LoginUtil.cs
@@ -87,7 +87,8 @@ namespace ButcherFactory.BO.Utils
static void FacedLogin(string userName, string pwd)
{
RpcFacade.Login(userName, pwd);
- AppContext.Worker.Role = ((short)设备类别.白条发货).ToString();
+ const string roleMethod = "/MainSystem/B3ButcherManage/Rpcs/ClientRpc/GetUserRole";
+ AppContext.Worker.Role = RpcFacade.Call(roleMethod);
}
static void RpcLogin(string name, string pwd)
diff --git a/ButcherFactory.Form/ButcherFactory.Form.csproj b/ButcherFactory.Form/ButcherFactory.Form.csproj
index 048b8fa..36c77f7 100644
--- a/ButcherFactory.Form/ButcherFactory.Form.csproj
+++ b/ButcherFactory.Form/ButcherFactory.Form.csproj
@@ -62,6 +62,37 @@
CarcassInStoreForm.cs
+
+ Form
+
+
+ CarcassSaleOutForm.cs
+
+
+ Component
+
+
+ Form
+
+
+ FormTemplate.cs
+
+
+ Component
+
+
+
+
+
+
+
+
+
+ UserControl
+
+
+ WeightControl.cs
+
Form
@@ -70,6 +101,12 @@
+
+ Form
+
+
+ WeightSettingFrom.cs
+
Form
@@ -128,6 +165,11 @@
CarcassTakeOutForm.cs
+
+ True
+ True
+ Resources.resx
+
Form
@@ -161,6 +203,12 @@
TrunOutDialog.cs
+
+ Form
+
+
+ SegmentStockUpForm.cs
+
@@ -173,12 +221,24 @@
CarcassInStoreForm.cs
+
+ CarcassSaleOutForm.cs
+
+
+ FormTemplate.cs
+
+
+ WeightControl.cs
+
CarcassSaleOutForm.cs
CarcassTakeOutForm.cs
+
+ WeightSettingFrom.cs
+
AddWeightRecord.cs
@@ -203,6 +263,10 @@
WeightRecordDialog.cs
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
InStoreSummaryView.cs
@@ -218,6 +282,9 @@
TrunOutDialog.cs
+
+ SegmentStockUpForm.cs
+
@@ -225,6 +292,9 @@
MSBuild:Compile
+
+
+
if $(Configuration)==Debug (
diff --git a/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.Designer.cs b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.Designer.cs
new file mode 100644
index 0000000..b74fcbc
--- /dev/null
+++ b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.Designer.cs
@@ -0,0 +1,1182 @@
+namespace ButcherFactory.CarcassSaleOut2_
+{
+ partial class CarcassSaleOutForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ 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();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.panel6 = new System.Windows.Forms.Panel();
+ this.carNumberLabel = new WinFormControl.ULabel();
+ this.uLabel8 = new WinFormControl.ULabel();
+ this.uLabel9 = new WinFormControl.ULabel();
+ this.customerLabel = new WinFormControl.ULabel();
+ this.uLabel10 = new WinFormControl.ULabel();
+ this.billIDLabel = new WinFormControl.ULabel();
+ this.addressLabel = new WinFormControl.ULabel();
+ this.uLabel7 = new WinFormControl.ULabel();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.productBatchSelect = new System.Windows.Forms.ComboBox();
+ this.uLabel2 = new WinFormControl.ULabel();
+ this.uScanPanel1 = new WinFormControl.UScanPanel();
+ this.weightControl1 = new ButcherFactory.Controls.WeightControl();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel11 = new System.Windows.Forms.Panel();
+ this.goodsFinishBtn = new ButcherFactory.Controls.ColorButton();
+ this.weightRecordBtn = new ButcherFactory.Controls.ColorButton();
+ this.unFinishBtn = new ButcherFactory.Controls.ColorButton();
+ this.alreadyViewBtn = new ButcherFactory.Controls.ColorButton();
+ this.panel10 = new System.Windows.Forms.Panel();
+ this.mainGridView = new WinFormControl.UDataGridView();
+ this.M_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.M_Customer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.M_SendTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.M_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panel9 = new System.Windows.Forms.Panel();
+ this.panel8 = new System.Windows.Forms.Panel();
+ this.billStateBox = new WinFormControl.ULabel();
+ this.deliverGoodsLineBox = new WinFormControl.ULabel();
+ this.storeBox = new WinFormControl.ULabel();
+ this.customerBox = new WinFormControl.ULabel();
+ this.sendDateBox = new WinFormControl.ULabel();
+ this.clearBtn = new ButcherFactory.Controls.ColorButton();
+ this.refreshBtn = new ButcherFactory.Controls.ColorButton();
+ this.uLabel5 = new WinFormControl.ULabel();
+ this.uLabel6 = new WinFormControl.ULabel();
+ this.uLabel4 = new WinFormControl.ULabel();
+ this.uLabel3 = new WinFormControl.ULabel();
+ this.uLabel1 = new WinFormControl.ULabel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.orderGridView = new WinFormControl.UDataGridView();
+ this.D_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SaleOutStore_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Customer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_DiffNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.label2 = new System.Windows.Forms.Label();
+ this.sendGridView = new WinFormControl.UDataGridView();
+ this.F_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_Selected = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_Image = new System.Windows.Forms.DataGridViewImageColumn();
+ this.F_Idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_GoodsCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_InStoreWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.F_Time = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panel12 = new System.Windows.Forms.Panel();
+ this.commitBtn = new ButcherFactory.Controls.ColorButton();
+ this.deleteBtn = new ButcherFactory.Controls.ColorButton();
+ this.fullBtn = new ButcherFactory.Controls.ColorButton();
+ this.halfBtn = new ButcherFactory.Controls.ColorButton();
+ this.scanCodeBtn = new ButcherFactory.Controls.ColorButton();
+ this.roundPanel1.SuspendLayout();
+ this.panel4.SuspendLayout();
+ this.panel6.SuspendLayout();
+ this.panel7.SuspendLayout();
+ this.panel11.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit();
+ this.panel8.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.orderGridView)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.sendGridView)).BeginInit();
+ this.panel12.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Controls.Add(this.panel12);
+ this.roundPanel1.Controls.Add(this.sendGridView);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Controls.Add(this.orderGridView);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.panel7);
+ this.roundPanel1.Controls.Add(this.panel4);
+ this.roundPanel1.Size = new System.Drawing.Size(1187, 583);
+ //
+ // label3
+ //
+ this.label3.Location = new System.Drawing.Point(507, 653);
+ //
+ // panel4
+ //
+ this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel4.Controls.Add(this.panel6);
+ this.panel4.Controls.Add(this.panel5);
+ this.panel4.Controls.Add(this.productBatchSelect);
+ this.panel4.Controls.Add(this.uLabel2);
+ this.panel4.Controls.Add(this.uScanPanel1);
+ this.panel4.Controls.Add(this.weightControl1);
+ this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel4.Location = new System.Drawing.Point(0, 0);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(1187, 86);
+ this.panel4.TabIndex = 0;
+ //
+ // panel6
+ //
+ this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel6.Controls.Add(this.carNumberLabel);
+ this.panel6.Controls.Add(this.uLabel8);
+ this.panel6.Controls.Add(this.uLabel9);
+ this.panel6.Controls.Add(this.customerLabel);
+ this.panel6.Controls.Add(this.uLabel10);
+ this.panel6.Controls.Add(this.billIDLabel);
+ this.panel6.Controls.Add(this.addressLabel);
+ this.panel6.Controls.Add(this.uLabel7);
+ this.panel6.Location = new System.Drawing.Point(669, 5);
+ this.panel6.Name = "panel6";
+ this.panel6.Size = new System.Drawing.Size(502, 75);
+ this.panel6.TabIndex = 25;
+ //
+ // carNumberLabel
+ //
+ this.carNumberLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.carNumberLabel.BackColor = System.Drawing.Color.Transparent;
+ this.carNumberLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.carNumberLabel.Location = new System.Drawing.Point(315, 42);
+ this.carNumberLabel.Name = "carNumberLabel";
+ this.carNumberLabel.Size = new System.Drawing.Size(184, 26);
+ this.carNumberLabel.TabIndex = 36;
+ this.carNumberLabel.Text = "车牌号";
+ this.carNumberLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // uLabel8
+ //
+ this.uLabel8.AutoSize = true;
+ this.uLabel8.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel8.Location = new System.Drawing.Point(3, 13);
+ this.uLabel8.Name = "uLabel8";
+ this.uLabel8.Size = new System.Drawing.Size(53, 12);
+ this.uLabel8.TabIndex = 29;
+ this.uLabel8.Text = "出库单号";
+ //
+ // uLabel9
+ //
+ this.uLabel9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.uLabel9.AutoSize = true;
+ this.uLabel9.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel9.Location = new System.Drawing.Point(264, 49);
+ this.uLabel9.Name = "uLabel9";
+ this.uLabel9.Size = new System.Drawing.Size(41, 12);
+ this.uLabel9.TabIndex = 32;
+ this.uLabel9.Text = "车牌号";
+ //
+ // customerLabel
+ //
+ this.customerLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.customerLabel.BackColor = System.Drawing.Color.Transparent;
+ this.customerLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.customerLabel.Font = new System.Drawing.Font("宋体", 13F);
+ this.customerLabel.ForeColor = System.Drawing.Color.Red;
+ this.customerLabel.Location = new System.Drawing.Point(315, 8);
+ this.customerLabel.Name = "customerLabel";
+ this.customerLabel.Size = new System.Drawing.Size(184, 26);
+ this.customerLabel.TabIndex = 35;
+ this.customerLabel.Text = "购货客户";
+ this.customerLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // uLabel10
+ //
+ this.uLabel10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.uLabel10.AutoSize = true;
+ this.uLabel10.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel10.Location = new System.Drawing.Point(252, 14);
+ this.uLabel10.Name = "uLabel10";
+ this.uLabel10.Size = new System.Drawing.Size(53, 12);
+ this.uLabel10.TabIndex = 31;
+ this.uLabel10.Text = "购货客户";
+ //
+ // billIDLabel
+ //
+ this.billIDLabel.BackColor = System.Drawing.Color.Transparent;
+ this.billIDLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.billIDLabel.Location = new System.Drawing.Point(64, 6);
+ this.billIDLabel.Name = "billIDLabel";
+ this.billIDLabel.Size = new System.Drawing.Size(194, 26);
+ this.billIDLabel.TabIndex = 33;
+ this.billIDLabel.Text = "出库单号";
+ this.billIDLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // addressLabel
+ //
+ this.addressLabel.BackColor = System.Drawing.Color.Transparent;
+ this.addressLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.addressLabel.Location = new System.Drawing.Point(64, 42);
+ this.addressLabel.Name = "addressLabel";
+ this.addressLabel.Size = new System.Drawing.Size(194, 26);
+ this.addressLabel.TabIndex = 34;
+ this.addressLabel.Text = "送货地址";
+ this.addressLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // uLabel7
+ //
+ this.uLabel7.AutoSize = true;
+ this.uLabel7.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel7.Location = new System.Drawing.Point(3, 48);
+ this.uLabel7.Name = "uLabel7";
+ this.uLabel7.Size = new System.Drawing.Size(53, 12);
+ this.uLabel7.TabIndex = 30;
+ this.uLabel7.Text = "送货地址";
+ //
+ // panel5
+ //
+ this.panel5.BackColor = System.Drawing.Color.DarkGray;
+ this.panel5.Location = new System.Drawing.Point(630, 8);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(1, 70);
+ this.panel5.TabIndex = 24;
+ //
+ // productBatchSelect
+ //
+ this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F);
+ this.productBatchSelect.FormattingEnabled = true;
+ this.productBatchSelect.Location = new System.Drawing.Point(365, 47);
+ this.productBatchSelect.Name = "productBatchSelect";
+ this.productBatchSelect.Size = new System.Drawing.Size(235, 28);
+ this.productBatchSelect.TabIndex = 23;
+ //
+ // uLabel2
+ //
+ this.uLabel2.AutoSize = true;
+ this.uLabel2.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel2.Font = new System.Drawing.Font("宋体", 15F);
+ this.uLabel2.Location = new System.Drawing.Point(303, 51);
+ this.uLabel2.Name = "uLabel2";
+ this.uLabel2.Size = new System.Drawing.Size(69, 20);
+ this.uLabel2.TabIndex = 22;
+ this.uLabel2.Text = "批次:";
+ //
+ // uScanPanel1
+ //
+ this.uScanPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.uScanPanel1.Location = new System.Drawing.Point(301, 9);
+ this.uScanPanel1.Name = "uScanPanel1";
+ this.uScanPanel1.Size = new System.Drawing.Size(303, 32);
+ this.uScanPanel1.TabIndex = 21;
+ //
+ // weightControl1
+ //
+ this.weightControl1.BackColor = System.Drawing.Color.Transparent;
+ this.weightControl1.Location = new System.Drawing.Point(5, 4);
+ this.weightControl1.Name = "weightControl1";
+ this.weightControl1.Size = new System.Drawing.Size(262, 74);
+ this.weightControl1.TabIndex = 0;
+ this.weightControl1.WeightFalg = null;
+ //
+ // panel7
+ //
+ this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.panel7.Controls.Add(this.panel11);
+ this.panel7.Controls.Add(this.panel10);
+ this.panel7.Controls.Add(this.mainGridView);
+ this.panel7.Controls.Add(this.panel9);
+ this.panel7.Controls.Add(this.panel8);
+ this.panel7.Location = new System.Drawing.Point(6, 100);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(485, 475);
+ this.panel7.TabIndex = 1;
+ //
+ // panel11
+ //
+ this.panel11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.panel11.Controls.Add(this.goodsFinishBtn);
+ this.panel11.Controls.Add(this.weightRecordBtn);
+ this.panel11.Controls.Add(this.unFinishBtn);
+ this.panel11.Controls.Add(this.alreadyViewBtn);
+ this.panel11.Location = new System.Drawing.Point(1, 397);
+ this.panel11.Name = "panel11";
+ this.panel11.Size = new System.Drawing.Size(484, 78);
+ this.panel11.TabIndex = 8;
+ //
+ // goodsFinishBtn
+ //
+ this.goodsFinishBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(120)))), ((int)(((byte)(24)))));
+ this.goodsFinishBtn.Font = new System.Drawing.Font("黑体", 15F);
+ this.goodsFinishBtn.ForeColor = System.Drawing.Color.White;
+ this.goodsFinishBtn.Location = new System.Drawing.Point(331, 3);
+ this.goodsFinishBtn.Name = "goodsFinishBtn";
+ this.goodsFinishBtn.Radius = 10;
+ this.goodsFinishBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.goodsFinishBtn.Size = new System.Drawing.Size(137, 72);
+ this.goodsFinishBtn.TabIndex = 31;
+ this.goodsFinishBtn.Text = "配货完成";
+ this.goodsFinishBtn.UseVisualStyleBackColor = false;
+ this.goodsFinishBtn.Click += new System.EventHandler(this.goodsFinishBtn_Click);
+ //
+ // weightRecordBtn
+ //
+ this.weightRecordBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.weightRecordBtn.Font = new System.Drawing.Font("黑体", 15F);
+ this.weightRecordBtn.ForeColor = System.Drawing.Color.White;
+ this.weightRecordBtn.Location = new System.Drawing.Point(143, 3);
+ this.weightRecordBtn.Name = "weightRecordBtn";
+ this.weightRecordBtn.Radius = 10;
+ this.weightRecordBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.weightRecordBtn.Size = new System.Drawing.Size(137, 72);
+ this.weightRecordBtn.TabIndex = 30;
+ this.weightRecordBtn.Text = "称重记录";
+ this.weightRecordBtn.UseVisualStyleBackColor = false;
+ this.weightRecordBtn.Click += new System.EventHandler(this.weightRecordBtn_Click);
+ //
+ // unFinishBtn
+ //
+ this.unFinishBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.unFinishBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.unFinishBtn.ForeColor = System.Drawing.Color.White;
+ this.unFinishBtn.Location = new System.Drawing.Point(8, 43);
+ this.unFinishBtn.Name = "unFinishBtn";
+ this.unFinishBtn.Radius = 10;
+ this.unFinishBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.unFinishBtn.Size = new System.Drawing.Size(84, 35);
+ this.unFinishBtn.TabIndex = 29;
+ this.unFinishBtn.Text = "撤销完毕";
+ this.unFinishBtn.UseVisualStyleBackColor = false;
+ this.unFinishBtn.Click += new System.EventHandler(this.unFinishBtn_Click);
+ //
+ // alreadyViewBtn
+ //
+ this.alreadyViewBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ this.alreadyViewBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.alreadyViewBtn.ForeColor = System.Drawing.Color.White;
+ this.alreadyViewBtn.Location = new System.Drawing.Point(8, 0);
+ this.alreadyViewBtn.Name = "alreadyViewBtn";
+ this.alreadyViewBtn.Radius = 10;
+ this.alreadyViewBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.alreadyViewBtn.Size = new System.Drawing.Size(84, 35);
+ this.alreadyViewBtn.TabIndex = 28;
+ this.alreadyViewBtn.Text = "已配货";
+ this.alreadyViewBtn.UseVisualStyleBackColor = false;
+ this.alreadyViewBtn.Click += new System.EventHandler(this.alreadyViewBtn_Click);
+ //
+ // panel10
+ //
+ this.panel10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.panel10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
+ this.panel10.Location = new System.Drawing.Point(3, 390);
+ this.panel10.Name = "panel10";
+ this.panel10.Size = new System.Drawing.Size(479, 1);
+ this.panel10.TabIndex = 7;
+ //
+ // mainGridView
+ //
+ this.mainGridView.AllowUserToAddRows = false;
+ this.mainGridView.AllowUserToDeleteRows = false;
+ this.mainGridView.AllowUserToResizeColumns = false;
+ this.mainGridView.AllowUserToResizeRows = false;
+ dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(221)))), ((int)(((byte)(245)))));
+ this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17;
+ this.mainGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.mainGridView.BackgroundColor = System.Drawing.Color.White;
+ this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.mainGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.mainGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle18.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18;
+ this.mainGridView.ColumnHeadersHeight = 25;
+ this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.M_ID,
+ this.M_Customer_Name,
+ this.M_SendTime,
+ this.M_DeliverGoodsLine_Name});
+ this.mainGridView.EnableHeadersVisualStyles = false;
+ this.mainGridView.Location = new System.Drawing.Point(3, 140);
+ this.mainGridView.MultiSelect = false;
+ this.mainGridView.Name = "mainGridView";
+ this.mainGridView.ReadOnly = true;
+ dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle20.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.mainGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle20;
+ this.mainGridView.RowHeadersVisible = false;
+ dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(242)))), ((int)(((byte)(251)))));
+ dataGridViewCellStyle21.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle21;
+ this.mainGridView.RowTemplate.Height = 40;
+ this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.mainGridView.Size = new System.Drawing.Size(476, 242);
+ this.mainGridView.TabIndex = 6;
+ this.mainGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mainGridView_CellClick);
+ //
+ // M_ID
+ //
+ this.M_ID.DataPropertyName = "ID";
+ this.M_ID.HeaderText = "单号";
+ this.M_ID.Name = "M_ID";
+ this.M_ID.ReadOnly = true;
+ this.M_ID.Width = 90;
+ //
+ // M_Customer_Name
+ //
+ this.M_Customer_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.M_Customer_Name.DataPropertyName = "Customer_Name";
+ this.M_Customer_Name.HeaderText = "客户名称";
+ this.M_Customer_Name.Name = "M_Customer_Name";
+ this.M_Customer_Name.ReadOnly = true;
+ //
+ // M_SendTime
+ //
+ this.M_SendTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.M_SendTime.DataPropertyName = "SendTime";
+ dataGridViewCellStyle19.Format = "yyyy/MM/dd";
+ this.M_SendTime.DefaultCellStyle = dataGridViewCellStyle19;
+ this.M_SendTime.HeaderText = "发货时间";
+ this.M_SendTime.Name = "M_SendTime";
+ this.M_SendTime.ReadOnly = true;
+ //
+ // M_DeliverGoodsLine_Name
+ //
+ this.M_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.M_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name";
+ this.M_DeliverGoodsLine_Name.HeaderText = "送货线路";
+ this.M_DeliverGoodsLine_Name.Name = "M_DeliverGoodsLine_Name";
+ this.M_DeliverGoodsLine_Name.ReadOnly = true;
+ //
+ // panel9
+ //
+ this.panel9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
+ this.panel9.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel9.Location = new System.Drawing.Point(0, 133);
+ this.panel9.Name = "panel9";
+ this.panel9.Size = new System.Drawing.Size(485, 1);
+ this.panel9.TabIndex = 1;
+ //
+ // panel8
+ //
+ this.panel8.Controls.Add(this.billStateBox);
+ this.panel8.Controls.Add(this.deliverGoodsLineBox);
+ this.panel8.Controls.Add(this.storeBox);
+ this.panel8.Controls.Add(this.customerBox);
+ this.panel8.Controls.Add(this.sendDateBox);
+ this.panel8.Controls.Add(this.clearBtn);
+ this.panel8.Controls.Add(this.refreshBtn);
+ this.panel8.Controls.Add(this.uLabel5);
+ this.panel8.Controls.Add(this.uLabel6);
+ this.panel8.Controls.Add(this.uLabel4);
+ this.panel8.Controls.Add(this.uLabel3);
+ this.panel8.Controls.Add(this.uLabel1);
+ this.panel8.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel8.Location = new System.Drawing.Point(0, 0);
+ this.panel8.Name = "panel8";
+ this.panel8.Size = new System.Drawing.Size(485, 133);
+ this.panel8.TabIndex = 0;
+ //
+ // billStateBox
+ //
+ this.billStateBox.BackColor = System.Drawing.Color.Transparent;
+ this.billStateBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.billStateBox.Location = new System.Drawing.Point(321, 47);
+ this.billStateBox.Name = "billStateBox";
+ this.billStateBox.Size = new System.Drawing.Size(148, 26);
+ this.billStateBox.TabIndex = 38;
+ this.billStateBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.billStateBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown);
+ //
+ // deliverGoodsLineBox
+ //
+ this.deliverGoodsLineBox.BackColor = System.Drawing.Color.Transparent;
+ this.deliverGoodsLineBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.deliverGoodsLineBox.Location = new System.Drawing.Point(321, 7);
+ this.deliverGoodsLineBox.Name = "deliverGoodsLineBox";
+ this.deliverGoodsLineBox.Size = new System.Drawing.Size(148, 26);
+ this.deliverGoodsLineBox.TabIndex = 37;
+ this.deliverGoodsLineBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.deliverGoodsLineBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown);
+ //
+ // storeBox
+ //
+ this.storeBox.BackColor = System.Drawing.Color.Transparent;
+ this.storeBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.storeBox.Location = new System.Drawing.Point(73, 90);
+ this.storeBox.Name = "storeBox";
+ this.storeBox.Size = new System.Drawing.Size(148, 26);
+ this.storeBox.TabIndex = 36;
+ this.storeBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.storeBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown);
+ //
+ // customerBox
+ //
+ this.customerBox.BackColor = System.Drawing.Color.Transparent;
+ this.customerBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.customerBox.Location = new System.Drawing.Point(73, 47);
+ this.customerBox.Name = "customerBox";
+ this.customerBox.Size = new System.Drawing.Size(148, 26);
+ this.customerBox.TabIndex = 35;
+ this.customerBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.customerBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown);
+ //
+ // sendDateBox
+ //
+ this.sendDateBox.BackColor = System.Drawing.Color.Transparent;
+ this.sendDateBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.sendDateBox.Location = new System.Drawing.Point(73, 7);
+ this.sendDateBox.Name = "sendDateBox";
+ this.sendDateBox.Size = new System.Drawing.Size(148, 26);
+ this.sendDateBox.TabIndex = 34;
+ this.sendDateBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.sendDateBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown);
+ //
+ // clearBtn
+ //
+ this.clearBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.clearBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.clearBtn.ForeColor = System.Drawing.Color.White;
+ this.clearBtn.Location = new System.Drawing.Point(380, 86);
+ this.clearBtn.Name = "clearBtn";
+ this.clearBtn.Radius = 10;
+ this.clearBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.clearBtn.Size = new System.Drawing.Size(89, 35);
+ this.clearBtn.TabIndex = 28;
+ this.clearBtn.Text = "清除条件";
+ this.clearBtn.UseVisualStyleBackColor = false;
+ this.clearBtn.Click += new System.EventHandler(this.clearBtn_Click);
+ //
+ // refreshBtn
+ //
+ this.refreshBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
+ this.refreshBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.refreshBtn.ForeColor = System.Drawing.Color.White;
+ this.refreshBtn.Location = new System.Drawing.Point(264, 86);
+ this.refreshBtn.Name = "refreshBtn";
+ this.refreshBtn.Radius = 10;
+ this.refreshBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.refreshBtn.Size = new System.Drawing.Size(84, 35);
+ this.refreshBtn.TabIndex = 27;
+ this.refreshBtn.Text = "刷新";
+ this.refreshBtn.UseVisualStyleBackColor = false;
+ this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click);
+ //
+ // uLabel5
+ //
+ this.uLabel5.AutoSize = true;
+ this.uLabel5.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel5.Location = new System.Drawing.Point(262, 54);
+ this.uLabel5.Name = "uLabel5";
+ this.uLabel5.Size = new System.Drawing.Size(53, 12);
+ this.uLabel5.TabIndex = 20;
+ this.uLabel5.Text = "单据状态";
+ //
+ // uLabel6
+ //
+ this.uLabel6.AutoSize = true;
+ this.uLabel6.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel6.Location = new System.Drawing.Point(262, 14);
+ this.uLabel6.Name = "uLabel6";
+ this.uLabel6.Size = new System.Drawing.Size(53, 12);
+ this.uLabel6.TabIndex = 19;
+ this.uLabel6.Text = "送货线路";
+ //
+ // uLabel4
+ //
+ this.uLabel4.AutoSize = true;
+ this.uLabel4.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel4.Location = new System.Drawing.Point(14, 97);
+ this.uLabel4.Name = "uLabel4";
+ this.uLabel4.Size = new System.Drawing.Size(29, 12);
+ this.uLabel4.TabIndex = 18;
+ this.uLabel4.Text = "仓库";
+ //
+ // uLabel3
+ //
+ this.uLabel3.AutoSize = true;
+ this.uLabel3.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel3.Location = new System.Drawing.Point(14, 54);
+ this.uLabel3.Name = "uLabel3";
+ this.uLabel3.Size = new System.Drawing.Size(29, 12);
+ this.uLabel3.TabIndex = 17;
+ this.uLabel3.Text = "客户";
+ //
+ // uLabel1
+ //
+ this.uLabel1.AutoSize = true;
+ this.uLabel1.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel1.Location = new System.Drawing.Point(14, 14);
+ this.uLabel1.Name = "uLabel1";
+ this.uLabel1.Size = new System.Drawing.Size(53, 12);
+ this.uLabel1.TabIndex = 16;
+ this.uLabel1.Text = "发货日期";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("黑体", 12F);
+ this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(124)))), ((int)(((byte)(222)))));
+ this.label1.Location = new System.Drawing.Point(506, 100);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(72, 16);
+ this.label1.TabIndex = 2;
+ this.label1.Text = "订货明细";
+ //
+ // orderGridView
+ //
+ this.orderGridView.AllowUserToAddRows = false;
+ this.orderGridView.AllowUserToDeleteRows = false;
+ this.orderGridView.AllowUserToResizeColumns = false;
+ this.orderGridView.AllowUserToResizeRows = false;
+ dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
+ this.orderGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
+ this.orderGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.orderGridView.BackgroundColor = System.Drawing.Color.White;
+ this.orderGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.orderGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.orderGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.orderGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
+ this.orderGridView.ColumnHeadersHeight = 25;
+ this.orderGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.orderGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.D_ID,
+ this.D_SaleOutStore_ID,
+ this.D_Customer_Name,
+ this.D_Goods_Code,
+ this.D_Goods_Name,
+ this.D_SecondNumber,
+ this.D_Number,
+ this.D_SSecondNumber,
+ this.D_SNumber,
+ this.D_DiffNumber});
+ this.orderGridView.EnableHeadersVisualStyles = false;
+ this.orderGridView.Location = new System.Drawing.Point(503, 123);
+ this.orderGridView.MultiSelect = false;
+ this.orderGridView.Name = "orderGridView";
+ this.orderGridView.ReadOnly = true;
+ this.orderGridView.RowHeadersVisible = false;
+ dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250)))));
+ dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle16.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.orderGridView.RowsDefaultCellStyle = dataGridViewCellStyle16;
+ this.orderGridView.RowTemplate.Height = 40;
+ this.orderGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.orderGridView.Size = new System.Drawing.Size(673, 230);
+ this.orderGridView.TabIndex = 3;
+ this.orderGridView.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.orderGridView_RowPrePaint);
+ //
+ // D_ID
+ //
+ this.D_ID.DataPropertyName = "ID";
+ this.D_ID.HeaderText = "ID";
+ this.D_ID.Name = "D_ID";
+ this.D_ID.ReadOnly = true;
+ this.D_ID.Visible = false;
+ //
+ // D_SaleOutStore_ID
+ //
+ this.D_SaleOutStore_ID.DataPropertyName = "SaleOutStore_ID";
+ this.D_SaleOutStore_ID.HeaderText = "单号";
+ this.D_SaleOutStore_ID.Name = "D_SaleOutStore_ID";
+ this.D_SaleOutStore_ID.ReadOnly = true;
+ this.D_SaleOutStore_ID.Width = 90;
+ //
+ // D_Customer_Name
+ //
+ this.D_Customer_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.D_Customer_Name.DataPropertyName = "Customer_Name";
+ this.D_Customer_Name.HeaderText = "客户名称";
+ this.D_Customer_Name.MinimumWidth = 100;
+ this.D_Customer_Name.Name = "D_Customer_Name";
+ this.D_Customer_Name.ReadOnly = true;
+ //
+ // D_Goods_Code
+ //
+ this.D_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.D_Goods_Code.DataPropertyName = "Goods_Code";
+ this.D_Goods_Code.HeaderText = "产品编码";
+ this.D_Goods_Code.MinimumWidth = 100;
+ this.D_Goods_Code.Name = "D_Goods_Code";
+ this.D_Goods_Code.ReadOnly = true;
+ //
+ // D_Goods_Name
+ //
+ this.D_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.D_Goods_Name.DataPropertyName = "Goods_Name";
+ this.D_Goods_Name.HeaderText = "产品名称";
+ this.D_Goods_Name.MinimumWidth = 100;
+ this.D_Goods_Name.Name = "D_Goods_Name";
+ this.D_Goods_Name.ReadOnly = true;
+ //
+ // D_SecondNumber
+ //
+ this.D_SecondNumber.DataPropertyName = "SecondNumber";
+ dataGridViewCellStyle11.Format = "#0.######";
+ this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle11;
+ this.D_SecondNumber.HeaderText = "辅数量";
+ this.D_SecondNumber.Name = "D_SecondNumber";
+ this.D_SecondNumber.ReadOnly = true;
+ //
+ // D_Number
+ //
+ this.D_Number.DataPropertyName = "Number";
+ dataGridViewCellStyle12.Format = "#0.######";
+ this.D_Number.DefaultCellStyle = dataGridViewCellStyle12;
+ this.D_Number.HeaderText = "报价数量";
+ this.D_Number.Name = "D_Number";
+ this.D_Number.ReadOnly = true;
+ //
+ // D_SSecondNumber
+ //
+ this.D_SSecondNumber.DataPropertyName = "SSecondNumber";
+ dataGridViewCellStyle13.Format = "#0.######";
+ this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle13;
+ this.D_SSecondNumber.HeaderText = "配货辅数量";
+ this.D_SSecondNumber.Name = "D_SSecondNumber";
+ this.D_SSecondNumber.ReadOnly = true;
+ //
+ // D_SNumber
+ //
+ this.D_SNumber.DataPropertyName = "SNumber";
+ dataGridViewCellStyle14.Format = "#0.######";
+ this.D_SNumber.DefaultCellStyle = dataGridViewCellStyle14;
+ this.D_SNumber.HeaderText = "配货数量";
+ this.D_SNumber.Name = "D_SNumber";
+ this.D_SNumber.ReadOnly = true;
+ //
+ // D_DiffNumber
+ //
+ this.D_DiffNumber.DataPropertyName = "DiffNumber";
+ dataGridViewCellStyle15.Format = "#0.######";
+ this.D_DiffNumber.DefaultCellStyle = dataGridViewCellStyle15;
+ this.D_DiffNumber.HeaderText = "差异数量";
+ this.D_DiffNumber.Name = "D_DiffNumber";
+ this.D_DiffNumber.ReadOnly = true;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Font = new System.Drawing.Font("黑体", 12F);
+ this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(135)))), ((int)(((byte)(69)))));
+ this.label2.Location = new System.Drawing.Point(506, 362);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(72, 16);
+ this.label2.TabIndex = 4;
+ this.label2.Text = "发货明细";
+ //
+ // sendGridView
+ //
+ this.sendGridView.AllowUserToAddRows = false;
+ this.sendGridView.AllowUserToDeleteRows = false;
+ this.sendGridView.AllowUserToResizeColumns = false;
+ this.sendGridView.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203)))));
+ this.sendGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.sendGridView.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)));
+ this.sendGridView.BackgroundColor = System.Drawing.Color.White;
+ this.sendGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.sendGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.sendGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.sendGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.sendGridView.ColumnHeadersHeight = 25;
+ this.sendGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.sendGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.F_ID,
+ this.F_Selected,
+ this.F_Image,
+ this.F_Idx,
+ this.F_BarCode,
+ this.F_GoodsCode,
+ this.F_Goods_Name,
+ this.F_Number,
+ this.F_InStoreWeight,
+ this.F_Weight,
+ this.F_DiffWeight,
+ this.F_Time});
+ this.sendGridView.EnableHeadersVisualStyles = false;
+ this.sendGridView.Location = new System.Drawing.Point(503, 387);
+ this.sendGridView.MultiSelect = false;
+ this.sendGridView.Name = "sendGridView";
+ this.sendGridView.ReadOnly = true;
+ this.sendGridView.RowHeadersVisible = false;
+ dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240)))));
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 10F);
+ dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
+ this.sendGridView.RowsDefaultCellStyle = dataGridViewCellStyle8;
+ this.sendGridView.RowTemplate.Height = 40;
+ this.sendGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.sendGridView.Size = new System.Drawing.Size(673, 128);
+ this.sendGridView.TabIndex = 5;
+ this.sendGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.sendGridView_CellClick);
+ //
+ // F_ID
+ //
+ this.F_ID.DataPropertyName = "ID";
+ this.F_ID.HeaderText = "ID";
+ this.F_ID.Name = "F_ID";
+ this.F_ID.ReadOnly = true;
+ this.F_ID.Visible = false;
+ //
+ // F_Selected
+ //
+ this.F_Selected.DataPropertyName = "Selected";
+ this.F_Selected.HeaderText = "Selected";
+ this.F_Selected.Name = "F_Selected";
+ this.F_Selected.ReadOnly = true;
+ this.F_Selected.Visible = false;
+ //
+ // F_Image
+ //
+ this.F_Image.HeaderText = "选中";
+ this.F_Image.Name = "F_Image";
+ this.F_Image.ReadOnly = true;
+ this.F_Image.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.F_Image.Width = 50;
+ //
+ // F_Idx
+ //
+ this.F_Idx.DataPropertyName = "Idx";
+ this.F_Idx.HeaderText = "序号";
+ this.F_Idx.Name = "F_Idx";
+ this.F_Idx.ReadOnly = true;
+ this.F_Idx.Width = 60;
+ //
+ // F_BarCode
+ //
+ this.F_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.F_BarCode.DataPropertyName = "ShortCode";
+ this.F_BarCode.HeaderText = "存货条码";
+ this.F_BarCode.MinimumWidth = 100;
+ this.F_BarCode.Name = "F_BarCode";
+ this.F_BarCode.ReadOnly = true;
+ //
+ // F_GoodsCode
+ //
+ this.F_GoodsCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.F_GoodsCode.DataPropertyName = "Goods_Code";
+ this.F_GoodsCode.HeaderText = "产品编码";
+ this.F_GoodsCode.MinimumWidth = 100;
+ this.F_GoodsCode.Name = "F_GoodsCode";
+ this.F_GoodsCode.ReadOnly = true;
+ //
+ // F_Goods_Name
+ //
+ this.F_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.F_Goods_Name.DataPropertyName = "Goods_Name";
+ this.F_Goods_Name.HeaderText = "产品名称";
+ this.F_Goods_Name.MinimumWidth = 100;
+ this.F_Goods_Name.Name = "F_Goods_Name";
+ this.F_Goods_Name.ReadOnly = true;
+ //
+ // F_Number
+ //
+ this.F_Number.DataPropertyName = "Number";
+ dataGridViewCellStyle3.Format = "#0.######";
+ this.F_Number.DefaultCellStyle = dataGridViewCellStyle3;
+ this.F_Number.HeaderText = "数量";
+ this.F_Number.Name = "F_Number";
+ this.F_Number.ReadOnly = true;
+ this.F_Number.Width = 60;
+ //
+ // F_InStoreWeight
+ //
+ this.F_InStoreWeight.DataPropertyName = "InStoreWeight";
+ dataGridViewCellStyle4.Format = "#0.######";
+ this.F_InStoreWeight.DefaultCellStyle = dataGridViewCellStyle4;
+ this.F_InStoreWeight.HeaderText = "入库重量";
+ this.F_InStoreWeight.Name = "F_InStoreWeight";
+ this.F_InStoreWeight.ReadOnly = true;
+ this.F_InStoreWeight.Width = 90;
+ //
+ // F_Weight
+ //
+ this.F_Weight.DataPropertyName = "Weight";
+ dataGridViewCellStyle5.Format = "#0.######";
+ this.F_Weight.DefaultCellStyle = dataGridViewCellStyle5;
+ this.F_Weight.HeaderText = "重量";
+ this.F_Weight.Name = "F_Weight";
+ this.F_Weight.ReadOnly = true;
+ this.F_Weight.Width = 80;
+ //
+ // F_DiffWeight
+ //
+ this.F_DiffWeight.DataPropertyName = "DiffWeight";
+ dataGridViewCellStyle6.Format = "#0.######";
+ this.F_DiffWeight.DefaultCellStyle = dataGridViewCellStyle6;
+ this.F_DiffWeight.HeaderText = "差异";
+ this.F_DiffWeight.Name = "F_DiffWeight";
+ this.F_DiffWeight.ReadOnly = true;
+ this.F_DiffWeight.Width = 70;
+ //
+ // F_Time
+ //
+ this.F_Time.DataPropertyName = "Time";
+ dataGridViewCellStyle7.Format = "MM.dd HH:mm:ss";
+ this.F_Time.DefaultCellStyle = dataGridViewCellStyle7;
+ this.F_Time.HeaderText = "时间";
+ this.F_Time.Name = "F_Time";
+ this.F_Time.ReadOnly = true;
+ this.F_Time.Width = 120;
+ //
+ // panel12
+ //
+ this.panel12.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.panel12.Controls.Add(this.commitBtn);
+ this.panel12.Controls.Add(this.deleteBtn);
+ this.panel12.Controls.Add(this.fullBtn);
+ this.panel12.Controls.Add(this.halfBtn);
+ this.panel12.Controls.Add(this.scanCodeBtn);
+ this.panel12.Location = new System.Drawing.Point(503, 525);
+ this.panel12.Name = "panel12";
+ this.panel12.Size = new System.Drawing.Size(673, 50);
+ this.panel12.TabIndex = 6;
+ //
+ // commitBtn
+ //
+ this.commitBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.commitBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
+ this.commitBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.commitBtn.ForeColor = System.Drawing.Color.White;
+ this.commitBtn.Location = new System.Drawing.Point(572, 8);
+ this.commitBtn.Name = "commitBtn";
+ this.commitBtn.Radius = 10;
+ this.commitBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.commitBtn.Size = new System.Drawing.Size(84, 35);
+ this.commitBtn.TabIndex = 34;
+ this.commitBtn.Text = "提交";
+ this.commitBtn.UseVisualStyleBackColor = false;
+ this.commitBtn.Click += new System.EventHandler(this.commitBtn_Click);
+ //
+ // deleteBtn
+ //
+ this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.deleteBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.deleteBtn.ForeColor = System.Drawing.Color.White;
+ this.deleteBtn.Location = new System.Drawing.Point(351, 8);
+ this.deleteBtn.Name = "deleteBtn";
+ this.deleteBtn.Radius = 10;
+ this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.deleteBtn.Size = new System.Drawing.Size(84, 35);
+ this.deleteBtn.TabIndex = 33;
+ this.deleteBtn.Text = "删除选中";
+ this.deleteBtn.UseVisualStyleBackColor = false;
+ this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
+ //
+ // fullBtn
+ //
+ this.fullBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.fullBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.fullBtn.ForeColor = System.Drawing.Color.White;
+ this.fullBtn.Location = new System.Drawing.Point(239, 8);
+ this.fullBtn.Name = "fullBtn";
+ this.fullBtn.Radius = 10;
+ this.fullBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.fullBtn.Size = new System.Drawing.Size(84, 35);
+ this.fullBtn.TabIndex = 32;
+ this.fullBtn.Text = "1";
+ this.fullBtn.UseVisualStyleBackColor = false;
+ this.fullBtn.Click += new System.EventHandler(this.fullBtn_Click);
+ //
+ // halfBtn
+ //
+ this.halfBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.halfBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.halfBtn.ForeColor = System.Drawing.Color.White;
+ this.halfBtn.Location = new System.Drawing.Point(127, 8);
+ this.halfBtn.Name = "halfBtn";
+ this.halfBtn.Radius = 10;
+ this.halfBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.halfBtn.Size = new System.Drawing.Size(84, 35);
+ this.halfBtn.TabIndex = 31;
+ this.halfBtn.Text = "0.5";
+ this.halfBtn.UseVisualStyleBackColor = false;
+ this.halfBtn.Click += new System.EventHandler(this.halfBtn_Click);
+ //
+ // scanCodeBtn
+ //
+ this.scanCodeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ this.scanCodeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.scanCodeBtn.ForeColor = System.Drawing.Color.White;
+ this.scanCodeBtn.Location = new System.Drawing.Point(14, 8);
+ this.scanCodeBtn.Name = "scanCodeBtn";
+ this.scanCodeBtn.Radius = 10;
+ this.scanCodeBtn.Selected = true;
+ this.scanCodeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
+ this.scanCodeBtn.Size = new System.Drawing.Size(84, 35);
+ this.scanCodeBtn.StateHold = true;
+ this.scanCodeBtn.TabIndex = 30;
+ this.scanCodeBtn.Text = "自动发货";
+ this.scanCodeBtn.UseVisualStyleBackColor = false;
+ this.scanCodeBtn.Click += new System.EventHandler(this.scanCodeBtn_Click);
+ //
+ // CarcassSaleOutForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1212, 673);
+ this.ImeMode = System.Windows.Forms.ImeMode.Disable;
+ this.KeyPreview = true;
+ this.Name = "CarcassSaleOutForm";
+ this.Text = "白条发货";
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
+ this.panel6.ResumeLayout(false);
+ this.panel6.PerformLayout();
+ this.panel7.ResumeLayout(false);
+ this.panel11.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit();
+ this.panel8.ResumeLayout(false);
+ this.panel8.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.orderGridView)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.sendGridView)).EndInit();
+ this.panel12.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel4;
+ private Controls.WeightControl weightControl1;
+ private System.Windows.Forms.ComboBox productBatchSelect;
+ private WinFormControl.ULabel uLabel2;
+ private WinFormControl.UScanPanel uScanPanel1;
+ private System.Windows.Forms.Panel panel5;
+ private WinFormControl.ULabel carNumberLabel;
+ private System.Windows.Forms.Panel panel6;
+ private WinFormControl.ULabel customerLabel;
+ private WinFormControl.ULabel uLabel8;
+ private WinFormControl.ULabel addressLabel;
+ private WinFormControl.ULabel uLabel7;
+ private WinFormControl.ULabel billIDLabel;
+ private WinFormControl.ULabel uLabel10;
+ private WinFormControl.ULabel uLabel9;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel8;
+ private WinFormControl.ULabel uLabel5;
+ private WinFormControl.ULabel uLabel6;
+ private WinFormControl.ULabel uLabel4;
+ private WinFormControl.ULabel uLabel3;
+ private WinFormControl.ULabel uLabel1;
+ private Controls.ColorButton clearBtn;
+ private Controls.ColorButton refreshBtn;
+ private System.Windows.Forms.Panel panel9;
+ private WinFormControl.UDataGridView mainGridView;
+ private System.Windows.Forms.DataGridViewTextBoxColumn M_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn M_Customer_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn M_SendTime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn M_DeliverGoodsLine_Name;
+ private System.Windows.Forms.Panel panel11;
+ private Controls.ColorButton unFinishBtn;
+ private Controls.ColorButton alreadyViewBtn;
+ private System.Windows.Forms.Panel panel10;
+ private Controls.ColorButton goodsFinishBtn;
+ private Controls.ColorButton weightRecordBtn;
+ private System.Windows.Forms.Label label1;
+ private WinFormControl.UDataGridView orderGridView;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SaleOutStore_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Customer_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Code;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SecondNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SSecondNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_DiffNumber;
+ private System.Windows.Forms.Label label2;
+ private WinFormControl.UDataGridView sendGridView;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_Selected;
+ private System.Windows.Forms.DataGridViewImageColumn F_Image;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_Idx;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_BarCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_GoodsCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_InStoreWeight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_Weight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_DiffWeight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn F_Time;
+ private System.Windows.Forms.Panel panel12;
+ private Controls.ColorButton scanCodeBtn;
+ private Controls.ColorButton commitBtn;
+ private Controls.ColorButton deleteBtn;
+ private Controls.ColorButton fullBtn;
+ private Controls.ColorButton halfBtn;
+ private WinFormControl.ULabel sendDateBox;
+ private WinFormControl.ULabel storeBox;
+ private WinFormControl.ULabel customerBox;
+ private WinFormControl.ULabel billStateBox;
+ private WinFormControl.ULabel deliverGoodsLineBox;
+
+ }
+}
\ No newline at end of file
diff --git a/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
new file mode 100644
index 0000000..6b4c1ea
--- /dev/null
+++ b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
@@ -0,0 +1,454 @@
+using ButcherFactory.BO;
+using ButcherFactory.BO.LocalBL;
+using ButcherFactory.BO.Utils;
+using ButcherFactory.CarcassSaleOut_;
+using ButcherFactory.Controls;
+using ButcherFactory.Dialogs;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace ButcherFactory.CarcassSaleOut2_
+{
+ public partial class CarcassSaleOutForm : FormTemplate, IWithRoleForm
+ {
+ #region IWithRoleForm
+ public List RoleName
+ {
+ get { return new List { (short)设备类别.白条发货 }; }
+ }
+
+ public Form Generate()
+ {
+ return this;
+ }
+ #endregion
+
+ BindingList saleOutStoreList;
+ BindingList details;
+ BindingList weightRecord;
+ Thread checkWeight;
+ string strErrorWeight = "";
+ List errorWeight = new List();
+ internal DateTime sendTime = DateTime.Today;
+ internal long? deliverGoodsLineID;
+ internal long? customerID;
+ internal int billState;
+ internal long? storeID;
+ long? batchID;
+ bool already = false;
+ bool scanCode = false;
+
+ public CarcassSaleOutForm()
+ {
+ InitializeComponent();
+ this.FormClosing += delegate
+ {
+ if (checkWeight != null && checkWeight.IsAlive)
+ checkWeight.Abort();
+ };
+ weightControl1.ReceivedValue += weightControl1_ReceivedValue;
+
+ uScanPanel1.AfterScan += uScanPanel1_AfterScan;
+ productBatchSelect.SelectedIndexChanged += delegate
+ {
+ if (productBatchSelect.SelectedValue == null)
+ batchID = null;
+ else
+ batchID = (long)productBatchSelect.SelectedValue;
+ };
+
+ sendGridView.CellFormatting += sendGridView_CellFormatting;
+ }
+
+ static Image CheckImg = System.Drawing.Image.FromFile("Images\\check.png");
+ static Image UnCheckImg = System.Drawing.Image.FromFile("Images\\uCheck.png");
+
+ void sendGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
+ {
+ if (e.RowIndex < 0 || e.ColumnIndex != 2)
+ return;
+ var v = (bool)sendGridView.Rows[e.RowIndex].Cells[1].Value;
+ e.Value = v ? CheckImg : UnCheckImg;
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ billState = 0;
+ billStateBox.Text = "未审核";
+ sendDateBox.Text = sendTime.ToString("yyyy-MM-dd");
+
+ var config = XmlUtil.DeserializeFromFile();
+ if (config.Store_ID.HasValue)
+ {
+ storeBox.Text = config.Store_Name;
+ storeID = config.Store_ID;
+ }
+ if (!string.IsNullOrEmpty(config.Weight))
+ {
+ strErrorWeight = config.Weight;
+ var arr = strErrorWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => int.Parse(x)).OrderBy(x => x);
+ errorWeight.AddRange(arr);
+ }
+ BindWeightRecord();
+ BindProductBatch();
+ }
+
+ void BindWeightRecord()
+ {
+ weightRecord = CarcassSaleOutBL.GetUnSubmitWeightRecord();
+ sendGridView.DataSource = weightRecord;
+ sendGridView.Refresh();
+ }
+
+ private void BindProductBatch()
+ {
+ var batchs = CarcassSaleOutBL.GetBatchFromEMS();
+ productBatchSelect.DisplayMember = "Name";
+ productBatchSelect.ValueMember = "ID";
+
+ productBatchSelect.DataSource = batchs;
+ var idx = batchs.FindIndex(x => x.Date == DateTime.Today);
+ if (idx > 0)
+ productBatchSelect.SelectedIndex = idx;
+ productBatchSelect.Refresh();
+ }
+
+ static object _lock = new object();
+ void weightControl1_ReceivedValue(decimal weight)
+ {
+ lock (_lock)
+ {
+ this.Invoke(new Action(() =>
+ {
+ var detail = CarcassSaleOutBL.Insert(weight);
+ if (weightRecord.Any())
+ detail.Idx = weightRecord.Max(x => x.Idx) + 1;
+ else
+ detail.Idx = 1;
+ weightRecord.Insert(0, detail);
+ sendGridView.FirstDisplayedScrollingRowIndex = 0;
+ if (!scanCode)
+ AfterScan("G8536");
+ else
+ sendGridView.Refresh();
+ checkWeight = new Thread(new ParameterizedThreadStart(CheckWeight));
+ checkWeight.Start(weight);
+ }));
+ }
+ }
+
+ void CheckWeight(object objWeight)
+ {
+ decimal weight = (decimal)objWeight;
+ var first = errorWeight.FirstOrDefault(x => x > weight);
+ if (first != 0)
+ WinFormControl.SoundPalyUtil.PlaySound(string.Format("Sounds\\l{0}.wav", first));
+ }
+
+ void uScanPanel1_AfterScan()
+ {
+ var barCode = uScanPanel1.TextBox.Text.Trim();
+ if (!barCode.StartsWith("G") && weightRecord.Any(x => x.BarCode == barCode))
+ return;
+ AfterScan(barCode);
+ }
+
+ void AfterScan(string barCode)
+ {
+ if (string.IsNullOrEmpty(barCode))
+ throw new Exception("条码错误");
+ var first = weightRecord.LastOrDefault(x => !x.Filled);
+ if (first == null)
+ return;
+ //throw new Exception("请先过磅");
+ CarcassSaleOutBL.FillDetail(first, barCode, batchID);
+ WinFormControl.SoundPalyUtil.PlaySound(WinFormControl.SoundType.Click);
+ sendGridView.Refresh();
+ }
+
+ private void refreshBtn_Click(object sender, EventArgs e)
+ {
+ already = false;
+ Refersh();
+ }
+
+ private void weightRecordBtn_Click(object sender, EventArgs e)
+ {
+ if (orderGridView.CurrentRow == null)
+ throw new Exception("请选择配货明细");
+ var detail = orderGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail;
+ var dg = new WeightRecordDialog(details.First(x => x.ID == detail.ID), already, batchID);
+ dg.ShowDialog();
+ if (dg.Changed)
+ BindOrderGrid(detail.SaleOutStore_ID);
+ if (dg.rolBack)
+ BindWeightRecord();
+ }
+
+ private void goodsFinishBtn_Click(object sender, EventArgs e)
+ {
+ if (mainGridView.CurrentRow == null)
+ throw new Exception("请选择要配货完成的发货单");
+ var id = (long)mainGridView.CurrentRow.Cells[0].Value;
+
+ var ds = CarcassSaleOutBL.GetSaleOutStoreDetailList(id);
+ if (ds.Any(x => x.SSecondNumber == null || x.SSecondNumber == 0))
+ {
+ if (MessageBox.Show("有未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButtons.OKCancel) != DialogResult.OK)
+ return;
+ }
+ CarcassSaleOutBL.SetGoodsFinish(id);
+ AfterChangeFinishGoods(id);
+ MessageBox.Show("配货完成!");
+ }
+
+ private void unFinishBtn_Click(object sender, EventArgs e)
+ {
+ if (mainGridView.CurrentRow == null)
+ throw new Exception("请选择要配货完成的发货单");
+ var id = (long)mainGridView.CurrentRow.Cells[0].Value;
+ CarcassSaleOutBL.SetGoodsUnFinish(id);
+ AfterChangeFinishGoods(id);
+ MessageBox.Show("撤销成功!");
+ }
+
+ private void AfterChangeFinishGoods(long id)
+ {
+ saleOutStoreList.Remove(saleOutStoreList.First(x => x.ID == id));
+ mainGridView.Refresh();
+ if (details != null)
+ details.Clear();
+ orderGridView.Refresh();
+
+ billIDLabel.Text = string.Empty;
+ customerLabel.Text = string.Empty;
+ addressLabel.Text = string.Empty;
+ carNumberLabel.Text = string.Empty;
+ }
+
+ private void commitBtn_Click(object sender, EventArgs e)
+ {
+ if (orderGridView.CurrentRow == null)
+ throw new Exception("请选择配货明细");
+ var subList = weightRecord.Where(x => x.Selected).ToList();
+ if (subList.Count() == 0)
+ throw new Exception("没有发货明细");
+ if (subList.Any(x => !x.Filled))
+ throw new Exception("有未扫码的明细");
+ var detailID = (long)orderGridView.CurrentRow.Cells[0].Value;
+ var detail = details.First(x => x.ID == detailID);
+ CarcassSaleOutBL.SubmitDetails(subList, detail);
+ foreach (var item in subList)
+ weightRecord.Remove(item);
+ var idx = weightRecord.Count;
+ foreach (var item in weightRecord)
+ {
+ item.Idx = idx;
+ idx--;
+ }
+
+ sendGridView.Refresh();
+ orderGridView.Refresh();
+ MessageBox.Show("提交成功!");
+ }
+
+ private void queryControl_MouseDown(object sender, MouseEventArgs e)
+ {
+ var simpleLbl = sender as Label;
+ switch (simpleLbl.Name)
+ {
+ case "sendDateBox":
+ var cs = new CalendarSelecter();
+ if (cs.ShowDialog() == true)
+ {
+ sendTime = cs.Result;
+ sendDateBox.Text = sendTime.ToString("yyyy-MM-dd");
+ }
+ break;
+ case "deliverGoodsLineBox":
+ var dgl = new SelectDeliverGoodsLineDialog();
+ if (dgl.ShowDialog() == DialogResult.OK)
+ {
+ simpleLbl.Text = dgl.Result.Item1;
+ deliverGoodsLineID = dgl.Result.Item2;
+ }
+ break;
+ case "customerBox":
+ var cb = new SelectCustomerDialog();
+ if (cb.ShowDialog() == DialogResult.OK)
+ {
+ simpleLbl.Text = cb.Result.Item1;
+ customerID = cb.Result.Item2;
+ }
+ break;
+ case "billStateBox":
+ var bs = new SelectBillStateDialog();
+ if (bs.ShowDialog() == DialogResult.OK)
+ {
+ simpleLbl.Text = bs.Result.Item1;
+ billState = bs.Result.Item2;
+ }
+ break;
+ case "storeBox":
+ var sb = new SelectStoreDialog();
+ if (sb.ShowDialog() == DialogResult.OK)
+ {
+ simpleLbl.Text = sb.Result.Item1;
+ storeID = sb.Result.Item2;
+ XmlUtil.SerializerObjToFile(new CarcassSaleOutFormConfig { Weight = strErrorWeight, Store_ID = storeID, Store_Name = simpleLbl.Text });
+ }
+ break;
+ }
+ }
+
+ private void clearBtn_Click(object sender, EventArgs e)
+ {
+ billState = 0;
+ billStateBox.Text = "未审核";
+
+ sendTime = DateTime.Today;
+ sendDateBox.Text = sendTime.ToString("yyyy-MM-dd");
+
+ deliverGoodsLineBox.Text = string.Empty;
+ deliverGoodsLineID = null;
+
+ customerBox.Text = string.Empty;
+ customerID = null;
+
+ storeBox.Text = string.Empty;
+ storeID = null;
+ }
+
+ private void mainGridView_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+ var id = (long)mainGridView.CurrentRow.Cells[0].Value;
+ var first = saleOutStoreList.First(x => x.ID == id);
+ billIDLabel.Text = id.ToString();
+ customerLabel.Text = first.Customer_Name;
+ addressLabel.Text = first.Address;
+ carNumberLabel.Text = first.CarNumber;
+ BindOrderGrid(null);
+ }
+
+ void BindOrderGrid(long? detailID)
+ {
+ var id = long.Parse(billIDLabel.Text);
+ details = CarcassSaleOutBL.GetSaleOutStoreDetailList(id);
+ foreach (var item in details)
+ {
+ item.SaleOutStore_ID = id;
+ item.Customer_Name = customerLabel.Text;
+ }
+ orderGridView.DataSource = details;
+ if (detailID.HasValue)
+ {
+ foreach (DataGridViewRow row in orderGridView.Rows)
+ {
+ if ((long)row.Cells[0].Value == detailID)
+ {
+ row.Selected = true;
+ break;
+ }
+ }
+ }
+ else
+ {
+ if (details.Any())
+ orderGridView.FirstDisplayedScrollingRowIndex = 0;
+ }
+ orderGridView.Refresh();
+ }
+
+ private void alreadyViewBtn_Click(object sender, EventArgs e)
+ {
+ already = true;
+ Refersh();
+ }
+
+ void Refersh()
+ {
+ commitBtn.Enabled = !already;
+ goodsFinishBtn.Enabled = !already;
+ unFinishBtn.Enabled = already;
+ if (details != null)
+ {
+ details.Clear();
+ orderGridView.Refresh();
+ }
+
+ saleOutStoreList = CarcassSaleOutBL.GetSaleOutStoreList(sendTime, deliverGoodsLineID, customerID, billState, storeID, already);
+ mainGridView.DataSource = saleOutStoreList;
+ mainGridView.Refresh();
+ }
+
+ private void deleteBtn_Click(object sender, EventArgs e)
+ {
+ if (sendGridView.CurrentRow == null)
+ return;
+ var id = (long)sendGridView.CurrentRow.Cells[0].Value;
+ CarcassSaleOutBL.Delete(id);
+ var tag = weightRecord.First(x => x.ID == id);
+ weightRecord.Remove(tag);
+ foreach (var item in weightRecord.Where(x => x.Idx > tag.Idx))
+ item.Idx -= 1;
+ sendGridView.Refresh();
+ }
+
+ private void orderGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
+ {
+ DataGridViewRow dgrSingle = orderGridView.Rows[e.RowIndex];
+ var v = (decimal?)dgrSingle.Cells["D_SNumber"].Value;
+ if (v.HasValue && v > 0)
+ {
+ dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen;
+ }
+ }
+
+ private void sendGridView_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex < 0)
+ return;
+ var id = (long)sendGridView.CurrentRow.Cells[0].Value;
+ var first = weightRecord.First(x => x.ID == id);
+ first.Selected = !first.Selected;
+ sendGridView.Refresh();
+ }
+
+ private void halfBtn_Click(object sender, EventArgs e)
+ {
+ SetWeightNumber(0.5m);
+ }
+
+ private void fullBtn_Click(object sender, EventArgs e)
+ {
+ SetWeightNumber(1);
+ }
+
+ private void SetWeightNumber(decimal number)
+ {
+ if (sendGridView.CurrentRow == null)
+ return;
+ var id = (long)sendGridView.CurrentRow.Cells[0].Value;
+ CarcassSaleOutBL.UpdateWeightNumber(id, number);
+ var first = weightRecord.First(x => x.ID == id);
+ first.Selected = true;
+ first.Number = number;
+ sendGridView.Refresh();
+ }
+
+ private void scanCodeBtn_Click(object sender, EventArgs e)
+ {
+ scanCode = !scanCode;
+ scanCodeBtn.Text = scanCode ? "扫码发货" : "自动发货";
+ }
+ }
+}
diff --git a/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.resx b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.resx
new file mode 100644
index 0000000..5e20f0d
--- /dev/null
+++ b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.resx
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs
index 8e75dc8..a5d8c4c 100644
--- a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs
+++ b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs
@@ -302,9 +302,9 @@
this.uTimerLabel1.Format = "M月d日 H:mm:ss";
this.uTimerLabel1.Location = new System.Drawing.Point(1167, 49);
this.uTimerLabel1.Name = "uTimerLabel1";
- this.uTimerLabel1.Size = new System.Drawing.Size(136, 16);
+ this.uTimerLabel1.Size = new System.Drawing.Size(128, 16);
this.uTimerLabel1.TabIndex = 11;
- this.uTimerLabel1.Text = "6月22日 12:31:50";
+ this.uTimerLabel1.Text = "7月10日 8:50:27";
//
// uScanPanel1
//
diff --git a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs
index f360a69..be5ed8b 100644
--- a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs
+++ b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs
@@ -16,7 +16,7 @@ using WinFormControl;
namespace ButcherFactory.CarcassSaleOut_
{
- public partial class CarcassSaleOutForm : Form, IWithRoleForm
+ public partial class CarcassSaleOutForm : Form//, IWithRoleForm
{
#region IWithRoleForm
public List RoleName
@@ -426,16 +426,6 @@ namespace ButcherFactory.CarcassSaleOut_
}
}
- private void sendGridView_CellClick(object sender, DataGridViewCellEventArgs e)
- {
- if (e.RowIndex < 0)
- return;
- var id = (long)sendGridView.CurrentRow.Cells[0].Value;
- var first = weightRecord.First(x => x.ID == id);
- first.Selected = !first.Selected;
- sendGridView.Refresh();
- }
-
private void halfBtn_Click(object sender, EventArgs e)
{
SetWeightNumber(0.5m);
@@ -457,5 +447,10 @@ namespace ButcherFactory.CarcassSaleOut_
first.Number = number;
sendGridView.Refresh();
}
+
+ private void sendGridView_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+
+ }
}
}
diff --git a/ButcherFactory.Form/Controls/ColorButton.cs b/ButcherFactory.Form/Controls/ColorButton.cs
new file mode 100644
index 0000000..ae9f44c
--- /dev/null
+++ b/ButcherFactory.Form/Controls/ColorButton.cs
@@ -0,0 +1,185 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using WinFormControl;
+
+namespace ButcherFactory.Controls
+{
+ class ColorButton : System.Windows.Forms.Button
+ {
+ public ColorButton()
+ {
+ mouseAction = MouseActionType.None;
+
+ this.SetStyle(ControlStyles.AllPaintingInWmPaint |
+ ControlStyles.DoubleBuffer |
+ ControlStyles.UserPaint, true);
+ this.ForeColor = Color.White;
+ this.BackColor = Color.FromArgb(77, 135, 245);
+ }
+
+ Color selectedColor = Color.FromArgb(158, 234, 106);
+ [Browsable(true)]
+ public Color SelectedColor
+ {
+ get { return selectedColor; }
+ set { selectedColor = value; }
+ }
+
+ [DefaultValue(false)]
+ public bool Selected { get; set; }
+
+ [DefaultValue(false)]
+ public bool EnableGroup { get; set; }
+
+ [DefaultValue(false)]
+ public bool StateHold { get; set; }
+
+ [DefaultValue(false)]
+ public bool PlaySound { get; set; }
+
+ [DefaultValue(false)]
+ public bool SelfControlEnable { get; set; }
+
+ private int radius=8;
+ [DefaultValue(8)]
+ public int Radius { get { return radius; } set { radius = value; } }
+
+ private enum MouseActionType
+ {
+ None,
+ Hover,
+ Click
+ }
+
+ private MouseActionType mouseAction;
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ Graphics g = e.Graphics;
+ var cC = Parent.BackColor;
+ if (cC == Color.Transparent)
+ cC = Color.White;
+ g.Clear(cC);
+
+ Color clr = Color.FromArgb(180, this.BackColor);
+ if (Selected)
+ clr = SelectedColor;
+ Color from = Color.FromArgb(200, clr);
+ int btnOffset = 0;
+ if (Enabled)
+ {
+ switch (mouseAction)
+ {
+ case MouseActionType.Click:
+ clr = Color.FromArgb(225, clr);
+ btnOffset = 2;
+ break;
+ case MouseActionType.Hover:
+ clr = Color.FromArgb(225, clr); ;
+ break;
+ }
+ }
+ else
+ from = clr = Color.FromArgb(186, 186, 186);
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+
+ Rectangle rc = new Rectangle(btnOffset, btnOffset, this.ClientSize.Width - btnOffset, this.ClientSize.Height - btnOffset);
+ GraphicsPath path1 = this.GetPath(rc, Radius);
+ LinearGradientBrush br1 = new LinearGradientBrush(rc, from, clr, LinearGradientMode.Vertical);
+ g.FillPath(br1, path1);
+
+ var textBrush = new SolidBrush(this.ForeColor);
+
+ StringFormat drawFormat = new StringFormat();
+ drawFormat.FormatFlags = StringFormatFlags.DisplayFormatControl;
+ drawFormat.LineAlignment = StringAlignment.Center;
+ drawFormat.Alignment = System.Drawing.StringAlignment.Center;
+
+ g.DrawString(this.Text, this.Font, textBrush, rc, drawFormat);
+ }
+ private GraphicsPath GetPath(Rectangle rc, int r)
+ {
+ int x = rc.X, y = rc.Y, w = rc.Width, h = rc.Height;
+ GraphicsPath path = new GraphicsPath();
+ path.AddArc(x, y, r, r, 180, 90); //Upper left corner
+ path.AddArc(x + w - r, y, r, r, 270, 90); //Upper right corner
+ path.AddArc(x + w - r, y + h - r, r, r, 0, 90); //Lower right corner
+ path.AddArc(x, y + h - r, r, r, 90, 90); //Lower left corner
+ path.CloseFigure();
+ return path;
+ }
+
+ protected override void OnMouseDown(MouseEventArgs e)
+ {
+ if (e.Button == MouseButtons.Left)
+ {
+ this.mouseAction = MouseActionType.Click;
+ this.Invalidate();
+ }
+ base.OnMouseDown(e);
+ }
+
+ protected override void OnMouseUp(MouseEventArgs mevent)
+ {
+ this.mouseAction = MouseActionType.None;
+ this.Invalidate();
+ base.OnMouseUp(mevent);
+ }
+
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ this.mouseAction = MouseActionType.Hover;
+ this.Invalidate();
+ base.OnMouseEnter(e);
+ }
+
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ this.mouseAction = MouseActionType.None;
+ this.Invalidate();
+ base.OnMouseLeave(e);
+ }
+
+ protected override void OnClick(EventArgs e)
+ {
+ this.Enabled = false;
+ if (PlaySound)
+ SoundPalyUtil.PlaySound(SoundType.Click);
+ try
+ {
+ base.OnClick(e);
+ if (!SelfControlEnable)
+ this.Enabled = true;
+ }
+ catch
+ {
+ Application.DoEvents();
+ this.Enabled = true;
+ this.Focus();
+ throw;
+ }
+
+ if (EnableGroup)
+ {
+ foreach (var ctl in Parent.Controls)
+ {
+ var btn = ctl as ColorButton;
+ if (btn == null)
+ continue;
+ btn.Selected = btn.Text == this.Text;
+ }
+ }
+ else if (StateHold)
+ Selected = !Selected;
+ Application.DoEvents();
+ this.Focus();
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/FormTemplate.Designer.cs b/ButcherFactory.Form/Controls/FormTemplate.Designer.cs
new file mode 100644
index 0000000..55ca601
--- /dev/null
+++ b/ButcherFactory.Form/Controls/FormTemplate.Designer.cs
@@ -0,0 +1,223 @@
+namespace ButcherFactory.Controls
+{
+ partial class FormTemplate
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.dateLbl = new System.Windows.Forms.Label();
+ this.closeBtn = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.timeLbl = new System.Windows.Forms.Label();
+ this.roundPanel2 = new ButcherFactory.Controls.RoundPanel(this.components);
+ this.TitleLbl = new System.Windows.Forms.Label();
+ this.titlePanel = new System.Windows.Forms.Panel();
+ this.logoPanel = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new ButcherFactory.Controls.RoundPanel(this.components);
+ this.panel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.Transparent;
+ this.panel1.Controls.Add(this.dateLbl);
+ this.panel1.Controls.Add(this.closeBtn);
+ this.panel1.Controls.Add(this.panel3);
+ this.panel1.Controls.Add(this.timeLbl);
+ this.panel1.Controls.Add(this.roundPanel2);
+ this.panel1.Controls.Add(this.titlePanel);
+ this.panel1.Controls.Add(this.logoPanel);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1212, 53);
+ this.panel1.TabIndex = 0;
+ //
+ // dateLbl
+ //
+ this.dateLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.dateLbl.AutoSize = true;
+ this.dateLbl.BackColor = System.Drawing.Color.Transparent;
+ this.dateLbl.Font = new System.Drawing.Font("黑体", 10F);
+ this.dateLbl.ForeColor = System.Drawing.Color.White;
+ this.dateLbl.Location = new System.Drawing.Point(991, 30);
+ this.dateLbl.Name = "dateLbl";
+ this.dateLbl.Size = new System.Drawing.Size(154, 14);
+ this.dateLbl.TabIndex = 13;
+ this.dateLbl.Text = "2018年10月29日/星期五";
+ //
+ // closeBtn
+ //
+ this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.closeBtn.BackgroundImage = global::ButcherFactory.Properties.Resources.closeImg;
+ this.closeBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.closeBtn.Location = new System.Drawing.Point(1174, 14);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.Size = new System.Drawing.Size(30, 26);
+ this.closeBtn.TabIndex = 12;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // panel3
+ //
+ this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel3.BackColor = System.Drawing.Color.White;
+ this.panel3.Location = new System.Drawing.Point(1157, 5);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1, 42);
+ this.panel3.TabIndex = 11;
+ //
+ // timeLbl
+ //
+ this.timeLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.timeLbl.AutoSize = true;
+ this.timeLbl.BackColor = System.Drawing.Color.Transparent;
+ this.timeLbl.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Bold);
+ this.timeLbl.ForeColor = System.Drawing.Color.White;
+ this.timeLbl.Location = new System.Drawing.Point(1013, 9);
+ this.timeLbl.Name = "timeLbl";
+ this.timeLbl.Size = new System.Drawing.Size(112, 16);
+ this.timeLbl.TabIndex = 10;
+ this.timeLbl.Text = "下午:17:20";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2._setRoundRadius = 40;
+ this.roundPanel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(70)))), ((int)(((byte)(173)))));
+ this.roundPanel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.roundPanel2.Controls.Add(this.TitleLbl);
+ this.roundPanel2.Location = new System.Drawing.Point(308, 10);
+ this.roundPanel2.Margin = new System.Windows.Forms.Padding(0);
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(97, 37);
+ this.roundPanel2.TabIndex = 9;
+ //
+ // TitleLbl
+ //
+ this.TitleLbl.AutoSize = true;
+ this.TitleLbl.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.TitleLbl.ForeColor = System.Drawing.Color.White;
+ this.TitleLbl.Location = new System.Drawing.Point(14, 10);
+ this.TitleLbl.Name = "TitleLbl";
+ this.TitleLbl.Size = new System.Drawing.Size(56, 16);
+ this.TitleLbl.TabIndex = 0;
+ this.TitleLbl.Text = "label1";
+ //
+ // titlePanel
+ //
+ this.titlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.titlePanel.Location = new System.Drawing.Point(57, 12);
+ this.titlePanel.Name = "titlePanel";
+ this.titlePanel.Size = new System.Drawing.Size(122, 28);
+ this.titlePanel.TabIndex = 8;
+ //
+ // logoPanel
+ //
+ this.logoPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.logoPanel.Location = new System.Drawing.Point(12, 12);
+ this.logoPanel.Name = "logoPanel";
+ this.logoPanel.Size = new System.Drawing.Size(36, 30);
+ this.logoPanel.TabIndex = 7;
+ //
+ // panel2
+ //
+ this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel2.BackColor = System.Drawing.Color.White;
+ this.panel2.Location = new System.Drawing.Point(0, 53);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1212, 1);
+ this.panel2.TabIndex = 1;
+ //
+ // label3
+ //
+ this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.Transparent;
+ this.label3.Font = new System.Drawing.Font("黑体", 10F);
+ this.label3.ForeColor = System.Drawing.Color.White;
+ this.label3.Location = new System.Drawing.Point(495, 579);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(231, 14);
+ this.label3.TabIndex = 4;
+ this.label3.Text = "版权归青花瓷(北京)有限公司所有";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1._setRoundRadius = 15;
+ this.roundPanel1.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)));
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Location = new System.Drawing.Point(12, 61);
+ this.roundPanel1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(1187, 510);
+ this.roundPanel1.TabIndex = 2;
+ //
+ // FormTemplate
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(88)))), ((int)(((byte)(217)))));
+ this.ClientSize = new System.Drawing.Size(1212, 600);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.roundPanel1);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "FormTemplate";
+ this.Text = "FormTemplate";
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Panel titlePanel;
+ private System.Windows.Forms.Panel logoPanel;
+ private System.Windows.Forms.Label dateLbl;
+ private System.Windows.Forms.Panel closeBtn;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.Label timeLbl;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label TitleLbl;
+ protected RoundPanel roundPanel1;
+ protected System.Windows.Forms.Label label3;
+ }
+}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Controls/FormTemplate.cs b/ButcherFactory.Form/Controls/FormTemplate.cs
new file mode 100644
index 0000000..2d7fad9
--- /dev/null
+++ b/ButcherFactory.Form/Controls/FormTemplate.cs
@@ -0,0 +1,83 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Timers;
+using System.Windows.Forms;
+
+namespace ButcherFactory.Controls
+{
+ public partial class FormTemplate : Form
+ {
+ System.Timers.Timer timer;
+
+ public FormTemplate()
+ {
+ InitializeComponent();
+ if (!DesignMode)
+ {
+ this.FormClosing += delegate
+ {
+ if (timer != null)
+ timer.Dispose();
+ };
+ }
+ if (CheckDesingModel.IsDesingMode)
+ return;//如果处于设计模式,返回
+ this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ if (!DesignMode)
+ {
+ TitleLbl.Text = Text;
+ logoPanel.BackgroundImage = Image.FromFile("Images\\logo.png");
+ titlePanel.BackgroundImage = Image.FromFile("Images\\formTitle.png");
+ timerTick(null, null);
+ timer = new System.Timers.Timer(1000);
+ timer.Elapsed += timerTick;
+ timer.AutoReset = true;
+ timer.Enabled = true;
+ }
+ }
+
+ private void timerTick(object sender, ElapsedEventArgs e)
+ {
+ var arr = "日一二三四五六";
+ this.Invoke(new Action(delegate
+ {
+ timeLbl.Text = string.Format("{0} {1:HH:mm}", DateTime.Now.Hour > 12 ? "下午" : "上午", DateTime.Now);
+ dateLbl.Text = string.Format(string.Format("{0:yyyy年MM月dd日}/星期{1}", DateTime.Today, arr[(int)DateTime.Now.DayOfWeek]));
+ }));
+ }
+
+ private void closeBtn_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+
+ internal class CheckDesingModel
+ {
+ public static bool IsDesingMode
+ {
+ get
+ {
+ bool ReturnFlag = false;
+ if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
+ ReturnFlag = true;
+ else if (System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv")
+ ReturnFlag = true;
+ //if (ReturnFlag)
+ // Msg.Warning("设计模式");
+ //else Msg.Warning("非设计模式!");
+ return ReturnFlag;
+ }
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/FormTemplate.resx b/ButcherFactory.Form/Controls/FormTemplate.resx
new file mode 100644
index 0000000..d9967ef
--- /dev/null
+++ b/ButcherFactory.Form/Controls/FormTemplate.resx
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/Controls/RoundPanel.cs b/ButcherFactory.Form/Controls/RoundPanel.cs
new file mode 100644
index 0000000..8214492
--- /dev/null
+++ b/ButcherFactory.Form/Controls/RoundPanel.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace ButcherFactory.Controls
+{
+ public class RoundPanel : Panel
+ {
+ public RoundPanel()
+ {
+ this.Padding = new System.Windows.Forms.Padding(0, 0, 0, 0);
+ this.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
+ }
+
+
+ // 圆角
+ // ===============================================================================================
+ private int _Radius = 18; // 圆角弧度
+
+ /// 圆角弧度(0为不要圆角)
+ [DefaultValue(18)]
+ [Browsable(true)]
+ [Description("圆角弧度(0为不要圆角)")]
+ public int _setRoundRadius
+ {
+ get
+ {
+ return _Radius;
+ }
+ set
+ {
+ if (value < 0) { _Radius = 0; }
+ else { _Radius = value; }
+ base.Refresh();
+ }
+ }
+
+
+ // 圆角代码
+ public void Round(System.Drawing.Region region)
+ {
+ System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
+ int x = 0;
+ int y = 0;
+ int thisWidth = this.Width;
+ int thisHeight = this.Height;
+ int angle = _Radius;
+ oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
+ oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
+ oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
+ oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
+ oPath.CloseAllFigures();
+ Region = new System.Drawing.Region(oPath);
+ }
+
+
+ public RoundPanel(IContainer container)
+ {
+ container.Add(this);
+ }
+
+ protected override void OnPaint(System.Windows.Forms.PaintEventArgs pe)
+ {
+ base.OnPaint(pe);
+ pe.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ Round(this.Region); // 圆角
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.OnResize(eventargs);
+ base.Refresh();
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/Utils/AoHaoSi3000DataFormat.cs b/ButcherFactory.Form/Controls/Utils/AoHaoSi3000DataFormat.cs
new file mode 100644
index 0000000..1a92982
--- /dev/null
+++ b/ButcherFactory.Form/Controls/Utils/AoHaoSi3000DataFormat.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ internal class AoHaoSi3000DataFormat : DataFormatBase
+ {
+ public override int DataLength
+ {
+ get { return 10; }
+ }
+
+ public override char Beginchar
+ {
+ get { return (char)0x80; }//这种数据没有固定的开始标志
+ }
+
+ public override char Endchar
+ {
+ get { return (char)0x67; }
+ }
+
+ public override short Bufsize
+ {
+ get { return 36; }
+ }
+ public override string ParseData(string buf, out bool isStatic)
+ {
+ isStatic = false;
+ return string.Empty;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic)
+ {
+ isStatic = true;
+ weight = buf.Replace("kg", "").Replace((char)0x0D, (char)0x20).Replace((char)0x0A, (char)0x20).Replace((char)0x3F, (char)0x20);
+ weight = weight.Trim();
+ return true;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr)
+ {
+ weight = "";
+ isStatic = false;
+ subStr = "";
+ return false;
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/Utils/DataFormatBase.cs b/ButcherFactory.Form/Controls/Utils/DataFormatBase.cs
new file mode 100644
index 0000000..48aac80
--- /dev/null
+++ b/ButcherFactory.Form/Controls/Utils/DataFormatBase.cs
@@ -0,0 +1,70 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ interface IDataFormat
+ {
+ char Beginchar { get; }
+ char Endchar { get; }
+ short Bufsize { get; }
+ bool ParseAscii(string buf, out string weight, out bool isStatic);
+ bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr);
+ }
+
+ internal abstract class DataFormatBase : IDataFormat
+ {
+ public abstract int DataLength
+ {
+ get;
+ }
+
+ public abstract char Beginchar
+ {
+ get;
+ }
+
+ public abstract char Endchar
+ {
+ get;
+ }
+
+ public abstract short Bufsize { get; }
+
+ public const short BUFSIZE = 36;
+ // 根据开始字符找出 一个完整的数据帧
+ public string FindDataFrame(string buf, int fSize)
+ {
+ var bufSize = buf.Length;
+ if (fSize > bufSize)
+ {
+ return string.Empty;
+ }
+
+ int index = buf.IndexOf(Beginchar); // 查找开始字符的索引
+
+ if (index < 0 || (index + fSize) > bufSize)
+ {
+ return string.Empty;
+ }
+
+ string data = buf.Substring(index, fSize);
+
+ // 检查结束字符
+ if (data[fSize - 1] != Endchar)
+ {
+ return string.Empty;
+ }
+
+ return data;
+ }
+
+ public abstract string ParseData(string buf, out bool isStatic);
+
+ public abstract bool ParseAscii(string buf, out string weight, out bool isStatic);
+ public abstract bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr);
+ }
+}
diff --git a/ButcherFactory.Form/Controls/Utils/IND560DataFormat.cs b/ButcherFactory.Form/Controls/Utils/IND560DataFormat.cs
new file mode 100644
index 0000000..12a2262
--- /dev/null
+++ b/ButcherFactory.Form/Controls/Utils/IND560DataFormat.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ internal class IND560DataFormat : DataFormatBase
+ {
+ public override int DataLength
+ {
+ get { return 10; }
+ }
+
+ public override char Beginchar
+ {
+ get { return (char)0x80; }//这种数据没有固定的开始标志
+ }
+
+ public override char Endchar
+ {
+ get { return (char)0x67; }
+ }
+
+ public override short Bufsize
+ {
+ get { return 36; }
+ }
+ public override string ParseData(string buf, out bool isStatic)
+ {
+ isStatic = false;
+ return string.Empty;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic)
+ {
+ isStatic = true;
+ weight = buf.Replace("kg", "").Replace((char)0x0D, (char)0x20).Replace((char)0x0A, (char)0x20).Replace((char)0x3F, (char)0x20);
+ weight = weight.Trim();
+ if (weight.Any(x => x == ' '))
+ {
+ var arr = weight.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
+ if (arr.Length > 1)
+ weight = arr[1];
+ }
+ return true;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr)
+ {
+ weight = "";
+ isStatic = false;
+ subStr = "";
+ return false;
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/Utils/Xk3124DataFormat.cs b/ButcherFactory.Form/Controls/Utils/Xk3124DataFormat.cs
new file mode 100644
index 0000000..ce69341
--- /dev/null
+++ b/ButcherFactory.Form/Controls/Utils/Xk3124DataFormat.cs
@@ -0,0 +1,121 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ internal class Xk3124DataFormat : DataFormatBase
+ {
+ public override int DataLength
+ {
+ get { return 17; }
+ }
+
+ public override char Beginchar
+ {
+ get { return (char)0x02; }
+ }
+
+ public override char Endchar
+ {
+ get { return (char)0x0D; ; }
+ }
+
+ public override short Bufsize
+ {
+ get { return 36; }
+ }
+
+ public override string ParseData(string buf, out bool isStatic)
+ {
+ StringBuilder str = new StringBuilder();
+
+ char swa = buf[1]; // 状态字A
+ char swb = buf[2]; // 状态字B
+
+ int dotIndex = (swa & 0x07) - 2; // 小数点位置
+
+ bool isPositive = (((swb >> 1) & 0x01) == 0); // 符号:是否为正数
+ isStatic = (((swb >> 3) & 0x01) == 0);
+
+ char[] num = new char[6];
+
+ for (int i = 0; i < 6; i++)
+ {
+ num[i] = buf[i + 4];
+ }
+
+ if (dotIndex < 0)
+ { // 不考虑精确到十,百位
+ return str.ToString();
+ }
+
+ for (int i = 0; i < 6 - dotIndex; i++)
+ {
+ str.Append(num[i]);
+ }
+
+ str.Append('.');
+
+ for (int i = 0; i < dotIndex; i++)
+ {
+ str.Append(num[6 - dotIndex + i]);
+ }
+
+ // 去掉空格
+ string result = str.ToString().Trim();
+
+ // 取消前面多余的0
+ for (int i = 0; i < result.Length; i++)
+ {
+ if (result[i] != '0')
+ {
+ result = result.Substring(i, result.Length - i);
+ break;
+ }
+ }
+
+ if (result.IndexOf('.') == 0)
+ {
+ result = result.Insert(0, "0");
+ }
+
+ if (result.IndexOf('.') == result.Length - 1)
+ {
+ result = result.Remove(result.IndexOf('.'), 1);
+ }
+
+ if (!isPositive)
+ { // 负数
+ result = result.Insert(0, "-");
+ }
+
+ return result;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic)
+ {
+ isStatic = false;
+ weight = FindDataFrame(buf, DataLength);
+
+ if (string.IsNullOrEmpty(weight))
+ {
+ return false;
+ }
+
+ weight = ParseData(weight, out isStatic);
+
+ return true;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr)
+ {
+ weight = "";
+ isStatic = false;
+ subStr = "";
+ return false;
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/Utils/Xk3190A9DataFormat.cs b/ButcherFactory.Form/Controls/Utils/Xk3190A9DataFormat.cs
new file mode 100644
index 0000000..719677c
--- /dev/null
+++ b/ButcherFactory.Form/Controls/Utils/Xk3190A9DataFormat.cs
@@ -0,0 +1,136 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ internal class Xk3190A9DataFormat : DataFormatBase
+ {
+
+ public override int DataLength
+ {
+ get { return 12; }
+ }
+
+ public override char Beginchar
+ {
+ get { return (char)0x02; }
+ }
+
+ public override char Endchar
+ {
+ get { return (char)0x03; }
+ }
+
+ public override short Bufsize
+ {
+ get { return 36; }
+ }
+
+ public override string ParseData(string buf, out bool isStatic)
+ {
+ string weight;
+ // 小数位数0-4
+ int dot = (short)(0x0F & buf[8]);
+ weight = buf.Substring(2, 6).Trim();
+
+ // insert dot
+ weight = InsertDot(weight, dot);
+ isStatic = true; // 默认 为 稳定
+
+ // buffer[1] 符号位
+ if (buf[1] == '-')
+ {
+ weight = weight.Insert(0, "-");
+ }
+
+ return weight;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic)
+ {
+ isStatic = false;
+ weight = FindDataFrame(buf, DataLength);
+
+ if (string.IsNullOrEmpty(weight))
+ {
+ return false;
+ }
+
+ weight = ParseData(weight, out isStatic);
+
+ return true;
+ }
+
+ private static string InsertDot(string weight, int dotBits)
+ {
+ string str = weight.TrimStart(new[] {
+ '0'
+ });
+ str = str.Trim();
+
+ if (dotBits > 0)
+ {
+ //str = str.Insert(str.Length - dotBits, ".");
+ if (string.IsNullOrEmpty(str))
+ {
+ str = "0";
+ str = str.Insert(str.Length, ".");
+ for (int i = 0; i < dotBits; i++)
+ {
+ str = str.Insert(str.Length, "0");
+ }
+ }
+ else
+ str = str.Insert(str.Length - dotBits, ".");
+ }
+
+ if (str.IndexOf(".") == 0)
+ {
+ str = str.Insert(0, "0");
+ }
+
+ return str;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr)
+ {
+ isStatic = false;
+ weight = FindDataFrame(buf, DataLength, out subStr);
+
+ if (string.IsNullOrEmpty(weight))
+ {
+ return false;
+ }
+
+ weight = ParseData(weight, out isStatic);
+
+
+ return true;
+ }
+ // 根据开始字符找出 一个完整的数据帧
+ public string FindDataFrame(string buf, int fSize, out string subStr)
+ {
+ var bufSize = buf.Length;
+ subStr = "";
+ int index = buf.IndexOf(Beginchar); // 查找开始字符的索引
+
+ if (index < 0 || (index + fSize) > bufSize)
+ {
+ return string.Empty;
+ }
+
+ string data = buf.Substring(index, fSize);
+ subStr = buf.Substring(index + fSize);
+ // 检查结束字符
+ if (data[fSize - 1] != Endchar)
+ {
+ return string.Empty;
+ }
+
+ return data;
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/Utils/Xk3190D10DataFormat.cs b/ButcherFactory.Form/Controls/Utils/Xk3190D10DataFormat.cs
new file mode 100644
index 0000000..d40a062
--- /dev/null
+++ b/ButcherFactory.Form/Controls/Utils/Xk3190D10DataFormat.cs
@@ -0,0 +1,130 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ internal class Xk3190D10DataFormat : DataFormatBase
+ {
+
+ public override int DataLength
+ {
+ get { return 12; }
+ }
+ public override char Beginchar
+ {
+ get { return (char)0x02; }
+ }
+
+ public override char Endchar
+ {
+ get { return (char)0x0D; ; }
+ }
+ public override short Bufsize
+ {
+ get { return 24; }
+ }
+
+ public override string ParseData(string buf, out bool isStatic)
+ {
+ string weight;
+ // 小数位数0-4
+ int dot = (short)(0x0F & buf[8]);
+ weight = buf.Substring(2, 6).Trim();
+
+ // insert dot
+ weight = InsertDot(weight, dot);
+ isStatic = true; // 默认 为 稳定
+
+ // buffer[1] 符号位
+ if (buf[1] == '-')
+ {
+ weight = weight.Insert(0, "-");
+ }
+ else
+ {
+
+ }
+ return weight;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic)
+ {
+ isStatic = false;
+ weight = FindDataFrame(buf, DataLength);
+
+ if (string.IsNullOrEmpty(weight))
+ {
+ return false;
+ }
+
+ weight = ParseData(weight, out isStatic);
+
+ return true;
+ }
+
+ private static string InsertDot(string weight, int dotBits)
+ {
+ string str = weight.TrimStart(new[] {
+ '0'
+ });
+ str = str.Trim();
+
+ if (dotBits > 0)
+ {
+ //str = str.Insert(str.Length - dotBits, ".");
+ if (string.IsNullOrEmpty(str))
+ {
+ str = "0";
+ str = str.Insert(str.Length, ".");
+ for (int i = 0; i < dotBits; i++)
+ {
+ str = str.Insert(str.Length, "0");
+ }
+ }
+ else
+ str = str.Insert(str.Length - dotBits, ".");
+ }
+
+ if (str.IndexOf(".") == 0)
+ {
+ str = str.Insert(0, "0");
+ }
+
+ return str;
+ }
+
+ public override bool ParseAscii(string buf, out string weight, out bool isStatic, out string subStr)
+ {
+ isStatic = false;
+ weight = FindDataFrame(buf, DataLength);
+ subStr = "";
+ if (string.IsNullOrEmpty(weight))
+ {
+ return false;
+ }
+
+ weight = ParseData(weight, out isStatic);
+
+ return true;
+ }
+
+ #region 1.3 验证int奇数偶数
+ ///
+ /// 1.3 验证int奇数偶数
+ ///
+ ///
+ ///
+ public bool isJO(int num)
+ {
+ int a = num % 2;
+ if (a == 0)
+ return true;
+ else
+ return false;
+ }
+ #endregion
+ }
+}
diff --git a/ButcherFactory.Form/Controls/WeightConfig.cs b/ButcherFactory.Form/Controls/WeightConfig.cs
new file mode 100644
index 0000000..4ed6199
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightConfig.cs
@@ -0,0 +1,43 @@
+using ButcherFactory.BO.Utils;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.Controls
+{
+ public class WeightConfig
+ {
+ public string WeightSet { get; set; }
+
+ public string ComSet { get; set; }
+
+ public int? RateSet { get; set; }
+
+ public int? BitSet { get; set; }
+
+ public string Format { get; set; }
+
+ public decimal? Discont { get; set; }
+
+ public int WeightType { get; set; }
+
+ public decimal MinWeight { get; set; }
+
+ public decimal MaxWeight { get; set; }
+
+ public static WeightConfig Init(string flag)
+ {
+ var path = Path.Combine("Config", flag + "WeightConfig.xml");
+ return XmlUtil.DeserializeFromFile(path);
+ }
+
+ public void Save(string flag)
+ {
+ var path = Path.Combine("Config", flag + "WeightConfig.xml");
+ XmlUtil.SerializerObjToFile(this, path);
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/WeightControl.Designer.cs b/ButcherFactory.Form/Controls/WeightControl.Designer.cs
new file mode 100644
index 0000000..474983c
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightControl.Designer.cs
@@ -0,0 +1,131 @@
+namespace ButcherFactory.Controls
+{
+ partial class WeightControl
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.roundPanel1 = new ButcherFactory.Controls.RoundPanel(this.components);
+ this.weightSwitch = new ButcherFactory.Controls.ColorButton();
+ this.settingBtn = new ButcherFactory.Controls.ColorButton();
+ this.roundPanel2 = new ButcherFactory.Controls.RoundPanel(this.components);
+ this.lblChengZhong = new System.Windows.Forms.Label();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // roundPanel1
+ //
+ this.roundPanel1._setRoundRadius = 15;
+ this.roundPanel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.roundPanel1.Controls.Add(this.weightSwitch);
+ this.roundPanel1.Controls.Add(this.settingBtn);
+ this.roundPanel1.Controls.Add(this.roundPanel2);
+ this.roundPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.roundPanel1.Location = new System.Drawing.Point(0, 0);
+ this.roundPanel1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(262, 74);
+ this.roundPanel1.TabIndex = 0;
+ //
+ // weightSwitch
+ //
+ this.weightSwitch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.weightSwitch.Font = new System.Drawing.Font("宋体", 10F);
+ this.weightSwitch.ForeColor = System.Drawing.Color.White;
+ this.weightSwitch.Location = new System.Drawing.Point(167, 40);
+ this.weightSwitch.Name = "weightSwitch";
+ this.weightSwitch.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.weightSwitch.Size = new System.Drawing.Size(92, 32);
+ this.weightSwitch.StateHold = true;
+ this.weightSwitch.TabIndex = 2;
+ this.weightSwitch.Text = "启用称重";
+ this.weightSwitch.UseVisualStyleBackColor = false;
+ this.weightSwitch.Click += new System.EventHandler(this.weightSwitch_Click);
+ //
+ // settingBtn
+ //
+ this.settingBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ this.settingBtn.Font = new System.Drawing.Font("宋体", 10F);
+ this.settingBtn.ForeColor = System.Drawing.Color.White;
+ this.settingBtn.Location = new System.Drawing.Point(167, 1);
+ this.settingBtn.Name = "settingBtn";
+ this.settingBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.settingBtn.Size = new System.Drawing.Size(92, 32);
+ this.settingBtn.TabIndex = 1;
+ this.settingBtn.Text = "称设置";
+ this.settingBtn.UseVisualStyleBackColor = false;
+ this.settingBtn.Click += new System.EventHandler(this.settingBtn_Click);
+ //
+ // roundPanel2
+ //
+ this.roundPanel2._setRoundRadius = 15;
+ this.roundPanel2.BackColor = System.Drawing.Color.Black;
+ this.roundPanel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.roundPanel2.Controls.Add(this.lblChengZhong);
+ this.roundPanel2.Location = new System.Drawing.Point(0, 0);
+ this.roundPanel2.Margin = new System.Windows.Forms.Padding(0);
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(164, 74);
+ this.roundPanel2.TabIndex = 0;
+ //
+ // lblChengZhong
+ //
+ this.lblChengZhong.AutoSize = true;
+ this.lblChengZhong.Font = new System.Drawing.Font("宋体", 25F);
+ this.lblChengZhong.ForeColor = System.Drawing.Color.Red;
+ this.lblChengZhong.Location = new System.Drawing.Point(5, 19);
+ this.lblChengZhong.Margin = new System.Windows.Forms.Padding(0);
+ this.lblChengZhong.Name = "lblChengZhong";
+ this.lblChengZhong.Size = new System.Drawing.Size(83, 34);
+ this.lblChengZhong.TabIndex = 0;
+ this.lblChengZhong.Text = "0.00";
+ //
+ // WeightControl
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.Transparent;
+ this.Controls.Add(this.roundPanel1);
+ this.Name = "WeightControl";
+ this.Size = new System.Drawing.Size(262, 74);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private RoundPanel roundPanel1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label lblChengZhong;
+ private ColorButton weightSwitch;
+ private ColorButton settingBtn;
+ }
+}
diff --git a/ButcherFactory.Form/Controls/WeightControl.cs b/ButcherFactory.Form/Controls/WeightControl.cs
new file mode 100644
index 0000000..0c2cff7
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightControl.cs
@@ -0,0 +1,306 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.IO.Ports;
+using System.Threading;
+using System.Collections.Concurrent;
+using ButcherFactory.Utils;
+
+namespace ButcherFactory.Controls
+{
+ public partial class WeightControl : UserControl
+ {
+ WeightConfig config;
+ SerialPort weightPort;
+ IDataFormat _dataFormat;
+ Thread _inQueryThread;
+ private bool _mainProcessIsRun;
+ readonly StringBuilder _dataStrBuilder = new StringBuilder();
+ private bool switchOn;
+
+ [Browsable(true), Description("称设置标识")]
+ public string WeightFalg { get; set; }
+
+ [Browsable(true), Description("读取到值的事件")]
+ public event Action ReceivedValue;
+
+ [Browsable(false)]
+ public decimal Weight
+ {
+ get
+ {
+ var v = decimal.Parse(lblChengZhong.Text);
+ if (config != null)
+ v -= (config.Discont ?? 0);
+ return v;
+ }
+ }
+
+ public WeightControl()
+ {
+ InitializeComponent();
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ var parentForm = ControlsUtil.GetParentFormm(this);
+ if (parentForm != null)
+ {
+ parentForm.FormClosing += delegate
+ {
+ if (_inQueryThread != null && _inQueryThread.IsAlive)
+ {
+ DisableWeight();
+ }
+ };
+ }
+ }
+
+ private void settingBtn_Click(object sender, EventArgs e)
+ {
+ if (new WeightSettingFrom(WeightFalg).ShowDialog() == DialogResult.OK)
+ config = WeightConfig.Init(WeightFalg);
+ }
+
+ private void weightSwitch_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (config == null)
+ {
+ config = WeightConfig.Init(WeightFalg);
+ WeighAvgControl.config = config;
+ }
+ settingBtn.Enabled = switchOn;
+ switchOn = !switchOn;
+ ChangeWeightBtnState();
+ if (switchOn)
+ {
+ OpenSerialPort();
+ _mainProcessIsRun = true;
+ ReadData();
+ }
+ else
+ {
+ DisableWeight();
+ }
+ }
+ catch
+ {
+ switchOn = !switchOn;
+ settingBtn.Enabled = !switchOn;
+ ChangeWeightBtnState();
+ throw;
+ }
+ finally
+ {
+ this.Focus();
+ }
+ }
+
+ void ChangeWeightBtnState()
+ {
+ if (switchOn)
+ weightSwitch.Text = "停止称重";
+ else
+ weightSwitch.Text = "启用称重";
+ }
+
+ void OpenSerialPort()
+ {
+ if (!switchOn)
+ return;
+ if (config.RateSet == null)
+ throw new Exception("请先配置称相关信息");
+ weightPort = new SerialPort();
+ weightPort.PortName = config.ComSet;
+ weightPort.BaudRate = config.RateSet.Value;
+ weightPort.DataBits = config.BitSet.Value;
+ weightPort.ReadBufferSize = 4096 * 100;
+ if (!string.IsNullOrEmpty(config.Format))
+ format = "{0:{format}}".Replace("{format}", config.Format);
+
+ switch (config.WeightSet)
+ {
+ case "IND560":
+ _dataFormat = new IND560DataFormat();
+ break;
+ case "AHS3000":
+ _dataFormat = new AoHaoSi3000DataFormat();
+ break;
+ case "Xk3124":
+ case "IND231":
+ _dataFormat = new Xk3124DataFormat();
+ break;
+ case "Xk3190A9":
+ _dataFormat = new Xk3190A9DataFormat();
+ break;
+ default:
+ _dataFormat = new Xk3190D10DataFormat();
+ break;
+ }
+ if (!weightPort.IsOpen)
+ {
+ try
+ {
+ weightPort.Open();
+ }
+ catch (InvalidOperationException)
+ {
+ throw new Exception("指定的端口已打开");
+ }
+ catch (UnauthorizedAccessException)
+ {
+ throw new Exception("对端口的访问被拒绝");
+ }
+ }
+ }
+
+ void ReadData()
+ {
+ _inQueryThread = new Thread(InQuery);
+ _inQueryThread.Start();
+ }
+
+ string format = "{0:0.00}";
+
+ private void InQuery()
+ {
+ while (_mainProcessIsRun)
+ {
+ int availableCount = weightPort.BytesToRead;
+ if (availableCount == 0)
+ {
+ Thread.Sleep(10);
+ }
+ char[] buffer = new char[availableCount];
+ weightPort.Read(buffer, 0, availableCount);
+ foreach (var c in buffer)
+ {
+ if (c == _dataFormat.Beginchar)
+ {
+ _dataStrBuilder.Clear();
+ _dataStrBuilder.Append(c);
+ }
+ else if (c == _dataFormat.Endchar || _dataStrBuilder.Length > _dataFormat.Bufsize)
+ {
+ _dataStrBuilder.Append(c);
+ bool isStatic;
+ string str;
+ if (_dataFormat.ParseAscii(_dataStrBuilder.ToString(), out str, out isStatic))
+ {
+ if (config.WeightType == 0)
+ {
+ if (string.IsNullOrEmpty(str))
+ str = "0";
+ this.Invoke(new Action(delegate()
+ {
+ decimal v = 0;
+ decimal.TryParse(str, out v);
+ lblChengZhong.Text = string.Format(format, v);
+ if (str != "0")
+ {
+ if (ReceivedValue != null)
+ ReceivedValue(v - (config.Discont ?? 0));
+ }
+ }));
+ }
+ else
+ {
+ decimal num = 0;
+ if (decimal.TryParse(str, out num))
+ {
+ this.Invoke(new Action(delegate()
+ {
+ lblChengZhong.Text = string.Format(format, num);
+ }));
+ WeighAvgControl.Add(num, isStatic);
+ }
+ if (WeighAvgControl.TryGetValue(out num))
+ {
+ this.Invoke(new Action(delegate()
+ {
+ if (str != "0")
+ {
+ if (ReceivedValue != null)
+ ReceivedValue(num - (config.Discont ?? 0));
+ }
+ }));
+ }
+ }
+ }
+ _dataStrBuilder.Clear();
+ }
+ else
+ {
+ _dataStrBuilder.Append(c);
+ }
+ }
+ }
+ }
+
+ private class WeighAvgControl
+ {
+ public static WeightConfig config;
+ public static bool TryGetValue(out decimal result)
+ {
+ List> list;
+ if (mWeighList.TryDequeue(out list))
+ {
+ var r = list.Where(x => x.Item2).Select(x => x.Item1).GroupBy(x => x);
+ var firstOrDefault = r.OrderByDescending(x => x.Count()).FirstOrDefault();
+ if (firstOrDefault != null)
+ {
+ result = firstOrDefault.Key;
+ return true;
+ }
+ result = 0;
+ return false;
+ }
+ result = 0;
+ return false;
+ }
+
+ static ConcurrentQueue>> mWeighList = new ConcurrentQueue>>();
+
+ static List> _list = new List>();
+
+ public static void Add(decimal value, bool isStatic)
+ {
+ if (value >= config.MinWeight && value <= config.MaxWeight)
+ {
+ _list.Add(new Tuple(value, isStatic));
+ }
+ else
+ {
+ if (_list.Count > 0)
+ {
+ mWeighList.Enqueue(_list);
+ _list = new List>();
+ }
+ }
+ }
+ }
+
+ void DisableWeight()
+ {
+ _mainProcessIsRun = false;
+ lblChengZhong.Text = string.Format(format, 0);
+ format = "{0:0.00}";
+ Thread.Sleep(10);
+ if (_inQueryThread.IsAlive)
+ {
+ _inQueryThread.Abort();
+ }
+ if (weightPort.IsOpen)
+ weightPort.Close();
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/WeightControl.resx b/ButcherFactory.Form/Controls/WeightControl.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightControl.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/Controls/WeightSettingFrom.Designer.cs b/ButcherFactory.Form/Controls/WeightSettingFrom.Designer.cs
new file mode 100644
index 0000000..49c6cfa
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightSettingFrom.Designer.cs
@@ -0,0 +1,305 @@
+namespace ButcherFactory.Controls
+{
+ partial class WeightSettingFrom
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.maxInput = new WinFormControl.UTextBoxWithPad();
+ this.minInput = new WinFormControl.UTextBoxWithPad();
+ this.label8 = new WinFormControl.ULabel();
+ this.weightReadType = new System.Windows.Forms.ComboBox();
+ this.label7 = new WinFormControl.ULabel();
+ this.discont = new WinFormControl.UTextBoxWithPad();
+ this.format = new WinFormControl.UTextBoxWithPad();
+ this.label6 = new WinFormControl.ULabel();
+ this.label5 = new WinFormControl.ULabel();
+ this.bitSet = new System.Windows.Forms.ComboBox();
+ this.rateSet = new System.Windows.Forms.ComboBox();
+ this.comSet = new System.Windows.Forms.ComboBox();
+ this.weightSet = new System.Windows.Forms.ComboBox();
+ this.label4 = new WinFormControl.ULabel();
+ this.label3 = new WinFormControl.ULabel();
+ this.label2 = new WinFormControl.ULabel();
+ this.label1 = new WinFormControl.ULabel();
+ this.saveBtn = new ButcherFactory.Controls.ColorButton();
+ this.closeBtn = new ButcherFactory.Controls.ColorButton();
+ this.SuspendLayout();
+ //
+ // maxInput
+ //
+ this.maxInput.Font = new System.Drawing.Font("宋体", 12F);
+ this.maxInput.Location = new System.Drawing.Point(259, 366);
+ this.maxInput.Name = "maxInput";
+ this.maxInput.Size = new System.Drawing.Size(55, 26);
+ this.maxInput.TabIndex = 84;
+ this.maxInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
+ //
+ // minInput
+ //
+ this.minInput.Font = new System.Drawing.Font("宋体", 12F);
+ this.minInput.Location = new System.Drawing.Point(193, 366);
+ this.minInput.Name = "minInput";
+ this.minInput.Size = new System.Drawing.Size(55, 26);
+ this.minInput.TabIndex = 83;
+ this.minInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.Transparent;
+ this.label8.Font = new System.Drawing.Font("宋体", 15F);
+ this.label8.Location = new System.Drawing.Point(71, 366);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(109, 20);
+ this.label8.TabIndex = 82;
+ this.label8.Text = "有效区间:";
+ //
+ // weightReadType
+ //
+ this.weightReadType.Font = new System.Drawing.Font("宋体", 15F);
+ this.weightReadType.FormattingEnabled = true;
+ this.weightReadType.Location = new System.Drawing.Point(193, 319);
+ this.weightReadType.Name = "weightReadType";
+ this.weightReadType.Size = new System.Drawing.Size(121, 28);
+ this.weightReadType.TabIndex = 81;
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.Transparent;
+ this.label7.Font = new System.Drawing.Font("宋体", 15F);
+ this.label7.Location = new System.Drawing.Point(71, 322);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(109, 20);
+ this.label7.TabIndex = 80;
+ this.label7.Text = "读取方式:";
+ //
+ // discont
+ //
+ this.discont.Font = new System.Drawing.Font("宋体", 14F);
+ this.discont.Location = new System.Drawing.Point(193, 270);
+ this.discont.Name = "discont";
+ this.discont.Size = new System.Drawing.Size(121, 29);
+ this.discont.TabIndex = 79;
+ this.discont.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
+ //
+ // format
+ //
+ this.format.Font = new System.Drawing.Font("宋体", 14F);
+ this.format.Location = new System.Drawing.Point(193, 222);
+ this.format.Name = "format";
+ this.format.Size = new System.Drawing.Size(121, 29);
+ this.format.TabIndex = 78;
+ this.format.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.Transparent;
+ this.label6.Font = new System.Drawing.Font("宋体", 15F);
+ this.label6.Location = new System.Drawing.Point(71, 279);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(69, 20);
+ this.label6.TabIndex = 77;
+ this.label6.Text = "扣重:";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.Transparent;
+ this.label5.Font = new System.Drawing.Font("宋体", 15F);
+ this.label5.Location = new System.Drawing.Point(71, 228);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(109, 20);
+ this.label5.TabIndex = 76;
+ this.label5.Text = "显示格式:";
+ //
+ // bitSet
+ //
+ this.bitSet.Font = new System.Drawing.Font("宋体", 15F);
+ this.bitSet.FormattingEnabled = true;
+ this.bitSet.Location = new System.Drawing.Point(193, 175);
+ this.bitSet.Name = "bitSet";
+ this.bitSet.Size = new System.Drawing.Size(121, 28);
+ this.bitSet.TabIndex = 73;
+ //
+ // rateSet
+ //
+ this.rateSet.Font = new System.Drawing.Font("宋体", 15F);
+ this.rateSet.FormattingEnabled = true;
+ this.rateSet.Location = new System.Drawing.Point(193, 123);
+ this.rateSet.Name = "rateSet";
+ this.rateSet.Size = new System.Drawing.Size(121, 28);
+ this.rateSet.TabIndex = 74;
+ //
+ // comSet
+ //
+ this.comSet.Font = new System.Drawing.Font("宋体", 15F);
+ this.comSet.FormattingEnabled = true;
+ this.comSet.Location = new System.Drawing.Point(193, 73);
+ this.comSet.Name = "comSet";
+ this.comSet.Size = new System.Drawing.Size(121, 28);
+ this.comSet.TabIndex = 75;
+ //
+ // weightSet
+ //
+ this.weightSet.Font = new System.Drawing.Font("宋体", 15F);
+ this.weightSet.FormattingEnabled = true;
+ this.weightSet.Location = new System.Drawing.Point(193, 25);
+ this.weightSet.Name = "weightSet";
+ this.weightSet.Size = new System.Drawing.Size(121, 28);
+ this.weightSet.TabIndex = 72;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.BackColor = System.Drawing.Color.Transparent;
+ this.label4.Font = new System.Drawing.Font("宋体", 15F);
+ this.label4.Location = new System.Drawing.Point(71, 178);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(89, 20);
+ this.label4.TabIndex = 71;
+ this.label4.Text = "数据位:";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.Transparent;
+ this.label3.Font = new System.Drawing.Font("宋体", 15F);
+ this.label3.Location = new System.Drawing.Point(71, 126);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(89, 20);
+ this.label3.TabIndex = 70;
+ this.label3.Text = "波特率:";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("宋体", 15F);
+ this.label2.Location = new System.Drawing.Point(71, 76);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(89, 20);
+ this.label2.TabIndex = 69;
+ this.label2.Text = "端口号:";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("宋体", 15F);
+ this.label1.Location = new System.Drawing.Point(71, 28);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(89, 20);
+ this.label1.TabIndex = 68;
+ this.label1.Text = "称型号:";
+ //
+ // saveBtn
+ //
+ this.saveBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
+ this.saveBtn.Font = new System.Drawing.Font("宋体", 12F);
+ this.saveBtn.ForeColor = System.Drawing.Color.White;
+ this.saveBtn.Location = new System.Drawing.Point(95, 426);
+ this.saveBtn.Name = "saveBtn";
+ this.saveBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.saveBtn.Size = new System.Drawing.Size(84, 35);
+ this.saveBtn.TabIndex = 85;
+ this.saveBtn.Text = "保存";
+ this.saveBtn.UseVisualStyleBackColor = false;
+ this.saveBtn.Click += new System.EventHandler(this.saveBtn_Click);
+ //
+ // closeBtn
+ //
+ this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.closeBtn.Font = new System.Drawing.Font("宋体", 12F);
+ this.closeBtn.ForeColor = System.Drawing.Color.White;
+ this.closeBtn.Location = new System.Drawing.Point(224, 426);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.closeBtn.Size = new System.Drawing.Size(84, 35);
+ this.closeBtn.TabIndex = 85;
+ this.closeBtn.Text = "关闭";
+ this.closeBtn.UseVisualStyleBackColor = false;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // WeightSettingFrom
+ //
+ 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(391, 481);
+ this.ControlBox = false;
+ this.Controls.Add(this.closeBtn);
+ this.Controls.Add(this.saveBtn);
+ this.Controls.Add(this.maxInput);
+ this.Controls.Add(this.minInput);
+ this.Controls.Add(this.label8);
+ this.Controls.Add(this.weightReadType);
+ this.Controls.Add(this.label7);
+ this.Controls.Add(this.discont);
+ this.Controls.Add(this.format);
+ this.Controls.Add(this.label6);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.bitSet);
+ this.Controls.Add(this.rateSet);
+ this.Controls.Add(this.comSet);
+ this.Controls.Add(this.weightSet);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.Name = "WeightSettingFrom";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "称设置";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private WinFormControl.UTextBoxWithPad maxInput;
+ private WinFormControl.UTextBoxWithPad minInput;
+ private WinFormControl.ULabel label8;
+ private System.Windows.Forms.ComboBox weightReadType;
+ private WinFormControl.ULabel label7;
+ private WinFormControl.UTextBoxWithPad discont;
+ private WinFormControl.UTextBoxWithPad format;
+ private WinFormControl.ULabel label6;
+ private WinFormControl.ULabel label5;
+ private System.Windows.Forms.ComboBox bitSet;
+ private System.Windows.Forms.ComboBox rateSet;
+ private System.Windows.Forms.ComboBox comSet;
+ private System.Windows.Forms.ComboBox weightSet;
+ private WinFormControl.ULabel label4;
+ private WinFormControl.ULabel label3;
+ private WinFormControl.ULabel label2;
+ private WinFormControl.ULabel label1;
+ private ColorButton saveBtn;
+ private ColorButton closeBtn;
+ }
+}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Controls/WeightSettingFrom.cs b/ButcherFactory.Form/Controls/WeightSettingFrom.cs
new file mode 100644
index 0000000..c3f471d
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightSettingFrom.cs
@@ -0,0 +1,104 @@
+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 ButcherFactory.Controls
+{
+ public partial class WeightSettingFrom : Form
+ {
+ List weight = new List { "IND560", "Xk3124", "Xk3190A9", "Xk3190D10", "IND231", "AHS3000" };
+ List com = new List { "COM1", "COM2", "COM3", "COM4", "COM5" };
+ List rate = new List { "1200", "2400", "4800", "7200", "9600" };
+ List bit = new List { "5", "6", "7", "8" };
+ List weightRead = new List { "稳定读取", "连续发送" };
+ string _flag;
+ WeightConfig config;
+
+ public WeightSettingFrom(string flag)
+ {
+ this._flag = flag;
+ InitializeComponent();
+ weightSet.DataSource = weight;
+ comSet.DataSource = com;
+ rateSet.DataSource = rate;
+ bitSet.DataSource = bit;
+ weightReadType.DataSource = weightRead;
+ config = WeightConfig.Init(flag);
+ if (!string.IsNullOrEmpty(config.WeightSet))
+ weightSet.SelectedIndex = weight.IndexOf(config.WeightSet);
+ else
+ weightSet.SelectedIndex = 0;
+ if (!string.IsNullOrEmpty(config.ComSet))
+ comSet.SelectedIndex = com.IndexOf(config.ComSet);
+ else
+ comSet.SelectedIndex = 0;
+ if (config.RateSet.HasValue)
+ rateSet.SelectedIndex = rate.IndexOf(config.RateSet.ToString());
+ else
+ rateSet.SelectedIndex = 2;
+ if (config.BitSet.HasValue)
+ bitSet.SelectedIndex = bit.IndexOf(config.BitSet.ToString());
+ else
+ bitSet.SelectedIndex = 3;
+ if (string.IsNullOrEmpty(config.Format))
+ format.Text = "0.00";
+ else
+ format.Text = config.Format;
+ if (config.Discont == null)
+ discont.Text = "0.00";
+ else
+ discont.Text = config.Discont.ToString();
+ weightReadType.SelectedIndex = config.WeightType;
+ minInput.Text = config.MinWeight.ToString();
+ maxInput.Text = config.MaxWeight.ToString();
+ }
+
+ bool changed;
+ private void saveBtn_Click(object sender, EventArgs e)
+ {
+ config.WeightSet = weight[this.weightSet.SelectedIndex];
+ config.ComSet = com[this.comSet.SelectedIndex];
+ config.RateSet = int.Parse(rate[this.rateSet.SelectedIndex]);
+ config.BitSet = int.Parse(bit[this.bitSet.SelectedIndex]);
+ config.Format = format.Text;
+ config.WeightType = weightReadType.SelectedIndex;
+ if (config.WeightType == 1)
+ {
+ decimal min = 0;
+ decimal max = 0;
+ if (!decimal.TryParse(minInput.Text.Trim(), out min))
+ throw new Exception("连续发送时 必须输入有效区间");
+ if (!decimal.TryParse(maxInput.Text.Trim(), out max))
+ throw new Exception("连续发送时 必须输入有效区间");
+ config.MinWeight = min;
+ config.MaxWeight = max;
+ }
+ if (!string.IsNullOrEmpty(discont.Text))
+ {
+ decimal v;
+ if (decimal.TryParse(discont.Text, out v))
+ config.Discont = v;
+ else
+ throw new Exception("扣重格式输入不正确");
+ }
+ else
+ config.Discont = 0;
+ config.Save(_flag);
+ changed = true;
+ MessageBox.Show("保存成功!");
+ }
+
+ private void closeBtn_Click(object sender, EventArgs e)
+ {
+ if (changed)
+ DialogResult = DialogResult.OK;
+ Close();
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Controls/WeightSettingFrom.resx b/ButcherFactory.Form/Controls/WeightSettingFrom.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/ButcherFactory.Form/Controls/WeightSettingFrom.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.Designer.cs b/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.Designer.cs
index 14f07db..b40ec7c 100644
--- a/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.Designer.cs
+++ b/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.Designer.cs
@@ -28,10 +28,9 @@
///
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ClientGoodsSetDialog));
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
- this.closeBtn = new WinFormControl.UButton();
+ this.colseBtn = new ButcherFactory.Controls.ColorButton();
this.SuspendLayout();
//
// flowLayoutPanel2
@@ -55,28 +54,20 @@
this.flowLayoutPanel1.Size = new System.Drawing.Size(797, 70);
this.flowLayoutPanel1.TabIndex = 22;
//
- // closeBtn
+ // colseBtn
//
- this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.closeBtn.AsClicked = false;
- this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage")));
- this.closeBtn.EnableGroup = false;
- this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.closeBtn.FlatAppearance.BorderSize = 0;
- this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.closeBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.closeBtn.ForeColor = System.Drawing.Color.Black;
- this.closeBtn.Location = new System.Drawing.Point(696, 2);
- this.closeBtn.Name = "closeBtn";
- this.closeBtn.PlaySound = false;
- this.closeBtn.SelfControlEnable = false;
- this.closeBtn.Size = new System.Drawing.Size(111, 34);
- this.closeBtn.SoundType = WinFormControl.SoundType.Click;
- this.closeBtn.TabIndex = 26;
- this.closeBtn.Text = "关闭";
- this.closeBtn.UseVisualStyleBackColor = true;
- this.closeBtn.WithStataHode = false;
- this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ this.colseBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.colseBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.colseBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.colseBtn.ForeColor = System.Drawing.Color.White;
+ this.colseBtn.Location = new System.Drawing.Point(696, 2);
+ this.colseBtn.Name = "colseBtn";
+ this.colseBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.colseBtn.Size = new System.Drawing.Size(111, 44);
+ this.colseBtn.TabIndex = 27;
+ this.colseBtn.Text = "关闭";
+ this.colseBtn.UseVisualStyleBackColor = false;
+ this.colseBtn.Click += new System.EventHandler(this.closeBtn_Click);
//
// ClientGoodsSetDialog
//
@@ -84,7 +75,7 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(819, 533);
- this.Controls.Add(this.closeBtn);
+ this.Controls.Add(this.colseBtn);
this.Controls.Add(this.flowLayoutPanel2);
this.Controls.Add(this.flowLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
@@ -100,6 +91,6 @@
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
- private WinFormControl.UButton closeBtn;
+ private Controls.ColorButton colseBtn;
}
}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.cs b/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.cs
index 54858c5..508443b 100644
--- a/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.cs
+++ b/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.cs
@@ -1,5 +1,6 @@
using ButcherFactory.BO;
using ButcherFactory.BO.LocalBL;
+using ButcherFactory.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -9,7 +10,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-using WinFormControl;
namespace ButcherFactory.Dialogs
{
@@ -28,22 +28,23 @@ namespace ButcherFactory.Dialogs
foreach (var item in goodsSetDic)
{
- var btn = new UButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), WithStataHode = true, EnableGroup = true };
+ var btn = new ColorButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), EnableGroup = true };
btn.Click += GroupBtnClick;
flowLayoutPanel1.Controls.Add(btn);
}
}
+ Color goodsColor = Color.FromArgb(250, 120, 24);
void GroupBtnClick(object sender, EventArgs e)
{
flowLayoutPanel2.Controls.Clear();
- var groupBtn = sender as UButton;
+ var groupBtn = sender as ColorButton;
var arr = goodsSetDic[groupBtn.Text];
foreach (var item in arr)
{
- var btn = new UButton() { Width = 127, Height = 75, Text = item.Goods_Name, Tag = item, Font = new Font("宋体", 15), Margin = new Padding(20, 10, 20, 35), PlaySound = true, WithStataHode = true };
+ var btn = new ColorButton() { Width = 127, Height = 75, Text = item.Goods_Name, Tag = item, Font = new Font("宋体", 15), BackColor = goodsColor, Margin = new Padding(20, 10, 20, 35), PlaySound = true, StateHold = true };
if (item.Selected)
- btn.AsClicked = true;
+ btn.Selected = true;
btn.Click += GoodsBtnClick;
flowLayoutPanel2.Controls.Add(btn);
}
@@ -51,7 +52,7 @@ namespace ButcherFactory.Dialogs
void GoodsBtnClick(object sender, EventArgs e)
{
- var btn = sender as UButton;
+ var btn = sender as ColorButton;
var detail = btn.Tag as ClientGoodsSet_Detail;
if (detail.Selected)
FormClientGoodsSetBL.DeleteWorkGoodsSet(detail.ID);
diff --git a/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.resx b/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.resx
index 9fb99cf..1af7de1 100644
--- a/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.resx
+++ b/ButcherFactory.Form/Dialogs/ClientGoodsSetDialog.resx
@@ -117,13 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/SelectBillStateDialog.Designer.cs b/ButcherFactory.Form/Dialogs/SelectBillStateDialog.Designer.cs
index 673a0ea..9648a23 100644
--- a/ButcherFactory.Form/Dialogs/SelectBillStateDialog.Designer.cs
+++ b/ButcherFactory.Form/Dialogs/SelectBillStateDialog.Designer.cs
@@ -28,104 +28,75 @@
///
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SelectBillStateDialog));
- this.uButton1 = new WinFormControl.UButton();
- this.uButton2 = new WinFormControl.UButton();
- this.uButton3 = new WinFormControl.UButton();
- this.uButton4 = new WinFormControl.UButton();
+ this.colorButton4 = new ButcherFactory.Controls.ColorButton();
+ this.colorButton3 = new ButcherFactory.Controls.ColorButton();
+ this.colorButton2 = new ButcherFactory.Controls.ColorButton();
+ this.colorButton1 = new ButcherFactory.Controls.ColorButton();
this.SuspendLayout();
//
- // uButton1
+ // colorButton4
//
- this.uButton1.AsClicked = false;
- this.uButton1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("uButton1.BackgroundImage")));
- this.uButton1.EnableGroup = false;
- this.uButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.uButton1.FlatAppearance.BorderSize = 0;
- this.uButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.uButton1.Font = new System.Drawing.Font("宋体", 12F);
- this.uButton1.ForeColor = System.Drawing.Color.Black;
- this.uButton1.Location = new System.Drawing.Point(63, 36);
- this.uButton1.Name = "uButton1";
- this.uButton1.PlaySound = false;
- this.uButton1.SelfControlEnable = false;
- this.uButton1.Size = new System.Drawing.Size(120, 75);
- this.uButton1.SoundType = WinFormControl.SoundType.Click;
- this.uButton1.TabIndex = 0;
- this.uButton1.Tag = "0";
- this.uButton1.Text = "未审核";
- this.uButton1.UseVisualStyleBackColor = true;
- this.uButton1.WithStataHode = false;
- this.uButton1.Click += new System.EventHandler(this.BtnClick);
+ this.colorButton4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.colorButton4.Font = new System.Drawing.Font("宋体", 15F);
+ this.colorButton4.ForeColor = System.Drawing.Color.White;
+ this.colorButton4.Location = new System.Drawing.Point(255, 151);
+ this.colorButton4.Name = "colorButton4";
+ this.colorButton4.Radius = 12;
+ this.colorButton4.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.colorButton4.Size = new System.Drawing.Size(120, 75);
+ this.colorButton4.TabIndex = 7;
+ this.colorButton4.Tag = "1";
+ this.colorButton4.Text = "已作废";
+ this.colorButton4.UseVisualStyleBackColor = false;
+ this.colorButton4.Click += new System.EventHandler(this.BtnClick);
//
- // uButton2
+ // colorButton3
//
- this.uButton2.AsClicked = false;
- this.uButton2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("uButton2.BackgroundImage")));
- this.uButton2.EnableGroup = false;
- this.uButton2.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.uButton2.FlatAppearance.BorderSize = 0;
- this.uButton2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.uButton2.Font = new System.Drawing.Font("宋体", 12F);
- this.uButton2.ForeColor = System.Drawing.Color.Black;
- this.uButton2.Location = new System.Drawing.Point(255, 36);
- this.uButton2.Name = "uButton2";
- this.uButton2.PlaySound = false;
- this.uButton2.SelfControlEnable = false;
- this.uButton2.Size = new System.Drawing.Size(120, 75);
- this.uButton2.SoundType = WinFormControl.SoundType.Click;
- this.uButton2.TabIndex = 1;
- this.uButton2.Tag = "20";
- this.uButton2.Text = "已审核";
- this.uButton2.UseVisualStyleBackColor = true;
- this.uButton2.WithStataHode = false;
- this.uButton2.Click += new System.EventHandler(this.BtnClick);
+ this.colorButton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.colorButton3.Font = new System.Drawing.Font("宋体", 15F);
+ this.colorButton3.ForeColor = System.Drawing.Color.White;
+ this.colorButton3.Location = new System.Drawing.Point(63, 151);
+ this.colorButton3.Name = "colorButton3";
+ this.colorButton3.Radius = 12;
+ this.colorButton3.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.colorButton3.Size = new System.Drawing.Size(120, 75);
+ this.colorButton3.TabIndex = 6;
+ this.colorButton3.Tag = "30";
+ this.colorButton3.Text = "已完毕";
+ this.colorButton3.UseVisualStyleBackColor = false;
+ this.colorButton3.Click += new System.EventHandler(this.BtnClick);
//
- // uButton3
+ // colorButton2
//
- this.uButton3.AsClicked = false;
- this.uButton3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("uButton3.BackgroundImage")));
- this.uButton3.EnableGroup = false;
- this.uButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.uButton3.FlatAppearance.BorderSize = 0;
- this.uButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.uButton3.Font = new System.Drawing.Font("宋体", 12F);
- this.uButton3.ForeColor = System.Drawing.Color.Black;
- this.uButton3.Location = new System.Drawing.Point(63, 151);
- this.uButton3.Name = "uButton3";
- this.uButton3.PlaySound = false;
- this.uButton3.SelfControlEnable = false;
- this.uButton3.Size = new System.Drawing.Size(120, 75);
- this.uButton3.SoundType = WinFormControl.SoundType.Click;
- this.uButton3.TabIndex = 2;
- this.uButton3.Tag = "30";
- this.uButton3.Text = "已完毕";
- this.uButton3.UseVisualStyleBackColor = true;
- this.uButton3.WithStataHode = false;
- this.uButton3.Click += new System.EventHandler(this.BtnClick);
+ this.colorButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.colorButton2.Font = new System.Drawing.Font("宋体", 15F);
+ this.colorButton2.ForeColor = System.Drawing.Color.White;
+ this.colorButton2.Location = new System.Drawing.Point(255, 36);
+ this.colorButton2.Name = "colorButton2";
+ this.colorButton2.Radius = 12;
+ this.colorButton2.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.colorButton2.Size = new System.Drawing.Size(120, 75);
+ this.colorButton2.TabIndex = 5;
+ this.colorButton2.Tag = "20";
+ this.colorButton2.Text = "已审核";
+ this.colorButton2.UseVisualStyleBackColor = false;
+ this.colorButton2.Click += new System.EventHandler(this.BtnClick);
//
- // uButton4
+ // colorButton1
//
- this.uButton4.AsClicked = false;
- this.uButton4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("uButton4.BackgroundImage")));
- this.uButton4.EnableGroup = false;
- this.uButton4.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.uButton4.FlatAppearance.BorderSize = 0;
- this.uButton4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.uButton4.Font = new System.Drawing.Font("宋体", 12F);
- this.uButton4.ForeColor = System.Drawing.Color.Black;
- this.uButton4.Location = new System.Drawing.Point(255, 151);
- this.uButton4.Name = "uButton4";
- this.uButton4.PlaySound = false;
- this.uButton4.SelfControlEnable = false;
- this.uButton4.Size = new System.Drawing.Size(120, 75);
- this.uButton4.SoundType = WinFormControl.SoundType.Click;
- this.uButton4.TabIndex = 3;
- this.uButton4.Tag = "1";
- this.uButton4.Text = "已作废";
- this.uButton4.UseVisualStyleBackColor = true;
- this.uButton4.WithStataHode = false;
- this.uButton4.Click += new System.EventHandler(this.BtnClick);
+ this.colorButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.colorButton1.Font = new System.Drawing.Font("宋体", 15F);
+ this.colorButton1.ForeColor = System.Drawing.Color.White;
+ this.colorButton1.Location = new System.Drawing.Point(63, 36);
+ this.colorButton1.Name = "colorButton1";
+ this.colorButton1.Radius = 12;
+ this.colorButton1.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.colorButton1.Size = new System.Drawing.Size(120, 75);
+ this.colorButton1.TabIndex = 4;
+ this.colorButton1.Tag = "0";
+ this.colorButton1.Text = "未审核";
+ this.colorButton1.UseVisualStyleBackColor = false;
+ this.colorButton1.Click += new System.EventHandler(this.BtnClick);
//
// SelectBillStateDialog
//
@@ -134,10 +105,10 @@
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(445, 263);
this.ControlBox = false;
- this.Controls.Add(this.uButton4);
- this.Controls.Add(this.uButton3);
- this.Controls.Add(this.uButton2);
- this.Controls.Add(this.uButton1);
+ this.Controls.Add(this.colorButton4);
+ this.Controls.Add(this.colorButton3);
+ this.Controls.Add(this.colorButton2);
+ this.Controls.Add(this.colorButton1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "SelectBillStateDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
@@ -148,9 +119,9 @@
#endregion
- private WinFormControl.UButton uButton1;
- private WinFormControl.UButton uButton2;
- private WinFormControl.UButton uButton3;
- private WinFormControl.UButton uButton4;
+ private Controls.ColorButton colorButton1;
+ private Controls.ColorButton colorButton2;
+ private Controls.ColorButton colorButton3;
+ private Controls.ColorButton colorButton4;
}
}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/SelectBillStateDialog.cs b/ButcherFactory.Form/Dialogs/SelectBillStateDialog.cs
index 205cf2d..abd08ee 100644
--- a/ButcherFactory.Form/Dialogs/SelectBillStateDialog.cs
+++ b/ButcherFactory.Form/Dialogs/SelectBillStateDialog.cs
@@ -1,4 +1,5 @@
-using System;
+using ButcherFactory.Controls;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -7,7 +8,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-using WinFormControl;
namespace ButcherFactory.Dialogs
{
@@ -21,7 +21,7 @@ namespace ButcherFactory.Dialogs
void BtnClick(object sender, EventArgs e)
{
- var btn = sender as UButton;
+ var btn = sender as ColorButton;
Result = new Tuple(btn.Text, Convert.ToInt32(btn.Tag));
DialogResult = DialogResult.OK;
this.Close();
diff --git a/ButcherFactory.Form/Dialogs/SelectBillStateDialog.resx b/ButcherFactory.Form/Dialogs/SelectBillStateDialog.resx
index b261e23..1af7de1 100644
--- a/ButcherFactory.Form/Dialogs/SelectBillStateDialog.resx
+++ b/ButcherFactory.Form/Dialogs/SelectBillStateDialog.resx
@@ -117,37 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/SelectCustomerDialog.Designer.cs b/ButcherFactory.Form/Dialogs/SelectCustomerDialog.Designer.cs
index 5b3e6aa..aa7198b 100644
--- a/ButcherFactory.Form/Dialogs/SelectCustomerDialog.Designer.cs
+++ b/ButcherFactory.Form/Dialogs/SelectCustomerDialog.Designer.cs
@@ -28,16 +28,15 @@
///
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SelectCustomerDialog));
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
this.textBox1 = new System.Windows.Forms.TextBox();
- this.uButton1 = new WinFormControl.UButton();
- this.searchBtn = new WinFormControl.UButton();
this.panel1 = new System.Windows.Forms.Panel();
this.flowLayoutPanel5 = new System.Windows.Forms.FlowLayoutPanel();
+ this.searchBtn = new ButcherFactory.Controls.ColorButton();
+ this.backBtn = new ButcherFactory.Controls.ColorButton();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
@@ -81,58 +80,14 @@
this.textBox1.Size = new System.Drawing.Size(194, 29);
this.textBox1.TabIndex = 4;
//
- // uButton1
- //
- this.uButton1.AsClicked = false;
- this.uButton1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("uButton1.BackgroundImage")));
- this.uButton1.EnableGroup = false;
- this.uButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.uButton1.FlatAppearance.BorderSize = 0;
- this.uButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.uButton1.Font = new System.Drawing.Font("宋体", 12F);
- this.uButton1.ForeColor = System.Drawing.Color.Black;
- this.uButton1.Location = new System.Drawing.Point(358, 10);
- this.uButton1.Name = "uButton1";
- this.uButton1.PlaySound = false;
- this.uButton1.SelfControlEnable = false;
- this.uButton1.Size = new System.Drawing.Size(80, 30);
- this.uButton1.SoundType = WinFormControl.SoundType.Click;
- this.uButton1.TabIndex = 5;
- this.uButton1.Text = "退格";
- this.uButton1.UseVisualStyleBackColor = true;
- this.uButton1.WithStataHode = false;
- this.uButton1.Click += new System.EventHandler(this.uButton1_Click);
- //
- // searchBtn
- //
- this.searchBtn.AsClicked = false;
- this.searchBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("searchBtn.BackgroundImage")));
- this.searchBtn.EnableGroup = false;
- this.searchBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.searchBtn.FlatAppearance.BorderSize = 0;
- this.searchBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.searchBtn.Font = new System.Drawing.Font("宋体", 12F);
- this.searchBtn.ForeColor = System.Drawing.Color.Black;
- this.searchBtn.Location = new System.Drawing.Point(235, 10);
- this.searchBtn.Name = "searchBtn";
- this.searchBtn.PlaySound = false;
- this.searchBtn.SelfControlEnable = false;
- this.searchBtn.Size = new System.Drawing.Size(80, 30);
- this.searchBtn.SoundType = WinFormControl.SoundType.Click;
- this.searchBtn.TabIndex = 6;
- this.searchBtn.Text = "检索";
- this.searchBtn.UseVisualStyleBackColor = true;
- this.searchBtn.WithStataHode = false;
- this.searchBtn.Click += new System.EventHandler(this.searchBtn_Click);
- //
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.panel1.Controls.Add(this.backBtn);
+ this.panel1.Controls.Add(this.searchBtn);
this.panel1.Controls.Add(this.flowLayoutPanel5);
this.panel1.Controls.Add(this.textBox1);
- this.panel1.Controls.Add(this.searchBtn);
this.panel1.Controls.Add(this.flowLayoutPanel2);
- this.panel1.Controls.Add(this.uButton1);
this.panel1.Controls.Add(this.flowLayoutPanel3);
this.panel1.Controls.Add(this.flowLayoutPanel4);
this.panel1.Location = new System.Drawing.Point(2, 260);
@@ -147,6 +102,34 @@
this.flowLayoutPanel5.Size = new System.Drawing.Size(1034, 54);
this.flowLayoutPanel5.TabIndex = 7;
//
+ // searchBtn
+ //
+ this.searchBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
+ this.searchBtn.Font = new System.Drawing.Font("宋体", 12F);
+ this.searchBtn.ForeColor = System.Drawing.Color.White;
+ this.searchBtn.Location = new System.Drawing.Point(241, 11);
+ this.searchBtn.Name = "searchBtn";
+ this.searchBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.searchBtn.Size = new System.Drawing.Size(80, 30);
+ this.searchBtn.TabIndex = 8;
+ this.searchBtn.Text = "查询";
+ this.searchBtn.UseVisualStyleBackColor = false;
+ this.searchBtn.Click += new System.EventHandler(this.searchBtn_Click);
+ //
+ // backBtn
+ //
+ this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.backBtn.Font = new System.Drawing.Font("宋体", 12F);
+ this.backBtn.ForeColor = System.Drawing.Color.White;
+ this.backBtn.Location = new System.Drawing.Point(360, 11);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.backBtn.Size = new System.Drawing.Size(80, 30);
+ this.backBtn.TabIndex = 9;
+ this.backBtn.Text = "退格";
+ this.backBtn.UseVisualStyleBackColor = false;
+ this.backBtn.Click += new System.EventHandler(this.uButton1_Click);
+ //
// SelectCustomerDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -173,9 +156,9 @@
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4;
private System.Windows.Forms.TextBox textBox1;
- private WinFormControl.UButton uButton1;
- private WinFormControl.UButton searchBtn;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel5;
+ private Controls.ColorButton searchBtn;
+ private Controls.ColorButton backBtn;
}
}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/SelectCustomerDialog.cs b/ButcherFactory.Form/Dialogs/SelectCustomerDialog.cs
index e8bea04..4eb4677 100644
--- a/ButcherFactory.Form/Dialogs/SelectCustomerDialog.cs
+++ b/ButcherFactory.Form/Dialogs/SelectCustomerDialog.cs
@@ -1,4 +1,5 @@
using ButcherFactory.BO.LocalBL;
+using ButcherFactory.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -8,7 +9,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-using WinFormControl;
namespace ButcherFactory.Dialogs
{
@@ -21,6 +21,9 @@ namespace ButcherFactory.Dialogs
InitKeyBoard();
}
+ Color numberColor = Color.FromArgb(250, 120, 24);
+ Color simpleColor = Color.FromArgb(77, 135, 245);
+
void InitKeyBoard()
{
var chars = new char[][] {
@@ -34,7 +37,8 @@ namespace ButcherFactory.Dialogs
{
foreach (var c in v)
{
- var btn = new UButton() { Width = 80, Height = 50, Text = c.ToString(), Font = new Font("宋体", 15), Margin = new Padding(10) };
+ var btn = new ColorButton() { Width = 80, Height = 50, Text = c.ToString(), Font = new Font("宋体", 15), Margin = new Padding(10, 0, 10, 0) };
+ btn.BackColor = idx == 0 ? numberColor : simpleColor;
btn.Click += CharClick;
panel[idx].Controls.Add(btn);
}
@@ -44,7 +48,7 @@ namespace ButcherFactory.Dialogs
void CharClick(object sender, EventArgs e)
{
- textBox1.Text += ((UButton)sender).Text;
+ textBox1.Text += ((ColorButton)sender).Text;
}
private void uButton1_Click(object sender, EventArgs e)
@@ -53,6 +57,7 @@ namespace ButcherFactory.Dialogs
textBox1.Text = textBox1.Text.Substring(0, textBox1.Text.Length - 1);
}
+ Color customerColor = Color.FromArgb(144, 98, 222);
void InitCustomerBtn()
{
flowLayoutPanel1.Controls.Clear();
@@ -61,7 +66,7 @@ namespace ButcherFactory.Dialogs
var customers = DialogBL.GetCustomerList(textBox1.Text.ToLower());
foreach (var item in customers)
{
- var btn = new UButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, Font = new Font("宋体", 10), Margin = new Padding(12) };
+ var btn = new ColorButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, BackColor = customerColor, Font = new Font("宋体", 10), Margin = new Padding(12) };
btn.Click += CustomerClick;
flowLayoutPanel1.Controls.Add(btn);
}
@@ -69,7 +74,7 @@ namespace ButcherFactory.Dialogs
void CustomerClick(object sender, EventArgs e)
{
- var btn = sender as UButton;
+ var btn = sender as ColorButton;
Result = new Tuple(btn.Text, Convert.ToInt64(btn.Tag));
DialogResult = DialogResult.OK;
this.Close();
diff --git a/ButcherFactory.Form/Dialogs/SelectCustomerDialog.resx b/ButcherFactory.Form/Dialogs/SelectCustomerDialog.resx
index b153618..1af7de1 100644
--- a/ButcherFactory.Form/Dialogs/SelectCustomerDialog.resx
+++ b/ButcherFactory.Form/Dialogs/SelectCustomerDialog.resx
@@ -117,21 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/SelectDeliverGoodsLineDialog.cs b/ButcherFactory.Form/Dialogs/SelectDeliverGoodsLineDialog.cs
index 129c604..8dab6f4 100644
--- a/ButcherFactory.Form/Dialogs/SelectDeliverGoodsLineDialog.cs
+++ b/ButcherFactory.Form/Dialogs/SelectDeliverGoodsLineDialog.cs
@@ -1,5 +1,6 @@
using ButcherFactory.BO;
using ButcherFactory.BO.LocalBL;
+using ButcherFactory.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -9,7 +10,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-using WinFormControl;
namespace ButcherFactory.Dialogs
{
@@ -20,7 +20,7 @@ namespace ButcherFactory.Dialogs
IEnumerable list;
public SelectDeliverGoodsLineDialog()
{
- InitializeComponent();
+ InitializeComponent();
list = DialogBL.GetDeliverGoodsLineList();
tabControl1.Selected += tabControl_Selected;
foreach (var c in list.GroupBy(x => x.StringExt2))
@@ -37,6 +37,7 @@ namespace ButcherFactory.Dialogs
AddButtons(tabControl1.SelectedTab);
}
+ Color color = Color.FromArgb(250, 120, 24);
private void AddButtons(TabPage tabPage)
{
tabPage.BackColor = Color.White;
@@ -44,7 +45,7 @@ namespace ButcherFactory.Dialogs
var arr = list.Where(x => x.StringExt2 == tabPage.Text);
foreach (var item in arr)
{
- var btn = new UButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, Font = new Font("宋体", 10), Margin = new Padding(12) };
+ var btn = new ColorButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, BackColor = color, Font = new Font("宋体", 10), Margin = new Padding(12) };
btn.Click += btnClick;
flw.Controls.Add(btn);
}
@@ -53,7 +54,7 @@ namespace ButcherFactory.Dialogs
private void btnClick(object sender, EventArgs e)
{
- var btn = sender as UButton;
+ var btn = sender as ColorButton;
Result = new Tuple(btn.Text, Convert.ToInt64(btn.Tag));
DialogResult = DialogResult.OK;
this.Close();
diff --git a/ButcherFactory.Form/Dialogs/SelectStoreDialog.cs b/ButcherFactory.Form/Dialogs/SelectStoreDialog.cs
index 1ba30be..ffe0b06 100644
--- a/ButcherFactory.Form/Dialogs/SelectStoreDialog.cs
+++ b/ButcherFactory.Form/Dialogs/SelectStoreDialog.cs
@@ -1,4 +1,5 @@
using ButcherFactory.BO.LocalBL;
+using ButcherFactory.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -8,7 +9,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-using WinFormControl;
namespace ButcherFactory.Dialogs
{
@@ -20,18 +20,19 @@ namespace ButcherFactory.Dialogs
InitializeComponent();
var stores = DialogBL.GetStoreList();
var flw = new FlowLayoutPanel() { Dock = DockStyle.Fill };
+ Color color = Color.FromArgb(77, 135, 245);
foreach (var item in stores)
{
- var btn = new UButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, Font = new Font("宋体", 10), Margin = new Padding(12) };
+ var btn = new ColorButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, BackColor = color, Font = new Font("宋体", 10), Margin = new Padding(12) };
btn.Click += BtnClick;
flw.Controls.Add(btn);
}
- this.Controls.Add(flw);
+ this.Controls.Add(flw);
}
private void BtnClick(object sender, EventArgs e)
{
- var btn = sender as UButton;
+ var btn = sender as ColorButton;
Result = new Tuple(btn.Text, Convert.ToInt64(btn.Tag));
DialogResult = DialogResult.OK;
this.Close();
diff --git a/ButcherFactory.Form/Properties/Resources.Designer.cs b/ButcherFactory.Form/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..689a32f
--- /dev/null
+++ b/ButcherFactory.Form/Properties/Resources.Designer.cs
@@ -0,0 +1,73 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace ButcherFactory.Properties {
+ using System;
+
+
+ ///
+ /// 一个强类型的资源类,用于查找本地化的字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// 返回此类使用的缓存的 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ButcherFactory.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 使用此强类型资源类,为所有资源查找
+ /// 重写当前线程的 CurrentUICulture 属性。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap closeImg {
+ get {
+ object obj = ResourceManager.GetObject("closeImg", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Properties/Resources.resx b/ButcherFactory.Form/Properties/Resources.resx
new file mode 100644
index 0000000..3893dee
--- /dev/null
+++ b/ButcherFactory.Form/Properties/Resources.resx
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ ..\Resources\closeImg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/Resources/closeImg.png b/ButcherFactory.Form/Resources/closeImg.png
new file mode 100644
index 0000000000000000000000000000000000000000..2b4ef46591b5378d80edf270a8bfd0238ccde854
GIT binary patch
literal 3236
zcmaJ^X*iU7AJ!3NJ1rza#-Kx%nK4;rG>9Q&YmhB6W(I><%#39yOUX`TNzr006rxbJ
z5y={|ryz(mxF^tz{n7ZVy{Pc
z-o4!HuO_%Ci@k`_^lfRDBv+arnu6mvg(bP*07e9~8xDm-W9i;4xRV?loX7B1wlrH)
z6F7!MP)6@yl>G^0Hk*Uvq_#g9jq$|M04_K;JP`r>T2%)G;IRmxjjAcwl&pty#~TJv
zaFzjPR+s=!3=9j@)&iXLhqDC;I2sz@Pw*mA;r@kmLgA<+9}0#&I9KVNP-M6s1&5}QC{`qr*Uv6mxRYoksym4c(9_%L
zng&4522aG2{HXHZIi{v?BO;ZCCSq_#NCc3rqKwC5;p#{OHFc<}o(32ShCuW+U=TfZ
zeHEyxIuxm^t^rp4$wiVdJ_H<*_LGbKmy7%@cgGF{GCML7N5T8zum%(o0r0(SIR5v!
zocgWa4=(oix#<3u3t}e&+8OSD4g2R6+d(_qU)E(GewiOfWILY1wzhdda1sXxkB|}a
zl$HP6FdMwr`94v^w_4oDEJm~ZLry}MjI5ZH^T9uI0lW{i_bch^@3nAPHqR}HENL`F
z6@-@*=xlePbOeAd_`ULn3f^uNT16$K%1WInV-pAKeVbVRO?T*vlZ1*XEzKCCta#dT
z(+ACO7f07#`_*cWFLNDS&vgNK9XFH(NB{<8$KvEg%1?{~l=Y9M<_v#1wC3wce~wiu
zL1mc+gS_(X%Z_YRIPt8g6>OdMwVzE%6}OITU|72My9{#e$`yLCE)ySgvyySBT77Z5)1OHlqj!h2O5wVrs9vn`XVYJCIFrau#TP4@I=io=$x@YkPsV
z$Z*^3wVI&1Df2)wae%MafOqd7ZLz09=Wkw5OYBJh*fZMgA1>TWcP$xU(cVm
z_ZX@0#|^Kyhg_LP^7$gdy?~i%1y@SbL_4kBdVGDkE^Upi??1#DE(kQ{(V*{%nXK59
zi&yCTAi3^om#Z_4sU23!uk^ZBP48B{ItASW{WCs%cbs#0`(@`=H*~rW%0u@o!E!dk
zE=on?2k7I3gEsQr^ujVTA36^g=ZSoFy9m9Uie*NSDoUQIG+jq1vBD!tk(`z*_kM3uW}
zV#(}B{I!gov-K$Y^7vSM?}Q9NpgCqrYB|Qud6cGrYz=)pTOiXgedP-fCyK6zJv8tdW7E&l5tdvqZwQ3
zL_5C8mv-D1%5eCq@kpZn?aekDU^H-5b8DA%;i-kM?NCsIJ#Fabr6KX%^))qB2P9#8
zZRIap1|}OPpuQ~2ZQM6HY=0GUBsUxm!3Cls$uH(Uj
zu`Hi`46J9qmljMqKJRtE2s)#kAF5+eQK(F~p6|pOis{zB-t)j#XQof-0U_Xkcbg`N
zO#Noo8}v+=^5lid@ZJKmyMp>j3g;|W%vy8N`S#6`e+XnjZ?~@YM!O$-WPIrLvVukR
zgu{~aR5jxhozJ3rYEPu1*w|{L-7zSgsPQt3TMbo!e+RW3`PkTmS`B$5U7!41^^%m*
z*N-Bz3W42gFAB*;=eMb}&4)9DM8lNt3g6JSc0(^x5(KnT9*cfW
z5#5r;-hIr?qjc+N(EeB}^zy-_iu45glQlROBELu9C(h`a(XGYPXKgnDmxZq!E&j_{
zYhSPE8MU$$oQc^JhxNquX1Q>*VNKvJ`Kj=b5wR2LWMbtmX5AVhqb=2Zk8Iq;fO>W?
zL9$w~p{L$1I(}KKt2}QX#BM(Q=+bJr#&tz*bVqcT70cJ?(QFi7H?dHpVfmOm&rnt3
zP2IV_3dha|y@V-I$2$frf>wi0IE{pbsup%~`H3f=`_^p?ig55*mbofnoO324%CTOj
z$68Zn*e7SwfHZm70x6UxmLUAxw9&AwxH^`_`S*Q^0GBo~k+mT`a7!dJ@oLosVX2rN
z@?P)$H>8tb1E?nCZP6t#RQ@B3rZ{q5rA;?^roR8))y_E0Dz2H(`jz4W2NQFeH8(xj
z_>9QXZ2uj-2Vb{DZh97H(`hdLGs67LU~PVQs-lqK;*D_RVm6Z;!JSygGPq@SgwtFr
zv_4KOalw9iR<8bI+Us_{Zrcd~$-$%FxIVZHuKF4PmyjL%`sQs?3x~xv--s8Nwn%W6
zo1R8c_&Yk|?~QE34DJRUbg4Ay+Q2_OPEZkddt|=CkT`0voOD}G`&
zGOjsa>})8yRR6qHie;lO6=Uj{RCXg-?8ZZeU>Prk*{z*EFZQG*D^v(~-#%#EFZDI}
ziwSdq-2XE1oY=ZMy?UifBD$L6$zduuEq|i1c>~NSGN3MQ)kXfD9AiLPUNeigNp2BL
z)(my@jqs>j^_+gRkH@Mh?a)m2C!v5BIfFNhW$qLXBZo_B8N1*93ESv-=P=%S|4pQ4
zw55{nVi+Ecpi{ITPMW_Q3-D)hK9KD)6na(;899WuuN
z^o16nZ<(E}u86G^M=yMC(-hsjSE3Q_eLA-0>H9uRVD{7F3|2yt5!VH7*Z#bulQpdX
z-^$Flqttxcw@i80wB2M!E)Q9V%pqv-N?vC0962kBtm1=jYVNd_yO^|CsjgK^y-*qC
zY`(c(QG##FSaK1~u1@OuTM`wd)t+%-j#ugD9=m^w{AU1-sI
z19N>R>-<_c&9Ja@-=AR)qU~a*IQL*AGrQu%H}2jA-?z#xHln?3h+WF3NC)MfwJbD-
zc@t{&Rwhk`FzLWHfWD02C=Bu@_FHfKD@_V>VH0e1fuYAJz5AvUR=mvv=Fq3r%t|lB
Ri0}M280niKi*%hY{|7AYu$KS;
literal 0
HcmV?d00001
diff --git a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs b/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs
index 91024f9..1478ead 100644
--- a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs
+++ b/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs
@@ -129,7 +129,7 @@
// I_Goods_Spec
//
this.I_Goods_Spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.I_Goods_Spec.DataPropertyName = "Spec";
+ this.I_Goods_Spec.DataPropertyName = "Goods_Spec";
this.I_Goods_Spec.FillWeight = 90F;
this.I_Goods_Spec.HeaderText = "规格";
this.I_Goods_Spec.Name = "I_Goods_Spec";
diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs
index ce22fc2..c3b1b65 100644
--- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs
+++ b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs
@@ -31,8 +31,6 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -46,6 +44,8 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.inStoreViewBtn = new WinFormControl.NButton();
this.netStateWatch1 = new WinFormControl.NetStateWatch();
@@ -54,14 +54,6 @@
this.uScanPanel1 = new WinFormControl.UScanPanel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.inStoreGrid = new WinFormControl.UDataGridView();
- this.I_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.I_ProductTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.goodsNameLbl = new WinFormControl.ULabel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.submitBtn = new WinFormControl.NButton();
@@ -96,6 +88,14 @@
this.E_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.E_ExceptionInfo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uLabel4 = new WinFormControl.ULabel();
+ this.I_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.I_InStoreTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).BeginInit();
@@ -212,7 +212,7 @@
this.I_Goods_Name,
this.I_Goods_Spec,
this.I_Weight,
- this.I_ProductTime});
+ this.I_InStoreTime});
this.inStoreGrid.Location = new System.Drawing.Point(3, 60);
this.inStoreGrid.MultiSelect = false;
this.inStoreGrid.Name = "inStoreGrid";
@@ -226,77 +226,6 @@
this.inStoreGrid.Size = new System.Drawing.Size(595, 371);
this.inStoreGrid.TabIndex = 9;
//
- // I_ID
- //
- this.I_ID.DataPropertyName = "ID";
- this.I_ID.HeaderText = "ID";
- this.I_ID.Name = "I_ID";
- this.I_ID.ReadOnly = true;
- this.I_ID.Visible = false;
- //
- // I_RowIndex
- //
- this.I_RowIndex.DataPropertyName = "RowIndex";
- this.I_RowIndex.HeaderText = "序号";
- this.I_RowIndex.Name = "I_RowIndex";
- this.I_RowIndex.ReadOnly = true;
- this.I_RowIndex.Width = 65;
- //
- // I_ShortCode
- //
- this.I_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
- this.I_ShortCode.DataPropertyName = "ShortCode";
- this.I_ShortCode.HeaderText = "条码";
- this.I_ShortCode.Name = "I_ShortCode";
- this.I_ShortCode.ReadOnly = true;
- this.I_ShortCode.Width = 60;
- //
- // I_Goods_Code
- //
- this.I_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.I_Goods_Code.DataPropertyName = "Goods_Code";
- this.I_Goods_Code.HeaderText = "产品编号";
- this.I_Goods_Code.Name = "I_Goods_Code";
- this.I_Goods_Code.ReadOnly = true;
- //
- // I_Goods_Name
- //
- this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.I_Goods_Name.DataPropertyName = "Goods_Name";
- this.I_Goods_Name.HeaderText = "产品名称";
- this.I_Goods_Name.Name = "I_Goods_Name";
- this.I_Goods_Name.ReadOnly = true;
- //
- // I_Goods_Spec
- //
- this.I_Goods_Spec.DataPropertyName = "Spec";
- this.I_Goods_Spec.HeaderText = "规格";
- this.I_Goods_Spec.Name = "I_Goods_Spec";
- this.I_Goods_Spec.ReadOnly = true;
- this.I_Goods_Spec.Width = 70;
- //
- // I_Weight
- //
- this.I_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle3.Format = "#0.######";
- this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3;
- this.I_Weight.HeaderText = "重量";
- this.I_Weight.Name = "I_Weight";
- this.I_Weight.ReadOnly = true;
- this.I_Weight.Width = 70;
- //
- // I_ProductTime
- //
- this.I_ProductTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
- this.I_ProductTime.DataPropertyName = "ProductTime";
- dataGridViewCellStyle4.Format = "T";
- dataGridViewCellStyle4.NullValue = null;
- this.I_ProductTime.DefaultCellStyle = dataGridViewCellStyle4;
- this.I_ProductTime.HeaderText = "生产时间";
- this.I_ProductTime.Name = "I_ProductTime";
- this.I_ProductTime.ReadOnly = true;
- this.I_ProductTime.Width = 60;
- //
// goodsNameLbl
//
this.goodsNameLbl.AutoSize = true;
@@ -740,6 +669,77 @@
this.uLabel4.TabIndex = 5;
this.uLabel4.Text = "异常记录";
//
+ // I_ID
+ //
+ this.I_ID.DataPropertyName = "ID";
+ this.I_ID.HeaderText = "ID";
+ this.I_ID.Name = "I_ID";
+ this.I_ID.ReadOnly = true;
+ this.I_ID.Visible = false;
+ //
+ // I_RowIndex
+ //
+ this.I_RowIndex.DataPropertyName = "RowIndex";
+ this.I_RowIndex.HeaderText = "序号";
+ this.I_RowIndex.Name = "I_RowIndex";
+ this.I_RowIndex.ReadOnly = true;
+ this.I_RowIndex.Width = 65;
+ //
+ // I_ShortCode
+ //
+ this.I_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.I_ShortCode.DataPropertyName = "ShortCode";
+ this.I_ShortCode.HeaderText = "条码";
+ this.I_ShortCode.Name = "I_ShortCode";
+ this.I_ShortCode.ReadOnly = true;
+ this.I_ShortCode.Width = 65;
+ //
+ // I_Goods_Code
+ //
+ this.I_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.I_Goods_Code.DataPropertyName = "Goods_Code";
+ this.I_Goods_Code.HeaderText = "产品编号";
+ this.I_Goods_Code.Name = "I_Goods_Code";
+ this.I_Goods_Code.ReadOnly = true;
+ //
+ // I_Goods_Name
+ //
+ this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.I_Goods_Name.DataPropertyName = "Goods_Name";
+ this.I_Goods_Name.HeaderText = "产品名称";
+ this.I_Goods_Name.Name = "I_Goods_Name";
+ this.I_Goods_Name.ReadOnly = true;
+ //
+ // I_Goods_Spec
+ //
+ this.I_Goods_Spec.DataPropertyName = "Goods_Spec";
+ this.I_Goods_Spec.HeaderText = "规格";
+ this.I_Goods_Spec.Name = "I_Goods_Spec";
+ this.I_Goods_Spec.ReadOnly = true;
+ this.I_Goods_Spec.Width = 70;
+ //
+ // I_Weight
+ //
+ this.I_Weight.DataPropertyName = "Weight";
+ dataGridViewCellStyle3.Format = "#0.######";
+ this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3;
+ this.I_Weight.HeaderText = "重量";
+ this.I_Weight.Name = "I_Weight";
+ this.I_Weight.ReadOnly = true;
+ this.I_Weight.Width = 70;
+ //
+ // I_InStoreTime
+ //
+ this.I_InStoreTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.I_InStoreTime.DataPropertyName = "InStoreTime";
+ dataGridViewCellStyle4.Format = "T";
+ dataGridViewCellStyle4.NullValue = null;
+ this.I_InStoreTime.DefaultCellStyle = dataGridViewCellStyle4;
+ this.I_InStoreTime.HeaderText = "入库时间";
+ this.I_InStoreTime.Name = "I_InStoreTime";
+ this.I_InStoreTime.ReadOnly = true;
+ this.I_InStoreTime.Width = 97;
+ //
// SegmentInStoreForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -801,14 +801,6 @@
private WinFormControl.NButton submitBtn;
private WinFormControl.NButton deleteBtn;
private WinFormControl.NButton refreshBtn;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_ID;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_RowIndex;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_ShortCode;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Code;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Name;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Spec;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_Weight;
- private System.Windows.Forms.DataGridViewTextBoxColumn I_ProductTime;
private System.Windows.Forms.DataGridViewTextBoxColumn B_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn B_RowIndex;
private System.Windows.Forms.DataGridViewTextBoxColumn B_ShortCode;
@@ -826,5 +818,13 @@
private System.Windows.Forms.DataGridViewTextBoxColumn U_Weight;
private System.Windows.Forms.DataGridViewTextBoxColumn U_ProductTime;
private WinFormControl.NButton inStoreViewBtn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_RowIndex;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_ShortCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Code;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Spec;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_Weight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn I_InStoreTime;
}
}
\ No newline at end of file
diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs
index e58838d..227f0a7 100644
--- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs
+++ b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs
@@ -137,7 +137,7 @@ namespace ButcherFactory.SegmentInStore_
{
if (isBack)
{
- var idx = backStoreList.Any() ? backStoreList.Last().RowIndex.Value : 0;
+ var idx = backStoreList.Any() ? backStoreList.First().RowIndex.Value : 0;
SegmentInStoreBL.SetAsBacking(uScanPanel1.TextBox.Text, idx + 1);
BindBackGrid();
var fir = inStoreList.FirstOrDefault(x => x.BarCode == uScanPanel1.TextBox.Text);
@@ -149,7 +149,7 @@ namespace ButcherFactory.SegmentInStore_
}
else
{
- var idx = inStoreList.Any() ? inStoreList.Last().RowIndex.Value : 0;
+ var idx = inStoreList.Any() ? inStoreList.First().RowIndex.Value : 0;
var entity = SegmentInStoreBL.InsertInStore(uScanPanel1.TextBox.Text, storeID, idx + 1);
inStoreList.Insert(0, entity);
if (inStoreList.Count >= 30)
diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx
index f29c23f..3e98868 100644
--- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx
+++ b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx
@@ -123,7 +123,7 @@
True
-
+
True
diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs
index fa4d12d..cfa83df 100644
--- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs
+++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs
@@ -28,19 +28,16 @@
///
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SegmentProductionAutoForm));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
- this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
this.uLabel3 = new WinFormControl.ULabel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.taskDataGrid = new WinFormControl.UDataGridView();
@@ -49,28 +46,28 @@
this.T_Done = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.T_Last = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.GoodsLabel = new WinFormControl.ULabel();
- this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
- this.goodsSetBtn = new WinFormControl.UButton();
- this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.barPrintCheck = new System.Windows.Forms.CheckBox();
- this.closeBtn = new WinFormControl.UButton();
this.uTimerLabel1 = new WinFormControl.UTimerLabel();
this.productBatchSelect = new System.Windows.Forms.ComboBox();
this.workUnitSelect = new System.Windows.Forms.ComboBox();
this.uLabel1 = new WinFormControl.ULabel();
this.uLabel2 = new WinFormControl.ULabel();
this.netStateWatch1 = new WinFormControl.NetStateWatch();
- this.uWeightControl1 = new WinFormControl.UWeightControl();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
- this.submitBtn = new WinFormControl.UButton();
- this.deleteBtn = new WinFormControl.UButton();
- this.rePrintBtn = new WinFormControl.UButton();
+ this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.historyDataGrid = new WinFormControl.UDataGridView();
this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.closeBtn = new ButcherFactory.Controls.ColorButton();
+ this.uWeightControl1 = new ButcherFactory.Controls.WeightControl();
+ this.goodsSetBtn = new ButcherFactory.Controls.ColorButton();
+ this.rePrintBtn = new ButcherFactory.Controls.ColorButton();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
@@ -85,23 +82,6 @@
((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit();
this.SuspendLayout();
//
- // H_BarCode
- //
- this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.H_BarCode.DataPropertyName = "BarCode";
- this.H_BarCode.HeaderText = "条码";
- this.H_BarCode.Name = "H_BarCode";
- this.H_BarCode.ReadOnly = true;
- //
- // H_Weight
- //
- this.H_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle21.Format = "#0.######";
- this.H_Weight.DefaultCellStyle = dataGridViewCellStyle21;
- this.H_Weight.HeaderText = "重量";
- this.H_Weight.Name = "H_Weight";
- this.H_Weight.ReadOnly = true;
- //
// uLabel3
//
this.uLabel3.AutoSize = true;
@@ -115,14 +95,12 @@
//
// groupBox2
//
- this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.taskDataGrid);
this.groupBox2.Controls.Add(this.GoodsLabel);
- this.groupBox2.Location = new System.Drawing.Point(9, 8);
+ this.groupBox2.Location = new System.Drawing.Point(3, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(5);
- this.groupBox2.Size = new System.Drawing.Size(531, 120);
+ this.groupBox2.Size = new System.Drawing.Size(452, 120);
this.groupBox2.TabIndex = 4;
this.groupBox2.TabStop = false;
//
@@ -132,15 +110,15 @@
this.taskDataGrid.AllowUserToDeleteRows = false;
this.taskDataGrid.AllowUserToResizeColumns = false;
this.taskDataGrid.AllowUserToResizeRows = false;
- dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.taskDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle22;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.taskDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.taskDataGrid.BackgroundColor = System.Drawing.Color.White;
this.taskDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle23.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle23.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.taskDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.taskDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.taskDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.taskDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.T_Item,
@@ -153,12 +131,12 @@
this.taskDataGrid.Name = "taskDataGrid";
this.taskDataGrid.ReadOnly = true;
this.taskDataGrid.RowHeadersVisible = false;
- dataGridViewCellStyle27.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle27.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.taskDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle27;
+ dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.taskDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle6;
this.taskDataGrid.RowTemplate.Height = 23;
this.taskDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.taskDataGrid.Size = new System.Drawing.Size(521, 96);
+ this.taskDataGrid.Size = new System.Drawing.Size(442, 96);
this.taskDataGrid.TabIndex = 2;
//
// T_Item
@@ -172,8 +150,8 @@
//
this.T_Need.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.T_Need.DataPropertyName = "Need";
- dataGridViewCellStyle24.Format = "#0.######";
- this.T_Need.DefaultCellStyle = dataGridViewCellStyle24;
+ dataGridViewCellStyle3.Format = "#0.######";
+ this.T_Need.DefaultCellStyle = dataGridViewCellStyle3;
this.T_Need.HeaderText = "订货";
this.T_Need.Name = "T_Need";
this.T_Need.ReadOnly = true;
@@ -182,8 +160,8 @@
//
this.T_Done.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.T_Done.DataPropertyName = "Done";
- dataGridViewCellStyle25.Format = "#0.######";
- this.T_Done.DefaultCellStyle = dataGridViewCellStyle25;
+ dataGridViewCellStyle4.Format = "#0.######";
+ this.T_Done.DefaultCellStyle = dataGridViewCellStyle4;
this.T_Done.HeaderText = "完工";
this.T_Done.Name = "T_Done";
this.T_Done.ReadOnly = true;
@@ -192,8 +170,8 @@
//
this.T_Last.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.T_Last.DataPropertyName = "Last";
- dataGridViewCellStyle26.Format = "#0.######";
- this.T_Last.DefaultCellStyle = dataGridViewCellStyle26;
+ dataGridViewCellStyle5.Format = "#0.######";
+ this.T_Last.DefaultCellStyle = dataGridViewCellStyle5;
this.T_Last.HeaderText = "剩余";
this.T_Last.Name = "T_Last";
this.T_Last.ReadOnly = true;
@@ -210,57 +188,6 @@
this.GoodsLabel.TabIndex = 1;
this.GoodsLabel.Text = "存货名称";
//
- // H_Goods_Name
- //
- this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.H_Goods_Name.DataPropertyName = "Goods_Name";
- this.H_Goods_Name.HeaderText = "产品";
- this.H_Goods_Name.Name = "H_Goods_Name";
- this.H_Goods_Name.ReadOnly = true;
- //
- // flowLayoutPanel2
- //
- this.flowLayoutPanel2.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)));
- this.flowLayoutPanel2.AutoScroll = true;
- this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.flowLayoutPanel2.Location = new System.Drawing.Point(-3, 75);
- this.flowLayoutPanel2.Name = "flowLayoutPanel2";
- this.flowLayoutPanel2.Size = new System.Drawing.Size(670, 432);
- this.flowLayoutPanel2.TabIndex = 21;
- //
- // goodsSetBtn
- //
- this.goodsSetBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.goodsSetBtn.AsClicked = false;
- this.goodsSetBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("goodsSetBtn.BackgroundImage")));
- this.goodsSetBtn.EnableGroup = false;
- this.goodsSetBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.goodsSetBtn.FlatAppearance.BorderSize = 0;
- this.goodsSetBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.goodsSetBtn.ForeColor = System.Drawing.Color.Black;
- this.goodsSetBtn.Location = new System.Drawing.Point(551, 2);
- this.goodsSetBtn.Name = "goodsSetBtn";
- this.goodsSetBtn.PlaySound = false;
- this.goodsSetBtn.SelfControlEnable = false;
- this.goodsSetBtn.Size = new System.Drawing.Size(111, 62);
- this.goodsSetBtn.SoundType = WinFormControl.SoundType.Click;
- this.goodsSetBtn.TabIndex = 18;
- this.goodsSetBtn.Text = "产品设置";
- this.goodsSetBtn.UseVisualStyleBackColor = true;
- this.goodsSetBtn.WithStataHode = false;
- this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click);
- //
- // H_RowIndex
- //
- this.H_RowIndex.DataPropertyName = "RowIndex";
- this.H_RowIndex.HeaderText = "序号";
- this.H_RowIndex.Name = "H_RowIndex";
- this.H_RowIndex.ReadOnly = true;
- this.H_RowIndex.Width = 80;
- //
// splitContainer1
//
this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -273,15 +200,15 @@
//
// splitContainer1.Panel1
//
- this.splitContainer1.Panel1.Controls.Add(this.barPrintCheck);
this.splitContainer1.Panel1.Controls.Add(this.closeBtn);
+ this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1);
+ this.splitContainer1.Panel1.Controls.Add(this.barPrintCheck);
this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1);
this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect);
this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect);
this.splitContainer1.Panel1.Controls.Add(this.uLabel1);
this.splitContainer1.Panel1.Controls.Add(this.uLabel2);
this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1);
- this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1);
//
// splitContainer1.Panel2
//
@@ -294,36 +221,13 @@
//
this.barPrintCheck.AutoSize = true;
this.barPrintCheck.Font = new System.Drawing.Font("宋体", 15F);
- this.barPrintCheck.Location = new System.Drawing.Point(359, 50);
+ this.barPrintCheck.Location = new System.Drawing.Point(292, 50);
this.barPrintCheck.Name = "barPrintCheck";
this.barPrintCheck.Size = new System.Drawing.Size(108, 24);
this.barPrintCheck.TabIndex = 16;
this.barPrintCheck.Text = "启用打码";
this.barPrintCheck.UseVisualStyleBackColor = true;
//
- // closeBtn
- //
- this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.closeBtn.AsClicked = false;
- this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage")));
- this.closeBtn.EnableGroup = false;
- this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.closeBtn.FlatAppearance.BorderSize = 0;
- this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.closeBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.closeBtn.ForeColor = System.Drawing.Color.Black;
- this.closeBtn.Location = new System.Drawing.Point(1106, 7);
- this.closeBtn.Name = "closeBtn";
- this.closeBtn.PlaySound = false;
- this.closeBtn.SelfControlEnable = false;
- this.closeBtn.Size = new System.Drawing.Size(111, 34);
- this.closeBtn.SoundType = WinFormControl.SoundType.Click;
- this.closeBtn.TabIndex = 15;
- this.closeBtn.Text = "关 闭";
- this.closeBtn.UseVisualStyleBackColor = true;
- this.closeBtn.WithStataHode = false;
- this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
- //
// uTimerLabel1
//
this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -384,20 +288,11 @@
// netStateWatch1
//
this.netStateWatch1.BackColor = System.Drawing.Color.Transparent;
- this.netStateWatch1.Location = new System.Drawing.Point(359, 2);
+ this.netStateWatch1.Location = new System.Drawing.Point(292, 2);
this.netStateWatch1.Name = "netStateWatch1";
this.netStateWatch1.Size = new System.Drawing.Size(90, 39);
this.netStateWatch1.TabIndex = 1;
//
- // uWeightControl1
- //
- this.uWeightControl1.BackColor = System.Drawing.Color.Transparent;
- this.uWeightControl1.Location = new System.Drawing.Point(3, 3);
- this.uWeightControl1.Name = "uWeightControl1";
- this.uWeightControl1.Size = new System.Drawing.Size(349, 78);
- this.uWeightControl1.TabIndex = 0;
- this.uWeightControl1.WeightFalg = null;
- //
// splitContainer2
//
this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -408,98 +303,51 @@
//
// splitContainer2.Panel1
//
- this.splitContainer2.Panel1.Controls.Add(this.submitBtn);
- this.splitContainer2.Panel1.Controls.Add(this.deleteBtn);
- this.splitContainer2.Panel1.Controls.Add(this.rePrintBtn);
- this.splitContainer2.Panel1.Controls.Add(this.groupBox1);
- this.splitContainer2.Panel1.Controls.Add(this.groupBox2);
+ this.splitContainer2.Panel1.Controls.Add(this.goodsSetBtn);
+ this.splitContainer2.Panel1.Controls.Add(this.flowLayoutPanel2);
+ this.splitContainer2.Panel1.Controls.Add(this.flowLayoutPanel1);
//
// splitContainer2.Panel2
//
- this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel2);
- this.splitContainer2.Panel2.Controls.Add(this.goodsSetBtn);
- this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel1);
- this.splitContainer2.Size = new System.Drawing.Size(1224, 509);
- this.splitContainer2.SplitterDistance = 552;
+ this.splitContainer2.Panel2.Controls.Add(this.rePrintBtn);
+ this.splitContainer2.Panel2.Controls.Add(this.groupBox1);
+ this.splitContainer2.Panel2.Controls.Add(this.groupBox2);
+ this.splitContainer2.Size = new System.Drawing.Size(1226, 511);
+ this.splitContainer2.SplitterDistance = 761;
this.splitContainer2.TabIndex = 0;
//
- // submitBtn
- //
- this.submitBtn.AsClicked = false;
- this.submitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("submitBtn.BackgroundImage")));
- this.submitBtn.EnableGroup = false;
- this.submitBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.submitBtn.FlatAppearance.BorderSize = 0;
- this.submitBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.submitBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.submitBtn.ForeColor = System.Drawing.Color.Black;
- this.submitBtn.Location = new System.Drawing.Point(249, 134);
- this.submitBtn.Name = "submitBtn";
- this.submitBtn.PlaySound = false;
- this.submitBtn.SelfControlEnable = false;
- this.submitBtn.Size = new System.Drawing.Size(111, 34);
- this.submitBtn.SoundType = WinFormControl.SoundType.Click;
- this.submitBtn.TabIndex = 23;
- this.submitBtn.Text = "提交";
- this.submitBtn.UseVisualStyleBackColor = true;
- this.submitBtn.WithStataHode = false;
- this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click);
- //
- // deleteBtn
- //
- this.deleteBtn.AsClicked = false;
- this.deleteBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteBtn.BackgroundImage")));
- this.deleteBtn.EnableGroup = false;
- this.deleteBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.deleteBtn.FlatAppearance.BorderSize = 0;
- this.deleteBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.deleteBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.deleteBtn.ForeColor = System.Drawing.Color.Black;
- this.deleteBtn.Location = new System.Drawing.Point(129, 134);
- this.deleteBtn.Name = "deleteBtn";
- this.deleteBtn.PlaySound = false;
- this.deleteBtn.SelfControlEnable = false;
- this.deleteBtn.Size = new System.Drawing.Size(111, 34);
- this.deleteBtn.SoundType = WinFormControl.SoundType.Click;
- this.deleteBtn.TabIndex = 22;
- this.deleteBtn.Text = "删除";
- this.deleteBtn.UseVisualStyleBackColor = true;
- this.deleteBtn.WithStataHode = false;
- this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
+ // flowLayoutPanel2
//
- // rePrintBtn
+ this.flowLayoutPanel2.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)));
+ this.flowLayoutPanel2.AutoScroll = true;
+ this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.flowLayoutPanel2.Location = new System.Drawing.Point(-1, 75);
+ this.flowLayoutPanel2.Name = "flowLayoutPanel2";
+ this.flowLayoutPanel2.Size = new System.Drawing.Size(757, 434);
+ this.flowLayoutPanel2.TabIndex = 24;
//
- this.rePrintBtn.AsClicked = false;
- this.rePrintBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("rePrintBtn.BackgroundImage")));
- this.rePrintBtn.EnableGroup = false;
- this.rePrintBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
- this.rePrintBtn.FlatAppearance.BorderSize = 0;
- this.rePrintBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.rePrintBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.rePrintBtn.ForeColor = System.Drawing.Color.Black;
- this.rePrintBtn.Location = new System.Drawing.Point(9, 134);
- this.rePrintBtn.Name = "rePrintBtn";
- this.rePrintBtn.PlaySound = false;
- this.rePrintBtn.SelfControlEnable = false;
- this.rePrintBtn.Size = new System.Drawing.Size(111, 34);
- this.rePrintBtn.SoundType = WinFormControl.SoundType.Click;
- this.rePrintBtn.TabIndex = 21;
- this.rePrintBtn.Text = "补打";
- this.rePrintBtn.UseVisualStyleBackColor = true;
- this.rePrintBtn.WithStataHode = false;
- this.rePrintBtn.Click += new System.EventHandler(this.rePrintBtn_Click);
+ // flowLayoutPanel1
+ //
+ this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, -1);
+ this.flowLayoutPanel1.Name = "flowLayoutPanel1";
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(640, 70);
+ this.flowLayoutPanel1.TabIndex = 22;
//
// groupBox1
//
- this.groupBox1.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)));
+ this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.historyDataGrid);
this.groupBox1.Controls.Add(this.uLabel3);
- this.groupBox1.Location = new System.Drawing.Point(10, 174);
+ this.groupBox1.Location = new System.Drawing.Point(8, 169);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(5);
- this.groupBox1.Size = new System.Drawing.Size(531, 330);
+ this.groupBox1.Size = new System.Drawing.Size(447, 332);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
//
@@ -509,15 +357,15 @@
this.historyDataGrid.AllowUserToDeleteRows = false;
this.historyDataGrid.AllowUserToResizeColumns = false;
this.historyDataGrid.AllowUserToResizeRows = false;
- dataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle28;
+ dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
this.historyDataGrid.BackgroundColor = System.Drawing.Color.White;
this.historyDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle29.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle29.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
+ dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.H_ID,
@@ -531,12 +379,12 @@
this.historyDataGrid.Name = "historyDataGrid";
this.historyDataGrid.ReadOnly = true;
this.historyDataGrid.RowHeadersVisible = false;
- dataGridViewCellStyle30.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle30.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle30;
+ dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle10;
this.historyDataGrid.RowTemplate.Height = 23;
this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.historyDataGrid.Size = new System.Drawing.Size(521, 306);
+ this.historyDataGrid.Size = new System.Drawing.Size(437, 308);
this.historyDataGrid.TabIndex = 2;
//
// H_ID
@@ -547,13 +395,91 @@
this.H_ID.ReadOnly = true;
this.H_ID.Visible = false;
//
- // flowLayoutPanel1
+ // H_RowIndex
//
- this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.flowLayoutPanel1.Location = new System.Drawing.Point(-3, -1);
- this.flowLayoutPanel1.Name = "flowLayoutPanel1";
- this.flowLayoutPanel1.Size = new System.Drawing.Size(547, 70);
- this.flowLayoutPanel1.TabIndex = 0;
+ this.H_RowIndex.DataPropertyName = "RowIndex";
+ this.H_RowIndex.HeaderText = "序号";
+ this.H_RowIndex.Name = "H_RowIndex";
+ this.H_RowIndex.ReadOnly = true;
+ this.H_RowIndex.Width = 80;
+ //
+ // H_BarCode
+ //
+ this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.H_BarCode.DataPropertyName = "ShortCode";
+ this.H_BarCode.HeaderText = "条码";
+ this.H_BarCode.Name = "H_BarCode";
+ this.H_BarCode.ReadOnly = true;
+ //
+ // H_Goods_Name
+ //
+ this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.H_Goods_Name.DataPropertyName = "Goods_Name";
+ this.H_Goods_Name.HeaderText = "产品";
+ this.H_Goods_Name.Name = "H_Goods_Name";
+ this.H_Goods_Name.ReadOnly = true;
+ //
+ // H_Weight
+ //
+ this.H_Weight.DataPropertyName = "Weight";
+ dataGridViewCellStyle9.Format = "#0.######";
+ this.H_Weight.DefaultCellStyle = dataGridViewCellStyle9;
+ this.H_Weight.HeaderText = "重量";
+ this.H_Weight.Name = "H_Weight";
+ this.H_Weight.ReadOnly = true;
+ //
+ // closeBtn
+ //
+ this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.closeBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.closeBtn.ForeColor = System.Drawing.Color.White;
+ this.closeBtn.Location = new System.Drawing.Point(1109, 7);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.closeBtn.Size = new System.Drawing.Size(111, 41);
+ this.closeBtn.TabIndex = 18;
+ this.closeBtn.Text = "关闭";
+ this.closeBtn.UseVisualStyleBackColor = false;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // uWeightControl1
+ //
+ this.uWeightControl1.BackColor = System.Drawing.Color.Transparent;
+ this.uWeightControl1.Location = new System.Drawing.Point(12, 7);
+ this.uWeightControl1.Name = "uWeightControl1";
+ this.uWeightControl1.Size = new System.Drawing.Size(262, 74);
+ this.uWeightControl1.TabIndex = 17;
+ this.uWeightControl1.WeightFalg = null;
+ //
+ // goodsSetBtn
+ //
+ this.goodsSetBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.goodsSetBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.goodsSetBtn.ForeColor = System.Drawing.Color.White;
+ this.goodsSetBtn.Location = new System.Drawing.Point(645, 3);
+ this.goodsSetBtn.Name = "goodsSetBtn";
+ this.goodsSetBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.goodsSetBtn.Size = new System.Drawing.Size(111, 62);
+ this.goodsSetBtn.TabIndex = 19;
+ this.goodsSetBtn.Text = "产品设置";
+ this.goodsSetBtn.UseVisualStyleBackColor = false;
+ this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click);
+ //
+ // rePrintBtn
+ //
+ this.rePrintBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ this.rePrintBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.rePrintBtn.ForeColor = System.Drawing.Color.White;
+ this.rePrintBtn.Location = new System.Drawing.Point(338, 129);
+ this.rePrintBtn.Name = "rePrintBtn";
+ this.rePrintBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.rePrintBtn.Size = new System.Drawing.Size(111, 41);
+ this.rePrintBtn.TabIndex = 22;
+ this.rePrintBtn.Text = "补打";
+ this.rePrintBtn.UseVisualStyleBackColor = false;
+ this.rePrintBtn.Click += new System.EventHandler(this.rePrintBtn_Click);
//
// SegmentProductionAutoForm
//
@@ -586,8 +512,6 @@
#endregion
- private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode;
- private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight;
private WinFormControl.ULabel uLabel3;
private System.Windows.Forms.GroupBox groupBox2;
private WinFormControl.UDataGridView taskDataGrid;
@@ -596,27 +520,27 @@
private System.Windows.Forms.DataGridViewTextBoxColumn T_Done;
private System.Windows.Forms.DataGridViewTextBoxColumn T_Last;
private WinFormControl.ULabel GoodsLabel;
- private System.Windows.Forms.DataGridViewTextBoxColumn H_Goods_Name;
- private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
- private WinFormControl.UButton goodsSetBtn;
- private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.CheckBox barPrintCheck;
- private WinFormControl.UButton closeBtn;
private WinFormControl.UTimerLabel uTimerLabel1;
private System.Windows.Forms.ComboBox productBatchSelect;
private System.Windows.Forms.ComboBox workUnitSelect;
private WinFormControl.ULabel uLabel1;
private WinFormControl.ULabel uLabel2;
private WinFormControl.NetStateWatch netStateWatch1;
- private WinFormControl.UWeightControl uWeightControl1;
private System.Windows.Forms.SplitContainer splitContainer2;
- private WinFormControl.UButton submitBtn;
- private WinFormControl.UButton deleteBtn;
- private WinFormControl.UButton rePrintBtn;
private System.Windows.Forms.GroupBox groupBox1;
private WinFormControl.UDataGridView historyDataGrid;
- private System.Windows.Forms.DataGridViewTextBoxColumn H_ID;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn H_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex;
+ private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn H_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight;
+ private Controls.WeightControl uWeightControl1;
+ private Controls.ColorButton rePrintBtn;
+ private Controls.ColorButton closeBtn;
+ private Controls.ColorButton goodsSetBtn;
}
}
\ No newline at end of file
diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
index fcd78dc..683f0e1 100644
--- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
+++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
@@ -16,6 +16,7 @@ using System.Windows.Forms;
using WinFormControl;
using ButcherFactory.Utils;
using NotAuto = ButcherFactory.SegmentProduction_;
+using ButcherFactory.Controls;
namespace ButcherFactory.SegmentProductionAuto_
{
@@ -33,7 +34,6 @@ namespace ButcherFactory.SegmentProductionAuto_
Thread uploadData;
BindingList historyList;
- BindingList unSubmitList;
Dictionary> goodsSetDic;
long? workUnitID;
long? batchID;
@@ -108,20 +108,21 @@ namespace ButcherFactory.SegmentProductionAuto_
flowLayoutPanel2.Controls.Clear();
foreach (var item in goodsSetDic)
{
- var btn = new UButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), WithStataHode = true, EnableGroup = true };
+ var btn = new ColorButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), EnableGroup = true };
btn.Click += GroupGoodsSetClick;
flowLayoutPanel1.Controls.Add(btn);
}
}
+ Color goodsColor = Color.FromArgb(250, 120, 24);
void GroupGoodsSetClick(object sender, EventArgs e)
{
flowLayoutPanel2.Controls.Clear();
- var groupBtn = sender as UButton;
+ var groupBtn = sender as ColorButton;
var arr = goodsSetDic[groupBtn.Text];
foreach (var item in arr)
{
- var btn = new UButton() { Width = 127, Height = 75, Text = item.Goods_Name, Tag = item, Font = new Font("宋体", 15), Margin = new Padding(20, 10, 20, 35), PlaySound = true };
+ var btn = new ColorButton() { Width = 127, Height = 75, Text = item.Goods_Name, Tag = item, Font = new Font("宋体", 15), BackColor = goodsColor, Margin = new Padding(20, 10, 20, 35), PlaySound = true };
btn.Click += GoodsBtnClick;
flowLayoutPanel2.Controls.Add(btn);
}
@@ -131,7 +132,7 @@ namespace ButcherFactory.SegmentProductionAuto_
{
if (batchID == null)
throw new Exception("请先选择批次");
- var btn = sender as UButton;
+ var btn = sender as ColorButton;
var detail = btn.Tag as ClientGoodsSet_Detail;
var weight = uWeightControl1.Weight;
if (weight == 0)
@@ -146,7 +147,6 @@ namespace ButcherFactory.SegmentProductionAuto_
entity.Goods_Name = detail.Goods_Name;
entity.Goods_Spec = detail.Goods_Spec;
GoodsLabel.Text = entity.Goods_Name;
- unSubmitList.Insert(0, entity);
historyList.Insert(0, entity);
if (historyList.Count > 100)
historyList.RemoveAt(100);
@@ -158,15 +158,11 @@ namespace ButcherFactory.SegmentProductionAuto_
void BindGrid()
{
- unSubmitList = SegmentProductionBL.GetListByState(false);
historyList = SegmentProductionBL.GetListByState(true);
- foreach (var item in unSubmitList)
- historyList.Insert(0, item);
-
historyDataGrid.DataSource = historyList;
historyDataGrid.Refresh();
- var first = unSubmitList.FirstOrDefault(x => x.GroupID == null && x.TrunOutID == null);
+ var first = historyList.FirstOrDefault();
if (first != null)
GoodsLabel.Text = first.Goods_Name;
}
@@ -207,34 +203,5 @@ namespace ButcherFactory.SegmentProductionAuto_
NotAuto.SegmentProductionPrint.Print(item, batchDate);
}
}
-
- private void deleteBtn_Click(object sender, EventArgs e)
- {
- if (historyDataGrid.CurrentRow == null)
- throw new Exception("请先选中要删除的记录");
- var id = (long)historyDataGrid.CurrentRow.Cells[0].Value;
- var first = unSubmitList.FirstOrDefault(x => x.ID == id && !x.Submited);
- if (first == null)
- throw new Exception("已提交,无法删除");
- if (MessageBox.Show(string.Format("确认删除{0} {1}的记录?", first.RowIndex, first.Goods_Name), "删除确认", MessageBoxButtons.OKCancel) == DialogResult.OK)
- {
- SegmentProductionBL.Delete(id);
- unSubmitList.Remove(first);
- historyList.Remove(first);
- historyDataGrid.Refresh();
- }
- }
-
- private void submitBtn_Click(object sender, EventArgs e)
- {
- var arrs = unSubmitList.Where(x => x.GroupID.HasValue).ToList();
- if (arrs.Any())
- {
- SegmentProductionBL.BatchUpdate(arrs.Select(x => x.ID), new Tuple("Submited", true));
- foreach (var item in arrs)
- unSubmitList.Remove(item);
- }
- UMessageBox.Show("已提交");
- }
}
}
diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.resx b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.resx
index 0173348..e6b3498 100644
--- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.resx
+++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.resx
@@ -117,54 +117,13 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- True
-
True
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
- goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
- KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
-
-
True
+
+ True
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs
new file mode 100644
index 0000000..d461bc3
--- /dev/null
+++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs
@@ -0,0 +1,633 @@
+namespace ButcherFactory.SegmentStockUp_
+{
+ partial class SegmentStockUpForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.uScanPanel1 = new WinFormControl.UScanPanel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.dataPicker = new System.Windows.Forms.Label();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.goodsLbl = new System.Windows.Forms.Label();
+ this.driveLineLbl = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.dhNumberLbl = new System.Windows.Forms.Label();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.mainGridView = new WinFormControl.UDataGridView();
+ this.D_DeliverGoodsLine_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Goods_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Date = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Finishd = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.D_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.label12 = new System.Windows.Forms.Label();
+ this.panel6 = new System.Windows.Forms.Panel();
+ this.label13 = new System.Windows.Forms.Label();
+ this.detailGridView = new WinFormControl.UDataGridView();
+ this.B_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.B_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.B_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.B_SaleOutStoreID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.B_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.B_UnitNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dhUnitNumLbl = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.bhUnitNumLbl = new System.Windows.Forms.Label();
+ this.label9 = new System.Windows.Forms.Label();
+ this.bhNumberLbl = new System.Windows.Forms.Label();
+ this.label11 = new System.Windows.Forms.Label();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.refresh = new ButcherFactory.Controls.ColorButton();
+ this.roundPanel1.SuspendLayout();
+ this.panel5.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit();
+ this.panel6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).BeginInit();
+ this.panel7.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Controls.Add(this.panel7);
+ this.roundPanel1.Controls.Add(this.bhUnitNumLbl);
+ this.roundPanel1.Controls.Add(this.label9);
+ this.roundPanel1.Controls.Add(this.bhNumberLbl);
+ this.roundPanel1.Controls.Add(this.label11);
+ this.roundPanel1.Controls.Add(this.dhUnitNumLbl);
+ this.roundPanel1.Controls.Add(this.label7);
+ this.roundPanel1.Controls.Add(this.panel6);
+ this.roundPanel1.Controls.Add(this.panel5);
+ this.roundPanel1.Controls.Add(this.dhNumberLbl);
+ this.roundPanel1.Controls.Add(this.label4);
+ this.roundPanel1.Controls.Add(this.driveLineLbl);
+ this.roundPanel1.Controls.Add(this.goodsLbl);
+ this.roundPanel1.Controls.Add(this.panel4);
+ this.roundPanel1.Controls.Add(this.dataPicker);
+ this.roundPanel1.Controls.Add(this.uScanPanel1);
+ this.roundPanel1.Controls.Add(this.label1);
+ //
+ // uScanPanel1
+ //
+ this.uScanPanel1.BackColor = System.Drawing.Color.Transparent;
+ this.uScanPanel1.Location = new System.Drawing.Point(271, 14);
+ this.uScanPanel1.Name = "uScanPanel1";
+ this.uScanPanel1.Size = new System.Drawing.Size(303, 32);
+ this.uScanPanel1.TabIndex = 0;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 14F);
+ this.label1.Location = new System.Drawing.Point(16, 19);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(85, 19);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "发货日期";
+ //
+ // dataPicker
+ //
+ this.dataPicker.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.dataPicker.Font = new System.Drawing.Font("宋体", 14F);
+ this.dataPicker.Location = new System.Drawing.Point(107, 14);
+ this.dataPicker.Name = "dataPicker";
+ this.dataPicker.Size = new System.Drawing.Size(120, 30);
+ this.dataPicker.TabIndex = 2;
+ this.dataPicker.Text = "2018-08-08";
+ this.dataPicker.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.dataPicker.Click += new System.EventHandler(this.dataPicker_Click);
+ //
+ // panel4
+ //
+ this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(243)))), ((int)(((byte)(243)))));
+ this.panel4.Location = new System.Drawing.Point(7, 53);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(1174, 1);
+ this.panel4.TabIndex = 3;
+ //
+ // goodsLbl
+ //
+ this.goodsLbl.AutoSize = true;
+ this.goodsLbl.Font = new System.Drawing.Font("宋体", 14F);
+ this.goodsLbl.ForeColor = System.Drawing.Color.Red;
+ this.goodsLbl.Location = new System.Drawing.Point(273, 63);
+ this.goodsLbl.Name = "goodsLbl";
+ this.goodsLbl.Size = new System.Drawing.Size(85, 19);
+ this.goodsLbl.TabIndex = 4;
+ this.goodsLbl.Text = "存货名称";
+ //
+ // driveLineLbl
+ //
+ this.driveLineLbl.AutoSize = true;
+ this.driveLineLbl.Font = new System.Drawing.Font("宋体", 14F);
+ this.driveLineLbl.ForeColor = System.Drawing.Color.Red;
+ this.driveLineLbl.Location = new System.Drawing.Point(16, 63);
+ this.driveLineLbl.Name = "driveLineLbl";
+ this.driveLineLbl.Size = new System.Drawing.Size(85, 19);
+ this.driveLineLbl.TabIndex = 4;
+ this.driveLineLbl.Text = "送货线路";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Font = new System.Drawing.Font("宋体", 14F);
+ this.label4.Location = new System.Drawing.Point(16, 100);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(85, 19);
+ this.label4.TabIndex = 5;
+ this.label4.Text = "订货数量";
+ //
+ // dhNumberLbl
+ //
+ this.dhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.dhNumberLbl.Font = new System.Drawing.Font("宋体", 14F);
+ this.dhNumberLbl.ForeColor = System.Drawing.Color.Red;
+ this.dhNumberLbl.Location = new System.Drawing.Point(107, 94);
+ this.dhNumberLbl.Name = "dhNumberLbl";
+ this.dhNumberLbl.Size = new System.Drawing.Size(120, 30);
+ this.dhNumberLbl.TabIndex = 5;
+ this.dhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panel5
+ //
+ this.panel5.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)));
+ this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.panel5.Controls.Add(this.mainGridView);
+ this.panel5.Controls.Add(this.label12);
+ this.panel5.Location = new System.Drawing.Point(7, 142);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(567, 362);
+ this.panel5.TabIndex = 12;
+ //
+ // mainGridView
+ //
+ this.mainGridView.AllowUserToAddRows = false;
+ this.mainGridView.AllowUserToDeleteRows = false;
+ this.mainGridView.AllowUserToResizeColumns = false;
+ this.mainGridView.AllowUserToResizeRows = false;
+ dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
+ this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
+ this.mainGridView.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)));
+ this.mainGridView.BackgroundColor = System.Drawing.Color.White;
+ this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.mainGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.mainGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 10F);
+ dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
+ this.mainGridView.ColumnHeadersHeight = 30;
+ this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.D_DeliverGoodsLine_ID,
+ this.D_Goods_ID,
+ this.D_Date,
+ this.D_Finishd,
+ this.D_DeliverGoodsLine_Name,
+ this.D_Goods_Name,
+ this.D_Goods_Spec,
+ this.D_SecondNumber,
+ this.D_UnitNum,
+ this.D_SSecondNumber,
+ this.D_SUnitNum});
+ this.mainGridView.EnableHeadersVisualStyles = false;
+ this.mainGridView.Location = new System.Drawing.Point(11, 31);
+ this.mainGridView.MultiSelect = false;
+ this.mainGridView.Name = "mainGridView";
+ this.mainGridView.ReadOnly = true;
+ this.mainGridView.RowHeadersVisible = false;
+ dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250)))));
+ dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 9F);
+ dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle12;
+ this.mainGridView.RowTemplate.Height = 40;
+ this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.mainGridView.Size = new System.Drawing.Size(545, 320);
+ this.mainGridView.TabIndex = 7;
+ this.mainGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mainGridView_CellClick);
+ this.mainGridView.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.mainGridView_RowPrePaint);
+ //
+ // D_DeliverGoodsLine_ID
+ //
+ this.D_DeliverGoodsLine_ID.DataPropertyName = "DeliverGoodsLine_ID";
+ this.D_DeliverGoodsLine_ID.HeaderText = "DeliverGoodsLine_ID";
+ this.D_DeliverGoodsLine_ID.Name = "D_DeliverGoodsLine_ID";
+ this.D_DeliverGoodsLine_ID.ReadOnly = true;
+ this.D_DeliverGoodsLine_ID.Visible = false;
+ //
+ // D_Goods_ID
+ //
+ this.D_Goods_ID.HeaderText = "Goods_ID";
+ this.D_Goods_ID.Name = "D_Goods_ID";
+ this.D_Goods_ID.ReadOnly = true;
+ this.D_Goods_ID.Visible = false;
+ //
+ // D_Date
+ //
+ this.D_Date.HeaderText = "Date";
+ this.D_Date.Name = "D_Date";
+ this.D_Date.ReadOnly = true;
+ this.D_Date.Visible = false;
+ //
+ // D_Finishd
+ //
+ this.D_Finishd.DataPropertyName = "Finishd";
+ this.D_Finishd.HeaderText = "Finishd";
+ this.D_Finishd.Name = "D_Finishd";
+ this.D_Finishd.ReadOnly = true;
+ this.D_Finishd.Visible = false;
+ //
+ // D_DeliverGoodsLine_Name
+ //
+ this.D_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.D_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name";
+ this.D_DeliverGoodsLine_Name.HeaderText = "线路名称";
+ this.D_DeliverGoodsLine_Name.Name = "D_DeliverGoodsLine_Name";
+ this.D_DeliverGoodsLine_Name.ReadOnly = true;
+ //
+ // D_Goods_Name
+ //
+ this.D_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.D_Goods_Name.DataPropertyName = "Goods_Name";
+ this.D_Goods_Name.HeaderText = "产品名称";
+ this.D_Goods_Name.MinimumWidth = 100;
+ this.D_Goods_Name.Name = "D_Goods_Name";
+ this.D_Goods_Name.ReadOnly = true;
+ //
+ // D_Goods_Spec
+ //
+ this.D_Goods_Spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.D_Goods_Spec.DataPropertyName = "Goods_Spec";
+ this.D_Goods_Spec.HeaderText = "规格";
+ this.D_Goods_Spec.MinimumWidth = 90;
+ this.D_Goods_Spec.Name = "D_Goods_Spec";
+ this.D_Goods_Spec.ReadOnly = true;
+ this.D_Goods_Spec.Width = 90;
+ //
+ // D_SecondNumber
+ //
+ this.D_SecondNumber.DataPropertyName = "SecondNumber";
+ dataGridViewCellStyle8.Format = "#0.######";
+ this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle8;
+ this.D_SecondNumber.HeaderText = "订货数量";
+ this.D_SecondNumber.Name = "D_SecondNumber";
+ this.D_SecondNumber.ReadOnly = true;
+ //
+ // D_UnitNum
+ //
+ this.D_UnitNum.DataPropertyName = "UnitNum";
+ dataGridViewCellStyle9.Format = "#0.######";
+ this.D_UnitNum.DefaultCellStyle = dataGridViewCellStyle9;
+ this.D_UnitNum.HeaderText = "订货重量";
+ this.D_UnitNum.Name = "D_UnitNum";
+ this.D_UnitNum.ReadOnly = true;
+ //
+ // D_SSecondNumber
+ //
+ this.D_SSecondNumber.DataPropertyName = "SSecondNumber";
+ dataGridViewCellStyle10.Format = "#0.######";
+ this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle10;
+ this.D_SSecondNumber.HeaderText = "备货数量";
+ this.D_SSecondNumber.Name = "D_SSecondNumber";
+ this.D_SSecondNumber.ReadOnly = true;
+ //
+ // D_SUnitNum
+ //
+ this.D_SUnitNum.DataPropertyName = "SUnitNum";
+ dataGridViewCellStyle11.Format = "#0.######";
+ this.D_SUnitNum.DefaultCellStyle = dataGridViewCellStyle11;
+ this.D_SUnitNum.HeaderText = "备货重量";
+ this.D_SUnitNum.Name = "D_SUnitNum";
+ this.D_SUnitNum.ReadOnly = true;
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Font = new System.Drawing.Font("宋体", 10F);
+ this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(99)))), ((int)(((byte)(219)))));
+ this.label12.Location = new System.Drawing.Point(14, 10);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(77, 14);
+ this.label12.TabIndex = 6;
+ this.label12.Text = "销售订货:";
+ //
+ // panel6
+ //
+ this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.panel6.Controls.Add(this.label13);
+ this.panel6.Controls.Add(this.detailGridView);
+ this.panel6.Location = new System.Drawing.Point(580, 142);
+ this.panel6.Name = "panel6";
+ this.panel6.Size = new System.Drawing.Size(600, 362);
+ this.panel6.TabIndex = 13;
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Font = new System.Drawing.Font("宋体", 10F);
+ this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(126)))), ((int)(((byte)(51)))));
+ this.label13.Location = new System.Drawing.Point(13, 10);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(77, 14);
+ this.label13.TabIndex = 7;
+ this.label13.Text = "销售订货:";
+ //
+ // detailGridView
+ //
+ this.detailGridView.AllowUserToAddRows = false;
+ this.detailGridView.AllowUserToDeleteRows = false;
+ this.detailGridView.AllowUserToResizeColumns = false;
+ this.detailGridView.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203)))));
+ this.detailGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.detailGridView.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)));
+ this.detailGridView.BackgroundColor = System.Drawing.Color.White;
+ this.detailGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.detailGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.detailGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 10F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.detailGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.detailGridView.ColumnHeadersHeight = 30;
+ this.detailGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.detailGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.B_DeliverGoodsLine_Name,
+ this.B_ShortCode,
+ this.B_Goods_Name,
+ this.B_SaleOutStoreID,
+ this.B_SecondNumber,
+ this.B_UnitNumber});
+ this.detailGridView.EnableHeadersVisualStyles = false;
+ this.detailGridView.Location = new System.Drawing.Point(10, 31);
+ this.detailGridView.MultiSelect = false;
+ this.detailGridView.Name = "detailGridView";
+ this.detailGridView.ReadOnly = true;
+ this.detailGridView.RowHeadersVisible = false;
+ dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240)))));
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 10F);
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
+ this.detailGridView.RowsDefaultCellStyle = dataGridViewCellStyle5;
+ this.detailGridView.RowTemplate.Height = 40;
+ this.detailGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.detailGridView.Size = new System.Drawing.Size(580, 320);
+ this.detailGridView.TabIndex = 6;
+ //
+ // B_DeliverGoodsLine_Name
+ //
+ this.B_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.B_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name";
+ this.B_DeliverGoodsLine_Name.HeaderText = "线路名称";
+ this.B_DeliverGoodsLine_Name.Name = "B_DeliverGoodsLine_Name";
+ this.B_DeliverGoodsLine_Name.ReadOnly = true;
+ //
+ // B_ShortCode
+ //
+ this.B_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.B_ShortCode.DataPropertyName = "ShortCode";
+ this.B_ShortCode.HeaderText = "条码";
+ this.B_ShortCode.MinimumWidth = 90;
+ this.B_ShortCode.Name = "B_ShortCode";
+ this.B_ShortCode.ReadOnly = true;
+ this.B_ShortCode.Width = 90;
+ //
+ // B_Goods_Name
+ //
+ this.B_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+ this.B_Goods_Name.DataPropertyName = "Goods_Name";
+ this.B_Goods_Name.HeaderText = "产品名称";
+ this.B_Goods_Name.MinimumWidth = 100;
+ this.B_Goods_Name.Name = "B_Goods_Name";
+ this.B_Goods_Name.ReadOnly = true;
+ //
+ // B_SaleOutStoreID
+ //
+ this.B_SaleOutStoreID.DataPropertyName = "SaleOutStoreID";
+ this.B_SaleOutStoreID.HeaderText = "销售出库单";
+ this.B_SaleOutStoreID.Name = "B_SaleOutStoreID";
+ this.B_SaleOutStoreID.ReadOnly = true;
+ //
+ // B_SecondNumber
+ //
+ this.B_SecondNumber.DataPropertyName = "SecondNumber";
+ dataGridViewCellStyle3.Format = "#0.######";
+ this.B_SecondNumber.DefaultCellStyle = dataGridViewCellStyle3;
+ this.B_SecondNumber.HeaderText = "数量";
+ this.B_SecondNumber.Name = "B_SecondNumber";
+ this.B_SecondNumber.ReadOnly = true;
+ this.B_SecondNumber.Width = 80;
+ //
+ // B_UnitNumber
+ //
+ this.B_UnitNumber.DataPropertyName = "UnitNumber";
+ dataGridViewCellStyle4.Format = "#0.######";
+ this.B_UnitNumber.DefaultCellStyle = dataGridViewCellStyle4;
+ this.B_UnitNumber.HeaderText = "重量";
+ this.B_UnitNumber.Name = "B_UnitNumber";
+ this.B_UnitNumber.ReadOnly = true;
+ this.B_UnitNumber.Width = 80;
+ //
+ // dhUnitNumLbl
+ //
+ this.dhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.dhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F);
+ this.dhUnitNumLbl.ForeColor = System.Drawing.Color.Red;
+ this.dhUnitNumLbl.Location = new System.Drawing.Point(366, 94);
+ this.dhUnitNumLbl.Name = "dhUnitNumLbl";
+ this.dhUnitNumLbl.Size = new System.Drawing.Size(120, 30);
+ this.dhUnitNumLbl.TabIndex = 14;
+ this.dhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Font = new System.Drawing.Font("宋体", 14F);
+ this.label7.Location = new System.Drawing.Point(273, 100);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(85, 19);
+ this.label7.TabIndex = 15;
+ this.label7.Text = "订货重量";
+ //
+ // bhUnitNumLbl
+ //
+ this.bhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.bhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F);
+ this.bhUnitNumLbl.ForeColor = System.Drawing.Color.Red;
+ this.bhUnitNumLbl.Location = new System.Drawing.Point(879, 94);
+ this.bhUnitNumLbl.Name = "bhUnitNumLbl";
+ this.bhUnitNumLbl.Size = new System.Drawing.Size(120, 30);
+ this.bhUnitNumLbl.TabIndex = 18;
+ this.bhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Font = new System.Drawing.Font("宋体", 14F);
+ this.label9.Location = new System.Drawing.Point(786, 100);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(85, 19);
+ this.label9.TabIndex = 19;
+ this.label9.Text = "备货重量";
+ //
+ // bhNumberLbl
+ //
+ this.bhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.bhNumberLbl.Font = new System.Drawing.Font("宋体", 14F);
+ this.bhNumberLbl.ForeColor = System.Drawing.Color.Red;
+ this.bhNumberLbl.Location = new System.Drawing.Point(620, 94);
+ this.bhNumberLbl.Name = "bhNumberLbl";
+ this.bhNumberLbl.Size = new System.Drawing.Size(120, 30);
+ this.bhNumberLbl.TabIndex = 16;
+ this.bhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Font = new System.Drawing.Font("宋体", 14F);
+ this.label11.Location = new System.Drawing.Point(529, 100);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(85, 19);
+ this.label11.TabIndex = 17;
+ this.label11.Text = "备货数量";
+ //
+ // panel7
+ //
+ this.panel7.Controls.Add(this.refresh);
+ this.panel7.Location = new System.Drawing.Point(824, 5);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(346, 44);
+ this.panel7.TabIndex = 20;
+ //
+ // refresh
+ //
+ this.refresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.refresh.ForeColor = System.Drawing.Color.White;
+ this.refresh.Location = new System.Drawing.Point(55, 4);
+ this.refresh.Name = "refresh";
+ this.refresh.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
+ this.refresh.Size = new System.Drawing.Size(75, 35);
+ this.refresh.TabIndex = 0;
+ this.refresh.Text = "刷新";
+ this.refresh.UseVisualStyleBackColor = false;
+ this.refresh.Click += new System.EventHandler(this.refresh_Click);
+ //
+ // SegmentStockUpForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1212, 600);
+ this.ImeMode = System.Windows.Forms.ImeMode.Disable;
+ this.KeyPreview = true;
+ this.Name = "SegmentStockUpForm";
+ this.Text = "销售备货";
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.panel5.ResumeLayout(false);
+ this.panel5.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit();
+ this.panel6.ResumeLayout(false);
+ this.panel6.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).EndInit();
+ this.panel7.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private WinFormControl.UScanPanel uScanPanel1;
+ private System.Windows.Forms.Label dataPicker;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label dhNumberLbl;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label driveLineLbl;
+ private System.Windows.Forms.Label goodsLbl;
+ private System.Windows.Forms.Panel panel4;
+ private System.Windows.Forms.Panel panel5;
+ private System.Windows.Forms.Panel panel6;
+ private System.Windows.Forms.Label label12;
+ private WinFormControl.UDataGridView mainGridView;
+ private System.Windows.Forms.Label label13;
+ private WinFormControl.UDataGridView detailGridView;
+ private System.Windows.Forms.Label bhUnitNumLbl;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label bhNumberLbl;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label dhUnitNumLbl;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Panel panel7;
+ private Controls.ColorButton refresh;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_DeliverGoodsLine_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Date;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Finishd;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_DeliverGoodsLine_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Spec;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SecondNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_UnitNum;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SSecondNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn D_SUnitNum;
+ private System.Windows.Forms.DataGridViewTextBoxColumn B_DeliverGoodsLine_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn B_ShortCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn B_SaleOutStoreID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn B_SecondNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn B_UnitNumber;
+ }
+}
\ No newline at end of file
diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs
new file mode 100644
index 0000000..74e6c33
--- /dev/null
+++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs
@@ -0,0 +1,191 @@
+using ButcherFactory.BO;
+using ButcherFactory.BO.LocalBL;
+using ButcherFactory.BO.Utils;
+using ButcherFactory.Controls;
+using ButcherFactory.Dialogs;
+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 ButcherFactory.SegmentStockUp_
+{
+ public partial class SegmentStockUpForm : FormTemplate, IWithRoleForm
+ {
+ #region IWithRoleForm
+ public List RoleName
+ {
+ get { return new List { (short)设备类别.销售备货 }; }
+ }
+
+ public Form Generate()
+ {
+ return this;
+ }
+ #endregion
+
+ DateTime sendTime = DateTime.Today;
+ List allMain;
+ List allDetail;
+ BindingList mainList;
+ BindingList detailList;
+
+ public SegmentStockUpForm()
+ {
+ InitializeComponent();
+ allMain = new List();
+ allDetail = new List();
+ dataPicker.Text = sendTime.ToString("yyyy-MM-dd");
+ uScanPanel1.AfterScan += uScanPanel1_AfterScan;
+ }
+
+ void uScanPanel1_AfterScan()
+ {
+ var code = uScanPanel1.TextBox.Text;
+ if (string.IsNullOrEmpty(code))
+ return;
+ if (allDetail.Any(x => x.BarCode == code))
+ throw new Exception("条码已使用过");
+ if (SegmentStockUpBL.CheckBarCodeUsed(code))
+ throw new Exception("条码已使用过");
+ var info = SegmentStockUpBL.StockUpScan(code);
+ if (info == null)
+ {
+ MessageBox.Show("未发现该条码信息");
+ return;
+ }
+ if (!allMain.Any(x => x.Goods_Code == info.StringExt1 && x.Date == sendTime))
+ {
+ var gt = SegmentStockUpBL.GetStockUpEntity(sendTime, info.StringExt1);
+ allMain.AddRange(gt);
+ var first = gt.Where(x => !x.Finishd).OrderBy(x => x.SequenceNumber).FirstOrDefault();
+ if (first != null)
+ FillAllDetail(sendTime, first.DeliverGoodsLine_ID, first.Goods_ID);
+ else
+ {
+ MessageBox.Show("无待备货出库单");
+ return;
+ }
+ }
+ InsertDetail(info);
+ }
+
+ void InsertDetail(ExtensionObj scan)
+ {
+ var first = allMain.Where(x => x.Date == sendTime && x.Goods_Code == scan.StringExt1 && !x.Finishd).OrderBy(x => x.SequenceNumber).FirstOrDefault();
+ if (first == null)
+ {
+ MessageBox.Show("无待备货出库单");
+ return;
+ }
+ var detail = new StockUpDetail();
+ detail.BarCode = uScanPanel1.TextBox.Text;
+ detail.Date = sendTime;
+ detail.DeliverGoodsLine_ID = first.DeliverGoodsLine_ID;
+ detail.DeliverGoodsLine_Name = first.DeliverGoodsLine_Name;
+ detail.Goods_Code = first.Goods_Code;
+ detail.Goods_ID = first.Goods_ID;
+ detail.Goods_Name = first.Goods_Name;
+ detail.Goods_Spec = first.Goods_Spec;
+ detail.UnitNumber = scan.DecimalExt1;
+ if (detail.UnitNumber.HasValue && first.Rate.HasValue)
+ detail.SecondNumber = detail.UnitNumber * first.Rate;
+ SegmentStockUpBL.InsertStockUpDetail(detail);
+ allDetail.Add(detail);
+ first.SSecondNumber = (first.SSecondNumber ?? 0) + (detail.SecondNumber ?? 0);
+ first.SUnitNum = (first.SUnitNum ?? 0) + (detail.UnitNumber ?? 0);
+ BindMainGrid(sendTime, first.Goods_ID);
+ }
+
+ void FillAllDetail(DateTime date, long driverLineID, long goodsID)
+ {
+ if (allDetail.Any(x => x.Date == date && x.DeliverGoodsLine_ID == driverLineID && x.Goods_ID == goodsID))
+ return;
+ var n = SegmentStockUpBL.GetDetails(date, driverLineID, goodsID);
+ allDetail.AddRange(n);
+ }
+
+ void BindMainGrid(DateTime date, long goodsID)
+ {
+ var main = allMain.Where(x => x.Date == date && x.Goods_ID == goodsID).OrderBy(x => x.Finishd).OrderBy(x => x.SequenceNumber);
+ mainList = new BindingList(main.ToList());
+
+ mainGridView.DataSource = mainList;
+ mainGridView.Refresh();
+ BindDetail(main.FirstOrDefault());
+ }
+
+ void BindDetail(StockUpEntity first)
+ {
+ if (first != null)
+ {
+ driveLineLbl.Text = first.DeliverGoodsLine_Name;
+ goodsLbl.Text = first.Goods_Name;
+
+ dhNumberLbl.Text = string.Format("{0:#0.##}", first.SecondNumber);
+ dhUnitNumLbl.Text = string.Format("{0:#0.##}", first.UnitNum);
+ bhNumberLbl.Text = string.Format("{0:#0.##}", first.SSecondNumber);
+ bhUnitNumLbl.Text = string.Format("{0:#0.##}", first.SUnitNum);
+ if (!allDetail.Any(x => x.Date == first.Date && x.DeliverGoodsLine_ID == first.DeliverGoodsLine_ID && x.Goods_ID == first.Goods_ID))
+ allDetail.AddRange(SegmentStockUpBL.GetDetails(first.Date, first.DeliverGoodsLine_ID, first.Goods_ID));
+ var detail = allDetail.Where(x => x.Date == first.Date && x.DeliverGoodsLine_ID == first.DeliverGoodsLine_ID && x.Goods_ID == first.Goods_ID).OrderByDescending(x => x.ID);
+ detailList = new BindingList(detail.ToList());
+ }
+ else
+ {
+ driveLineLbl.Text = string.Empty;
+ goodsLbl.Text = string.Empty;
+ dhNumberLbl.Text = string.Empty;
+ dhUnitNumLbl.Text = string.Empty;
+ bhNumberLbl.Text = string.Empty;
+ bhUnitNumLbl.Text = string.Empty;
+
+ detailList = new BindingList();
+ }
+ detailGridView.DataSource = detailList;
+ detailGridView.Refresh();
+ }
+
+ private void refresh_Click(object sender, EventArgs e)
+ {
+ if (mainList == null || !mainList.Any())
+ return;
+ allMain = SegmentStockUpBL.RefreshList(sendTime, allMain.Select(x => x.Goods_ID).Distinct());
+ allDetail.Clear();
+ BindMainGrid(sendTime, mainList.First().Goods_ID);
+ }
+
+ private void dataPicker_Click(object sender, EventArgs e)
+ {
+ var cs = new CalendarSelecter();
+ if (cs.ShowDialog() == true)
+ {
+ sendTime = cs.Result;
+ dataPicker.Text = sendTime.ToString("yyyy-MM-dd");
+ }
+ }
+
+ private void mainGridView_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex < 0)
+ return;
+ var item = mainGridView.CurrentRow.DataBoundItem as StockUpEntity;
+ BindDetail(item);
+ }
+
+ private void mainGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
+ {
+ DataGridViewRow dgrSingle = mainGridView.Rows[e.RowIndex];
+ var v = (bool)dgrSingle.Cells["D_Finishd"].Value;
+ if (v)
+ {
+ dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen;
+ }
+ }
+ }
+}
diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx
new file mode 100644
index 0000000..d1e40c1
--- /dev/null
+++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/Utils/ControlsUtil.cs b/ButcherFactory.Form/Utils/ControlsUtil.cs
index 3c1859a..d535f3a 100644
--- a/ButcherFactory.Form/Utils/ControlsUtil.cs
+++ b/ButcherFactory.Form/Utils/ControlsUtil.cs
@@ -36,5 +36,21 @@ namespace ButcherFactory.Utils
box.DataSource = source;
box.Refresh();
}
+
+ public static Form GetParentFormm(Control control)
+ {
+ if (control.Parent != null)
+ {
+ if (control.Parent is Form)
+ {
+ return control.Parent as Form; ;
+ }
+ else
+ {
+ return GetParentFormm(control.Parent);
+ }
+ }
+ return control as Form;
+ }
}
}
diff --git a/ButcherFactory.Login/Login.xaml.cs b/ButcherFactory.Login/Login.xaml.cs
index 6347659..3e5eb99 100644
--- a/ButcherFactory.Login/Login.xaml.cs
+++ b/ButcherFactory.Login/Login.xaml.cs
@@ -16,7 +16,7 @@ namespace ButcherFactory.Login
{
InitializeComponent();
#if DEBUG
- pwdInput.Password = "123";
+ pwdInput.Password = AppContext.ConnectInfo.ServerMode == 0 ? "123" : "bwp2017";
#endif
try
diff --git a/SelfHelpClient/BO/WeightBill.cs b/SelfHelpClient/BO/WeightBill.cs
index 2358b3c..ee05c80 100644
--- a/SelfHelpClient/BO/WeightBill.cs
+++ b/SelfHelpClient/BO/WeightBill.cs
@@ -9,8 +9,11 @@ namespace SelfHelpClient.BO
public class WeightBill
{
public long ID { get; set; }
+
public string Supplier_Name { get; set; }
+ public string BankAccount { get; set; }
+
public string PurchaseType_Name { get; set; }
public DateTime WeighTime { get; set; }
diff --git a/SelfHelpClient/DialogForm.Designer.cs b/SelfHelpClient/DialogForm.Designer.cs
index a2b6918..e81879f 100644
--- a/SelfHelpClient/DialogForm.Designer.cs
+++ b/SelfHelpClient/DialogForm.Designer.cs
@@ -29,7 +29,9 @@
private void InitializeComponent()
{
this.msgLbl = new WinFormControl.ULabel();
- this.okBtn = new WinFormControl.NButton();
+ this.backPanel = new System.Windows.Forms.Panel();
+ this.okBtn = new System.Windows.Forms.Label();
+ this.backPanel.SuspendLayout();
this.SuspendLayout();
//
// msgLbl
@@ -46,21 +48,29 @@
this.msgLbl.Text = "uLabel1";
this.msgLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
+ // backPanel
+ //
+ this.backPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backPanel.Controls.Add(this.okBtn);
+ this.backPanel.Location = new System.Drawing.Point(129, 170);
+ this.backPanel.Name = "backPanel";
+ this.backPanel.Size = new System.Drawing.Size(158, 63);
+ this.backPanel.TabIndex = 2;
+ this.backPanel.Click += new System.EventHandler(this.okBtn_Click);
+ //
// okBtn
//
- this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.okBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.okBtn.Font = new System.Drawing.Font("宋体", 18F);
+ this.okBtn.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.okBtn.AutoSize = true;
+ this.okBtn.BackColor = System.Drawing.Color.Transparent;
+ this.okBtn.Font = new System.Drawing.Font("宋体", 15F);
this.okBtn.ForeColor = System.Drawing.Color.White;
- this.okBtn.Location = new System.Drawing.Point(124, 156);
+ this.okBtn.Location = new System.Drawing.Point(56, 23);
this.okBtn.Name = "okBtn";
- this.okBtn.PlaySound = false;
- this.okBtn.Size = new System.Drawing.Size(158, 63);
- this.okBtn.SoundType = WinFormControl.SoundType.Click;
- this.okBtn.TabIndex = 1;
- this.okBtn.Text = "nButton1";
- this.okBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.okBtn.UseVisualStyleBackColor = false;
+ this.okBtn.Size = new System.Drawing.Size(49, 20);
+ this.okBtn.TabIndex = 0;
+ this.okBtn.Text = "返货";
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// DialogForm
@@ -68,12 +78,14 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(417, 251);
- this.Controls.Add(this.okBtn);
+ this.Controls.Add(this.backPanel);
this.Controls.Add(this.msgLbl);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "DialogForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "DialogForm";
+ this.backPanel.ResumeLayout(false);
+ this.backPanel.PerformLayout();
this.ResumeLayout(false);
}
@@ -81,6 +93,7 @@
#endregion
private WinFormControl.ULabel msgLbl;
- private WinFormControl.NButton okBtn;
+ private System.Windows.Forms.Panel backPanel;
+ private System.Windows.Forms.Label okBtn;
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/DialogForm.cs b/SelfHelpClient/DialogForm.cs
index 1e04b08..dcb0453 100644
--- a/SelfHelpClient/DialogForm.cs
+++ b/SelfHelpClient/DialogForm.cs
@@ -41,12 +41,18 @@ namespace SelfHelpClient
}
}
+ bool seted = false;
void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
this.Invoke(new Action(() =>
{
if (sec > 0)
{
+ if (!seted)
+ {
+ this.okBtn.Location = new Point(20, 23);
+ seted = true;
+ }
this.okBtn.Text = string.Format("确定({0}秒)", sec);
sec--;
}
diff --git a/SelfHelpClient/ItemSelect.Designer.cs b/SelfHelpClient/ItemSelect.Designer.cs
index a67277d..7891212 100644
--- a/SelfHelpClient/ItemSelect.Designer.cs
+++ b/SelfHelpClient/ItemSelect.Designer.cs
@@ -37,9 +37,10 @@
this.R_CarNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Date = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.uLabel1 = new WinFormControl.ULabel();
- this.backBtn = new WinFormControl.NButton();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
+ this.backBtn.SuspendLayout();
this.SuspendLayout();
//
// uDataGridView1
@@ -52,29 +53,35 @@
this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.uDataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.uDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 23F);
- dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(220)))), ((int)(((byte)(156)))));
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 20F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
- this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.uDataGridView1.ColumnHeadersHeight = 60;
+ this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.R_ID,
this.R_CarNumber,
this.R_Number,
this.R_Date});
- this.uDataGridView1.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.uDataGridView1.Location = new System.Drawing.Point(0, 68);
+ this.uDataGridView1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.uDataGridView1.EnableHeadersVisualStyles = false;
+ this.uDataGridView1.Location = new System.Drawing.Point(0, 0);
this.uDataGridView1.MultiSelect = false;
this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.RowHeadersVisible = false;
+ dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(239)))), ((int)(((byte)(254)))));
dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 18F);
- dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle4;
this.uDataGridView1.RowTemplate.Height = 80;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView1.Size = new System.Drawing.Size(650, 332);
+ this.uDataGridView1.Size = new System.Drawing.Size(730, 465);
this.uDataGridView1.TabIndex = 0;
this.uDataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uDataGridView1_CellClick);
//
@@ -111,63 +118,57 @@
this.R_Date.Name = "R_Date";
this.R_Date.ReadOnly = true;
//
- // uLabel1
- //
- this.uLabel1.AutoSize = true;
- this.uLabel1.BackColor = System.Drawing.Color.Transparent;
- this.uLabel1.Font = new System.Drawing.Font("宋体", 18F);
- this.uLabel1.ForeColor = System.Drawing.Color.Red;
- this.uLabel1.Location = new System.Drawing.Point(12, 19);
- this.uLabel1.Name = "uLabel1";
- this.uLabel1.Size = new System.Drawing.Size(298, 24);
- this.uLabel1.TabIndex = 1;
- this.uLabel1.Text = "请选择要办理的送猪信息单";
- //
// backBtn
//
- this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.backBtn.Font = new System.Drawing.Font("宋体", 18F);
- this.backBtn.ForeColor = System.Drawing.Color.White;
- this.backBtn.Location = new System.Drawing.Point(533, 3);
+ this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(305, 497);
this.backBtn.Name = "backBtn";
- this.backBtn.PlaySound = false;
- this.backBtn.Size = new System.Drawing.Size(113, 63);
- this.backBtn.SoundType = WinFormControl.SoundType.Click;
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
this.backBtn.TabIndex = 2;
- this.backBtn.TabStop = false;
- this.backBtn.Text = "返回";
- this.backBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.UseVisualStyleBackColor = false;
this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
//
+ // backBtnLbl
+ //
+ this.backBtnLbl.AutoSize = true;
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
// ItemSelect
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.SystemColors.Control;
- this.ClientSize = new System.Drawing.Size(650, 400);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.ClientSize = new System.Drawing.Size(730, 552);
this.Controls.Add(this.backBtn);
- this.Controls.Add(this.uLabel1);
this.Controls.Add(this.uDataGridView1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "ItemSelect";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "ItemSelect";
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
+ this.backBtn.ResumeLayout(false);
+ this.backBtn.PerformLayout();
this.ResumeLayout(false);
- this.PerformLayout();
}
#endregion
private WinFormControl.UDataGridView uDataGridView1;
- private WinFormControl.ULabel uLabel1;
- private WinFormControl.NButton backBtn;
private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn R_CarNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Number;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Date;
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/MainForm.Designer.cs b/SelfHelpClient/MainForm.Designer.cs
index d10760e..bfcb4fd 100644
--- a/SelfHelpClient/MainForm.Designer.cs
+++ b/SelfHelpClient/MainForm.Designer.cs
@@ -29,10 +29,21 @@
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
- this.weightBtn = new WinFormControl.NButton();
- this.selfBtn = new WinFormControl.NButton();
- this.testClose = new WinFormControl.NButton();
+ this.weightBtn = new System.Windows.Forms.Panel();
+ this.weightBtnLbl = new System.Windows.Forms.Label();
+ this.selfBtn = new System.Windows.Forms.Panel();
+ this.selfBtnLbl = new System.Windows.Forms.Label();
+ this.titlePanel = new System.Windows.Forms.Panel();
+ this.closeBtn = new System.Windows.Forms.Panel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.logoPanel = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label2 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
+ this.weightBtn.SuspendLayout();
+ this.selfBtn.SuspendLayout();
+ this.titlePanel.SuspendLayout();
+ this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -47,69 +58,142 @@
//
// weightBtn
//
- this.weightBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.weightBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.weightBtn.Font = new System.Drawing.Font("宋体", 23F);
- this.weightBtn.ForeColor = System.Drawing.Color.White;
- this.weightBtn.Location = new System.Drawing.Point(392, 64);
+ this.weightBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.guobang;
+ this.weightBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.weightBtn.Controls.Add(this.weightBtnLbl);
+ this.weightBtn.Location = new System.Drawing.Point(388, 64);
this.weightBtn.Name = "weightBtn";
- this.weightBtn.PlaySound = true;
this.weightBtn.Size = new System.Drawing.Size(235, 128);
- this.weightBtn.SoundType = WinFormControl.SoundType.Click;
- this.weightBtn.TabIndex = 1;
- this.weightBtn.Text = "送猪过磅";
- this.weightBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.weightBtn.UseVisualStyleBackColor = false;
+ this.weightBtn.TabIndex = 3;
this.weightBtn.Click += new System.EventHandler(this.weightBtn_Click);
//
+ // weightBtnLbl
+ //
+ this.weightBtnLbl.AutoSize = true;
+ this.weightBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.weightBtnLbl.Font = new System.Drawing.Font("宋体", 23F);
+ this.weightBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.weightBtnLbl.Location = new System.Drawing.Point(49, 47);
+ this.weightBtnLbl.Name = "weightBtnLbl";
+ this.weightBtnLbl.Size = new System.Drawing.Size(138, 31);
+ this.weightBtnLbl.TabIndex = 0;
+ this.weightBtnLbl.Text = "送猪过磅";
+ this.weightBtnLbl.Click += new System.EventHandler(this.weightBtn_Click);
+ //
// selfBtn
//
- this.selfBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.selfBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.selfBtn.Font = new System.Drawing.Font("宋体", 23F);
- this.selfBtn.ForeColor = System.Drawing.Color.White;
- this.selfBtn.Location = new System.Drawing.Point(23, 64);
+ this.selfBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.zizhufuwu;
+ this.selfBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.selfBtn.Controls.Add(this.selfBtnLbl);
+ this.selfBtn.Location = new System.Drawing.Point(20, 64);
this.selfBtn.Name = "selfBtn";
- this.selfBtn.PlaySound = true;
this.selfBtn.Size = new System.Drawing.Size(235, 128);
- this.selfBtn.SoundType = WinFormControl.SoundType.Click;
- this.selfBtn.TabIndex = 0;
- this.selfBtn.Text = "自助服务";
- this.selfBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.selfBtn.UseVisualStyleBackColor = false;
+ this.selfBtn.TabIndex = 2;
this.selfBtn.Click += new System.EventHandler(this.selfBtn_Click);
//
- // testClose
- //
- this.testClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.testClose.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.testClose.ClickColor = System.Drawing.Color.YellowGreen;
- this.testClose.Font = new System.Drawing.Font("宋体", 12F);
- this.testClose.ForeColor = System.Drawing.Color.White;
- this.testClose.Location = new System.Drawing.Point(798, 12);
- this.testClose.Name = "testClose";
- this.testClose.PlaySound = false;
- this.testClose.Size = new System.Drawing.Size(99, 59);
- this.testClose.SoundType = WinFormControl.SoundType.Click;
- this.testClose.TabIndex = 1;
- this.testClose.Text = "关闭";
- this.testClose.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.testClose.UseVisualStyleBackColor = false;
- this.testClose.Click += new System.EventHandler(this.testClose_Click);
+ // selfBtnLbl
+ //
+ this.selfBtnLbl.AutoSize = true;
+ this.selfBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.selfBtnLbl.Font = new System.Drawing.Font("宋体", 23F);
+ this.selfBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.selfBtnLbl.Location = new System.Drawing.Point(49, 47);
+ this.selfBtnLbl.Name = "selfBtnLbl";
+ this.selfBtnLbl.Size = new System.Drawing.Size(138, 31);
+ this.selfBtnLbl.TabIndex = 0;
+ this.selfBtnLbl.Text = "自助服务";
+ this.selfBtnLbl.Click += new System.EventHandler(this.selfBtn_Click);
+ //
+ // titlePanel
+ //
+ this.titlePanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.titleBg;
+ this.titlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.titlePanel.Controls.Add(this.closeBtn);
+ this.titlePanel.Controls.Add(this.label1);
+ this.titlePanel.Controls.Add(this.logoPanel);
+ this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top;
+ this.titlePanel.Location = new System.Drawing.Point(0, 0);
+ this.titlePanel.Name = "titlePanel";
+ this.titlePanel.Size = new System.Drawing.Size(928, 80);
+ this.titlePanel.TabIndex = 1;
+ //
+ // closeBtn
+ //
+ this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.closeBtn.BackColor = System.Drawing.Color.Transparent;
+ this.closeBtn.Location = new System.Drawing.Point(880, 22);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.Size = new System.Drawing.Size(36, 33);
+ this.closeBtn.TabIndex = 2;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold);
+ this.label1.ForeColor = System.Drawing.Color.White;
+ this.label1.Location = new System.Drawing.Point(70, 27);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(210, 24);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "屠宰自助服务系统";
+ //
+ // logoPanel
+ //
+ this.logoPanel.BackColor = System.Drawing.Color.Transparent;
+ this.logoPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.logo;
+ this.logoPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.logoPanel.Location = new System.Drawing.Point(25, 22);
+ this.logoPanel.Name = "logoPanel";
+ this.logoPanel.Size = new System.Drawing.Size(34, 34);
+ this.logoPanel.TabIndex = 0;
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(60)))), ((int)(((byte)(203)))));
+ this.panel2.Controls.Add(this.label2);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.panel2.Location = new System.Drawing.Point(0, 478);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(928, 43);
+ this.panel2.TabIndex = 2;
+ //
+ // label2
+ //
+ this.label2.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("宋体", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.White;
+ this.label2.Location = new System.Drawing.Point(391, 14);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(151, 15);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "欢迎使用自助服务机";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.LightGray;
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.ClientSize = new System.Drawing.Size(928, 521);
- this.Controls.Add(this.testClose);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.titlePanel);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "MainForm";
this.Text = "Form1";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false);
+ this.weightBtn.ResumeLayout(false);
+ this.weightBtn.PerformLayout();
+ this.selfBtn.ResumeLayout(false);
+ this.selfBtn.PerformLayout();
+ this.titlePanel.ResumeLayout(false);
+ this.titlePanel.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
this.ResumeLayout(false);
}
@@ -117,9 +201,16 @@
#endregion
private System.Windows.Forms.Panel panel1;
- private WinFormControl.NButton selfBtn;
- private WinFormControl.NButton weightBtn;
- private WinFormControl.NButton testClose;
+ private System.Windows.Forms.Panel titlePanel;
+ private System.Windows.Forms.Panel logoPanel;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Panel closeBtn;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Panel selfBtn;
+ private System.Windows.Forms.Label selfBtnLbl;
+ private System.Windows.Forms.Panel weightBtn;
+ private System.Windows.Forms.Label weightBtnLbl;
}
}
diff --git a/SelfHelpClient/MainForm.cs b/SelfHelpClient/MainForm.cs
index a8ce98c..0e8a42f 100644
--- a/SelfHelpClient/MainForm.cs
+++ b/SelfHelpClient/MainForm.cs
@@ -41,8 +41,8 @@ namespace SelfHelpClient
DialogForm.ShowDialog("没有待办理业务", 5);
return;
}
- new SelfHelpForm(entity.ID).Show();
- this.Hide();
+ new SelfHelpForm(entity.ID).ShowDialog();
+ //this.Hide();
}
private void weightBtn_Click(object sender, EventArgs e)
@@ -62,7 +62,7 @@ namespace SelfHelpClient
return null; ;
}
- private void testClose_Click(object sender, EventArgs e)
+ private void closeBtn_Click(object sender, EventArgs e)
{
this.Close();
}
diff --git a/SelfHelpClient/Properties/Resources.Designer.cs b/SelfHelpClient/Properties/Resources.Designer.cs
index 9b8580d..dfac3c8 100644
--- a/SelfHelpClient/Properties/Resources.Designer.cs
+++ b/SelfHelpClient/Properties/Resources.Designer.cs
@@ -59,5 +59,105 @@ namespace SelfHelpClient.Properties {
resourceCulture = value;
}
}
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap fanhui {
+ get {
+ object obj = ResourceManager.GetObject("fanhui", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap ganying {
+ get {
+ object obj = ResourceManager.GetObject("ganying", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap guobang {
+ get {
+ object obj = ResourceManager.GetObject("guobang", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap logo {
+ get {
+ object obj = ResourceManager.GetObject("logo", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap queren {
+ get {
+ object obj = ResourceManager.GetObject("queren", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap shuaka {
+ get {
+ object obj = ResourceManager.GetObject("shuaka", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap titleBg {
+ get {
+ object obj = ResourceManager.GetObject("titleBg", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap washCarBtn {
+ get {
+ object obj = ResourceManager.GetObject("washCarBtn", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap weightPrintBtn {
+ get {
+ object obj = ResourceManager.GetObject("weightPrintBtn", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap zizhufuwu {
+ get {
+ object obj = ResourceManager.GetObject("zizhufuwu", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/SelfHelpClient/Properties/Resources.resx b/SelfHelpClient/Properties/Resources.resx
index af7dbeb..13aff6c 100644
--- a/SelfHelpClient/Properties/Resources.resx
+++ b/SelfHelpClient/Properties/Resources.resx
@@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
@@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
+
@@ -68,9 +69,10 @@
-
+
+
@@ -85,9 +87,10 @@
-
+
+
@@ -109,9 +112,40 @@
2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\bin\Debug\fanhui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\ganying.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\guobang.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\queren.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\shuaka.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\titleBg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\washCarBtn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\weightPrintBtn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\bin\Debug\zizhufuwu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/SelfHelpClient/ReadCardForm.Designer.cs b/SelfHelpClient/ReadCardForm.Designer.cs
index e938951..05621e0 100644
--- a/SelfHelpClient/ReadCardForm.Designer.cs
+++ b/SelfHelpClient/ReadCardForm.Designer.cs
@@ -28,61 +28,123 @@
///
private void InitializeComponent()
{
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.uLabel2 = new WinFormControl.ULabel();
this.uLabel1 = new WinFormControl.ULabel();
- this.backBtn = new WinFormControl.NButton();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
+ this.ganyingPanel = new System.Windows.Forms.Panel();
+ this.shuakaPanel = new System.Windows.Forms.Panel();
+ this.panel1.SuspendLayout();
+ this.backBtn.SuspendLayout();
this.SuspendLayout();
//
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(200)))), ((int)(((byte)(135)))));
+ this.panel1.Controls.Add(this.ganyingPanel);
+ this.panel1.Controls.Add(this.uLabel2);
+ this.panel1.Controls.Add(this.uLabel1);
+ this.panel1.Controls.Add(this.shuakaPanel);
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(730, 433);
+ this.panel1.TabIndex = 0;
+ //
+ // uLabel2
+ //
+ this.uLabel2.AutoSize = true;
+ this.uLabel2.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.uLabel2.ForeColor = System.Drawing.Color.White;
+ this.uLabel2.Location = new System.Drawing.Point(56, 87);
+ this.uLabel2.Name = "uLabel2";
+ this.uLabel2.Size = new System.Drawing.Size(76, 16);
+ this.uLabel2.TabIndex = 0;
+ this.uLabel2.Text = "进行操作";
+ //
// uLabel1
//
this.uLabel1.AutoSize = true;
this.uLabel1.BackColor = System.Drawing.Color.Transparent;
- this.uLabel1.Font = new System.Drawing.Font("宋体", 23F);
- this.uLabel1.ForeColor = System.Drawing.Color.Red;
- this.uLabel1.Location = new System.Drawing.Point(222, 147);
+ this.uLabel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.uLabel1.ForeColor = System.Drawing.Color.White;
+ this.uLabel1.Location = new System.Drawing.Point(56, 59);
this.uLabel1.Name = "uLabel1";
- this.uLabel1.Size = new System.Drawing.Size(200, 31);
+ this.uLabel1.Size = new System.Drawing.Size(178, 16);
this.uLabel1.TabIndex = 0;
- this.uLabel1.Text = "请扫描身份证";
+ this.uLabel1.Text = "请把身份证放到感应区";
//
// backBtn
//
- this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.backBtn.Font = new System.Drawing.Font("宋体", 18F);
- this.backBtn.ForeColor = System.Drawing.Color.White;
- this.backBtn.Location = new System.Drawing.Point(529, 12);
+ this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(305, 497);
this.backBtn.Name = "backBtn";
- this.backBtn.PlaySound = false;
- this.backBtn.Size = new System.Drawing.Size(113, 63);
- this.backBtn.SoundType = WinFormControl.SoundType.Click;
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
this.backBtn.TabIndex = 1;
- this.backBtn.TabStop = false;
- this.backBtn.Text = "返回";
- this.backBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.UseVisualStyleBackColor = false;
this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
//
+ // backBtnLbl
+ //
+ this.backBtnLbl.AutoSize = true;
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
+ // ganyingPanel
+ //
+ this.ganyingPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.ganying;
+ this.ganyingPanel.Location = new System.Drawing.Point(326, 31);
+ this.ganyingPanel.Name = "ganyingPanel";
+ this.ganyingPanel.Size = new System.Drawing.Size(221, 152);
+ this.ganyingPanel.TabIndex = 1;
+ //
+ // shuakaPanel
+ //
+ this.shuakaPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.shuaka;
+ this.shuakaPanel.Location = new System.Drawing.Point(450, 175);
+ this.shuakaPanel.Name = "shuakaPanel";
+ this.shuakaPanel.Size = new System.Drawing.Size(279, 258);
+ this.shuakaPanel.TabIndex = 2;
+ //
// ReadCardForm
//
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(650, 355);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.ClientSize = new System.Drawing.Size(730, 552);
this.Controls.Add(this.backBtn);
- this.Controls.Add(this.uLabel1);
+ this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.KeyPreview = true;
this.Name = "ReadCardForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.backBtn.ResumeLayout(false);
+ this.backBtn.PerformLayout();
this.ResumeLayout(false);
- this.PerformLayout();
}
#endregion
+ private System.Windows.Forms.Panel panel1;
+ private WinFormControl.ULabel uLabel2;
private WinFormControl.ULabel uLabel1;
- private WinFormControl.NButton backBtn;
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Panel ganyingPanel;
+ private System.Windows.Forms.Panel shuakaPanel;
+ private System.Windows.Forms.Label backBtnLbl;
+
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/SelfHelpClient.csproj b/SelfHelpClient/SelfHelpClient.csproj
index ddb62d7..5da7d44 100644
--- a/SelfHelpClient/SelfHelpClient.csproj
+++ b/SelfHelpClient/SelfHelpClient.csproj
@@ -146,6 +146,16 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/SelfHelpClient/SelfHelpForm.Designer.cs b/SelfHelpClient/SelfHelpForm.Designer.cs
index 51988c4..bd0c770 100644
--- a/SelfHelpClient/SelfHelpForm.Designer.cs
+++ b/SelfHelpClient/SelfHelpForm.Designer.cs
@@ -29,89 +29,117 @@
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
- this.weightPrintBtn = new WinFormControl.NButton();
- this.washCarBtn = new WinFormControl.NButton();
- this.backBtn = new WinFormControl.NButton();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
+ this.weightPrintBtn = new System.Windows.Forms.Panel();
+ this.weightBtnLbl = new System.Windows.Forms.Label();
+ this.washCarBtn = new System.Windows.Forms.Panel();
+ this.selfBtnLbl = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
+ this.backBtn.SuspendLayout();
+ this.weightPrintBtn.SuspendLayout();
+ this.washCarBtn.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
- this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.panel1.Controls.Add(this.weightPrintBtn);
this.panel1.Controls.Add(this.washCarBtn);
- this.panel1.Location = new System.Drawing.Point(136, 137);
+ this.panel1.Location = new System.Drawing.Point(104, 123);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(644, 271);
+ this.panel1.Size = new System.Drawing.Size(644, 257);
this.panel1.TabIndex = 1;
//
+ // backBtn
+ //
+ this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(362, 418);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
+ this.backBtn.TabIndex = 3;
+ this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
+ //
+ // backBtnLbl
+ //
+ this.backBtnLbl.AutoSize = true;
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
// weightPrintBtn
//
- this.weightPrintBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.weightPrintBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.weightPrintBtn.Enabled = false;
- this.weightPrintBtn.Font = new System.Drawing.Font("宋体", 23F);
- this.weightPrintBtn.ForeColor = System.Drawing.Color.White;
- this.weightPrintBtn.Location = new System.Drawing.Point(392, 64);
+ this.weightPrintBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.weightPrintBtn;
+ this.weightPrintBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.weightPrintBtn.Controls.Add(this.weightBtnLbl);
+ this.weightPrintBtn.Location = new System.Drawing.Point(388, 64);
this.weightPrintBtn.Name = "weightPrintBtn";
- this.weightPrintBtn.PlaySound = true;
this.weightPrintBtn.Size = new System.Drawing.Size(235, 128);
- this.weightPrintBtn.SoundType = WinFormControl.SoundType.Click;
- this.weightPrintBtn.TabIndex = 1;
- this.weightPrintBtn.Text = "打印过磅单";
- this.weightPrintBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.weightPrintBtn.UseVisualStyleBackColor = false;
+ this.weightPrintBtn.TabIndex = 7;
+ //
+ // weightBtnLbl
+ //
+ this.weightBtnLbl.AutoSize = true;
+ this.weightBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.weightBtnLbl.Font = new System.Drawing.Font("宋体", 23F);
+ this.weightBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.weightBtnLbl.Location = new System.Drawing.Point(34, 47);
+ this.weightBtnLbl.Name = "weightBtnLbl";
+ this.weightBtnLbl.Size = new System.Drawing.Size(169, 31);
+ this.weightBtnLbl.TabIndex = 0;
+ this.weightBtnLbl.Text = "打印过磅单";
//
// washCarBtn
//
- this.washCarBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.washCarBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.washCarBtn.Font = new System.Drawing.Font("宋体", 23F);
- this.washCarBtn.ForeColor = System.Drawing.Color.White;
- this.washCarBtn.Location = new System.Drawing.Point(23, 64);
+ this.washCarBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.washCarBtn;
+ this.washCarBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.washCarBtn.Controls.Add(this.selfBtnLbl);
+ this.washCarBtn.Location = new System.Drawing.Point(20, 64);
this.washCarBtn.Name = "washCarBtn";
- this.washCarBtn.PlaySound = true;
this.washCarBtn.Size = new System.Drawing.Size(235, 128);
- this.washCarBtn.SoundType = WinFormControl.SoundType.Click;
- this.washCarBtn.TabIndex = 0;
- this.washCarBtn.Text = "打印洗车单";
- this.washCarBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.washCarBtn.UseVisualStyleBackColor = false;
+ this.washCarBtn.TabIndex = 6;
this.washCarBtn.Click += new System.EventHandler(this.washCarBtn_Click);
//
- // backBtn
+ // selfBtnLbl
//
- this.backBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.backBtn.Font = new System.Drawing.Font("宋体", 18F);
- this.backBtn.ForeColor = System.Drawing.Color.White;
- this.backBtn.Location = new System.Drawing.Point(798, 12);
- this.backBtn.Name = "backBtn";
- this.backBtn.PlaySound = false;
- this.backBtn.Size = new System.Drawing.Size(113, 63);
- this.backBtn.SoundType = WinFormControl.SoundType.Click;
- this.backBtn.TabIndex = 3;
- this.backBtn.TabStop = false;
- this.backBtn.Text = "返回";
- this.backBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.UseVisualStyleBackColor = false;
- this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
+ this.selfBtnLbl.AutoSize = true;
+ this.selfBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.selfBtnLbl.Font = new System.Drawing.Font("宋体", 23F);
+ this.selfBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.selfBtnLbl.Location = new System.Drawing.Point(36, 47);
+ this.selfBtnLbl.Name = "selfBtnLbl";
+ this.selfBtnLbl.Size = new System.Drawing.Size(169, 31);
+ this.selfBtnLbl.TabIndex = 0;
+ this.selfBtnLbl.Text = "打印洗车单";
+ this.selfBtnLbl.Click += new System.EventHandler(this.washCarBtn_Click);
//
// SelfHelpForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.LightGray;
- this.ClientSize = new System.Drawing.Size(923, 507);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.ClientSize = new System.Drawing.Size(864, 493);
this.Controls.Add(this.backBtn);
this.Controls.Add(this.panel1);
this.ForeColor = System.Drawing.SystemColors.ControlText;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "SelfHelpForm";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "SelfHelpForm";
- this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false);
+ this.backBtn.ResumeLayout(false);
+ this.backBtn.PerformLayout();
+ this.weightPrintBtn.ResumeLayout(false);
+ this.weightPrintBtn.PerformLayout();
+ this.washCarBtn.ResumeLayout(false);
+ this.washCarBtn.PerformLayout();
this.ResumeLayout(false);
}
@@ -119,8 +147,11 @@
#endregion
private System.Windows.Forms.Panel panel1;
- private WinFormControl.NButton weightPrintBtn;
- private WinFormControl.NButton washCarBtn;
- private WinFormControl.NButton backBtn;
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
+ private System.Windows.Forms.Panel weightPrintBtn;
+ private System.Windows.Forms.Label weightBtnLbl;
+ private System.Windows.Forms.Panel washCarBtn;
+ private System.Windows.Forms.Label selfBtnLbl;
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/SelfHelpForm.cs b/SelfHelpClient/SelfHelpForm.cs
index 6d4ddcb..0372e77 100644
--- a/SelfHelpClient/SelfHelpForm.cs
+++ b/SelfHelpClient/SelfHelpForm.cs
@@ -33,11 +33,17 @@ namespace SelfHelpClient
{
var standard = WeightBillBL.GetCarStandard(billID);
if (standard == null)
+ {
DialogForm.ShowDialog("未填写车辆标准", 5);
+ return;
+ }
var list = XmlUtil.DeserializeFromFile>("CarStandardConfig.xml");
var config = list.FirstOrDefault(x => x.Standard == standard.Value);
if (config == null)
+ {
DialogForm.ShowDialog("未配置车辆费用标准", 5);
+ return;
+ }
var printEntity = WeightBillBL.GetWashPrintEntity(billID, config.Fee);
var dic = new Dictionary();
diff --git a/SelfHelpClient/WeightForm.Designer.cs b/SelfHelpClient/WeightForm.Designer.cs
index 0330f9b..5677bfd 100644
--- a/SelfHelpClient/WeightForm.Designer.cs
+++ b/SelfHelpClient/WeightForm.Designer.cs
@@ -28,29 +28,26 @@
///
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WeightForm));
this.panel1 = new System.Windows.Forms.Panel();
- this.backBtn = new WinFormControl.NButton();
- this.okBtn = new WinFormControl.NButton();
this.panel2 = new System.Windows.Forms.Panel();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
this.weightGrid = new WinFormControl.UDataGridView();
this.D_Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.D_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.D_MaoWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.D_PiWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.D_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
this.farmerGrid = new WinFormControl.UDataGridView();
this.F_Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.F_Farmer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -61,95 +58,65 @@
this.F_Farmer_BankAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.F_Farmer_Tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.F_Farmer_Address = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.titlePanel = new System.Windows.Forms.Panel();
+ this.closeBtn = new System.Windows.Forms.Panel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.logoPanel = new System.Windows.Forms.Panel();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.linePanel = new System.Windows.Forms.Panel();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.label3 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
- this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit();
- this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit();
+ this.titlePanel.SuspendLayout();
+ this.backBtn.SuspendLayout();
+ this.panel5.SuspendLayout();
+ this.panel4.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.backBtn);
- this.panel1.Controls.Add(this.okBtn);
- this.panel1.Location = new System.Drawing.Point(168, 394);
+ this.panel1.Location = new System.Drawing.Point(168, 555);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(614, 100);
+ this.panel1.Size = new System.Drawing.Size(614, 51);
this.panel1.TabIndex = 0;
//
- // backBtn
- //
- this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.backBtn.Font = new System.Drawing.Font("宋体", 23F);
- this.backBtn.ForeColor = System.Drawing.Color.White;
- this.backBtn.Location = new System.Drawing.Point(352, 3);
- this.backBtn.Name = "backBtn";
- this.backBtn.PlaySound = false;
- this.backBtn.Size = new System.Drawing.Size(162, 94);
- this.backBtn.SoundType = WinFormControl.SoundType.Click;
- this.backBtn.TabIndex = 1;
- this.backBtn.Text = "返回";
- this.backBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.backBtn.UseVisualStyleBackColor = false;
- this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
- //
- // okBtn
- //
- this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.okBtn.ClickColor = System.Drawing.Color.YellowGreen;
- this.okBtn.Font = new System.Drawing.Font("宋体", 23F);
- this.okBtn.ForeColor = System.Drawing.Color.White;
- this.okBtn.Location = new System.Drawing.Point(71, 3);
- this.okBtn.Name = "okBtn";
- this.okBtn.PlaySound = false;
- this.okBtn.Size = new System.Drawing.Size(162, 94);
- this.okBtn.SoundType = WinFormControl.SoundType.Click;
- this.okBtn.TabIndex = 0;
- this.okBtn.Text = "确定";
- this.okBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
- this.okBtn.UseVisualStyleBackColor = false;
- this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
- //
// panel2
//
- this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
+ this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.panel2.Controls.Add(this.groupBox2);
- this.panel2.Controls.Add(this.groupBox1);
- this.panel2.Location = new System.Drawing.Point(0, 12);
+ this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(251)))), ((int)(((byte)(255)))));
+ this.panel2.Location = new System.Drawing.Point(6, 86);
this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(926, 362);
+ this.panel2.Size = new System.Drawing.Size(914, 97);
this.panel2.TabIndex = 1;
//
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.weightGrid);
- this.groupBox2.Location = new System.Drawing.Point(4, 230);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(919, 108);
- this.groupBox2.TabIndex = 1;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "过磅信息";
- //
// weightGrid
//
this.weightGrid.AllowUserToAddRows = false;
this.weightGrid.AllowUserToDeleteRows = false;
this.weightGrid.AllowUserToResizeColumns = false;
this.weightGrid.AllowUserToResizeRows = false;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
+ this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle12;
+ this.weightGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.weightGrid.BackgroundColor = System.Drawing.Color.White;
this.weightGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.weightGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.weightGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));
+ dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(120)))), ((int)(((byte)(255)))));
+ dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
this.weightGrid.ColumnHeadersHeight = 40;
this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -158,18 +125,19 @@
this.D_MaoWeight,
this.D_PiWeight,
this.D_Weight});
- this.weightGrid.Dock = System.Windows.Forms.DockStyle.Fill;
- this.weightGrid.Location = new System.Drawing.Point(3, 17);
+ this.weightGrid.EnableHeadersVisualStyles = false;
+ this.weightGrid.Location = new System.Drawing.Point(9, 160);
this.weightGrid.MultiSelect = false;
this.weightGrid.Name = "weightGrid";
this.weightGrid.ReadOnly = true;
this.weightGrid.RowHeadersVisible = false;
- dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle6;
+ dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
+ dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle17.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle17;
this.weightGrid.RowTemplate.Height = 30;
this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.weightGrid.Size = new System.Drawing.Size(913, 88);
+ this.weightGrid.Size = new System.Drawing.Size(893, 88);
this.weightGrid.TabIndex = 0;
//
// D_Index
@@ -191,8 +159,8 @@
//
this.D_MaoWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_MaoWeight.DataPropertyName = "MaoWeight";
- dataGridViewCellStyle3.Format = "#0.######";
- this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle14.Format = "#0.######";
+ this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle14;
this.D_MaoWeight.HeaderText = "毛重";
this.D_MaoWeight.Name = "D_MaoWeight";
this.D_MaoWeight.ReadOnly = true;
@@ -201,8 +169,8 @@
//
this.D_PiWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_PiWeight.DataPropertyName = "PiWeight";
- dataGridViewCellStyle4.Format = "#0.######";
- this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle15.Format = "#0.######";
+ this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle15;
this.D_PiWeight.HeaderText = "皮重";
this.D_PiWeight.Name = "D_PiWeight";
this.D_PiWeight.ReadOnly = true;
@@ -211,37 +179,32 @@
//
this.D_Weight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle5.Format = "#0.######";
- this.D_Weight.DefaultCellStyle = dataGridViewCellStyle5;
+ dataGridViewCellStyle16.Format = "#0.######";
+ this.D_Weight.DefaultCellStyle = dataGridViewCellStyle16;
this.D_Weight.HeaderText = "重量";
this.D_Weight.Name = "D_Weight";
this.D_Weight.ReadOnly = true;
//
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.farmerGrid);
- this.groupBox1.Location = new System.Drawing.Point(4, 78);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(920, 109);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "养殖户信息";
- //
// farmerGrid
//
this.farmerGrid.AllowUserToAddRows = false;
this.farmerGrid.AllowUserToDeleteRows = false;
this.farmerGrid.AllowUserToResizeColumns = false;
this.farmerGrid.AllowUserToResizeRows = false;
- dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
+ dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
+ this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle18;
+ this.farmerGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.farmerGrid.BackgroundColor = System.Drawing.Color.White;
this.farmerGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
+ this.farmerGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.farmerGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));
+ dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(129)))), ((int)(((byte)(255)))));
+ dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19;
this.farmerGrid.ColumnHeadersHeight = 40;
this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -254,18 +217,19 @@
this.F_Farmer_BankAccount,
this.F_Farmer_Tel,
this.F_Farmer_Address});
- this.farmerGrid.Dock = System.Windows.Forms.DockStyle.Fill;
- this.farmerGrid.Location = new System.Drawing.Point(3, 17);
+ this.farmerGrid.EnableHeadersVisualStyles = false;
+ this.farmerGrid.Location = new System.Drawing.Point(9, 14);
this.farmerGrid.MultiSelect = false;
this.farmerGrid.Name = "farmerGrid";
this.farmerGrid.ReadOnly = true;
this.farmerGrid.RowHeadersVisible = false;
- dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle11.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle11;
+ dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
+ dataGridViewCellStyle22.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle22.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle22;
this.farmerGrid.RowTemplate.Height = 30;
this.farmerGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.farmerGrid.Size = new System.Drawing.Size(914, 89);
+ this.farmerGrid.Size = new System.Drawing.Size(893, 107);
this.farmerGrid.TabIndex = 0;
//
// F_Index
@@ -297,8 +261,8 @@
// F_Weight
//
this.F_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle9.Format = "#0.######";
- this.F_Weight.DefaultCellStyle = dataGridViewCellStyle9;
+ dataGridViewCellStyle20.Format = "#0.######";
+ this.F_Weight.DefaultCellStyle = dataGridViewCellStyle20;
this.F_Weight.HeaderText = "重量";
this.F_Weight.Name = "F_Weight";
this.F_Weight.ReadOnly = true;
@@ -306,8 +270,8 @@
// F_Money
//
this.F_Money.DataPropertyName = "Money";
- dataGridViewCellStyle10.Format = "#0.######";
- this.F_Money.DefaultCellStyle = dataGridViewCellStyle10;
+ dataGridViewCellStyle21.Format = "#0.######";
+ this.F_Money.DefaultCellStyle = dataGridViewCellStyle21;
this.F_Money.HeaderText = "棚前金额";
this.F_Money.Name = "F_Money";
this.F_Money.ReadOnly = true;
@@ -352,11 +316,129 @@
this.F_Farmer_Address.Name = "F_Farmer_Address";
this.F_Farmer_Address.ReadOnly = true;
//
+ // titlePanel
+ //
+ this.titlePanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.titleBg;
+ this.titlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.titlePanel.Controls.Add(this.closeBtn);
+ this.titlePanel.Controls.Add(this.label1);
+ this.titlePanel.Controls.Add(this.logoPanel);
+ this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top;
+ this.titlePanel.Location = new System.Drawing.Point(0, 0);
+ this.titlePanel.Name = "titlePanel";
+ this.titlePanel.Size = new System.Drawing.Size(926, 80);
+ this.titlePanel.TabIndex = 2;
+ //
+ // closeBtn
+ //
+ this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.closeBtn.BackColor = System.Drawing.Color.Transparent;
+ this.closeBtn.Location = new System.Drawing.Point(878, 22);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.Size = new System.Drawing.Size(36, 33);
+ this.closeBtn.TabIndex = 2;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold);
+ this.label1.ForeColor = System.Drawing.Color.White;
+ this.label1.Location = new System.Drawing.Point(70, 27);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(210, 24);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "屠宰自助服务系统";
+ //
+ // logoPanel
+ //
+ this.logoPanel.BackColor = System.Drawing.Color.Transparent;
+ this.logoPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.logo;
+ this.logoPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.logoPanel.Location = new System.Drawing.Point(25, 22);
+ this.logoPanel.Name = "logoPanel";
+ this.logoPanel.Size = new System.Drawing.Size(34, 34);
+ this.logoPanel.TabIndex = 0;
+ //
+ // backBtn
+ //
+ this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(352, -3);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
+ this.backBtn.TabIndex = 2;
+ this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
+ //
+ // backBtnLbl
+ //
+ this.backBtnLbl.AutoSize = true;
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
+ // panel5
+ //
+ this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel5.BackColor = System.Drawing.Color.White;
+ this.panel5.Controls.Add(this.linePanel);
+ this.panel5.Controls.Add(this.weightGrid);
+ this.panel5.Controls.Add(this.farmerGrid);
+ this.panel5.Location = new System.Drawing.Point(6, 194);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(914, 253);
+ this.panel5.TabIndex = 1;
+ //
+ // linePanel
+ //
+ this.linePanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.linePanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
+ this.linePanel.Location = new System.Drawing.Point(2, 138);
+ this.linePanel.Name = "linePanel";
+ this.linePanel.Size = new System.Drawing.Size(910, 1);
+ this.linePanel.TabIndex = 1;
+ //
+ // panel4
+ //
+ this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
+ this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.panel4.Controls.Add(this.label3);
+ this.panel4.Location = new System.Drawing.Point(122, -1);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(121, 52);
+ this.panel4.TabIndex = 4;
+ this.panel4.Click += new System.EventHandler(this.okBtn_Click);
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.Transparent;
+ this.label3.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.label3.ForeColor = System.Drawing.Color.White;
+ this.label3.Location = new System.Drawing.Point(37, 17);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(49, 19);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "确认";
+ this.label3.Click += new System.EventHandler(this.okBtn_Click);
+ //
// WeightForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(926, 514);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.ClientSize = new System.Drawing.Size(926, 625);
+ this.Controls.Add(this.panel5);
+ this.Controls.Add(this.titlePanel);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
@@ -364,11 +446,15 @@
this.Text = "WeightForm";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit();
- this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).EndInit();
+ this.titlePanel.ResumeLayout(false);
+ this.titlePanel.PerformLayout();
+ this.backBtn.ResumeLayout(false);
+ this.backBtn.PerformLayout();
+ this.panel5.ResumeLayout(false);
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
this.ResumeLayout(false);
}
@@ -376,11 +462,7 @@
#endregion
private System.Windows.Forms.Panel panel1;
- private WinFormControl.NButton backBtn;
- private WinFormControl.NButton okBtn;
private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.GroupBox groupBox2;
private WinFormControl.UDataGridView farmerGrid;
private WinFormControl.UDataGridView weightGrid;
private System.Windows.Forms.DataGridViewTextBoxColumn F_Index;
@@ -397,5 +479,15 @@
private System.Windows.Forms.DataGridViewTextBoxColumn D_MaoWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn D_PiWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn D_Weight;
+ private System.Windows.Forms.Panel titlePanel;
+ private System.Windows.Forms.Panel closeBtn;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Panel logoPanel;
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
+ private System.Windows.Forms.Panel panel5;
+ private System.Windows.Forms.Panel linePanel;
+ private System.Windows.Forms.Panel panel4;
+ private System.Windows.Forms.Label label3;
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/WeightForm.cs b/SelfHelpClient/WeightForm.cs
index 1c2f1f1..1e00fa1 100644
--- a/SelfHelpClient/WeightForm.cs
+++ b/SelfHelpClient/WeightForm.cs
@@ -25,7 +25,7 @@ namespace SelfHelpClient
else
entity = WeightBillBL.GetWeightBill(view.ID);
var tableHeight = InitTableLayoutPanel();
- BuildGridPanel(tableHeight);
+ BuildGridPanel();
this.FormClosing += delegate
{
if (refersh != null && refersh.IsAlive)
@@ -66,25 +66,30 @@ namespace SelfHelpClient
}
}
- private void BuildGridPanel(int tableHeight)
+ private void BuildGridPanel()
{
- groupBox1.Location = new Point(0, tableHeight + 10);
- groupBox1.Width = Screen.PrimaryScreen.Bounds.Width;
- groupBox1.Height = 200;
+ panel5.Location = new Point(6, panel2.Location.Y + panel2.Height + 6);
+ panel5.Height = 320;
- groupBox2.Location = new Point(0, tableHeight + groupBox1.Height + 10);
- groupBox2.Width = Screen.PrimaryScreen.Bounds.Width;
- groupBox2.Height = 150;
+ farmerGrid.Height = 180;
+
+ linePanel.Location = new Point(0, 9 + 180 + 15);
+
+ weightGrid.Height = 110;
+ weightGrid.Location = new Point(9, linePanel.Location.Y + 15);
}
+ Color fontColor = Color.FromArgb(238, 104, 15);
private int InitTableLayoutPanel()
{
TableLayoutPanel tablePanel = new TableLayoutPanel();
- tablePanel.Width = Screen.PrimaryScreen.Bounds.Width;
- panel2.Controls.Add(tablePanel);
+ tablePanel.Location = new Point(9, 15);
+ tablePanel.Width = Screen.PrimaryScreen.Bounds.Width - 10;
var dic = BuildFields();
var table = ComputeColAndRow(dic.Count);
- tablePanel.Height = 60 * table.Rows + 5;
+ tablePanel.Height = 40 * table.Rows + 20;
+ panel2.Height = tablePanel.Height + 10;
+ panel2.Controls.Add(tablePanel);
DynamicLayout(tablePanel, table);
var type = typeof(WeightBill);
var r = 0;
@@ -119,6 +124,7 @@ namespace SelfHelpClient
break;
}
Label content = BuildLabel(lbl);
+ content.ForeColor = fontColor;
tablePanel.Controls.Add(content);
tablePanel.SetRow(content, r);
tablePanel.SetColumn(content, c);
@@ -136,8 +142,8 @@ namespace SelfHelpClient
TableSturct ComputeColAndRow(int fileCount)
{
- var screenWidth = Screen.PrimaryScreen.Bounds.Width;
- var col = Math.Floor((decimal)screenWidth / (160 + 280));
+ var screenWidth = Screen.PrimaryScreen.Bounds.Width - 10;
+ var col = Math.Floor((decimal)screenWidth / (110 + 200));
var row = Math.Ceiling(fileCount / col);
return new TableSturct() { Rows = (int)row, Cols = (int)col * 2 };
}
@@ -147,7 +153,7 @@ namespace SelfHelpClient
layoutPanel.RowCount = table.Rows; //设置分成几行
for (int i = 0; i < table.Rows; i++)
{
- layoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 60));
+ layoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 40));
}
layoutPanel.ColumnCount = table.Cols; //设置分成几列
for (int i = 0; i < table.Cols; i++)
@@ -169,7 +175,7 @@ namespace SelfHelpClient
{
Label label = new Label();
label.Text = content;
- label.Font = new System.Drawing.Font("宋体", 18);
+ label.Font = new System.Drawing.Font("宋体", 14);
label.Dock = DockStyle.Fill;
label.TextAlign = ContentAlignment.MiddleLeft;
return label;
diff --git a/SelfHelpClient/WeightForm.resx b/SelfHelpClient/WeightForm.resx
index f088455..cd6023a 100644
--- a/SelfHelpClient/WeightForm.resx
+++ b/SelfHelpClient/WeightForm.resx
@@ -117,6 +117,40 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAAKkAAABSCAYAAAAvgPT1AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAGLUlEQVR4Xu3c2XJUVRTG8fMA
+ Dig4AYqIgIwJiIqIhaXlCAgBAiQiRBAQkEmkEEqGhIRJFBRREVAUEZDpWbhSy2cQNJGQhOxerq/30E0n
+ VFlFJ66L7+JXWTl7n3P1r0PonJys+rhktSekbtFJ+WPJKXHLz4isPCuy+pzI2vMi6y+IfHBRZIP68BJR
+ eaAndIW+0Bl6Q3foDx1qj79pl7UikmVzjklNzYmcvH3SyTs/O1l6xsl7v+Rk5fmcrL6QkzUXc7JWrbuU
+ k/VEZYKe0BX6QmfoDd2hP3SIHtGl9lmdVR2Vy9Xf64EfdOEnJ3WnnCw+7WTZ2ZwsVysQ7DlvlV6IqBxi
+ U+gLnaE3dIf+0CF6rP4uJ+gzm35EOquO4YCT+SecvPWjrxibUfQS3F1Pa+Fq2Rmi8ohNoS90lo9Tu0N/
+ 6BA9okvtsz1742uRad84mfmtk9mI9bhu0jtrrW5cgLurnrRQT4ZFRGUSm0Jf6Ay9oTv0hw7RI7pEn9kr
+ h0VePYxvtNoQ66yjTn8W8CfM1aLn4S6rF4AaotsUW0JX6AudoTd0h/7QIXpEl+gze+mQyIsHnbz8hR78
+ Uhd1YdpXulE3zUC0R7wqPZmonGJb6Ay9oTv0hw7RI7pEn9mUgyLP73cy5TM9eEAPItjPdaNueu2Qk9cR
+ bpGpehGi21HcE/pCZ+gN3aE/dIge811qn9nkAyIT9zqZtM/J5E/CwqdOXgjRRjiZqJyK+0Jv6A79oUP0
+ iC7RZzZxv8j4RicTmpw8vcvJM7t1cY+TZ9Uk3fQcNiJgoh6AvtAZekN36A8dokd0iT6zCftExtY7qVCV
+ Dbqw03tSN8CEIk/piVHxcaL/4lb9xNZie+gQPaJL9JmN3ysyYmtORqpR2wpGb/fGEPWw2Fpxf+gRXaLP
+ fKTDN+du8sQWbwRRL4nNlbYYIs3JsE1O4SuRJfrPv/aZj3ToRhdgJrLAN5kiHbLBBZiJLPBNpkgfW+cC
+ zEQW+CZTpIPXuAAzkQW+yRTpoPddgJnIAt9kivSRFS7ATGSBbzJFOnC5CzATWeCbTJEOWOoCzEQW+CZT
+ pP2XuAAzkQW+yRTpg3UuwExkgW8yRfrAQhdgJrLAN5kivX+BCzATWeCbTJHeVxsJkRG+yRRpv/mREBnh
+ m0yR9p0bCZERvskU6b3VkRAZ4ZtMkd4zOxIiI3yTKdI+VZEQGeGbTJHePTMSIiN8kynSu2ZEQmSEb7IQ
+ 6ZuRLhKZ4JtMkd45PRIiI3yThUinRbpIZIJvMkV6x9RIiIzwTTJSMoyRknmMlMxjpGReaaT6vyhPF4lM
+ 8E2mSPkRFNlT8hEUP8wne3yTKVL+WpTsKfm1KB8wIXt8kylSPqpH9pQ8qseHnsmekoee+8yKdJHIBN9k
+ ivSeOZEQGeGbTJHyr0XJnpK/Fu07LxIiI3yTKdJ+NZEQGeGbTJHyXVBkT8m7oPhWPbKn5K16fD8p2VPy
+ ftKH6lyAmcgC32SKtP9iF2AmssA3mSId8K4LMBNZ4JtMkQ5c5gLMRBb4JlOkD69wAWYiC3yTKdJBq1yA
+ mcgC32SK9NHVLsBMZIFvMkU6eK0LMBNZ4JtMkQ5Z7wLMRBb4JlOkj29wAWYiC3yTKdKhG12AmcgC36SP
+ dE9Ohm1yRfA90f+p0CP6zEc6/CNXsLmYrhH1iqLuinoMkToZsaXzFrBG1Bu6669TI3U+0pEf3yAyKR/p
+ uN2dMnJrh2onMqZD0KdGekNGbW8v0uZtI+plsb2iHtGnRtoho3e0qeslWgu2E/WQ4s66NNimkXZopLs6
+ ZEz9ddUqY3RjwbUuRu/4p1vd7SWC7nqB7vbe1B961C7Rp0baLmMbWgPdWK8X6KKFqId07Q0dxibRZzau
+ qU0qduIgFqMWGVvfTNS70F1Rh+gSfWaVTddvVDTqgbwWXWgO/paKBvhLTyDqGegr3xl6i+2hw9Ck9tmO
+ SC9XNIVAG7EBm/UCUcPV4ApRmYW2QmvoLt9fvkPtsekaIr2cVTa21lTmi22WyvwGbMQJV9WVgoY/icqr
+ uC/0FtpDh75H7bKxtRqRqmuLKne2/F7R0NyZv/XWg55QryfuiPRCRGUV2kJn+d60u/yPmM2d2uOv2mWt
+ iGT/ArSen2rwTNYRAAAAAElFTkSuQmCC
+
+
True