Browse Source

配货

master
luanhui 8 years ago
parent
commit
d108f648b7
8 changed files with 252 additions and 125 deletions
  1. +0
    -1
      BO/BO.csproj
  2. +6
    -1
      Distribution/Distribution.csproj
  3. +66
    -10
      Distribution/DistributionForm.Designer.cs
  4. +21
    -4
      Distribution/DistributionForm.cs
  5. +15
    -0
      Distribution/DistributionForm.resx
  6. +0
    -0
      Distribution/LocalBo/SaleOutStore.cs
  7. +41
    -6
      Distribution/SaleOutStoreRpc.cs
  8. +103
    -103
      SegmentationWeight/SegmentationWeightForm.Designer.cs

+ 0
- 1
BO/BO.csproj View File

@ -103,7 +103,6 @@
<Compile Include="Utils\BillRpc\GradeAndWeightRpc.cs" /> <Compile Include="Utils\BillRpc\GradeAndWeightRpc.cs" />
<Compile Include="Utils\BillRpc\HouseAndSanctionRpc.cs" /> <Compile Include="Utils\BillRpc\HouseAndSanctionRpc.cs" />
<Compile Include="Utils\BillRpc\OrderDetailRpc.cs" /> <Compile Include="Utils\BillRpc\OrderDetailRpc.cs" />
<Compile Include="Utils\BillRpc\SaleOutStoreRpc.cs" />
<Compile Include="Utils\BillRpc\SecondOrderRpc.cs" /> <Compile Include="Utils\BillRpc\SecondOrderRpc.cs" />
<Compile Include="Utils\BillRpc\CarcassStateWeightRpc.cs" /> <Compile Include="Utils\BillRpc\CarcassStateWeightRpc.cs" />
<Compile Include="Utils\ButcherAppContext.cs" /> <Compile Include="Utils\ButcherAppContext.cs" />


+ 6
- 1
Distribution/Distribution.csproj View File

@ -39,6 +39,10 @@
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>C:\Users\luanhui\source\repos\WinFormPrintTest\WinFormPrintTest\bin\Debug\Forks.Utils.dll</HintPath> <HintPath>C:\Users\luanhui\source\repos\WinFormPrintTest\WinFormPrintTest\bin\Debug\Forks.Utils.dll</HintPath>
</Reference> </Reference>
<Reference Include="Newtonsoft.Json, Version=4.0.3.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" /> <Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" /> <Reference Include="PresentationFramework" />
<Reference Include="System" /> <Reference Include="System" />
@ -61,8 +65,9 @@
<Compile Include="DistributionForm.Designer.cs"> <Compile Include="DistributionForm.Designer.cs">
<DependentUpon>DistributionForm.cs</DependentUpon> <DependentUpon>DistributionForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="LocalBo\LocalSaleOutStore.cs" />
<Compile Include="LocalBo\SaleOutStore.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SaleOutStoreRpc.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="白条鲜品发货.txt" /> <Content Include="白条鲜品发货.txt" />


+ 66
- 10
Distribution/DistributionForm.Designer.cs View File

