From 1cc22169bd5166619f945400b8dbac03bc5e370c Mon Sep 17 00:00:00 2001
From: luanhui <1029149336@qq.com>
Date: Wed, 15 Nov 2017 11:49:13 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E6=9D=A1=E9=B2=9C=E5=93=81=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7=E7=AB=AF=20=E5=AE=A2=E6=88=B7=EF=BC=8C=E7=BA=BF?=
=?UTF-8?q?=E8=B7=AF=EF=BC=8C=E5=87=BA=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
B3ButcherManageClient.sln | 10 +-
BO/BO.csproj | 6 +-
BO/BO/BaseInfo/Customer.cs | 23 +
BO/BO/BaseInfo/DeliverGoodsLine.cs | 23 +
BO/BO/LocalBO/LocalCustomer.cs | 20 -
BO/BO/LocalBO/LocalSendLine.cs | 20 -
BO/Utils/BillRpc/CustomerRpc.cs | 51 ++
BO/Utils/BillRpc/DeliverGoodsLineRpc.cs | 51 ++
Distribution/Distribution.csproj | 9 +
Distribution/DistributionForm.Designer.cs | 911 +++++++++++-----------
Distribution/DistributionForm.cs | 7 +
Distribution/LocalBo/LocalSaleOutStore.cs | 89 +++
12 files changed, 715 insertions(+), 505 deletions(-)
create mode 100644 BO/BO/BaseInfo/Customer.cs
create mode 100644 BO/BO/BaseInfo/DeliverGoodsLine.cs
delete mode 100644 BO/BO/LocalBO/LocalCustomer.cs
delete mode 100644 BO/BO/LocalBO/LocalSendLine.cs
create mode 100644 BO/Utils/BillRpc/CustomerRpc.cs
create mode 100644 BO/Utils/BillRpc/DeliverGoodsLineRpc.cs
create mode 100644 Distribution/LocalBo/LocalSaleOutStore.cs
diff --git a/B3ButcherManageClient.sln b/B3ButcherManageClient.sln
index 72e564d..0f861a0 100644
--- a/B3ButcherManageClient.sln
+++ b/B3ButcherManageClient.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.40629.0
+# Visual Studio 15
+VisualStudioVersion = 15.0.27004.2002
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BO", "BO\BO.csproj", "{8968F14A-C7C7-4751-96CE-B114FBFD65EF}"
EndProject
@@ -35,8 +35,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ByProductWeight", "ByProduc
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Distribution", "Distribution\Distribution.csproj", "{054F5E88-9AF0-430F-990E-17B8B268D59A}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DropPigReOrder", "DropPigReOrder\DropPigReOrder.csproj", "{031BDA81-6DCE-41CD-B8FB-D5334A4940B0}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -105,10 +103,6 @@ Global
{054F5E88-9AF0-430F-990E-17B8B268D59A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{054F5E88-9AF0-430F-990E-17B8B268D59A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{054F5E88-9AF0-430F-990E-17B8B268D59A}.Release|Any CPU.Build.0 = Release|Any CPU
- {031BDA81-6DCE-41CD-B8FB-D5334A4940B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {031BDA81-6DCE-41CD-B8FB-D5334A4940B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {031BDA81-6DCE-41CD-B8FB-D5334A4940B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {031BDA81-6DCE-41CD-B8FB-D5334A4940B0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/BO/BO.csproj b/BO/BO.csproj
index b5b0a18..cca6c4c 100644
--- a/BO/BO.csproj
+++ b/BO/BO.csproj
@@ -67,6 +67,8 @@
+
+
@@ -88,8 +90,6 @@
-
-
@@ -98,6 +98,8 @@
+
+
diff --git a/BO/BO/BaseInfo/Customer.cs b/BO/BO/BaseInfo/Customer.cs
new file mode 100644
index 0000000..a5d23a3
--- /dev/null
+++ b/BO/BO/BaseInfo/Customer.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Forks.EnterpriseServices.DomainObjects2;
+using TSingSoft.WebPluginFramework;
+
+namespace BO.BO.BaseInfo
+{
+
+ [Serializable, BOClass]
+ [KeyField("ID", KeyGenType.assigned)]
+ [MapToTable("Customer")]
+ public class Customer
+ {
+ public long ID { get; set; }
+
+ public string Name { get; set; }
+
+ public string Spell { get; set; }
+ }
+}
diff --git a/BO/BO/BaseInfo/DeliverGoodsLine.cs b/BO/BO/BaseInfo/DeliverGoodsLine.cs
new file mode 100644
index 0000000..2e4dfea
--- /dev/null
+++ b/BO/BO/BaseInfo/DeliverGoodsLine.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Forks.EnterpriseServices.DomainObjects2;
+using TSingSoft.WebPluginFramework;
+
+namespace BO.BO.BaseInfo
+{
+
+ [Serializable, BOClass]
+ [KeyField("ID", KeyGenType.assigned)]
+ [MapToTable("DeliverGoodsLine")]
+ public class DeliverGoodsLine
+ {
+ public long ID { get; set; }
+
+ public string Name { get; set; }
+
+ public string Spell { get; set; }
+ }
+}
diff --git a/BO/BO/LocalBO/LocalCustomer.cs b/BO/BO/LocalBO/LocalCustomer.cs
deleted file mode 100644
index 821114b..0000000
--- a/BO/BO/LocalBO/LocalCustomer.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Forks.EnterpriseServices.DomainObjects2;
-
-namespace BO.BO.LocalBO
-{
- [MapToTable("LocalCustomer")]
- [KeyField("ID", KeyGenType.identity)]
- public class LocalCustomer
- {
- public long ID { get; set; }
- public long B3_ID { get; set; }
- public long B3_Name { get; set; }
- public long B3_Spell { get; set; }
-
- }
-}
diff --git a/BO/BO/LocalBO/LocalSendLine.cs b/BO/BO/LocalBO/LocalSendLine.cs
deleted file mode 100644
index 84eb1f2..0000000
--- a/BO/BO/LocalBO/LocalSendLine.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Forks.EnterpriseServices.DomainObjects2;
-
-namespace BO.BO.LocalBO
-{
- [MapToTable("LocalSendLine")]
- [KeyField("ID", KeyGenType.identity)]
- public class LocalSendLine
- {
- public long ID { get; set; }
- public long B3_ID { get; set; }
- public long B3_Name { get; set; }
- public long B3_Spell { get; set; }
-
- }
-}
diff --git a/BO/Utils/BillRpc/CustomerRpc.cs b/BO/Utils/BillRpc/CustomerRpc.cs
new file mode 100644
index 0000000..48e1128
--- /dev/null
+++ b/BO/Utils/BillRpc/CustomerRpc.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using BO.BO.BaseInfo;
+using Forks.EnterpriseServices.DomainObjects2.DQuery;
+using Forks.JsonRpc.Client;
+using Newtonsoft.Json;
+
+namespace BO.Utils.BillRpc
+{
+ public class CustomerRpc
+ {
+
+ ///
+ /// 获取客户档案 在线则在线查询 同时更新本地数据库 ,不在线则从本地数据查
+ ///
+ /// 查询用的
+ /// 是否更新本地数据库,如果更新则尽量减少使用该方法的次数, 因为客户会有很多
+ ///
+ public static List SyncList(string input="", bool updateLocalDb=true)
+ {
+ if (LoginRpcUtil.TestConnection(1000))
+ {
+ //在线
+ var json = RpcFacade.Call("/MainSystem/B3ClientService/Rpcs/BillRpc/BaseInfoRpc/SyncCustomer",input);
+ var list = JsonConvert.DeserializeObject>(json);
+
+ if (updateLocalDb)
+ {
+ using (var session = LocalDmoSession.New())
+ {
+ foreach (Customer dmo in list)
+ {
+ session.Insert(dmo);
+ }
+ session.Commit();
+ }
+ }
+ return list;
+ }
+
+ var dmoquery = new DmoQuery(typeof(Customer));
+ using (var session = LocalDmoSession.New())
+ {
+ return session.ExecuteList(dmoquery).Cast().ToList();
+ }
+ }
+ }
+}
diff --git a/BO/Utils/BillRpc/DeliverGoodsLineRpc.cs b/BO/Utils/BillRpc/DeliverGoodsLineRpc.cs
new file mode 100644
index 0000000..784c1c9
--- /dev/null
+++ b/BO/Utils/BillRpc/DeliverGoodsLineRpc.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using BO.BO.BaseInfo;
+using Forks.EnterpriseServices.DomainObjects2.DQuery;
+using Forks.JsonRpc.Client;
+using Newtonsoft.Json;
+
+namespace BO.Utils.BillRpc
+{
+ public class DeliverGoodsLineRpc
+ {
+ ///
+ /// 获取送货线路档案 在线则在线查询 同时更新本地数据库 ,不在线则从本地数据查
+ ///
+ /// 查询用的
+ /// 是否更新本地数据库,如果更新则尽量减少使用该方法的次数, 因为客户会有很多
+ ///
+ public static List SyncList(string input = "", bool updateLocalDb = true)
+ {
+ if (LoginRpcUtil.TestConnection(1000))
+ {
+ //在线
+ var json = RpcFacade.Call("/MainSystem/B3ClientService/Rpcs/BillRpc/BaseInfoRpc/SyncDeliverGoodsLine", input);
+ var list = JsonConvert.DeserializeObject>(json);
+
+ if (updateLocalDb)
+ {
+ using (var session = LocalDmoSession.New())
+ {
+ foreach (DeliverGoodsLine dmo in list)
+ {
+ session.Insert(dmo);
+ }
+ session.Commit();
+ }
+ }
+ return list;
+ }
+
+
+ var dmoquery = new DmoQuery(typeof(DeliverGoodsLine));
+ using (var session = LocalDmoSession.New())
+ {
+ return session.ExecuteList(dmoquery).Cast().ToList();
+ }
+ }
+ }
+}
diff --git a/Distribution/Distribution.csproj b/Distribution/Distribution.csproj
index 9d85543..31205e7 100644
--- a/Distribution/Distribution.csproj
+++ b/Distribution/Distribution.csproj
@@ -30,7 +30,15 @@
4
+
+ False
+ C:\Users\luanhui\source\repos\WinFormPrintTest\WinFormPrintTest\bin\Debug\Forks.EnterpriseServices.dll
+
+
+ False
+ C:\Users\luanhui\source\repos\WinFormPrintTest\WinFormPrintTest\bin\Debug\Forks.Utils.dll
+
@@ -53,6 +61,7 @@
DistributionForm.cs
+
diff --git a/Distribution/DistributionForm.Designer.cs b/Distribution/DistributionForm.Designer.cs
index c5d8d1e..4649320 100644
--- a/Distribution/DistributionForm.Designer.cs
+++ b/Distribution/DistributionForm.Designer.cs
@@ -28,57 +28,57 @@
///
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = 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 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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = 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();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.btnSendOver = new System.Windows.Forms.Button();
+ this.btnPrint = new System.Windows.Forms.Button();
+ this.btnWeightRecord = new System.Windows.Forms.Button();
+ this.btnRead = new System.Windows.Forms.Button();
+ this.dataGridViewSaleOutStore = new BWP.WinFormControl.UDataGridView();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.cbxSelectCustomer = new BWP.WinFormControl.UComboBox();
+ this.cbxSelectXianLu = new BWP.WinFormControl.UComboBox();
+ this.dateInput = new BWP.WinFormControl.UDatePicker();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
+ this.btnSearch = new System.Windows.Forms.Button();
+ this.rbtnDanPin = new System.Windows.Forms.RadioButton();
+ this.rbtnXianLu = new System.Windows.Forms.RadioButton();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.txtGuDingShuLiang = new System.Windows.Forms.TextBox();
+ this.rbtnGuDingShuLiang = new System.Windows.Forms.RadioButton();
+ this.rbtnXuanShuShuangJiLiang = new System.Windows.Forms.RadioButton();
+ this.rbtnDanJIanJiZhong = new System.Windows.Forms.RadioButton();
this.enableWeight = new System.Windows.Forms.CheckBox();
this.panel2 = new System.Windows.Forms.Panel();
this.lblChengZhong = new System.Windows.Forms.Label();
this.btnWeightSet = new System.Windows.Forms.Button();
- this.panel3 = new System.Windows.Forms.Panel();
- this.rbtnXianLu = new System.Windows.Forms.RadioButton();
- this.rbtnDanPin = new System.Windows.Forms.RadioButton();
- this.btnSearch = new System.Windows.Forms.Button();
- this.rbtnDanJIanJiZhong = new System.Windows.Forms.RadioButton();
- this.rbtnXuanShuShuangJiLiang = new System.Windows.Forms.RadioButton();
- this.rbtnGuDingShuLiang = new System.Windows.Forms.RadioButton();
- this.txtGuDingShuLiang = new System.Windows.Forms.TextBox();
- this.panel4 = new System.Windows.Forms.Panel();
- this.label1 = new System.Windows.Forms.Label();
- this.dateInput = new BWP.WinFormControl.UDatePicker();
- this.label2 = new System.Windows.Forms.Label();
- this.cbxSelectXianLu = new BWP.WinFormControl.UComboBox();
- this.label3 = new System.Windows.Forms.Label();
- this.cbxSelectCustomer = new BWP.WinFormControl.UComboBox();
- this.dataGridViewSaleOutStore = new BWP.WinFormControl.UDataGridView();
- this.btnRead = new System.Windows.Forms.Button();
- this.btnPrint = new System.Windows.Forms.Button();
- this.btnSendOver = new System.Windows.Forms.Button();
- this.btnWeightRecord = new System.Windows.Forms.Button();
- this.panel5 = new System.Windows.Forms.Panel();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.lblCustomer = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.linkLabel1 = new System.Windows.Forms.LinkLabel();
- this.linkLabel2 = new System.Windows.Forms.LinkLabel();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel6 = new System.Windows.Forms.Panel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.dataGridViewDingHuo = new BWP.WinFormControl.UDataGridView();
this.dataGridViewFaHuo = new BWP.WinFormControl.UDataGridView();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.dataGridViewDingHuo = new BWP.WinFormControl.UDataGridView();
+ this.panel5 = new System.Windows.Forms.Panel();
+ this.linkLabel2 = new System.Windows.Forms.LinkLabel();
+ this.linkLabel1 = new System.Windows.Forms.LinkLabel();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.lblCustomer = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
@@ -88,16 +88,16 @@
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridViewSaleOutStore)).BeginInit();
+ this.panel4.SuspendLayout();
this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewSaleOutStore)).BeginInit();
- this.panel5.SuspendLayout();
- this.groupBox1.SuspendLayout();
+ this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewDingHuo)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewFaHuo)).BeginInit();
+ this.groupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridViewDingHuo)).BeginInit();
+ this.panel5.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
@@ -116,7 +116,7 @@
//
this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1);
this.splitContainer1.Size = new System.Drawing.Size(1347, 728);
- this.splitContainer1.SplitterDistance = 1074;
+ this.splitContainer1.SplitterDistance = 1076;
this.splitContainer1.SplitterWidth = 2;
this.splitContainer1.TabIndex = 0;
//
@@ -144,11 +144,175 @@
this.splitContainer2.Panel2.Controls.Add(this.groupBox2);
this.splitContainer2.Panel2.Controls.Add(this.groupBox1);
this.splitContainer2.Panel2.Controls.Add(this.panel5);
- this.splitContainer2.Size = new System.Drawing.Size(1074, 728);
+ this.splitContainer2.Size = new System.Drawing.Size(1076, 728);
this.splitContainer2.SplitterDistance = 478;
this.splitContainer2.SplitterWidth = 2;
this.splitContainer2.TabIndex = 0;
//
+ // btnSendOver
+ //
+ this.btnSendOver.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnSendOver.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSendOver.Location = new System.Drawing.Point(361, 681);
+ this.btnSendOver.Name = "btnSendOver";
+ this.btnSendOver.Size = new System.Drawing.Size(103, 34);
+ this.btnSendOver.TabIndex = 39;
+ this.btnSendOver.Text = "发货完成";
+ this.btnSendOver.UseVisualStyleBackColor = true;
+ //
+ // btnPrint
+ //
+ this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnPrint.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnPrint.Location = new System.Drawing.Point(237, 681);
+ this.btnPrint.Name = "btnPrint";
+ this.btnPrint.Size = new System.Drawing.Size(93, 34);
+ this.btnPrint.TabIndex = 39;
+ this.btnPrint.Text = "打印";
+ this.btnPrint.UseVisualStyleBackColor = true;
+ //
+ // btnWeightRecord
+ //
+ this.btnWeightRecord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnWeightRecord.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnWeightRecord.Location = new System.Drawing.Point(124, 681);
+ this.btnWeightRecord.Name = "btnWeightRecord";
+ this.btnWeightRecord.Size = new System.Drawing.Size(91, 34);
+ this.btnWeightRecord.TabIndex = 39;
+ this.btnWeightRecord.Text = "称重记录";
+ this.btnWeightRecord.UseVisualStyleBackColor = true;
+ //
+ // btnRead
+ //
+ this.btnRead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btnRead.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnRead.Location = new System.Drawing.Point(9, 681);
+ this.btnRead.Name = "btnRead";
+ this.btnRead.Size = new System.Drawing.Size(91, 34);
+ this.btnRead.TabIndex = 39;
+ this.btnRead.Text = "读入";
+ this.btnRead.UseVisualStyleBackColor = true;
+ //
+ // dataGridViewSaleOutStore
+ //
+ this.dataGridViewSaleOutStore.AllowUserToAddRows = false;
+ this.dataGridViewSaleOutStore.AllowUserToDeleteRows = false;
+ this.dataGridViewSaleOutStore.AllowUserToResizeColumns = false;
+ this.dataGridViewSaleOutStore.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.dataGridViewSaleOutStore.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.dataGridViewSaleOutStore.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.dataGridViewSaleOutStore.BackgroundColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewSaleOutStore.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dataGridViewSaleOutStore.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridViewSaleOutStore.Location = new System.Drawing.Point(4, 241);
+ this.dataGridViewSaleOutStore.MultiSelect = false;
+ this.dataGridViewSaleOutStore.Name = "dataGridViewSaleOutStore";
+ this.dataGridViewSaleOutStore.ReadOnly = true;
+ this.dataGridViewSaleOutStore.RowHeadersVisible = false;
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.dataGridViewSaleOutStore.RowsDefaultCellStyle = dataGridViewCellStyle3;
+ this.dataGridViewSaleOutStore.RowTemplate.Height = 23;
+ this.dataGridViewSaleOutStore.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridViewSaleOutStore.Size = new System.Drawing.Size(469, 417);
+ this.dataGridViewSaleOutStore.TabIndex = 2;
+ //
+ // 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.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel4.Controls.Add(this.cbxSelectCustomer);
+ this.panel4.Controls.Add(this.cbxSelectXianLu);
+ this.panel4.Controls.Add(this.dateInput);
+ this.panel4.Controls.Add(this.label3);
+ this.panel4.Controls.Add(this.label2);
+ this.panel4.Controls.Add(this.label1);
+ this.panel4.Location = new System.Drawing.Point(3, 143);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(470, 91);
+ this.panel4.TabIndex = 1;
+ //
+ // cbxSelectCustomer
+ //
+ this.cbxSelectCustomer.CodeArgs = null;
+ this.cbxSelectCustomer.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cbxSelectCustomer.EnableTopItem = true;
+ this.cbxSelectCustomer.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbxSelectCustomer.FormattingEnabled = true;
+ this.cbxSelectCustomer.Location = new System.Drawing.Point(87, 51);
+ this.cbxSelectCustomer.Name = "cbxSelectCustomer";
+ this.cbxSelectCustomer.Range = 10;
+ this.cbxSelectCustomer.Size = new System.Drawing.Size(122, 27);
+ this.cbxSelectCustomer.TabIndex = 4;
+ //
+ // cbxSelectXianLu
+ //
+ this.cbxSelectXianLu.CodeArgs = null;
+ this.cbxSelectXianLu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cbxSelectXianLu.EnableTopItem = true;
+ this.cbxSelectXianLu.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cbxSelectXianLu.FormattingEnabled = true;
+ this.cbxSelectXianLu.Location = new System.Drawing.Point(324, 12);
+ this.cbxSelectXianLu.Name = "cbxSelectXianLu";
+ this.cbxSelectXianLu.Range = 10;
+ this.cbxSelectXianLu.Size = new System.Drawing.Size(121, 27);
+ this.cbxSelectXianLu.TabIndex = 4;
+ //
+ // dateInput
+ //
+ this.dateInput.BackColor = System.Drawing.Color.White;
+ this.dateInput.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.dateInput.Date = new System.DateTime(2017, 9, 5, 0, 0, 0, 0);
+ this.dateInput.Font = new System.Drawing.Font("宋体", 15F);
+ this.dateInput.Location = new System.Drawing.Point(87, 10);
+ this.dateInput.Name = "dateInput";
+ this.dateInput.Size = new System.Drawing.Size(122, 30);
+ this.dateInput.TabIndex = 3;
+ this.dateInput.Text = "2017/09/05";
+ this.dateInput.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.dateInput.Type = BWP.WinFormControl.DateTimeType.Date;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label3.Location = new System.Drawing.Point(34, 56);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(56, 16);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "客户:";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.Location = new System.Drawing.Point(230, 18);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(88, 16);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "送货线路:";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label1.Location = new System.Drawing.Point(2, 17);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(88, 16);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "发货日期:";
+ //
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -166,59 +330,28 @@
this.panel1.Size = new System.Drawing.Size(470, 133);
this.panel1.TabIndex = 0;
//
- // enableWeight
- //
- this.enableWeight.AutoCheck = false;
- this.enableWeight.AutoSize = true;
- this.enableWeight.Font = new System.Drawing.Font("宋体", 12F);
- this.enableWeight.Location = new System.Drawing.Point(8, 98);
- this.enableWeight.Name = "enableWeight";
- this.enableWeight.Size = new System.Drawing.Size(91, 20);
- this.enableWeight.TabIndex = 36;
- this.enableWeight.Text = "启用称重";
- this.enableWeight.UseVisualStyleBackColor = true;
- //
- // panel2
+ // btnSearch
//
- this.panel2.BackColor = System.Drawing.Color.Black;
- this.panel2.Controls.Add(this.lblChengZhong);
- this.panel2.Location = new System.Drawing.Point(8, 8);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(172, 78);
- this.panel2.TabIndex = 35;
+ this.btnSearch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSearch.Location = new System.Drawing.Point(204, 92);
+ this.btnSearch.Name = "btnSearch";
+ this.btnSearch.Size = new System.Drawing.Size(80, 30);
+ this.btnSearch.TabIndex = 39;
+ this.btnSearch.Text = "查询";
+ this.btnSearch.UseVisualStyleBackColor = true;
+ this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
- // lblChengZhong
+ // rbtnDanPin
//
- this.lblChengZhong.AutoSize = true;
- this.lblChengZhong.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.lblChengZhong.ForeColor = System.Drawing.Color.Red;
- this.lblChengZhong.Location = new System.Drawing.Point(15, 18);
- this.lblChengZhong.Name = "lblChengZhong";
- this.lblChengZhong.Size = new System.Drawing.Size(97, 40);
- this.lblChengZhong.TabIndex = 0;
- this.lblChengZhong.Text = "0.00";
- //
- // btnWeightSet
- //
- this.btnWeightSet.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnWeightSet.Location = new System.Drawing.Point(105, 92);
- this.btnWeightSet.Name = "btnWeightSet";
- this.btnWeightSet.Size = new System.Drawing.Size(75, 30);
- this.btnWeightSet.TabIndex = 34;
- this.btnWeightSet.Text = "称设置";
- this.btnWeightSet.UseVisualStyleBackColor = true;
- //
- // panel3
- //
- this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel3.Controls.Add(this.txtGuDingShuLiang);
- this.panel3.Controls.Add(this.rbtnGuDingShuLiang);
- this.panel3.Controls.Add(this.rbtnXuanShuShuangJiLiang);
- this.panel3.Controls.Add(this.rbtnDanJIanJiZhong);
- this.panel3.Location = new System.Drawing.Point(311, 0);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(156, 131);
- this.panel3.TabIndex = 37;
+ this.rbtnDanPin.AutoSize = true;
+ this.rbtnDanPin.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.rbtnDanPin.Location = new System.Drawing.Point(210, 52);
+ this.rbtnDanPin.Name = "rbtnDanPin";
+ this.rbtnDanPin.Size = new System.Drawing.Size(74, 20);
+ this.rbtnDanPin.TabIndex = 38;
+ this.rbtnDanPin.TabStop = true;
+ this.rbtnDanPin.Text = "按单品";
+ this.rbtnDanPin.UseVisualStyleBackColor = true;
//
// rbtnXianLu
//
@@ -232,49 +365,25 @@
this.rbtnXianLu.Text = "按线路";
this.rbtnXianLu.UseVisualStyleBackColor = true;
//
- // rbtnDanPin
- //
- this.rbtnDanPin.AutoSize = true;
- this.rbtnDanPin.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.rbtnDanPin.Location = new System.Drawing.Point(210, 52);
- this.rbtnDanPin.Name = "rbtnDanPin";
- this.rbtnDanPin.Size = new System.Drawing.Size(74, 20);
- this.rbtnDanPin.TabIndex = 38;
- this.rbtnDanPin.TabStop = true;
- this.rbtnDanPin.Text = "按单品";
- this.rbtnDanPin.UseVisualStyleBackColor = true;
- //
- // btnSearch
- //
- this.btnSearch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSearch.Location = new System.Drawing.Point(204, 92);
- this.btnSearch.Name = "btnSearch";
- this.btnSearch.Size = new System.Drawing.Size(80, 30);
- this.btnSearch.TabIndex = 39;
- this.btnSearch.Text = "查询";
- this.btnSearch.UseVisualStyleBackColor = true;
- //
- // rbtnDanJIanJiZhong
+ // panel3
//
- this.rbtnDanJIanJiZhong.AutoSize = true;
- this.rbtnDanJIanJiZhong.Location = new System.Drawing.Point(18, 11);
- this.rbtnDanJIanJiZhong.Name = "rbtnDanJIanJiZhong";
- this.rbtnDanJIanJiZhong.Size = new System.Drawing.Size(71, 16);
- this.rbtnDanJIanJiZhong.TabIndex = 0;
- this.rbtnDanJIanJiZhong.TabStop = true;
- this.rbtnDanJIanJiZhong.Text = "单件记重";
- this.rbtnDanJIanJiZhong.UseVisualStyleBackColor = true;
+ this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel3.Controls.Add(this.txtGuDingShuLiang);
+ this.panel3.Controls.Add(this.rbtnGuDingShuLiang);
+ this.panel3.Controls.Add(this.rbtnXuanShuShuangJiLiang);
+ this.panel3.Controls.Add(this.rbtnDanJIanJiZhong);
+ this.panel3.Location = new System.Drawing.Point(311, 0);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(156, 131);
+ this.panel3.TabIndex = 37;
//
- // rbtnXuanShuShuangJiLiang
+ // txtGuDingShuLiang
//
- this.rbtnXuanShuShuangJiLiang.AutoSize = true;
- this.rbtnXuanShuShuangJiLiang.Location = new System.Drawing.Point(18, 42);
- this.rbtnXuanShuShuangJiLiang.Name = "rbtnXuanShuShuangJiLiang";
- this.rbtnXuanShuShuangJiLiang.Size = new System.Drawing.Size(83, 16);
- this.rbtnXuanShuShuangJiLiang.TabIndex = 0;
- this.rbtnXuanShuShuangJiLiang.TabStop = true;
- this.rbtnXuanShuShuangJiLiang.Text = "选数双计量";
- this.rbtnXuanShuShuangJiLiang.UseVisualStyleBackColor = true;
+ this.txtGuDingShuLiang.Location = new System.Drawing.Point(18, 100);
+ this.txtGuDingShuLiang.Name = "txtGuDingShuLiang";
+ this.txtGuDingShuLiang.Size = new System.Drawing.Size(64, 21);
+ this.txtGuDingShuLiang.TabIndex = 1;
+ this.txtGuDingShuLiang.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// rbtnGuDingShuLiang
//
@@ -287,177 +396,163 @@
this.rbtnGuDingShuLiang.Text = "固定数量双计量数量";
this.rbtnGuDingShuLiang.UseVisualStyleBackColor = true;
//
- // txtGuDingShuLiang
- //
- this.txtGuDingShuLiang.Location = new System.Drawing.Point(18, 100);
- this.txtGuDingShuLiang.Name = "txtGuDingShuLiang";
- this.txtGuDingShuLiang.Size = new System.Drawing.Size(64, 21);
- this.txtGuDingShuLiang.TabIndex = 1;
- this.txtGuDingShuLiang.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // 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.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel4.Controls.Add(this.cbxSelectCustomer);
- this.panel4.Controls.Add(this.cbxSelectXianLu);
- this.panel4.Controls.Add(this.dateInput);
- this.panel4.Controls.Add(this.label3);
- this.panel4.Controls.Add(this.label2);
- this.panel4.Controls.Add(this.label1);
- this.panel4.Location = new System.Drawing.Point(3, 143);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(470, 91);
- this.panel4.TabIndex = 1;
- //
- // label1
+ // rbtnXuanShuShuangJiLiang
//
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label1.Location = new System.Drawing.Point(2, 17);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(88, 16);
- this.label1.TabIndex = 0;
- this.label1.Text = "发货日期:";
+ this.rbtnXuanShuShuangJiLiang.AutoSize = true;
+ this.rbtnXuanShuShuangJiLiang.Location = new System.Drawing.Point(18, 42);
+ this.rbtnXuanShuShuangJiLiang.Name = "rbtnXuanShuShuangJiLiang";
+ this.rbtnXuanShuShuangJiLiang.Size = new System.Drawing.Size(83, 16);
+ this.rbtnXuanShuShuangJiLiang.TabIndex = 0;
+ this.rbtnXuanShuShuangJiLiang.TabStop = true;
+ this.rbtnXuanShuShuangJiLiang.Text = "选数双计量";
+ this.rbtnXuanShuShuangJiLiang.UseVisualStyleBackColor = true;
//
- // dateInput
+ // rbtnDanJIanJiZhong
//
- this.dateInput.BackColor = System.Drawing.Color.White;
- this.dateInput.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.dateInput.Date = new System.DateTime(2017, 9, 5, 0, 0, 0, 0);
- this.dateInput.Font = new System.Drawing.Font("宋体", 15F);
- this.dateInput.Location = new System.Drawing.Point(87, 10);
- this.dateInput.Name = "dateInput";
- this.dateInput.Size = new System.Drawing.Size(122, 30);
- this.dateInput.TabIndex = 3;
- this.dateInput.Text = "2017/09/05";
- this.dateInput.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.dateInput.Type = BWP.WinFormControl.DateTimeType.Date;
+ this.rbtnDanJIanJiZhong.AutoSize = true;
+ this.rbtnDanJIanJiZhong.Location = new System.Drawing.Point(18, 11);
+ this.rbtnDanJIanJiZhong.Name = "rbtnDanJIanJiZhong";
+ this.rbtnDanJIanJiZhong.Size = new System.Drawing.Size(71, 16);
+ this.rbtnDanJIanJiZhong.TabIndex = 0;
+ this.rbtnDanJIanJiZhong.TabStop = true;
+ this.rbtnDanJIanJiZhong.Text = "单件记重";
+ this.rbtnDanJIanJiZhong.UseVisualStyleBackColor = true;
//
- // label2
+ // enableWeight
//
- this.label2.AutoSize = true;
- this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label2.Location = new System.Drawing.Point(230, 18);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(88, 16);
- this.label2.TabIndex = 0;
- this.label2.Text = "送货线路:";
+ this.enableWeight.AutoCheck = false;
+ this.enableWeight.AutoSize = true;
+ this.enableWeight.Font = new System.Drawing.Font("宋体", 12F);
+ this.enableWeight.Location = new System.Drawing.Point(8, 98);
+ this.enableWeight.Name = "enableWeight";
+ this.enableWeight.Size = new System.Drawing.Size(91, 20);
+ this.enableWeight.TabIndex = 36;
+ this.enableWeight.Text = "启用称重";
+ this.enableWeight.UseVisualStyleBackColor = true;
//
- // cbxSelectXianLu
+ // panel2
//
- this.cbxSelectXianLu.CodeArgs = null;
- this.cbxSelectXianLu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.cbxSelectXianLu.EnableTopItem = true;
- this.cbxSelectXianLu.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.cbxSelectXianLu.FormattingEnabled = true;
- this.cbxSelectXianLu.Location = new System.Drawing.Point(324, 12);
- this.cbxSelectXianLu.Name = "cbxSelectXianLu";
- this.cbxSelectXianLu.Range = 10;
- this.cbxSelectXianLu.Size = new System.Drawing.Size(121, 27);
- this.cbxSelectXianLu.TabIndex = 4;
+ this.panel2.BackColor = System.Drawing.Color.Black;
+ this.panel2.Controls.Add(this.lblChengZhong);
+ this.panel2.Location = new System.Drawing.Point(8, 8);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(172, 78);
+ this.panel2.TabIndex = 35;
//
- // label3
+ // lblChengZhong
//
- this.label3.AutoSize = true;
- this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label3.Location = new System.Drawing.Point(34, 56);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(56, 16);
- this.label3.TabIndex = 0;
- this.label3.Text = "客户:";
+ this.lblChengZhong.AutoSize = true;
+ this.lblChengZhong.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblChengZhong.ForeColor = System.Drawing.Color.Red;
+ this.lblChengZhong.Location = new System.Drawing.Point(15, 18);
+ this.lblChengZhong.Name = "lblChengZhong";
+ this.lblChengZhong.Size = new System.Drawing.Size(97, 40);
+ this.lblChengZhong.TabIndex = 0;
+ this.lblChengZhong.Text = "0.00";
//
- // cbxSelectCustomer
+ // btnWeightSet
//
- this.cbxSelectCustomer.CodeArgs = null;
- this.cbxSelectCustomer.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.cbxSelectCustomer.EnableTopItem = true;
- this.cbxSelectCustomer.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.cbxSelectCustomer.FormattingEnabled = true;
- this.cbxSelectCustomer.Location = new System.Drawing.Point(87, 51);
- this.cbxSelectCustomer.Name = "cbxSelectCustomer";
- this.cbxSelectCustomer.Range = 10;
- this.cbxSelectCustomer.Size = new System.Drawing.Size(122, 27);
- this.cbxSelectCustomer.TabIndex = 4;
+ this.btnWeightSet.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnWeightSet.Location = new System.Drawing.Point(105, 92);
+ this.btnWeightSet.Name = "btnWeightSet";
+ this.btnWeightSet.Size = new System.Drawing.Size(75, 30);
+ this.btnWeightSet.TabIndex = 34;
+ this.btnWeightSet.Text = "称设置";
+ this.btnWeightSet.UseVisualStyleBackColor = true;
//
- // dataGridViewSaleOutStore
+ // panel6
//
- this.dataGridViewSaleOutStore.AllowUserToAddRows = false;
- this.dataGridViewSaleOutStore.AllowUserToDeleteRows = false;
- this.dataGridViewSaleOutStore.AllowUserToResizeColumns = false;
- this.dataGridViewSaleOutStore.AllowUserToResizeRows = false;
- dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dataGridViewSaleOutStore.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
- this.dataGridViewSaleOutStore.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.dataGridViewSaleOutStore.BackgroundColor = System.Drawing.Color.White;
- dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewSaleOutStore.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
- this.dataGridViewSaleOutStore.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewSaleOutStore.Location = new System.Drawing.Point(4, 241);
- this.dataGridViewSaleOutStore.MultiSelect = false;
- this.dataGridViewSaleOutStore.Name = "dataGridViewSaleOutStore";
- this.dataGridViewSaleOutStore.ReadOnly = true;
- this.dataGridViewSaleOutStore.RowHeadersVisible = false;
- dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.dataGridViewSaleOutStore.RowsDefaultCellStyle = dataGridViewCellStyle12;
- this.dataGridViewSaleOutStore.RowTemplate.Height = 23;
- this.dataGridViewSaleOutStore.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dataGridViewSaleOutStore.Size = new System.Drawing.Size(469, 417);
- this.dataGridViewSaleOutStore.TabIndex = 2;
+ this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel6.Location = new System.Drawing.Point(1, 459);
+ this.panel6.Name = "panel6";
+ this.panel6.Size = new System.Drawing.Size(590, 49);
+ this.panel6.TabIndex = 2;
//
- // btnRead
+ // groupBox2
//
- this.btnRead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.btnRead.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnRead.Location = new System.Drawing.Point(9, 681);
- this.btnRead.Name = "btnRead";
- this.btnRead.Size = new System.Drawing.Size(91, 34);
- this.btnRead.TabIndex = 39;
- this.btnRead.Text = "读入";
- this.btnRead.UseVisualStyleBackColor = true;
+ this.groupBox2.Controls.Add(this.dataGridViewFaHuo);
+ this.groupBox2.Location = new System.Drawing.Point(5, 514);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(584, 213);
+ this.groupBox2.TabIndex = 1;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "发货明细";
//
- // btnPrint
+ // dataGridViewFaHuo
//
- this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.btnPrint.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnPrint.Location = new System.Drawing.Point(237, 681);
- this.btnPrint.Name = "btnPrint";
- this.btnPrint.Size = new System.Drawing.Size(93, 34);
- this.btnPrint.TabIndex = 39;
- this.btnPrint.Text = "打印";
- this.btnPrint.UseVisualStyleBackColor = true;
+ this.dataGridViewFaHuo.AllowUserToAddRows = false;
+ this.dataGridViewFaHuo.AllowUserToDeleteRows = false;
+ this.dataGridViewFaHuo.AllowUserToResizeColumns = false;
+ this.dataGridViewFaHuo.AllowUserToResizeRows = false;
+ dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.dataGridViewFaHuo.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
+ this.dataGridViewFaHuo.BackgroundColor = System.Drawing.Color.White;
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewFaHuo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
+ this.dataGridViewFaHuo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridViewFaHuo.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dataGridViewFaHuo.Location = new System.Drawing.Point(3, 17);
+ this.dataGridViewFaHuo.MultiSelect = false;
+ this.dataGridViewFaHuo.Name = "dataGridViewFaHuo";
+ this.dataGridViewFaHuo.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.dataGridViewFaHuo.RowsDefaultCellStyle = dataGridViewCellStyle6;
+ this.dataGridViewFaHuo.RowTemplate.Height = 23;
+ this.dataGridViewFaHuo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridViewFaHuo.Size = new System.Drawing.Size(578, 193);
+ this.dataGridViewFaHuo.TabIndex = 0;
//
- // btnSendOver
+ // groupBox1
//
- this.btnSendOver.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.btnSendOver.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSendOver.Location = new System.Drawing.Point(361, 681);
- this.btnSendOver.Name = "btnSendOver";
- this.btnSendOver.Size = new System.Drawing.Size(103, 34);
- this.btnSendOver.TabIndex = 39;
- this.btnSendOver.Text = "发货完成";
- this.btnSendOver.UseVisualStyleBackColor = true;
+ 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.Controls.Add(this.dataGridViewDingHuo);
+ this.groupBox1.Location = new System.Drawing.Point(4, 143);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(589, 310);
+ this.groupBox1.TabIndex = 1;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "订货明细";
//
- // btnWeightRecord
+ // dataGridViewDingHuo
//
- this.btnWeightRecord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.btnWeightRecord.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnWeightRecord.Location = new System.Drawing.Point(124, 681);
- this.btnWeightRecord.Name = "btnWeightRecord";
- this.btnWeightRecord.Size = new System.Drawing.Size(91, 34);
- this.btnWeightRecord.TabIndex = 39;
- this.btnWeightRecord.Text = "称重记录";
- this.btnWeightRecord.UseVisualStyleBackColor = true;
+ this.dataGridViewDingHuo.AllowUserToAddRows = false;
+ this.dataGridViewDingHuo.AllowUserToDeleteRows = false;
+ this.dataGridViewDingHuo.AllowUserToResizeColumns = false;
+ this.dataGridViewDingHuo.AllowUserToResizeRows = false;
+ dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.dataGridViewDingHuo.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
+ this.dataGridViewDingHuo.BackgroundColor = System.Drawing.Color.White;
+ dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDingHuo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
+ this.dataGridViewDingHuo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridViewDingHuo.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dataGridViewDingHuo.Location = new System.Drawing.Point(3, 17);
+ this.dataGridViewDingHuo.MultiSelect = false;
+ this.dataGridViewDingHuo.Name = "dataGridViewDingHuo";
+ this.dataGridViewDingHuo.ReadOnly = true;
+ this.dataGridViewDingHuo.RowHeadersVisible = false;
+ dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.dataGridViewDingHuo.RowsDefaultCellStyle = dataGridViewCellStyle9;
+ this.dataGridViewDingHuo.RowTemplate.Height = 23;
+ this.dataGridViewDingHuo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridViewDingHuo.Size = new System.Drawing.Size(583, 290);
+ this.dataGridViewDingHuo.TabIndex = 0;
//
// panel5
//
@@ -475,38 +570,32 @@
this.panel5.Controls.Add(this.label4);
this.panel5.Location = new System.Drawing.Point(4, 4);
this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(586, 132);
+ this.panel5.Size = new System.Drawing.Size(590, 132);
this.panel5.TabIndex = 0;
//
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label4.Location = new System.Drawing.Point(3, 33);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(88, 16);
- this.label4.TabIndex = 0;
- this.label4.Text = "会计单位:";
- //
- // label5
+ // linkLabel2
//
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label5.Location = new System.Drawing.Point(180, 69);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(88, 16);
- this.label5.TabIndex = 0;
- this.label5.Text = "出库单号:";
+ this.linkLabel2.AutoSize = true;
+ this.linkLabel2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.linkLabel2.Location = new System.Drawing.Point(376, 69);
+ this.linkLabel2.Name = "linkLabel2";
+ this.linkLabel2.Size = new System.Drawing.Size(56, 16);
+ this.linkLabel2.TabIndex = 1;
+ this.linkLabel2.TabStop = true;
+ this.linkLabel2.Text = "挂钩:";
+ this.linkLabel2.VisitedLinkColor = System.Drawing.Color.Blue;
//
- // label6
+ // linkLabel1
//
- this.label6.AutoSize = true;
- this.label6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label6.Location = new System.Drawing.Point(3, 101);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(88, 16);
- this.label6.TabIndex = 0;
- this.label6.Text = "送货地点:";
+ this.linkLabel1.AutoSize = true;
+ this.linkLabel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.linkLabel1.Location = new System.Drawing.Point(376, 33);
+ this.linkLabel1.Name = "linkLabel1";
+ this.linkLabel1.Size = new System.Drawing.Size(56, 16);
+ this.linkLabel1.TabIndex = 1;
+ this.linkLabel1.TabStop = true;
+ this.linkLabel1.Text = "器具:";
+ this.linkLabel1.VisitedLinkColor = System.Drawing.Color.Blue;
//
// label7
//
@@ -518,26 +607,15 @@
this.label7.TabIndex = 0;
this.label7.Text = "送货地点";
//
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label8.Location = new System.Drawing.Point(212, 33);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(56, 16);
- this.label8.TabIndex = 0;
- this.label8.Text = "仓库:";
- //
- // lblCustomer
+ // label6
//
- this.lblCustomer.AutoSize = true;
- this.lblCustomer.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.lblCustomer.ForeColor = System.Drawing.Color.Red;
- this.lblCustomer.Location = new System.Drawing.Point(3, 3);
- this.lblCustomer.Name = "lblCustomer";
- this.lblCustomer.Size = new System.Drawing.Size(54, 22);
- this.lblCustomer.TabIndex = 0;
- this.lblCustomer.Text = "客户";
+ this.label6.AutoSize = true;
+ this.label6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label6.Location = new System.Drawing.Point(3, 101);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(88, 16);
+ this.label6.TabIndex = 0;
+ this.label6.Text = "送货地点:";
//
// label10
//
@@ -549,130 +627,53 @@
this.label10.TabIndex = 0;
this.label10.Text = "车牌号码:";
//
- // linkLabel1
- //
- this.linkLabel1.AutoSize = true;
- this.linkLabel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.linkLabel1.Location = new System.Drawing.Point(376, 33);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new System.Drawing.Size(56, 16);
- this.linkLabel1.TabIndex = 1;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "器具:";
- this.linkLabel1.VisitedLinkColor = System.Drawing.Color.Blue;
- //
- // linkLabel2
- //
- this.linkLabel2.AutoSize = true;
- this.linkLabel2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.linkLabel2.Location = new System.Drawing.Point(376, 69);
- this.linkLabel2.Name = "linkLabel2";
- this.linkLabel2.Size = new System.Drawing.Size(56, 16);
- this.linkLabel2.TabIndex = 1;
- this.linkLabel2.TabStop = true;
- this.linkLabel2.Text = "挂钩:";
- this.linkLabel2.VisitedLinkColor = System.Drawing.Color.Blue;
- //
- // 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.Controls.Add(this.dataGridViewDingHuo);
- this.groupBox1.Location = new System.Drawing.Point(4, 143);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(585, 310);
- this.groupBox1.TabIndex = 1;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "订货明细";
- //
- // panel6
+ // label5
//
- this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel6.Location = new System.Drawing.Point(1, 459);
- this.panel6.Name = "panel6";
- this.panel6.Size = new System.Drawing.Size(590, 49);
- this.panel6.TabIndex = 2;
+ this.label5.AutoSize = true;
+ this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label5.Location = new System.Drawing.Point(180, 69);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(88, 16);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "出库单号:";
//
- // groupBox2
+ // lblCustomer
//
- this.groupBox2.Controls.Add(this.dataGridViewFaHuo);
- this.groupBox2.Location = new System.Drawing.Point(5, 514);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(584, 213);
- this.groupBox2.TabIndex = 1;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "发货明细";
+ this.lblCustomer.AutoSize = true;
+ this.lblCustomer.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblCustomer.ForeColor = System.Drawing.Color.Red;
+ this.lblCustomer.Location = new System.Drawing.Point(3, 3);
+ this.lblCustomer.Name = "lblCustomer";
+ this.lblCustomer.Size = new System.Drawing.Size(54, 22);
+ this.lblCustomer.TabIndex = 0;
+ this.lblCustomer.Text = "客户";
//
- // dataGridViewDingHuo
+ // label8
//
- this.dataGridViewDingHuo.AllowUserToAddRows = false;
- this.dataGridViewDingHuo.AllowUserToDeleteRows = false;
- this.dataGridViewDingHuo.AllowUserToResizeColumns = false;
- this.dataGridViewDingHuo.AllowUserToResizeRows = false;
- dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dataGridViewDingHuo.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
- this.dataGridViewDingHuo.BackgroundColor = System.Drawing.Color.White;
- dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDingHuo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
- this.dataGridViewDingHuo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewDingHuo.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dataGridViewDingHuo.Location = new System.Drawing.Point(3, 17);
- this.dataGridViewDingHuo.MultiSelect = false;
- this.dataGridViewDingHuo.Name = "dataGridViewDingHuo";
- this.dataGridViewDingHuo.ReadOnly = true;
- this.dataGridViewDingHuo.RowHeadersVisible = false;
- dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.dataGridViewDingHuo.RowsDefaultCellStyle = dataGridViewCellStyle15;
- this.dataGridViewDingHuo.RowTemplate.Height = 23;
- this.dataGridViewDingHuo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dataGridViewDingHuo.Size = new System.Drawing.Size(579, 290);
- this.dataGridViewDingHuo.TabIndex = 0;
+ this.label8.AutoSize = true;
+ this.label8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label8.Location = new System.Drawing.Point(212, 33);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(56, 16);
+ this.label8.TabIndex = 0;
+ this.label8.Text = "仓库:";
//
- // dataGridViewFaHuo
+ // label4
//
- this.dataGridViewFaHuo.AllowUserToAddRows = false;
- this.dataGridViewFaHuo.AllowUserToDeleteRows = false;
- this.dataGridViewFaHuo.AllowUserToResizeColumns = false;
- this.dataGridViewFaHuo.AllowUserToResizeRows = false;
- dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.dataGridViewFaHuo.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16;
- this.dataGridViewFaHuo.BackgroundColor = System.Drawing.Color.White;
- dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewFaHuo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17;
- this.dataGridViewFaHuo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewFaHuo.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dataGridViewFaHuo.Location = new System.Drawing.Point(3, 17);
- this.dataGridViewFaHuo.MultiSelect = false;
- this.dataGridViewFaHuo.Name = "dataGridViewFaHuo";
- this.dataGridViewFaHuo.RowHeadersVisible = false;
- dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.dataGridViewFaHuo.RowsDefaultCellStyle = dataGridViewCellStyle18;
- this.dataGridViewFaHuo.RowTemplate.Height = 23;
- this.dataGridViewFaHuo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dataGridViewFaHuo.Size = new System.Drawing.Size(578, 193);
- this.dataGridViewFaHuo.TabIndex = 0;
+ this.label4.AutoSize = true;
+ this.label4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label4.Location = new System.Drawing.Point(3, 33);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(88, 16);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "会计单位:";
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
- this.flowLayoutPanel1.Size = new System.Drawing.Size(269, 726);
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(267, 726);
this.flowLayoutPanel1.TabIndex = 0;
//
// DistributionForm
@@ -695,21 +696,21 @@
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridViewSaleOutStore)).EndInit();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
- this.panel4.ResumeLayout(false);
- this.panel4.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewSaleOutStore)).EndInit();
- this.panel5.ResumeLayout(false);
- this.panel5.PerformLayout();
- this.groupBox1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
this.groupBox2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewDingHuo)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewFaHuo)).EndInit();
+ this.groupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridViewDingHuo)).EndInit();
+ this.panel5.ResumeLayout(false);
+ this.panel5.PerformLayout();
this.ResumeLayout(false);
}
diff --git a/Distribution/DistributionForm.cs b/Distribution/DistributionForm.cs
index 9acde2b..6007422 100644
--- a/Distribution/DistributionForm.cs
+++ b/Distribution/DistributionForm.cs
@@ -12,6 +12,8 @@ namespace Distribution
{
public partial class DistributionForm : Form
{
+
+ private bool mIsCustomerSynced,mIs;
public DistributionForm()
{
InitializeComponent();
@@ -24,5 +26,10 @@ namespace Distribution
{
}
+
+ private void btnSearch_Click(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/Distribution/LocalBo/LocalSaleOutStore.cs b/Distribution/LocalBo/LocalSaleOutStore.cs
new file mode 100644
index 0000000..4edb9e7
--- /dev/null
+++ b/Distribution/LocalBo/LocalSaleOutStore.cs
@@ -0,0 +1,89 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Forks.EnterpriseServices;
+using Forks.EnterpriseServices.DomainObjects2;
+
+namespace Distribution.LocalBo
+{
+ [Serializable]
+ [KeyField("ID", KeyGenType.identity)]//自增标识
+ [MapToTable("SaleOutStore")]
+ public class SaleOutStore
+ {
+ //自增ID
+ public long ID { get; set; }
+
+ [LogicName("出库单号")]
+ public long SaleOutStore_ID { get; set; }
+
+ [LogicName("购货客户")]
+ public string Customer_Name { get; set; }
+
+ [LogicName("送货地址")]
+ [DbColumn(Length = 100)]
+ public string DeliverAddress { get; set; }
+
+ [LogicName("仓库")]
+ public string Store_Name { get; set; }
+
+
+ [LogicName("运输车辆")]
+ public string Car { get; set; }
+
+ [LogicName("发货时间")]
+ public DateTime? LoadTime { get; set; }
+
+ [LogicName("单据状态")]
+ public string BillState { get; set; }
+
+
+ [LogicName("销售出库明细ID")]
+ public long SaleOutStoreDetail_ID { get; set; }
+
+
+ [LogicName("存货编码")]
+ public string Goods_Code { get; set; }
+
+ [LogicName("存货")]
+ public string Goods_Name { get; set; }
+
+ [LogicName("主数量")]
+ public decimal? Number { get; set; }
+
+ [LogicName("辅数量")]
+ public decimal? SecondNumber { get; set; }
+
+ [LogicName("报价单位")]
+ public string Unit { get; set; }
+
+ [LogicName("报价数量")]
+ public decimal? UnitNum { get; set; }
+
+ [LogicName("主单位比率")]
+ [DbColumn(DefaultValue = 1)]
+ public decimal LeftRatio { get; set; }
+
+ [LogicName("辅单位比率")]
+ [DbColumn(DefaultValue = 1)]
+ public decimal RightRatio { get; set; }
+
+ [LogicName("主单位")]
+ public string Goods_MainUnit { get; set; }
+
+ [LogicName("辅单位")]
+ public string Goods_SecondUnit { get; set; }
+
+ [LogicName("主辅转换方向")]
+ public string Goods_UnitConvertDirection { get; set; }
+
+ [LogicName("主辅换算主单位比例")]
+ public decimal? Goods_MainUnitRatio { get; set; }
+
+ [LogicName("主辅换算辅单位比例")]
+ public decimal? Goods_SecondUnitRatio { get; set; }
+
+ }
+}