Browse Source

获取存货设置

master
wugang 8 years ago
parent
commit
e561690c5c
6 changed files with 141 additions and 95 deletions
  1. +2
    -0
      BO/BO.csproj
  2. +18
    -0
      BO/BO/Dtos/ClientGoodsSetDto.cs
  3. +22
    -0
      BO/Utils/BillRpc/ClientGoodsSetRpc.cs
  4. +3
    -0
      TrunksIousOutInStore/TrunksIousOutInStore.csproj
  5. +95
    -95
      TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs
  6. +1
    -0
      TrunksIousOutInStore/模块说明.txt

+ 2
- 0
BO/BO.csproj View File

@ -75,9 +75,11 @@
<Compile Include="BO\Bill\WeightBill\PrintWeightBill.cs" />
<Compile Include="BO\Bill\WeightBill\WeightBillList.cs" />
<Compile Include="BO\Bill\WeightBill\WeightDetail.cs" />
<Compile Include="BO\Dtos\ClientGoodsSetDto.cs" />
<Compile Include="BO\SyncBase.cs" />
<Compile Include="CTuple.cs" />
<Compile Include="Utils\AfterLoginUtil.cs" />
<Compile Include="Utils\BillRpc\ClientGoodsSetRpc.cs" />
<Compile Include="Utils\BillRpc\GradeAndWeightRpc.cs" />
<Compile Include="Utils\BillRpc\HouseAndSanctionRpc.cs" />
<Compile Include="Utils\BillRpc\OrderDetailRpc.cs" />


+ 18
- 0
BO/BO/Dtos/ClientGoodsSetDto.cs View File

@ -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; }
}
}

+ 22
- 0
BO/Utils/BillRpc/ClientGoodsSetRpc.cs View File

@ -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<ClientGoodsSetDto> GetList()
{
var json = RpcFacade.Call<string>("/MainSystem/B3ClientService/Rpcs/BillRpc/ClientGoodsSetRpc/GetList");
var list = serializer.Deserialize<List<ClientGoodsSetDto>>(json);
return list;
}
}
}

+ 3
- 0
TrunksIousOutInStore/TrunksIousOutInStore.csproj View File

@ -67,5 +67,8 @@
<Name>BWP.WinFormControl</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="模块说明.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

+ 95
- 95
TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs View File

@ -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);


+ 1
- 0
TrunksIousOutInStore/模块说明.txt View File

@ -0,0 +1 @@
白条出入库称重

Loading…
Cancel
Save