@ -80,6 +80,11 @@
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.outstore单号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outstore客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outstore发货时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outstore状态 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outstore送货线路 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
@ -116,7 +121,7 @@
// //
this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1); this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1);
this.splitContainer1.Size = new System.Drawing.Size(1347, 728); this.splitContainer1.Size = new System.Drawing.Size(1347, 728);
this.splitContainer1.SplitterDistance = 1076;
this.splitContainer1.SplitterDistance = 1080;
this.splitContainer1.SplitterWidth = 2; this.splitContainer1.SplitterWidth = 2;
this.splitContainer1.TabIndex = 0; this.splitContainer1.TabIndex = 0;
// //
@ -144,7 +149,7 @@
this.splitContainer2.Panel2.Controls.Add(this.groupBox2); this.splitContainer2.Panel2.Controls.Add(this.groupBox2);
this.splitContainer2.Panel2.Controls.Add(this.groupBox1); this.splitContainer2.Panel2.Controls.Add(this.groupBox1);
this.splitContainer2.Panel2.Controls.Add(this.panel5); this.splitContainer2.Panel2.Controls.Add(this.panel5);
this.splitContainer2.Size = new System.Drawing.Size(1076, 728);
this.splitContainer2.Size = new System.Drawing.Size(1080, 728);
this.splitContainer2.SplitterDistance = 478; this.splitContainer2.SplitterDistance = 478;
this.splitContainer2.SplitterWidth = 2; this.splitContainer2.SplitterWidth = 2;
this.splitContainer2.TabIndex = 0; this.splitContainer2.TabIndex = 0;
@ -214,6 +219,12 @@
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewSaleOutStore.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dataGridViewSaleOutStore.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dataGridViewSaleOutStore.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridViewSaleOutStore.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridViewSaleOutStore.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.outstore单号,
this.outstore客户名称,
this.outstore发货时间,
this.outstore状态,
this.outstore送货线路});
this.dataGridViewSaleOutStore.Location = new System.Drawing.Point(4, 241); this.dataGridViewSaleOutStore.Location = new System.Drawing.Point(4, 241);
this.dataGridViewSaleOutStore.MultiSelect = false; this.dataGridViewSaleOutStore.MultiSelect = false;
this.dataGridViewSaleOutStore.Name = "dataGridViewSaleOutStore"; this.dataGridViewSaleOutStore.Name = "dataGridViewSaleOutStore";
@ -245,7 +256,6 @@
// //
// cbxSelectCustomer // cbxSelectCustomer
// //
this.cbxSelectCustomer.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cbxSelectCustomer.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxSelectCustomer.EnableTopItem = true; this.cbxSelectCustomer.EnableTopItem = true;
this.cbxSelectCustomer.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cbxSelectCustomer.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -258,7 +268,6 @@
// //
// cbxSelectXianLu // cbxSelectXianLu
// //
this.cbxSelectXianLu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cbxSelectXianLu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxSelectXianLu.EnableTopItem = true; this.cbxSelectXianLu.EnableTopItem = true;
this.cbxSelectXianLu.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cbxSelectXianLu.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -462,14 +471,18 @@
// //
// panel6 // panel6
// //
this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel6.Location = new System.Drawing.Point(1, 459);
this.panel6.Location = new System.Drawing.Point(3, 459);
this.panel6.Name = "panel6"; this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(590, 49);
this.panel6.Size = new System.Drawing.Size(594, 49);
this.panel6.TabIndex = 2; this.panel6.TabIndex = 2;
// //
// groupBox2 // groupBox2
// //
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.dataGridViewFaHuo); this.groupBox2.Controls.Add(this.dataGridViewFaHuo);
this.groupBox2.Location = new System.Drawing.Point(5, 514); this.groupBox2.Location = new System.Drawing.Point(5, 514);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
@ -517,7 +530,7 @@
this.groupBox1.Controls.Add(this.dataGridViewDingHuo); this.groupBox1.Controls.Add(this.dataGridViewDingHuo);
this.groupBox1.Location = new System.Drawing.Point(4, 143); this.groupBox1.Location = new System.Drawing.Point(4, 143);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(589, 310);
this.groupBox1.Size = new System.Drawing.Size(597, 310);
this.groupBox1.TabIndex = 1; this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "订货明细"; this.groupBox1.Text = "订货明细";
@ -551,7 +564,7 @@
this.dataGridViewDingHuo.RowsDefaultCellStyle = dataGridViewCellStyle9; this.dataGridViewDingHuo.RowsDefaultCellStyle = dataGridViewCellStyle9;
this.dataGridViewDingHuo.RowTemplate.Height = 23; this.dataGridViewDingHuo.RowTemplate.Height = 23;
this.dataGridViewDingHuo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridViewDingHuo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridViewDingHuo.Size = new System.Drawing.Size(583, 290);
this.dataGridViewDingHuo.Size = new System.Drawing.Size(591, 290);
this.dataGridViewDingHuo.TabIndex = 0; this.dataGridViewDingHuo.TabIndex = 0;
// //
// panel5 // panel5
@ -570,7 +583,7 @@
this.panel5.Controls.Add(this.label4); this.panel5.Controls.Add(this.label4);
this.panel5.Location = new System.Drawing.Point(4, 4); this.panel5.Location = new System.Drawing.Point(4, 4);
this.panel5.Name = "panel5"; this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(590, 132);
this.panel5.Size = new System.Drawing.Size(598, 132);
this.panel5.TabIndex = 0; this.panel5.TabIndex = 0;
// //
// linkLabel2 // linkLabel2
@ -673,9 +686,47 @@
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(267, 726);
this.flowLayoutPanel1.Size = new System.Drawing.Size(263, 726);
this.flowLayoutPanel1.TabIndex = 0; this.flowLayoutPanel1.TabIndex = 0;
// //
// outstore单号
//
this.outstore单号.DataPropertyName = "SaleOutStore_ID";
this.outstore单号.FillWeight = 80F;
this.outstore单号.HeaderText = "单号";
this.outstore单号.Name = "outstore单号";
this.outstore单号.ReadOnly = true;
this.outstore单号.Width = 80;
//
// outstore客户名称
//
this.outstore客户名称.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.outstore客户名称.DataPropertyName = "Customer_Name";
this.outstore客户名称.HeaderText = "客户名称";
this.outstore客户名称.Name = "outstore客户名称";
this.outstore客户名称.ReadOnly = true;
//
// outstore发货时间
//
this.outstore发货时间.DataPropertyName = "LoadTime";
this.outstore发货时间.HeaderText = "发货时间";
this.outstore发货时间.Name = "outstore发货时间";
this.outstore发货时间.ReadOnly = true;
//
// outstore状态
//
this.outstore状态.DataPropertyName = "BillState";
this.outstore状态.HeaderText = "状态";
this.outstore状态.Name = "outstore状态";
this.outstore状态.ReadOnly = true;
//
// outstore送货线路
//
this.outstore送货线路.DataPropertyName = "DeliverGoodsLine_Name";
this.outstore送货线路.HeaderText = "送货线路";
this.outstore送货线路.Name = "outstore送货线路";
this.outstore送货线路.ReadOnly = true;
//
// DistributionForm // DistributionForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -760,5 +811,10 @@
private BWP.WinFormControl.UDataGridView dataGridViewFaHuo; private BWP.WinFormControl.UDataGridView dataGridViewFaHuo;
private BWP.WinFormControl.UDataGridView dataGridViewDingHuo; private BWP.WinFormControl.UDataGridView dataGridViewDingHuo;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.DataGridViewTextBoxColumn outstore单号;
private System.Windows.Forms.DataGridViewTextBoxColumn outstore客户名称;
private System.Windows.Forms.DataGridViewTextBoxColumn outstore发货时间;
private System.Windows.Forms.DataGridViewTextBoxColumn outstore状态;
private System.Windows.Forms.DataGridViewTextBoxColumn outstore送货线路;
} }
} }

