From e561690c5c3587af039ab90b700424be220c1190 Mon Sep 17 00:00:00 2001
From: wugang <1029149336@qq.com>
Date: Thu, 2 Nov 2017 19:15:02 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=AD=98=E8=B4=A7=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
BO/BO.csproj | 2 +
BO/BO/Dtos/ClientGoodsSetDto.cs | 18 ++
BO/Utils/BillRpc/ClientGoodsSetRpc.cs | 22 ++
.../TrunksIousOutInStore.csproj | 3 +
.../TrunksIousOutInStoreForm.Designer.cs | 190 +++++++++---------
TrunksIousOutInStore/模块说明.txt | 1 +
6 files changed, 141 insertions(+), 95 deletions(-)
create mode 100644 BO/BO/Dtos/ClientGoodsSetDto.cs
create mode 100644 BO/Utils/BillRpc/ClientGoodsSetRpc.cs
create mode 100644 TrunksIousOutInStore/模块说明.txt
diff --git a/BO/BO.csproj b/BO/BO.csproj
index 23d3278..dd1a49c 100644
--- a/BO/BO.csproj
+++ b/BO/BO.csproj
@@ -75,9 +75,11 @@
+
+
diff --git a/BO/BO/Dtos/ClientGoodsSetDto.cs b/BO/BO/Dtos/ClientGoodsSetDto.cs
new file mode 100644
index 0000000..046ff56
--- /dev/null
+++ b/BO/BO/Dtos/ClientGoodsSetDto.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BO.BO.Dtos
+{
+ [Serializable]
+ public class ClientGoodsSetDto
+ {
+ public string Name { get; set; }
+ public long Goods_ID { get; set; }
+ public string Goods_Name { get; set; }
+ public string Goods_Code { get; set; }
+ public string Goods_Spec { get; set; }
+ }
+}
diff --git a/BO/Utils/BillRpc/ClientGoodsSetRpc.cs b/BO/Utils/BillRpc/ClientGoodsSetRpc.cs
new file mode 100644
index 0000000..6ea2b7f
--- /dev/null
+++ b/BO/Utils/BillRpc/ClientGoodsSetRpc.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Web.Script.Serialization;
+using BO.BO.Dtos;
+using Forks.JsonRpc.Client;
+
+namespace BO.Utils.BillRpc
+{
+ public class ClientGoodsSetRpc
+ {
+ static JavaScriptSerializer serializer = new JavaScriptSerializer();
+ public static List GetList()
+ {
+ var json = RpcFacade.Call("/MainSystem/B3ClientService/Rpcs/BillRpc/ClientGoodsSetRpc/GetList");
+ var list = serializer.Deserialize>(json);
+ return list;
+ }
+ }
+}
diff --git a/TrunksIousOutInStore/TrunksIousOutInStore.csproj b/TrunksIousOutInStore/TrunksIousOutInStore.csproj
index ebec6b1..13567fa 100644
--- a/TrunksIousOutInStore/TrunksIousOutInStore.csproj
+++ b/TrunksIousOutInStore/TrunksIousOutInStore.csproj
@@ -67,5 +67,8 @@
BWP.WinFormControl
+
+
+
\ No newline at end of file
diff --git a/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs b/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs
index 9b77742..c9a7478 100644
--- a/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs
+++ b/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs
@@ -39,19 +39,19 @@
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.label1 = new System.Windows.Forms.Label();
this.weightControl1 = new BWP.WinFormControl.WeightControl();
+ this.button1 = new System.Windows.Forms.Button();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
- this.splitContainer3 = new System.Windows.Forms.SplitContainer();
- this.btnSyncData = new System.Windows.Forms.Button();
- this.label2 = new System.Windows.Forms.Label();
this.uComboBox1 = new BWP.WinFormControl.UComboBox();
- this.btnSubmit = new System.Windows.Forms.Button();
+ this.label2 = new System.Windows.Forms.Label();
this.btnCreateBill = new System.Windows.Forms.Button();
+ this.btnSubmit = new System.Windows.Forms.Button();
+ this.btnSyncData = new System.Windows.Forms.Button();
+ this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.groupBox3 = new System.Windows.Forms.GroupBox();
- this.button1 = new System.Windows.Forms.Button();
this.uDataGridView1 = new BWP.WinFormControl.UDataGridView();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.groupBox3 = new System.Windows.Forms.GroupBox();
this.uDataGridView2 = new BWP.WinFormControl.UDataGridView();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
@@ -70,8 +70,8 @@
this.splitContainer4.Panel2.SuspendLayout();
this.splitContainer4.SuspendLayout();
this.groupBox2.SuspendLayout();
- this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
+ this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView2)).BeginInit();
this.SuspendLayout();
//
@@ -90,8 +90,8 @@
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
- this.splitContainer1.Size = new System.Drawing.Size(1276, 831);
- this.splitContainer1.SplitterDistance = 112;
+ this.splitContainer1.Size = new System.Drawing.Size(1276, 741);
+ this.splitContainer1.SplitterDistance = 99;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 0;
//
@@ -133,6 +133,16 @@
this.weightControl1.TypeOfWeight = BWP.WinFormControl.WeightType.Xk3190A9;
this.weightControl1.ValueFormat = "0.00";
//
+ // button1
+ //
+ this.button1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.button1.Location = new System.Drawing.Point(1158, 22);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(90, 46);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "称设置";
+ this.button1.UseVisualStyleBackColor = true;
+ //
// splitContainer2
//
this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -151,35 +161,23 @@
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.splitContainer3);
- this.splitContainer2.Size = new System.Drawing.Size(1276, 718);
+ this.splitContainer2.Size = new System.Drawing.Size(1276, 641);
this.splitContainer2.SplitterDistance = 261;
this.splitContainer2.SplitterWidth = 1;
this.splitContainer2.TabIndex = 0;
//
- // splitContainer3
- //
- this.splitContainer3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.splitContainer3.Location = new System.Drawing.Point(0, 0);
- this.splitContainer3.Name = "splitContainer3";
- //
- // splitContainer3.Panel1
- //
- this.splitContainer3.Panel1.Controls.Add(this.splitContainer4);
- this.splitContainer3.Size = new System.Drawing.Size(1014, 718);
- this.splitContainer3.SplitterDistance = 726;
- this.splitContainer3.SplitterWidth = 1;
- this.splitContainer3.TabIndex = 0;
- //
- // btnSyncData
+ // uComboBox1
//
- this.btnSyncData.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSyncData.Location = new System.Drawing.Point(45, 15);
- this.btnSyncData.Name = "btnSyncData";
- this.btnSyncData.Size = new System.Drawing.Size(156, 46);
- this.btnSyncData.TabIndex = 0;
- this.btnSyncData.Text = "同步数据";
- this.btnSyncData.UseVisualStyleBackColor = true;
+ this.uComboBox1.CodeArgs = null;
+ this.uComboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.uComboBox1.EnableTopItem = true;
+ this.uComboBox1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.uComboBox1.FormattingEnabled = true;
+ this.uComboBox1.Location = new System.Drawing.Point(49, 144);
+ this.uComboBox1.Name = "uComboBox1";
+ this.uComboBox1.Range = 10;
+ this.uComboBox1.Size = new System.Drawing.Size(158, 36);
+ this.uComboBox1.TabIndex = 2;
//
// label2
//
@@ -191,18 +189,15 @@
this.label2.TabIndex = 1;
this.label2.Text = "白条状态";
//
- // uComboBox1
+ // btnCreateBill
//
- this.uComboBox1.CodeArgs = null;
- this.uComboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.uComboBox1.EnableTopItem = true;
- this.uComboBox1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.uComboBox1.FormattingEnabled = true;
- this.uComboBox1.Location = new System.Drawing.Point(49, 144);
- this.uComboBox1.Name = "uComboBox1";
- this.uComboBox1.Range = 10;
- this.uComboBox1.Size = new System.Drawing.Size(158, 36);
- this.uComboBox1.TabIndex = 2;
+ this.btnCreateBill.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnCreateBill.Location = new System.Drawing.Point(45, 368);
+ this.btnCreateBill.Name = "btnCreateBill";
+ this.btnCreateBill.Size = new System.Drawing.Size(156, 46);
+ this.btnCreateBill.TabIndex = 0;
+ this.btnCreateBill.Text = "创建领料";
+ this.btnCreateBill.UseVisualStyleBackColor = true;
//
// btnSubmit
//
@@ -214,15 +209,30 @@
this.btnSubmit.Text = "提交";
this.btnSubmit.UseVisualStyleBackColor = true;
//
- // btnCreateBill
+ // btnSyncData
//
- this.btnCreateBill.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnCreateBill.Location = new System.Drawing.Point(45, 368);
- this.btnCreateBill.Name = "btnCreateBill";
- this.btnCreateBill.Size = new System.Drawing.Size(156, 46);
- this.btnCreateBill.TabIndex = 0;
- this.btnCreateBill.Text = "创建领料";
- this.btnCreateBill.UseVisualStyleBackColor = true;
+ this.btnSyncData.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSyncData.Location = new System.Drawing.Point(45, 15);
+ this.btnSyncData.Name = "btnSyncData";
+ this.btnSyncData.Size = new System.Drawing.Size(156, 46);
+ this.btnSyncData.TabIndex = 0;
+ this.btnSyncData.Text = "同步数据";
+ this.btnSyncData.UseVisualStyleBackColor = true;
+ //
+ // splitContainer3
+ //
+ this.splitContainer3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer3.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer3.Name = "splitContainer3";
+ //
+ // splitContainer3.Panel1
+ //
+ this.splitContainer3.Panel1.Controls.Add(this.splitContainer4);
+ this.splitContainer3.Size = new System.Drawing.Size(1014, 641);
+ this.splitContainer3.SplitterDistance = 726;
+ this.splitContainer3.SplitterWidth = 1;
+ this.splitContainer3.TabIndex = 0;
//
// splitContainer4
//
@@ -240,23 +250,11 @@
// splitContainer4.Panel2
//
this.splitContainer4.Panel2.Controls.Add(this.groupBox3);
- this.splitContainer4.Size = new System.Drawing.Size(726, 718);
- this.splitContainer4.SplitterDistance = 359;
+ this.splitContainer4.Size = new System.Drawing.Size(726, 641);
+ this.splitContainer4.SplitterDistance = 320;
this.splitContainer4.SplitterWidth = 1;
this.splitContainer4.TabIndex = 0;
//
- // 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.Location = new System.Drawing.Point(3, 3);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(718, 351);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "groupBox1";
- //
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -265,34 +263,11 @@
this.groupBox2.Controls.Add(this.uDataGridView1);
this.groupBox2.Location = new System.Drawing.Point(3, 2);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(718, 351);
+ this.groupBox2.Size = new System.Drawing.Size(718, 312);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "待提交明细";
//
- // groupBox3
- //
- this.groupBox3.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.groupBox3.Controls.Add(this.uDataGridView2);
- this.groupBox3.Location = new System.Drawing.Point(3, 3);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Size = new System.Drawing.Size(718, 351);
- this.groupBox3.TabIndex = 0;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "产品明细";
- //
- // button1
- //
- this.button1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.button1.Location = new System.Drawing.Point(1158, 22);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(90, 46);
- this.button1.TabIndex = 0;
- this.button1.Text = "称设置";
- this.button1.UseVisualStyleBackColor = true;
- //
// uDataGridView1
//
this.uDataGridView1.AllowUserToAddRows = false;
@@ -322,9 +297,34 @@
this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.uDataGridView1.RowTemplate.Height = 23;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView1.Size = new System.Drawing.Size(712, 331);
+ this.uDataGridView1.Size = new System.Drawing.Size(712, 292);
this.uDataGridView1.TabIndex = 0;
//
+ // 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.Location = new System.Drawing.Point(3, 3);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(718, 312);
+ this.groupBox1.TabIndex = 0;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "groupBox1";
+ //
+ // groupBox3
+ //
+ this.groupBox3.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.groupBox3.Controls.Add(this.uDataGridView2);
+ this.groupBox3.Location = new System.Drawing.Point(3, 3);
+ this.groupBox3.Name = "groupBox3";
+ this.groupBox3.Size = new System.Drawing.Size(718, 316);
+ this.groupBox3.TabIndex = 0;
+ this.groupBox3.TabStop = false;
+ this.groupBox3.Text = "产品明细";
+ //
// uDataGridView2
//
this.uDataGridView2.AllowUserToAddRows = false;
@@ -354,14 +354,14 @@
this.uDataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle6;
this.uDataGridView2.RowTemplate.Height = 23;
this.uDataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView2.Size = new System.Drawing.Size(712, 331);
+ this.uDataGridView2.Size = new System.Drawing.Size(712, 296);
this.uDataGridView2.TabIndex = 0;
//
// TrunksIousOutInStoreForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1276, 831);
+ this.ClientSize = new System.Drawing.Size(1276, 741);
this.Controls.Add(this.splitContainer1);
this.MaximizeBox = false;
this.MinimizeBox = false;
@@ -387,8 +387,8 @@
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
this.splitContainer4.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
- this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
+ this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.uDataGridView2)).EndInit();
this.ResumeLayout(false);
diff --git a/TrunksIousOutInStore/模块说明.txt b/TrunksIousOutInStore/模块说明.txt
new file mode 100644
index 0000000..b2ff377
--- /dev/null
+++ b/TrunksIousOutInStore/模块说明.txt
@@ -0,0 +1 @@
+白条出入库称重
\ No newline at end of file