+ 21
- 4
Distribution/DistributionForm.cs View File

@ -25,9 +25,11 @@ namespace Distribution
private bool mIsCustomerSynced, mIsDeliverGoodsLineSynced; private bool mIsCustomerSynced, mIsDeliverGoodsLineSynced;
private bool mIsFirstSearch = true;
private BackgroundWorker mBackgroundWorkerSyncBaseInfo; private BackgroundWorker mBackgroundWorkerSyncBaseInfo;
private BindingList<SaleOutStore> mSaleOutStoreList; private BindingList<SaleOutStore> mSaleOutStoreList;
private BindingList<SaleOutStore> mSaleOutStoreAllList;
public DistributionForm() public DistributionForm()
{ {
InitializeComponent(); InitializeComponent();
@ -44,19 +46,20 @@ namespace Distribution
mBackgroundWorkerSyncBaseInfo.RunWorkerCompleted += backgroundWorkerSyncBaseInfo_RunWorkerCompleted; mBackgroundWorkerSyncBaseInfo.RunWorkerCompleted += backgroundWorkerSyncBaseInfo_RunWorkerCompleted;
mBackgroundWorkerSyncBaseInfo.RunWorkerAsync(); mBackgroundWorkerSyncBaseInfo.RunWorkerAsync();
} }
private void backgroundWorkerSyncBaseInfo_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) private void backgroundWorkerSyncBaseInfo_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{ {
mIsCustomerSynced = true; mIsCustomerSynced = true;
mIsDeliverGoodsLineSynced = true; mIsDeliverGoodsLineSynced = true;
}
}
private void backgroundWorkerSyncBaseInfo_DoWork(object sender, DoWorkEventArgs e) private void backgroundWorkerSyncBaseInfo_DoWork(object sender, DoWorkEventArgs e)
{ {
CustomerRpc.SyncList(); CustomerRpc.SyncList();
DeliverGoodsLineRpc.SyncList(); DeliverGoodsLineRpc.SyncList();
}
}
private void DistributionForm_Load(object sender, EventArgs e) private void DistributionForm_Load(object sender, EventArgs e)
{ {
@ -65,9 +68,23 @@ namespace Distribution
private void btnSearch_Click(object sender, EventArgs e) private void btnSearch_Click(object sender, EventArgs e)
{ {
mSaleOutStoreAllList = SaleOutStoreRpc.SyncList(dateInput.Date.Value, cbxSelectCustomer.Text, cbxSelectXianLu.Text, "", mIsFirstSearch);
SetSaleOutStoreList();
dataGridViewSaleOutStore.DataSource = mSaleOutStoreList;
mIsFirstSearch = false;
} }
void SetSaleOutStoreList()
{
mSaleOutStoreList=new BindingList<SaleOutStore>();
foreach (var grouping in mSaleOutStoreAllList.GroupBy(x=>x.SaleOutStore_ID))
{
var fd = grouping.FirstOrDefault();
if (fd != null)
{
mSaleOutStoreList.Add(fd);
}
}
}
} }
} }

+ 15
- 0
Distribution/DistributionForm.resx View File

@ -117,4 +117,19 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="outstore单号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="outstore客户名称.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="outstore发货时间.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="outstore状态.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="outstore送货线路.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root> </root>

Distribution/LocalBo/LocalSaleOutStore.cs → Distribution/LocalBo/SaleOutStore.cs View File


BO/Utils/BillRpc/SaleOutStoreRpc.cs → Distribution/SaleOutStoreRpc.cs View File

@ -2,18 +2,19 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BWP.B3ClientService.BO;
using BO;
using BO.Utils;
using Distribution.LocalBo;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DomainObjects2.DQuery; using Forks.EnterpriseServices.DomainObjects2.DQuery;
using Forks.JsonRpc.Client; using Forks.JsonRpc.Client;
using Newtonsoft.Json; using Newtonsoft.Json;
using Customer = BO.BO.BaseInfo.Customer;
namespace BO.Utils.BillRpc
namespace Distribution
{ {
public class SaleOutStoreRpc public class SaleOutStoreRpc
{ {
//已天为单位更新
public static BindingList<SaleOutStore> SyncList(DateTime date, string customerName,string sendLineName,string billstate,bool updateLocalDb) public static BindingList<SaleOutStore> SyncList(DateTime date, string customerName,string sendLineName,string billstate,bool updateLocalDb)
{ {
var resList=new BindingList<SaleOutStore>(); var resList=new BindingList<SaleOutStore>();
@ -23,7 +24,8 @@ namespace BO.Utils.BillRpc
var list = JsonConvert.DeserializeObject<List<SaleOutStore>>(json); var list = JsonConvert.DeserializeObject<List<SaleOutStore>>(json);
if (updateLocalDb) if (updateLocalDb)
{ {
// AddLocalSaleOutStore(list);
//销售出库本地只添加,不做更新操作 特别是已配货数量这块 已本地为主
AddLocalSaleOutStore(list);
} }
foreach (SaleOutStore store in list) foreach (SaleOutStore store in list)
{ {
@ -59,5 +61,38 @@ namespace BO.Utils.BillRpc
} }
return resList; return resList;
} }
private static void AddLocalSaleOutStore(List<SaleOutStore> list)
{
if (list.Count == 0)
{
return;
}
using (var session=LocalDmoSession.New())
{
foreach (SaleOutStore store in list)
{
if (!IsExist(session, store.SaleOutStoreDetail_ID))
{
session.Insert(store);
}
}
session.Commit();
}
}
static bool IsExist(IDmoSession session, long detailid)
{
var query=new DQueryDom(new JoinAlias(typeof(SaleOutStore)));
query.Where.Conditions.Add(DQCondition.EQ("SaleOutStoreDetail_ID",detailid));
query.Columns.Add(DQSelectColumn.Field("SaleOutStoreDetail_ID"));
var res = session.ExecuteScalar(query);
if (res is DBNull || res == null)
{
return false;
}
return true;
}
} }
} }

+ 103
- 103
SegmentationWeight/SegmentationWeightForm.Designer.cs View File

@ -28,9 +28,9 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle 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();
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.btnGoodsSet = new System.Windows.Forms.Button(); this.btnGoodsSet = new System.Windows.Forms.Button();
@ -41,12 +41,6 @@
this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.flpGoods = new System.Windows.Forms.FlowLayoutPanel(); this.flpGoods = new System.Windows.Forms.FlowLayoutPanel();
this.flpClass = new System.Windows.Forms.FlowLayoutPanel(); this.flpClass = new System.Windows.Forms.FlowLayoutPanel();
this.uDataGridView1 = new BWP.WinFormControl.UDataGridView();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
@ -54,6 +48,12 @@
this.lblGoodsName = new System.Windows.Forms.Label(); this.lblGoodsName = new System.Windows.Forms.Label();
this.lblNumber = new System.Windows.Forms.Label(); this.lblNumber = new System.Windows.Forms.Label();
this.lblWeight = new System.Windows.Forms.Label(); this.lblWeight = new System.Windows.Forms.Label();
this.uDataGridView1 = new BWP.WinFormControl.UDataGridView();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
@ -64,8 +64,8 @@
this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout(); this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// splitContainer1 // splitContainer1
@ -198,86 +198,6 @@
this.flpClass.Size = new System.Drawing.Size(547, 76); this.flpClass.Size = new System.Drawing.Size(547, 76);
this.flpClass.TabIndex = 0; this.flpClass.TabIndex = 0;
// //
// uDataGridView1
//
this.uDataGridView1.AllowUserToAddRows = false;
this.uDataGridView1.AllowUserToDeleteRows = false;
this.uDataGridView1.AllowUserToResizeColumns = false;
this.uDataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle19;
this.uDataGridView1.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.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle20.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle20;
this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.,
this.,
this.,
this.,
this.});
this.uDataGridView1.Location = new System.Drawing.Point(3, 108);
this.uDataGridView1.MultiSelect = false;
this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.RowHeadersVisible = false;
dataGridViewCellStyle21.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle21;
this.uDataGridView1.RowTemplate.Height = 23;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uDataGridView1.Size = new System.Drawing.Size(483, 374);
this.uDataGridView1.TabIndex = 1;
//
// 序号
//
this..DataPropertyName = "ID";
this..HeaderText = "序号";
this..Name = "序号";
this..ReadOnly = true;
this..Width = 80;
//
// 条码
//
this..DataPropertyName = "BarCode";
this..HeaderText = "条码";
this..Name = "条码";
this..ReadOnly = true;
//
// 产品
//
this..AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this..DataPropertyName = "Goods_Name";
this..HeaderText = "产品";
this..MinimumWidth = 100;
this..Name = "产品";
this..ReadOnly = true;
//
// 净重
//
this..DataPropertyName = "JingWeight";
this..HeaderText = "净重";
this..Name = "净重";
this..ReadOnly = true;
this..Width = 80;
//
// 毛重
//
this..DataPropertyName = "MaoWeight";
this..HeaderText = "毛重";
this..Name = "毛重";
this..ReadOnly = true;
this..Width = 80;
//
// tableLayoutPanel1 // tableLayoutPanel1
// //
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@ -286,7 +206,7 @@
this.tableLayoutPanel1.ColumnCount = 3; this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 65.90909F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 65.90909F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34.09091F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34.09091F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 88F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 96F));
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label3, 2, 0); this.tableLayoutPanel1.Controls.Add(this.label3, 2, 0);
@ -298,7 +218,7 @@
this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 53.57143F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 53.57143F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 46.42857F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 46.42857F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(479, 98);
this.tableLayoutPanel1.Size = new System.Drawing.Size(482, 98);
this.tableLayoutPanel1.TabIndex = 0; this.tableLayoutPanel1.TabIndex = 0;
// //
// label1 // label1
@ -308,7 +228,7 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label1.Location = new System.Drawing.Point(4, 1); this.label1.Location = new System.Drawing.Point(4, 1);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(249, 50);
this.label1.Size = new System.Drawing.Size(245, 50);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "产品"; this.label1.Text = "产品";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -318,9 +238,9 @@
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label2.Location = new System.Drawing.Point(260, 1);
this.label2.Location = new System.Drawing.Point(256, 1);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(125, 50);
this.label2.Size = new System.Drawing.Size(124, 50);
this.label2.TabIndex = 0; this.label2.TabIndex = 0;
this.label2.Text = "数量"; this.label2.Text = "数量";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -330,9 +250,9 @@
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label3.Location = new System.Drawing.Point(392, 1);
this.label3.Location = new System.Drawing.Point(387, 1);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(83, 50);
this.label3.Size = new System.Drawing.Size(91, 50);
this.label3.TabIndex = 0; this.label3.TabIndex = 0;
this.label3.Text = "重量"; this.label3.Text = "重量";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -344,7 +264,7 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lblGoodsName.Location = new System.Drawing.Point(4, 52); this.lblGoodsName.Location = new System.Drawing.Point(4, 52);
this.lblGoodsName.Name = "lblGoodsName"; this.lblGoodsName.Name = "lblGoodsName";
this.lblGoodsName.Size = new System.Drawing.Size(249, 45);
this.lblGoodsName.Size = new System.Drawing.Size(245, 45);
this.lblGoodsName.TabIndex = 0; this.lblGoodsName.TabIndex = 0;
this.lblGoodsName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblGoodsName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
@ -353,9 +273,9 @@
this.lblNumber.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.lblNumber.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lblNumber.Location = new System.Drawing.Point(260, 52);
this.lblNumber.Location = new System.Drawing.Point(256, 52);
this.lblNumber.Name = "lblNumber"; this.lblNumber.Name = "lblNumber";
this.lblNumber.Size = new System.Drawing.Size(125, 45);
this.lblNumber.Size = new System.Drawing.Size(124, 45);
this.lblNumber.TabIndex = 0; this.lblNumber.TabIndex = 0;
this.lblNumber.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblNumber.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
@ -364,12 +284,92 @@
this.lblWeight.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.lblWeight.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lblWeight.Location = new System.Drawing.Point(392, 52);
this.lblWeight.Location = new System.Drawing.Point(387, 52);
this.lblWeight.Name = "lblWeight"; this.lblWeight.Name = "lblWeight";
this.lblWeight.Size = new System.Drawing.Size(83, 45);
this.lblWeight.Size = new System.Drawing.Size(91, 45);
this.lblWeight.TabIndex = 0; this.lblWeight.TabIndex = 0;
this.lblWeight.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblWeight.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// uDataGridView1
//
this.uDataGridView1.AllowUserToAddRows = false;
this.uDataGridView1.AllowUserToDeleteRows = false;
this.uDataGridView1.AllowUserToResizeColumns = false;
this.uDataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.uDataGridView1.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.uDataGridView1.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.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.,
this.,
this.,
this.,
this.});
this.uDataGridView1.Location = new System.Drawing.Point(3, 108);
this.uDataGridView1.MultiSelect = false;
this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.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.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.uDataGridView1.RowTemplate.Height = 23;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uDataGridView1.Size = new System.Drawing.Size(486, 374);
this.uDataGridView1.TabIndex = 1;
//
// 序号
//
this..DataPropertyName = "ID";
this..HeaderText = "序号";
this..Name = "序号";
this..ReadOnly = true;
this..Width = 80;
//
// 条码
//
this..DataPropertyName = "BarCode";
this..HeaderText = "条码";
this..Name = "条码";
this..ReadOnly = true;
//
// 产品
//
this..AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this..DataPropertyName = "Goods_Name";
this..HeaderText = "产品";
this..MinimumWidth = 100;
this..Name = "产品";
this..ReadOnly = true;
//
// 净重
//
this..DataPropertyName = "JingWeight";
this..HeaderText = "净重";
this..Name = "净重";
this..ReadOnly = true;
this..Width = 80;
//
// 毛重
//
this..DataPropertyName = "MaoWeight";
this..HeaderText = "毛重";
this..Name = "毛重";
this..ReadOnly = true;
this..Width = 80;
//
// SegmentationWeightForm // SegmentationWeightForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -394,8 +394,8 @@
this.splitContainer2.Panel2.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false); this.splitContainer2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }


Loading…
Cancel
Save