Browse Source

分割发货客户端。

master
yibo 7 years ago
parent
commit
1d5556ad95
31 changed files with 3766 additions and 535 deletions
  1. +65
    -0
      ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs
  2. +2
    -0
      ButcherFactory.BO/ButcherFactory.BO.csproj
  3. +1
    -0
      ButcherFactory.BO/Enums/DriveType.cs
  4. +4
    -2
      ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs
  5. +1
    -0
      ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
  6. +175
    -0
      ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs
  7. +37
    -0
      ButcherFactory.Form/ButcherFactory.Form.csproj
  8. +2
    -2
      ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
  9. +2
    -1
      ButcherFactory.Form/Controls/ColorButton.cs
  10. +52
    -80
      ButcherFactory.Form/Dialogs/AddWeightRecord.Designer.cs
  11. +8
    -1
      ButcherFactory.Form/Dialogs/AddWeightRecord.cs
  12. +0
    -33
      ButcherFactory.Form/Dialogs/AddWeightRecord.resx
  13. +51
    -84
      ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs
  14. +0
    -33
      ButcherFactory.Form/Dialogs/WeightRecordDialog.resx
  15. +147
    -147
      ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs
  16. +168
    -0
      ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.Designer.cs
  17. +66
    -0
      ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.cs
  18. +120
    -0
      ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.resx
  19. +180
    -0
      ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.Designer.cs
  20. +69
    -0
      ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.cs
  21. +120
    -0
      ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.resx
  22. +1155
    -0
      ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.Designer.cs
  23. +440
    -0
      ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs
  24. +189
    -0
      ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.resx
  25. +17
    -0
      ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutFormConfig.cs
  26. +274
    -0
      ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.Designer.cs
  27. +122
    -0
      ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.cs
  28. +150
    -0
      ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.resx
  29. +57
    -57
      ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs
  30. +17
    -17
      ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx
  31. +75
    -78
      ButcherFactorySolution/ButcherFactorySolution.vdproj

+ 65
- 0
ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs View File

@ -0,0 +1,65 @@
using Forks.EnterpriseServices.DomainObjects2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherFactory.BO
{
[MapToTable("Butcher_SegmentSaleOut_Detail")]
[KeyField("ID", KeyGenType.identity)]
public class SegmentSaleOut_Detail
{
public SegmentSaleOut_Detail()
{
Time = DateTime.Now;
}
public long ID { get; set; }
public long? BillID { get; set; }
public long? DetailID { get; set; }
public string BarCode { get; set; }
[NonDmoProperty]
public string ShortCode
{
get
{
if (string.IsNullOrEmpty(BarCode))
return null;
if (BarCode.Contains("260912011"))
return BarCode.Replace("260912011", "");
return BarCode;
}
}
public long? Goods_ID { get; set; }
public string Goods_Name { get; set; }
public string Goods_Code { get; set; }
public long? ProductBatch_ID { get; set; }
public decimal Number { get; set; }
public decimal? DiscontWeight { get; set; }
public decimal? SecondNumber { get; set; }
[NonDmoProperty]
public int Idx { get; set; }
public DateTime Time { get; set; }
public long? WeightRecord_ID { get; set; }
public long? ScanRecord_ID { get; set; }
public string Operator { get; set; }
}
}

+ 2
- 0
ButcherFactory.BO/ButcherFactory.BO.csproj View File

@ -67,6 +67,7 @@
<Compile Include="Bill\CarcassTakeOutWeightTemp.cs" />
<Compile Include="Bill\SegmentInStore.cs" />
<Compile Include="Bill\SegmentProduction.cs" />
<Compile Include="Bill\SegmentSaleOut_Detail.cs" />
<Compile Include="Bill\StockUpEntity.cs" />
<Compile Include="Enums\ApplyClient.cs" />
<Compile Include="Enums\DriveType.cs" />
@ -83,6 +84,7 @@
<Compile Include="LocalBL\FormClientGoodsSetBL.cs" />
<Compile Include="LocalBL\SegmentInStoreBL.cs" />
<Compile Include="LocalBL\SegmentProductionBL.cs" />
<Compile Include="LocalBL\SegmentSaleOutBL.cs" />
<Compile Include="LocalBL\SegmentStockUpBL.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Rpcs\BaseInfoSyncRpc.cs" />


+ 1
- 0
ButcherFactory.BO/Enums/DriveType.cs View File

@ -16,6 +16,7 @@ namespace ButcherFactory.BO
//B3从51开始
= 51,
= 52,
= 53,
//101-200是留给屠宰车间使用


+ 4
- 2
ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs View File

@ -176,7 +176,7 @@ namespace ButcherFactory.BO.LocalBL
public static void SubmitDetails(IEnumerable<CarcassSaleOut_Detail> details, SaleOutStore_Detail detail)
{
var arr = details.Select(x => new WeightRecord { ID = x.ID, WeightTime = x.Time, MainUnitNum = x.Weight, SecondNumber = x.Number, ProductBatch_ID = x.ProductBatch_ID, BarCode = x.BarCode });
var arr = details.Select(x => new WeightRecord { Flag = 0, ID = x.ID, WeightTime = x.Time, MainUnitNum = x.Weight, SecondNumber = x.Number, ProductBatch_ID = x.ProductBatch_ID, BarCode = x.BarCode });
var json = RpcFacade.Call<string>(RpcPath + "SaleOutStoreRpc/SaveWeightRecord", JsonConvert.SerializeObject(arr), detail.ID);
var back = JsonConvert.DeserializeObject<List<ExtensionObj>>(json);
using (var session = DmoSession.New())
@ -219,7 +219,7 @@ namespace ButcherFactory.BO.LocalBL
using (var session = DmoSession.New())
{
session.Insert(detail);
var arr = new List<WeightRecord> { new WeightRecord { ID = detail.ID, WeightTime = detail.Time, MainUnitNum = detail.Weight, SecondNumber = detail.Number } };
var arr = new List<WeightRecord> { new WeightRecord { Flag = 0, ID = detail.ID, WeightTime = detail.Time, MainUnitNum = detail.Weight, SecondNumber = detail.Number } };
var json = RpcFacade.Call<string>(RpcPath + "SaleOutStoreRpc/SaveWeightRecord", JsonConvert.SerializeObject(arr), detail.DetailID);
var back = JsonConvert.DeserializeObject<List<ExtensionObj>>(json);
@ -264,6 +264,8 @@ namespace ButcherFactory.BO.LocalBL
class WeightRecord
{
//0、白条;1、分割品;2、副产品;
public int Flag { get; set; }
public long ID { get; set; }
public string BarCode { get; set; }
public long? ProductBatch_ID { get; set; }


+ 1
- 0
ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs View File

@ -102,6 +102,7 @@ namespace ButcherFactory.BO.LocalBL
static List<string> GetInstoredList(IEnumerable<string> barCodes)
{
var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore)));
query.Columns.Add(DQSelectColumn.Field("BarCode"));
query.Where.Conditions.Add(DQCondition.And(DQCondition.InList(DQExpression.Field("BarCode"), barCodes.Select(x => DQExpression.Value(x)).ToArray()), DQCondition.EQ("Delete", false)));
using (var session = DmoSession.New())
{


+ 175
- 0
ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs View File

@ -0,0 +1,175 @@
using ButcherFactory.BO.Utils;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DomainObjects2.DQuery;
using Forks.JsonRpc.Client;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherFactory.BO.LocalBL
{
public static class SegmentSaleOutBL
{
const string RpcPath = @"/MainSystem/B3Sale/Rpcs/";
const string MESPath = @"/MainSystem/B3ClientService/Rpcs/";
public static BindingList<SaleOutStore> GetSaleOutStoreList(DateTime sendDate, long? deliverGoodsLineID, long? customerID, int billState, long? storeID, bool already = false)
{
return CarcassSaleOutBL.GetSaleOutStoreList(sendDate, deliverGoodsLineID, customerID, billState, storeID, already);
}
public static BindingList<SaleOutStore_Detail> GetSaleOutStoreDetailList(long id)
{
return CarcassSaleOutBL.GetSaleOutStoreDetailList(id);
}
public static BindingList<SegmentSaleOut_Detail> GetWeightRecord(long detailID)
{
var query = new DmoQuery(typeof(SegmentSaleOut_Detail));
query.Where.Conditions.Add(DQCondition.EQ("DetailID", detailID));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
var list = query.EExecuteList().Cast<SegmentSaleOut_Detail>().ToList();
var idx = list.Count;
foreach (var item in list)
{
item.Idx = idx;
idx--;
}
return new BindingList<SegmentSaleOut_Detail>(list);
}
public static SegmentSaleOut_Detail Insert(decimal weight)
{
using (var session = DmoSession.New())
{
var detail = new SegmentSaleOut_Detail() { Number = weight, SecondNumber = 1 };
session.Insert(detail);
session.Commit();
return detail;
}
}
public static List<ProductBatch> GetBatchFromEMS()
{
return CarcassSaleOutBL.GetBatchFromEMS();
}
static void SubmitDetails(IEnumerable<SegmentSaleOut_Detail> details, SaleOutStore_Detail detail, int flag)
{
var arr = details.Select(x => new WeightRecord { Flag = flag, ID = x.ID, WeightTime = x.Time, MainUnitNum = x.Number, SecondNumber = x.SecondNumber, ProductBatch_ID = x.ProductBatch_ID, BarCode = x.BarCode });
var json = RpcFacade.Call<string>(RpcPath + "SaleOutStoreRpc/SaveWeightRecord", JsonConvert.SerializeObject(arr), detail.ID);
var back = JsonConvert.DeserializeObject<List<ExtensionObj>>(json);
using (var session = DmoSession.New())
{
foreach (var item in details)
{
var first = back.First(x => x.LongExt1 == item.ID);
Update(session, item.ID,
new Tuple<string, object>("WeightRecord_ID", first.LongExt2),
new Tuple<string, object>("ScanRecord_ID", first.LongExt3)
);
}
session.Commit();
}
}
static void Update(IDmoSession session, long id, params Tuple<string, object>[] pops)
{
var update = new DQUpdateDom(typeof(SegmentSaleOut_Detail));
foreach (var item in pops)
update.Columns.Add(new DQUpdateColumn(item.Item1, item.Item2));
update.Where.Conditions.Add(DQCondition.EQ("ID", id));
session.ExecuteNonQuery(update);
}
public static void SetGoodsFinish(long id)
{
CarcassSaleOutBL.SetGoodsFinish(id);
}
public static void SetGoodsUnFinish(long id)
{
CarcassSaleOutBL.SetGoodsUnFinish(id);
}
static void Delete(long id)
{
var delete = new DQDeleteDom(typeof(SegmentSaleOut_Detail));
delete.Where.Conditions.Add(DQCondition.EQ("ID", id));
delete.EExecute();
}
public static void AddAndUpdate(SegmentSaleOut_Detail detail)
{
using (var session = DmoSession.New())
{
session.Insert(detail);
var arr = new List<WeightRecord> { new WeightRecord { Flag = 2, ID = detail.ID, WeightTime = detail.Time, MainUnitNum = detail.Number, SecondNumber = detail.SecondNumber } };
var json = RpcFacade.Call<string>(RpcPath + "SaleOutStoreRpc/SaveWeightRecord", JsonConvert.SerializeObject(arr), detail.DetailID);
var back = JsonConvert.DeserializeObject<List<ExtensionObj>>(json);
var first = back.First();
Update(session, detail.ID, new Tuple<string, object>("WeightRecord_ID", first.LongExt2),
new Tuple<string, object>("ScanRecord_ID", first.LongExt3)
);
session.Commit();
}
}
public static void DeleteAndUpdate(SegmentSaleOut_Detail tag)
{
var json = JsonConvert.SerializeObject(new List<ExtensionObj>() { new ExtensionObj { LongExt1 = tag.DetailID, LongExt2 = tag.WeightRecord_ID, LongExt3 = tag.ScanRecord_ID } });
RpcFacade.Call<int>(RpcPath + "SaleOutStoreRpc/DeleteAndUpdate", json);
Delete(tag.ID);
}
public static void InsertByCode(SaleOutStore_Detail orderDetail, SegmentSaleOut_Detail detail)
{
var json = ButcherFactoryUtil.SimpleMESCall<string>(MESPath + "SegmentSaleOutStoreRpc/GetSegmentInfo", detail.BarCode);
var scanInfo = JsonConvert.DeserializeObject<ExtensionObj>(json);
if (scanInfo.StringExt1 != orderDetail.Goods_Code)
throw new Exception("扫码明细与发货明细 存货不一致!");
detail.BillID = orderDetail.SaleOutStore_ID;
detail.DetailID = orderDetail.ID;
detail.Goods_ID = orderDetail.Goods_ID;
detail.Goods_Code = orderDetail.Goods_Code;
detail.Goods_Name = orderDetail.Goods_Name;
detail.Number = scanInfo.DecimalExt1.Value;
if (orderDetail.Number.HasValue && orderDetail.SecondNumber.HasValue && orderDetail.Number != 0)
detail.SecondNumber = decimal.Round(orderDetail.SecondNumber.Value * detail.Number / orderDetail.Number.Value, 2);
detail.Operator = "扫码发货";
using (var session = DmoSession.New())
{
session.Insert(detail);
session.Commit();
}
SubmitDetails(new SegmentSaleOut_Detail[] { detail }, orderDetail, 1);
}
public static void InsertReadWeight(SaleOutStore_Detail orderDetail, SegmentSaleOut_Detail detail)
{
detail.BillID = orderDetail.SaleOutStore_ID;
detail.DetailID = orderDetail.ID;
detail.Goods_ID = orderDetail.Goods_ID;
detail.Goods_Code = orderDetail.Goods_Code;
detail.Goods_Name = orderDetail.Goods_Name;
if (orderDetail.Number.HasValue && orderDetail.SecondNumber.HasValue && orderDetail.Number != 0)
detail.SecondNumber = decimal.Round(orderDetail.SecondNumber.Value * detail.Number / orderDetail.Number.Value, 2);
detail.Operator = "读入重量";
using (var session = DmoSession.New())
{
session.Insert(detail);
session.Commit();
}
SubmitDetails(new SegmentSaleOut_Detail[] { detail }, orderDetail, 2);
}
}
}

+ 37
- 0
ButcherFactory.Form/ButcherFactory.Form.csproj View File

@ -203,6 +203,31 @@
<Compile Include="SegmentProduction_\TrunOutDialog.Designer.cs">
<DependentUpon>TrunOutDialog.cs</DependentUpon>
</Compile>
<Compile Include="SegmentSaleOut_\AddWeightRecord.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SegmentSaleOut_\AddWeightRecord.Designer.cs">
<DependentUpon>AddWeightRecord.cs</DependentUpon>
</Compile>
<Compile Include="SegmentSaleOut_\DiscontSetDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SegmentSaleOut_\DiscontSetDialog.Designer.cs">
<DependentUpon>DiscontSetDialog.cs</DependentUpon>
</Compile>
<Compile Include="SegmentSaleOut_\SegmentSaleOutForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SegmentSaleOut_\SegmentSaleOutForm.Designer.cs">
<DependentUpon>SegmentSaleOutForm.cs</DependentUpon>
</Compile>
<Compile Include="SegmentSaleOut_\SegmentSaleOutFormConfig.cs" />
<Compile Include="SegmentSaleOut_\WeightRecordDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SegmentSaleOut_\WeightRecordDialog.Designer.cs">
<DependentUpon>WeightRecordDialog.cs</DependentUpon>
</Compile>
<Compile Include="SegmentStockUp_\SegmentStockUpForm.cs">
<SubType>Form</SubType>
</Compile>
@ -282,6 +307,18 @@
<EmbeddedResource Include="SegmentProduction_\TrunOutDialog.resx">
<DependentUpon>TrunOutDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SegmentSaleOut_\AddWeightRecord.resx">
<DependentUpon>AddWeightRecord.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SegmentSaleOut_\DiscontSetDialog.resx">
<DependentUpon>DiscontSetDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SegmentSaleOut_\SegmentSaleOutForm.resx">
<DependentUpon>SegmentSaleOutForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SegmentSaleOut_\WeightRecordDialog.resx">
<DependentUpon>WeightRecordDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SegmentStockUp_\SegmentStockUpForm.resx">
<DependentUpon>SegmentStockUpForm.cs</DependentUpon>
</EmbeddedResource>


+ 2
- 2
ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs View File

@ -201,7 +201,7 @@ namespace ButcherFactory.CarcassSaleOut2_
var id = (long)mainGridView.CurrentRow.Cells[0].Value;
var ds = CarcassSaleOutBL.GetSaleOutStoreDetailList(id);
if (ds.Any(x => x.SSecondNumber == null || x.SSecondNumber == 0))
if (ds.Any(x => x.SNumber == null || x.SNumber == 0))
{
if (MessageBox.Show("有未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButtons.OKCancel) != DialogResult.OK)
return;
@ -214,7 +214,7 @@ namespace ButcherFactory.CarcassSaleOut2_
private void unFinishBtn_Click(object sender, EventArgs e)
{
if (mainGridView.CurrentRow == null)
throw new Exception("请选择要配货完成的发货单");
throw new Exception("请选择要撤销完毕的发货单");
var id = (long)mainGridView.CurrentRow.Cells[0].Value;
CarcassSaleOutBL.SetGoodsUnFinish(id);
AfterChangeFinishGoods(id);


+ 2
- 1
ButcherFactory.Form/Controls/ColorButton.cs View File

@ -24,7 +24,7 @@ namespace ButcherFactory.Controls
this.BackColor = Color.FromArgb(77, 135, 245);
}
Color selectedColor = Color.FromArgb(158, 234, 106);
Color selectedColor = Color.FromArgb(15, 215, 107);
[Browsable(true)]
public Color SelectedColor
{
@ -174,6 +174,7 @@ namespace ButcherFactory.Controls
if (btn == null)
continue;
btn.Selected = btn.Text == this.Text;
btn.Invalidate();
}
}
else if (StateHold)


+ 52
- 80
ButcherFactory.Form/Dialogs/AddWeightRecord.Designer.cs View File

@ -28,18 +28,17 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddWeightRecord));
this.uLabel1 = new WinFormControl.ULabel();
this.uLabel2 = new WinFormControl.ULabel();
this.uLabel3 = new WinFormControl.ULabel();
this.okBtn = new WinFormControl.UButton();
this.cancelBtn = new WinFormControl.UButton();
this.goodsLabel = new WinFormControl.ULabel();
this.panel1 = new System.Windows.Forms.Panel();
this.fullBtn = new WinFormControl.UButton();
this.helfBtn = new WinFormControl.UButton();
this.fullBtn = new ButcherFactory.Controls.ColorButton();
this.helfBtn = new ButcherFactory.Controls.ColorButton();
this.weightInput = new WinFormControl.UTextBoxWithPad();
this.numberInput = new WinFormControl.UTextBoxWithPad();
this.okBtn = new ButcherFactory.Controls.ColorButton();
this.cancelBtn = new ButcherFactory.Controls.ColorButton();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
@ -76,50 +75,6 @@
this.uLabel3.TabIndex = 2;
this.uLabel3.Text = "重 量:";
//
// okBtn
//
this.okBtn.AsClicked = false;
this.okBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("okBtn.BackgroundImage")));
this.okBtn.EnableGroup = false;
this.okBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.okBtn.FlatAppearance.BorderSize = 0;
this.okBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.okBtn.Font = new System.Drawing.Font("宋体", 12F);
this.okBtn.ForeColor = System.Drawing.Color.Black;
this.okBtn.Location = new System.Drawing.Point(174, 310);
this.okBtn.Name = "okBtn";
this.okBtn.PlaySound = false;
this.okBtn.SelfControlEnable = false;
this.okBtn.Size = new System.Drawing.Size(92, 40);
this.okBtn.SoundType = WinFormControl.SoundType.Click;
this.okBtn.TabIndex = 4;
this.okBtn.Text = "确定";
this.okBtn.UseVisualStyleBackColor = true;
this.okBtn.WithStataHode = false;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// cancelBtn
//
this.cancelBtn.AsClicked = false;
this.cancelBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cancelBtn.BackgroundImage")));
this.cancelBtn.EnableGroup = false;
this.cancelBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.cancelBtn.FlatAppearance.BorderSize = 0;
this.cancelBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.cancelBtn.Font = new System.Drawing.Font("宋体", 12F);
this.cancelBtn.ForeColor = System.Drawing.Color.Black;
this.cancelBtn.Location = new System.Drawing.Point(332, 310);
this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.PlaySound = false;
this.cancelBtn.SelfControlEnable = false;
this.cancelBtn.Size = new System.Drawing.Size(92, 40);
this.cancelBtn.SoundType = WinFormControl.SoundType.Click;
this.cancelBtn.TabIndex = 5;
this.cancelBtn.Text = "取消";
this.cancelBtn.UseVisualStyleBackColor = true;
this.cancelBtn.WithStataHode = false;
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
//
// goodsLabel
//
this.goodsLabel.AutoSize = true;
@ -143,46 +98,33 @@
//
// fullBtn
//
this.fullBtn.AsClicked = true;
this.fullBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("fullBtn.BackgroundImage")));
this.fullBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(106)))), ((int)(((byte)(201)))));
this.fullBtn.EnableGroup = true;
this.fullBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.fullBtn.FlatAppearance.BorderSize = 0;
this.fullBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.fullBtn.Font = new System.Drawing.Font("宋体", 12F);
this.fullBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.fullBtn.ForeColor = System.Drawing.Color.White;
this.fullBtn.Location = new System.Drawing.Point(154, 3);
this.fullBtn.Name = "fullBtn";
this.fullBtn.PlaySound = false;
this.fullBtn.SelfControlEnable = false;
this.fullBtn.Selected = true;
this.fullBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
this.fullBtn.Size = new System.Drawing.Size(85, 36);
this.fullBtn.SoundType = WinFormControl.SoundType.Click;
this.fullBtn.TabIndex = 1;
this.fullBtn.TabIndex = 7;
this.fullBtn.Text = "1";
this.fullBtn.UseVisualStyleBackColor = true;
this.fullBtn.WithStataHode = true;
this.fullBtn.UseVisualStyleBackColor = false;
this.fullBtn.Click += new System.EventHandler(this.fullBtn_Click);
//
// helfBtn
//
this.helfBtn.AsClicked = false;
this.helfBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("helfBtn.BackgroundImage")));
this.helfBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(106)))), ((int)(((byte)(201)))));
this.helfBtn.EnableGroup = true;
this.helfBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.helfBtn.FlatAppearance.BorderSize = 0;
this.helfBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.helfBtn.Font = new System.Drawing.Font("宋体", 12F);
this.helfBtn.ForeColor = System.Drawing.Color.Black;
this.helfBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.helfBtn.ForeColor = System.Drawing.Color.White;
this.helfBtn.Location = new System.Drawing.Point(3, 3);
this.helfBtn.Name = "helfBtn";
this.helfBtn.PlaySound = false;
this.helfBtn.SelfControlEnable = false;
this.helfBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
this.helfBtn.Size = new System.Drawing.Size(85, 36);
this.helfBtn.SoundType = WinFormControl.SoundType.Click;
this.helfBtn.TabIndex = 0;
this.helfBtn.TabIndex = 7;
this.helfBtn.Text = "0.5";
this.helfBtn.UseVisualStyleBackColor = true;
this.helfBtn.WithStataHode = true;
this.helfBtn.UseVisualStyleBackColor = false;
this.helfBtn.Click += new System.EventHandler(this.helfBtn_Click);
//
// weightInput
@ -193,6 +135,7 @@
this.weightInput.Size = new System.Drawing.Size(242, 38);
this.weightInput.TabIndex = 3;
this.weightInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
this.weightInput.Click += new System.EventHandler(this.weightInput_Click);
//
// numberInput
//
@ -202,6 +145,35 @@
this.numberInput.Size = new System.Drawing.Size(242, 38);
this.numberInput.TabIndex = 2;
this.numberInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
this.numberInput.Click += new System.EventHandler(this.weightInput_Click);
//
// okBtn
//
this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(194)))), ((int)(((byte)(76)))));
this.okBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.okBtn.ForeColor = System.Drawing.Color.White;
this.okBtn.Location = new System.Drawing.Point(181, 310);
this.okBtn.Name = "okBtn";
this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.okBtn.Size = new System.Drawing.Size(92, 40);
this.okBtn.TabIndex = 7;
this.okBtn.Text = "确定";
this.okBtn.UseVisualStyleBackColor = false;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// cancelBtn
//
this.cancelBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.cancelBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cancelBtn.ForeColor = System.Drawing.Color.White;
this.cancelBtn.Location = new System.Drawing.Point(325, 310);
this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.cancelBtn.Size = new System.Drawing.Size(92, 40);
this.cancelBtn.TabIndex = 8;
this.cancelBtn.Text = "取消";
this.cancelBtn.UseVisualStyleBackColor = false;
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
//
// AddWeightRecord
//
@ -210,12 +182,12 @@
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(582, 394);
this.ControlBox = false;
this.Controls.Add(this.cancelBtn);
this.Controls.Add(this.okBtn);
this.Controls.Add(this.numberInput);
this.Controls.Add(this.weightInput);
this.Controls.Add(this.panel1);
this.Controls.Add(this.goodsLabel);
this.Controls.Add(this.cancelBtn);
this.Controls.Add(this.okBtn);
this.Controls.Add(this.uLabel3);
this.Controls.Add(this.uLabel2);
this.Controls.Add(this.uLabel1);
@ -234,13 +206,13 @@
private WinFormControl.ULabel uLabel1;
private WinFormControl.ULabel uLabel2;
private WinFormControl.ULabel uLabel3;
private WinFormControl.UButton okBtn;
private WinFormControl.UButton cancelBtn;
private WinFormControl.ULabel goodsLabel;
private System.Windows.Forms.Panel panel1;
private WinFormControl.UButton helfBtn;
private WinFormControl.UTextBoxWithPad weightInput;
private WinFormControl.UButton fullBtn;
private WinFormControl.UTextBoxWithPad numberInput;
private Controls.ColorButton helfBtn;
private Controls.ColorButton fullBtn;
private Controls.ColorButton okBtn;
private Controls.ColorButton cancelBtn;
}
}

+ 8
- 1
ButcherFactory.Form/Dialogs/AddWeightRecord.cs View File

@ -10,6 +10,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinFormControl;
namespace ButcherFactory.Dialogs
{
@ -50,7 +51,6 @@ namespace ButcherFactory.Dialogs
CarcassSaleOutBL.AddAndUpdate(record);
DialogResult = DialogResult.OK;
this.Close();
}
private void cancelBtn_Click(object sender, EventArgs e)
@ -67,5 +67,12 @@ namespace ButcherFactory.Dialogs
{
numberInput.Text = "1";
}
private void weightInput_Click(object sender, EventArgs e)
{
var keyBoard = new NumberPad();
if (keyBoard.ShowDialog() == true)
(sender as TextBox).Text = keyBoard.Result;
}
}
}

+ 0
- 33
ButcherFactory.Form/Dialogs/AddWeightRecord.resx View File

@ -117,37 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="okBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
<data name="cancelBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
<data name="fullBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABzSURBVGhD7dABDQAgDMAwDKEYX9eDg89AkyrouW9Y
CAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKC
oCAoCAqCgqAgKAgKgoKgICgICoKCoNWbDyxvHbTQUKATAAAAAElFTkSuQmCC
</value>
</data>
<data name="helfBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
</root>

+ 51
- 84
ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs View File

@ -35,7 +35,6 @@
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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WeightRecordDialog));
this.uDataGridView1 = new WinFormControl.UDataGridView();
this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Selected = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -50,11 +49,11 @@
this.R_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Time = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.addBtn = new WinFormControl.UButton();
this.panel1 = new System.Windows.Forms.Panel();
this.rollBackBtn = new WinFormControl.UButton();
this.closeBtn = new WinFormControl.UButton();
this.deleteBtn = new WinFormControl.UButton();
this.addBtn = new ButcherFactory.Controls.ColorButton();
this.deleteBtn = new ButcherFactory.Controls.ColorButton();
this.rollBackBtn = new ButcherFactory.Controls.ColorButton();
this.closeBtn = new ButcherFactory.Controls.ColorButton();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
@ -218,107 +217,75 @@
this.R_Time.ReadOnly = true;
this.R_Time.Width = 120;
//
// addBtn
//
this.addBtn.AsClicked = false;
this.addBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("addBtn.BackgroundImage")));
this.addBtn.EnableGroup = false;
this.addBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.addBtn.FlatAppearance.BorderSize = 0;
this.addBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.addBtn.Font = new System.Drawing.Font("宋体", 12F);
this.addBtn.ForeColor = System.Drawing.Color.Black;
this.addBtn.Location = new System.Drawing.Point(3, 5);
this.addBtn.Name = "addBtn";
this.addBtn.PlaySound = false;
this.addBtn.SelfControlEnable = false;
this.addBtn.Size = new System.Drawing.Size(117, 43);
this.addBtn.SoundType = WinFormControl.SoundType.Click;
this.addBtn.TabIndex = 1;
this.addBtn.Text = "新增";
this.addBtn.UseVisualStyleBackColor = true;
this.addBtn.WithStataHode = false;
this.addBtn.Click += new System.EventHandler(this.addBtn_Click);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.rollBackBtn);
this.panel1.Controls.Add(this.closeBtn);
this.panel1.Controls.Add(this.rollBackBtn);
this.panel1.Controls.Add(this.deleteBtn);
this.panel1.Controls.Add(this.addBtn);
this.panel1.Location = new System.Drawing.Point(185, 468);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(776, 52);
this.panel1.Size = new System.Drawing.Size(744, 52);
this.panel1.TabIndex = 2;
//
// addBtn
//
this.addBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
this.addBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.addBtn.ForeColor = System.Drawing.Color.White;
this.addBtn.Location = new System.Drawing.Point(3, 5);
this.addBtn.Name = "addBtn";
this.addBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.addBtn.Size = new System.Drawing.Size(117, 43);
this.addBtn.TabIndex = 3;
this.addBtn.Text = "新增";
this.addBtn.UseVisualStyleBackColor = false;
this.addBtn.Click += new System.EventHandler(this.addBtn_Click);
//
// deleteBtn
//
this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
this.deleteBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.deleteBtn.ForeColor = System.Drawing.Color.White;
this.deleteBtn.Location = new System.Drawing.Point(207, 5);
this.deleteBtn.Name = "deleteBtn";
this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.deleteBtn.Size = new System.Drawing.Size(117, 43);
this.deleteBtn.TabIndex = 5;
this.deleteBtn.Text = "删除且更新";
this.deleteBtn.UseVisualStyleBackColor = false;
this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
//
// rollBackBtn
//
this.rollBackBtn.AsClicked = false;
this.rollBackBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("rollBackBtn.BackgroundImage")));
this.rollBackBtn.EnableGroup = false;
this.rollBackBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.rollBackBtn.FlatAppearance.BorderSize = 0;
this.rollBackBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.rollBackBtn.Font = new System.Drawing.Font("宋体", 12F);
this.rollBackBtn.ForeColor = System.Drawing.Color.Black;
this.rollBackBtn.Location = new System.Drawing.Point(414, 5);
this.rollBackBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(75)))), ((int)(((byte)(71)))));
this.rollBackBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rollBackBtn.ForeColor = System.Drawing.Color.White;
this.rollBackBtn.Location = new System.Drawing.Point(428, 5);
this.rollBackBtn.Name = "rollBackBtn";
this.rollBackBtn.PlaySound = false;
this.rollBackBtn.SelfControlEnable = false;
this.rollBackBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.rollBackBtn.Size = new System.Drawing.Size(117, 43);
this.rollBackBtn.SoundType = WinFormControl.SoundType.Click;
this.rollBackBtn.TabIndex = 4;
this.rollBackBtn.TabIndex = 6;
this.rollBackBtn.Text = "退回";
this.rollBackBtn.UseVisualStyleBackColor = true;
this.rollBackBtn.WithStataHode = false;
this.rollBackBtn.UseVisualStyleBackColor = false;
this.rollBackBtn.Click += new System.EventHandler(this.rollBackBtn_Click);
//
// closeBtn
//
this.closeBtn.AsClicked = false;
this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage")));
this.closeBtn.EnableGroup = false;
this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.closeBtn.FlatAppearance.BorderSize = 0;
this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.closeBtn.Font = new System.Drawing.Font("宋体", 12F);
this.closeBtn.ForeColor = System.Drawing.Color.Black;
this.closeBtn.Location = new System.Drawing.Point(623, 5);
this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.closeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.closeBtn.ForeColor = System.Drawing.Color.White;
this.closeBtn.Location = new System.Drawing.Point(624, 5);
this.closeBtn.Name = "closeBtn";
this.closeBtn.PlaySound = false;
this.closeBtn.SelfControlEnable = false;
this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.closeBtn.Size = new System.Drawing.Size(117, 43);
this.closeBtn.SoundType = WinFormControl.SoundType.Click;
this.closeBtn.TabIndex = 3;
this.closeBtn.Text = "关闭";
this.closeBtn.UseVisualStyleBackColor = true;
this.closeBtn.WithStataHode = false;
this.closeBtn.UseVisualStyleBackColor = false;
this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
//
// deleteBtn
//
this.deleteBtn.AsClicked = false;
this.deleteBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteBtn.BackgroundImage")));
this.deleteBtn.EnableGroup = false;
this.deleteBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214)))));
this.deleteBtn.FlatAppearance.BorderSize = 0;
this.deleteBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.deleteBtn.Font = new System.Drawing.Font("宋体", 12F);
this.deleteBtn.ForeColor = System.Drawing.Color.Black;
this.deleteBtn.Location = new System.Drawing.Point(204, 5);
this.deleteBtn.Name = "deleteBtn";
this.deleteBtn.PlaySound = false;
this.deleteBtn.SelfControlEnable = false;
this.deleteBtn.Size = new System.Drawing.Size(117, 43);
this.deleteBtn.SoundType = WinFormControl.SoundType.Click;
this.deleteBtn.TabIndex = 2;
this.deleteBtn.Text = "删除且更新";
this.deleteBtn.UseVisualStyleBackColor = true;
this.deleteBtn.WithStataHode = false;
this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
//
// WeightRecordDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -341,11 +308,7 @@
#endregion
private WinFormControl.UDataGridView uDataGridView1;
private WinFormControl.UButton addBtn;
private System.Windows.Forms.Panel panel1;
private WinFormControl.UButton deleteBtn;
private WinFormControl.UButton closeBtn;
private WinFormControl.UButton rollBackBtn;
private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Selected;
private System.Windows.Forms.DataGridViewImageColumn R_Image;
@ -359,5 +322,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn R_DiffWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Time;
private Controls.ColorButton addBtn;
private Controls.ColorButton deleteBtn;
private Controls.ColorButton rollBackBtn;
private Controls.ColorButton closeBtn;
}
}

+ 0
- 33
ButcherFactory.Form/Dialogs/WeightRecordDialog.resx View File

@ -156,37 +156,4 @@
<metadata name="R_Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="addBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
<data name="rollBackBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
<data name="closeBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
<data name="deleteBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK
goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg
KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII=
</value>
</data>
</root>

+ 147
- 147
ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs View File

@ -28,24 +28,24 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle 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 dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = 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 dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle51 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle49 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle50 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle52 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.inStoreViewBtn = new WinFormControl.NButton();
this.netStateWatch1 = new WinFormControl.NetStateWatch();
@ -54,6 +54,14 @@
this.uScanPanel1 = new WinFormControl.UScanPanel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.inStoreGrid = new WinFormControl.UDataGridView();
this.I_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_InStoreTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.goodsNameLbl = new WinFormControl.ULabel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.submitBtn = new WinFormControl.NButton();
@ -88,14 +96,6 @@
this.E_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.E_ExceptionInfo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uLabel4 = new WinFormControl.ULabel();
this.I_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.I_InStoreTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).BeginInit();
@ -191,18 +191,18 @@
this.inStoreGrid.AllowUserToDeleteRows = false;
this.inStoreGrid.AllowUserToResizeColumns = false;
this.inStoreGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.inStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.inStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle37;
this.inStoreGrid.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.inStoreGrid.BackgroundColor = System.Drawing.Color.White;
this.inStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.inStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle38.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle38.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.inStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38;
this.inStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.inStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.I_ID,
@ -218,14 +218,85 @@
this.inStoreGrid.Name = "inStoreGrid";
this.inStoreGrid.ReadOnly = true;
this.inStoreGrid.RowHeadersVisible = false;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.inStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle41.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle41.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.inStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle41;
this.inStoreGrid.RowTemplate.Height = 23;
this.inStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.inStoreGrid.Size = new System.Drawing.Size(595, 371);
this.inStoreGrid.TabIndex = 9;
//
// I_ID
//
this.I_ID.DataPropertyName = "ID";
this.I_ID.HeaderText = "ID";
this.I_ID.Name = "I_ID";
this.I_ID.ReadOnly = true;
this.I_ID.Visible = false;
//
// I_RowIndex
//
this.I_RowIndex.DataPropertyName = "RowIndex";
this.I_RowIndex.HeaderText = "序号";
this.I_RowIndex.Name = "I_RowIndex";
this.I_RowIndex.ReadOnly = true;
this.I_RowIndex.Width = 65;
//
// I_ShortCode
//
this.I_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.I_ShortCode.DataPropertyName = "ShortCode";
this.I_ShortCode.HeaderText = "条码";
this.I_ShortCode.Name = "I_ShortCode";
this.I_ShortCode.ReadOnly = true;
this.I_ShortCode.Width = 60;
//
// I_Goods_Code
//
this.I_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.I_Goods_Code.DataPropertyName = "Goods_Code";
this.I_Goods_Code.HeaderText = "产品编号";
this.I_Goods_Code.Name = "I_Goods_Code";
this.I_Goods_Code.ReadOnly = true;
//
// I_Goods_Name
//
this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.I_Goods_Name.DataPropertyName = "Goods_Name";
this.I_Goods_Name.HeaderText = "产品名称";
this.I_Goods_Name.Name = "I_Goods_Name";
this.I_Goods_Name.ReadOnly = true;
//
// I_Goods_Spec
//
this.I_Goods_Spec.DataPropertyName = "Goods_Spec";
this.I_Goods_Spec.HeaderText = "规格";
this.I_Goods_Spec.Name = "I_Goods_Spec";
this.I_Goods_Spec.ReadOnly = true;
this.I_Goods_Spec.Width = 70;
//
// I_Weight
//
this.I_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle39.Format = "#0.######";
this.I_Weight.DefaultCellStyle = dataGridViewCellStyle39;
this.I_Weight.HeaderText = "重量";
this.I_Weight.Name = "I_Weight";
this.I_Weight.ReadOnly = true;
this.I_Weight.Width = 70;
//
// I_InStoreTime
//
this.I_InStoreTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.I_InStoreTime.DataPropertyName = "InStoreTime";
dataGridViewCellStyle40.Format = "T";
dataGridViewCellStyle40.NullValue = null;
this.I_InStoreTime.DefaultCellStyle = dataGridViewCellStyle40;
this.I_InStoreTime.HeaderText = "入库时间";
this.I_InStoreTime.Name = "I_InStoreTime";
this.I_InStoreTime.ReadOnly = true;
this.I_InStoreTime.Width = 60;
//
// goodsNameLbl
//
this.goodsNameLbl.AutoSize = true;
@ -292,15 +363,15 @@
this.backStoreGrid.AllowUserToDeleteRows = false;
this.backStoreGrid.AllowUserToResizeColumns = false;
this.backStoreGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.backStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle42.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.backStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle42;
this.backStoreGrid.BackgroundColor = System.Drawing.Color.White;
this.backStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.backStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle43.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle43.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.backStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle43;
this.backStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.backStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.B_ID,
@ -317,9 +388,9 @@
this.backStoreGrid.Name = "backStoreGrid";
this.backStoreGrid.ReadOnly = true;
this.backStoreGrid.RowHeadersVisible = false;
dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.backStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle46.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle46.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.backStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle46;
this.backStoreGrid.RowTemplate.Height = 23;
this.backStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.backStoreGrid.Size = new System.Drawing.Size(649, 178);
@ -377,8 +448,8 @@
// B_Weight
//
this.B_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle8.Format = "#0.######";
this.B_Weight.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle44.Format = "#0.######";
this.B_Weight.DefaultCellStyle = dataGridViewCellStyle44;
this.B_Weight.HeaderText = "重量";
this.B_Weight.Name = "B_Weight";
this.B_Weight.ReadOnly = true;
@ -388,9 +459,9 @@
//
this.B_ProductTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.B_ProductTime.DataPropertyName = "ProductTime";
dataGridViewCellStyle9.Format = "T";
dataGridViewCellStyle9.NullValue = null;
this.B_ProductTime.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle45.Format = "T";
dataGridViewCellStyle45.NullValue = null;
this.B_ProductTime.DefaultCellStyle = dataGridViewCellStyle45;
this.B_ProductTime.HeaderText = "生产时间";
this.B_ProductTime.Name = "B_ProductTime";
this.B_ProductTime.ReadOnly = true;
@ -463,16 +534,16 @@
this.unInstoreGrid.AllowUserToDeleteRows = false;
this.unInstoreGrid.AllowUserToResizeColumns = false;
this.unInstoreGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.unInstoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle47.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.unInstoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle47;
this.unInstoreGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.unInstoreGrid.BackgroundColor = System.Drawing.Color.White;
this.unInstoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.unInstoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle48.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle48.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.unInstoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle48;
this.unInstoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.unInstoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn8,
@ -488,9 +559,9 @@
this.unInstoreGrid.Name = "unInstoreGrid";
this.unInstoreGrid.ReadOnly = true;
this.unInstoreGrid.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.unInstoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle51.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle51.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.unInstoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle51;
this.unInstoreGrid.RowTemplate.Height = 23;
this.unInstoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.unInstoreGrid.Size = new System.Drawing.Size(649, 109);
@ -548,8 +619,8 @@
// U_Weight
//
this.U_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle13.Format = "#0.######";
this.U_Weight.DefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle49.Format = "#0.######";
this.U_Weight.DefaultCellStyle = dataGridViewCellStyle49;
this.U_Weight.HeaderText = "重量";
this.U_Weight.Name = "U_Weight";
this.U_Weight.ReadOnly = true;
@ -559,9 +630,9 @@
//
this.U_ProductTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.U_ProductTime.DataPropertyName = "ProductTime";
dataGridViewCellStyle14.Format = "T";
dataGridViewCellStyle14.NullValue = null;
this.U_ProductTime.DefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle50.Format = "T";
dataGridViewCellStyle50.NullValue = null;
this.U_ProductTime.DefaultCellStyle = dataGridViewCellStyle50;
this.U_ProductTime.HeaderText = "生产时间";
this.U_ProductTime.Name = "U_ProductTime";
this.U_ProductTime.ReadOnly = true;
@ -597,15 +668,15 @@
this.exceptionGrid.AllowUserToDeleteRows = false;
this.exceptionGrid.AllowUserToResizeColumns = false;
this.exceptionGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.exceptionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16;
dataGridViewCellStyle52.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.exceptionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle52;
this.exceptionGrid.BackgroundColor = System.Drawing.Color.White;
this.exceptionGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle17.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.exceptionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17;
dataGridViewCellStyle53.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle53.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle53.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle53.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.exceptionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle53;
this.exceptionGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.exceptionGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.E_ID,
@ -618,9 +689,9 @@
this.exceptionGrid.Name = "exceptionGrid";
this.exceptionGrid.ReadOnly = true;
this.exceptionGrid.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.exceptionGrid.RowsDefaultCellStyle = dataGridViewCellStyle18;
dataGridViewCellStyle54.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle54.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.exceptionGrid.RowsDefaultCellStyle = dataGridViewCellStyle54;
this.exceptionGrid.RowTemplate.Height = 23;
this.exceptionGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.exceptionGrid.Size = new System.Drawing.Size(649, 104);
@ -669,77 +740,6 @@
this.uLabel4.TabIndex = 5;
this.uLabel4.Text = "异常记录";
//
// I_ID
//
this.I_ID.DataPropertyName = "ID";
this.I_ID.HeaderText = "ID";
this.I_ID.Name = "I_ID";
this.I_ID.ReadOnly = true;
this.I_ID.Visible = false;
//
// I_RowIndex
//
this.I_RowIndex.DataPropertyName = "RowIndex";
this.I_RowIndex.HeaderText = "序号";
this.I_RowIndex.Name = "I_RowIndex";
this.I_RowIndex.ReadOnly = true;
this.I_RowIndex.Width = 65;
//
// I_ShortCode
//
this.I_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.I_ShortCode.DataPropertyName = "ShortCode";
this.I_ShortCode.HeaderText = "条码";
this.I_ShortCode.Name = "I_ShortCode";
this.I_ShortCode.ReadOnly = true;
this.I_ShortCode.Width = 65;
//
// I_Goods_Code
//
this.I_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.I_Goods_Code.DataPropertyName = "Goods_Code";
this.I_Goods_Code.HeaderText = "产品编号";
this.I_Goods_Code.Name = "I_Goods_Code";
this.I_Goods_Code.ReadOnly = true;
//
// I_Goods_Name
//
this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.I_Goods_Name.DataPropertyName = "Goods_Name";
this.I_Goods_Name.HeaderText = "产品名称";
this.I_Goods_Name.Name = "I_Goods_Name";
this.I_Goods_Name.ReadOnly = true;
//
// I_Goods_Spec
//
this.I_Goods_Spec.DataPropertyName = "Goods_Spec";
this.I_Goods_Spec.HeaderText = "规格";
this.I_Goods_Spec.Name = "I_Goods_Spec";
this.I_Goods_Spec.ReadOnly = true;
this.I_Goods_Spec.Width = 70;
//
// I_Weight
//
this.I_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle3.Format = "#0.######";
this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3;
this.I_Weight.HeaderText = "重量";
this.I_Weight.Name = "I_Weight";
this.I_Weight.ReadOnly = true;
this.I_Weight.Width = 70;
//
// I_InStoreTime
//
this.I_InStoreTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.I_InStoreTime.DataPropertyName = "InStoreTime";
dataGridViewCellStyle4.Format = "T";
dataGridViewCellStyle4.NullValue = null;
this.I_InStoreTime.DefaultCellStyle = dataGridViewCellStyle4;
this.I_InStoreTime.HeaderText = "入库时间";
this.I_InStoreTime.Name = "I_InStoreTime";
this.I_InStoreTime.ReadOnly = true;
this.I_InStoreTime.Width = 97;
//
// SegmentInStoreForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);


+ 168
- 0
ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.Designer.cs View File

@ -0,0 +1,168 @@
namespace ButcherFactory.SegmentSaleOut_
{
partial class AddWeightRecord
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.cancelBtn = new ButcherFactory.Controls.ColorButton();
this.okBtn = new ButcherFactory.Controls.ColorButton();
this.numberInput = new WinFormControl.UTextBoxWithPad();
this.weightInput = new WinFormControl.UTextBoxWithPad();
this.goodsLabel = new WinFormControl.ULabel();
this.uLabel3 = new WinFormControl.ULabel();
this.uLabel2 = new WinFormControl.ULabel();
this.uLabel1 = new WinFormControl.ULabel();
this.SuspendLayout();
//
// cancelBtn
//
this.cancelBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.cancelBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cancelBtn.ForeColor = System.Drawing.Color.White;
this.cancelBtn.Location = new System.Drawing.Point(375, 259);
this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.cancelBtn.Size = new System.Drawing.Size(92, 40);
this.cancelBtn.TabIndex = 17;
this.cancelBtn.Text = "取消";
this.cancelBtn.UseVisualStyleBackColor = false;
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
//
// okBtn
//
this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(194)))), ((int)(((byte)(76)))));
this.okBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.okBtn.ForeColor = System.Drawing.Color.White;
this.okBtn.Location = new System.Drawing.Point(231, 259);
this.okBtn.Name = "okBtn";
this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.okBtn.Size = new System.Drawing.Size(92, 40);
this.okBtn.TabIndex = 16;
this.okBtn.Text = "确定";
this.okBtn.UseVisualStyleBackColor = false;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// numberInput
//
this.numberInput.Font = new System.Drawing.Font("宋体", 20F);
this.numberInput.Location = new System.Drawing.Point(228, 99);
this.numberInput.Name = "numberInput";
this.numberInput.Size = new System.Drawing.Size(242, 38);
this.numberInput.TabIndex = 11;
this.numberInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
this.numberInput.Click += new System.EventHandler(this.weightInput_Click);
//
// weightInput
//
this.weightInput.Font = new System.Drawing.Font("宋体", 20F);
this.weightInput.Location = new System.Drawing.Point(228, 175);
this.weightInput.Name = "weightInput";
this.weightInput.Size = new System.Drawing.Size(242, 38);
this.weightInput.TabIndex = 13;
this.weightInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number;
this.weightInput.Click += new System.EventHandler(this.weightInput_Click);
//
// goodsLabel
//
this.goodsLabel.AutoSize = true;
this.goodsLabel.BackColor = System.Drawing.Color.Transparent;
this.goodsLabel.Font = new System.Drawing.Font("宋体", 15F);
this.goodsLabel.ForeColor = System.Drawing.Color.Red;
this.goodsLabel.Location = new System.Drawing.Point(227, 43);
this.goodsLabel.Name = "goodsLabel";
this.goodsLabel.Size = new System.Drawing.Size(49, 20);
this.goodsLabel.TabIndex = 14;
this.goodsLabel.Text = "存货";
//
// uLabel3
//
this.uLabel3.AutoSize = true;
this.uLabel3.BackColor = System.Drawing.Color.Transparent;
this.uLabel3.Font = new System.Drawing.Font("宋体", 12F);
this.uLabel3.Location = new System.Drawing.Point(107, 184);
this.uLabel3.Name = "uLabel3";
this.uLabel3.Size = new System.Drawing.Size(80, 16);
this.uLabel3.TabIndex = 12;
this.uLabel3.Text = "重 量:";
//
// uLabel2
//
this.uLabel2.AutoSize = true;
this.uLabel2.BackColor = System.Drawing.Color.Transparent;
this.uLabel2.Font = new System.Drawing.Font("宋体", 12F);
this.uLabel2.Location = new System.Drawing.Point(110, 111);
this.uLabel2.Name = "uLabel2";
this.uLabel2.Size = new System.Drawing.Size(80, 16);
this.uLabel2.TabIndex = 10;
this.uLabel2.Text = "数 量:";
//
// uLabel1
//
this.uLabel1.AutoSize = true;
this.uLabel1.BackColor = System.Drawing.Color.Transparent;
this.uLabel1.Font = new System.Drawing.Font("宋体", 12F);
this.uLabel1.Location = new System.Drawing.Point(110, 43);
this.uLabel1.Name = "uLabel1";
this.uLabel1.Size = new System.Drawing.Size(88, 16);
this.uLabel1.TabIndex = 9;
this.uLabel1.Text = "存货名称:";
//
// AddWeightRecord
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(582, 357);
this.ControlBox = false;
this.Controls.Add(this.cancelBtn);
this.Controls.Add(this.okBtn);
this.Controls.Add(this.numberInput);
this.Controls.Add(this.weightInput);
this.Controls.Add(this.goodsLabel);
this.Controls.Add(this.uLabel3);
this.Controls.Add(this.uLabel2);
this.Controls.Add(this.uLabel1);
this.Name = "AddWeightRecord";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "新增";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Controls.ColorButton cancelBtn;
private Controls.ColorButton okBtn;
private WinFormControl.UTextBoxWithPad numberInput;
private WinFormControl.UTextBoxWithPad weightInput;
private WinFormControl.ULabel goodsLabel;
private WinFormControl.ULabel uLabel3;
private WinFormControl.ULabel uLabel2;
private WinFormControl.ULabel uLabel1;
}
}

+ 66
- 0
ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.cs View File

@ -0,0 +1,66 @@
using ButcherFactory.BO;
using ButcherFactory.BO.LocalBL;
using ButcherFactory.BO.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinFormControl;
namespace ButcherFactory.SegmentSaleOut_
{
public partial class AddWeightRecord : Form
{
SaleOutStore_Detail mDetail;
long? mBatchID = null;
public AddWeightRecord(SaleOutStore_Detail detail, long? batchID)
{
InitializeComponent();
mDetail = detail;
mBatchID = batchID;
goodsLabel.Text = mDetail.Goods_Name;
}
private void okBtn_Click(object sender, EventArgs e)
{
decimal weight = 0;
if (!decimal.TryParse(weightInput.Text, out weight))
throw new Exception("请输入重量");
decimal number = 0;
if (!decimal.TryParse(numberInput.Text, out number))
throw new Exception("请输入数量");
if (number < 0)
throw new Exception("数量不能为负");
var record = new SegmentSaleOut_Detail();
record.BillID = mDetail.SaleOutStore_ID;
record.DetailID = mDetail.ID;
record.ProductBatch_ID = mBatchID;
record.Goods_Code = mDetail.Goods_Code;
record.Goods_ID = mDetail.Goods_ID;
record.Goods_Name = mDetail.Goods_Name;
record.Number = weight;
record.SecondNumber = number;
record.Operator = AppContext.Worker.Name;
SegmentSaleOutBL.AddAndUpdate(record);
DialogResult = DialogResult.OK;
}
private void cancelBtn_Click(object sender, EventArgs e)
{
this.Close();
}
private void weightInput_Click(object sender, EventArgs e)
{
var keyBoard = new NumberPad();
if (keyBoard.ShowDialog() == true)
(sender as TextBox).Text = keyBoard.Result;
}
}
}

+ 120
- 0
ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.resx View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

+ 180
- 0
ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.Designer.cs View File

@ -0,0 +1,180 @@
namespace ButcherFactory.SegmentSaleOut_
{
partial class DiscontSetDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lbl1 = new System.Windows.Forms.Label();
this.lbl2 = new System.Windows.Forms.Label();
this.lbl3 = new System.Windows.Forms.Label();
this.lbl4 = new System.Windows.Forms.Label();
this.okBtn = new ButcherFactory.Controls.ColorButton();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 12F);
this.label1.Location = new System.Drawing.Point(72, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 16);
this.label1.TabIndex = 0;
this.label1.Text = "扣重一";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 12F);
this.label2.Location = new System.Drawing.Point(72, 87);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 16);
this.label2.TabIndex = 1;
this.label2.Text = "扣重一";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 12F);
this.label3.Location = new System.Drawing.Point(72, 144);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 16);
this.label3.TabIndex = 2;
this.label3.Text = "扣重一";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("宋体", 12F);
this.label4.Location = new System.Drawing.Point(72, 201);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 16);
this.label4.TabIndex = 3;
this.label4.Text = "扣重一";
//
// lbl1
//
this.lbl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl1.Font = new System.Drawing.Font("黑体", 12F);
this.lbl1.ForeColor = System.Drawing.Color.Red;
this.lbl1.Location = new System.Drawing.Point(161, 29);
this.lbl1.Name = "lbl1";
this.lbl1.Size = new System.Drawing.Size(100, 30);
this.lbl1.TabIndex = 4;
this.lbl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl1.Click += new System.EventHandler(this.lbl1_Click);
//
// lbl2
//
this.lbl2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl2.Font = new System.Drawing.Font("黑体", 12F);
this.lbl2.ForeColor = System.Drawing.Color.Red;
this.lbl2.Location = new System.Drawing.Point(161, 84);
this.lbl2.Name = "lbl2";
this.lbl2.Size = new System.Drawing.Size(100, 30);
this.lbl2.TabIndex = 5;
this.lbl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl2.Click += new System.EventHandler(this.lbl1_Click);
//
// lbl3
//
this.lbl3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl3.Font = new System.Drawing.Font("黑体", 12F);
this.lbl3.ForeColor = System.Drawing.Color.Red;
this.lbl3.Location = new System.Drawing.Point(161, 141);
this.lbl3.Name = "lbl3";
this.lbl3.Size = new System.Drawing.Size(100, 30);
this.lbl3.TabIndex = 6;
this.lbl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl3.Click += new System.EventHandler(this.lbl1_Click);
//
// lbl4
//
this.lbl4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl4.Font = new System.Drawing.Font("黑体", 12F);
this.lbl4.ForeColor = System.Drawing.Color.Red;
this.lbl4.Location = new System.Drawing.Point(161, 198);
this.lbl4.Name = "lbl4";
this.lbl4.Size = new System.Drawing.Size(100, 30);
this.lbl4.TabIndex = 7;
this.lbl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl4.Click += new System.EventHandler(this.lbl1_Click);
//
// okBtn
//
this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.okBtn.Font = new System.Drawing.Font("宋体", 12F);
this.okBtn.ForeColor = System.Drawing.Color.White;
this.okBtn.Location = new System.Drawing.Point(119, 271);
this.okBtn.Name = "okBtn";
this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
this.okBtn.Size = new System.Drawing.Size(98, 43);
this.okBtn.TabIndex = 8;
this.okBtn.Text = "确定";
this.okBtn.UseVisualStyleBackColor = false;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// DiscontSetDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(343, 343);
this.ControlBox = false;
this.Controls.Add(this.okBtn);
this.Controls.Add(this.lbl4);
this.Controls.Add(this.lbl3);
this.Controls.Add(this.lbl2);
this.Controls.Add(this.lbl1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "DiscontSetDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "扣重设置";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label lbl1;
private System.Windows.Forms.Label lbl2;
private System.Windows.Forms.Label lbl3;
private System.Windows.Forms.Label lbl4;
private Controls.ColorButton okBtn;
}
}

+ 69
- 0
ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.cs View File

@ -0,0 +1,69 @@
using ButcherFactory.BO.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinFormControl;
namespace ButcherFactory.SegmentSaleOut_
{
public partial class DiscontSetDialog : Form
{
public string disCont = string.Empty;
SegmentSaleOutFormConfig config;
List<Label> lbls;
public DiscontSetDialog()
{
InitializeComponent();
config = XmlUtil.DeserializeFromFile<SegmentSaleOutFormConfig>();
disCont = config.DiscontWeight;
lbls = new List<Label> { lbl1, lbl2, lbl3, lbl4 };
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
var arr = config.DiscontWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => decimal.Parse(x)).OrderByDescending(x => x);
var idx = 0;
foreach (var item in arr)
{
lbls[idx].Text = item.ToString("#0.##");
idx++;
if (idx == 4)
break;
}
}
private void lbl1_Click(object sender, EventArgs e)
{
var keyBoard = new NumberPad();
if (keyBoard.ShowDialog() == true)
(sender as Label).Text = keyBoard.Result;
}
private void okBtn_Click(object sender, EventArgs e)
{
List<decimal> arr = new List<decimal>();
foreach (var item in lbls)
{
if (!string.IsNullOrEmpty(item.Text))
arr.Add(decimal.Parse(item.Text));
}
disCont = string.Join(",", arr.Distinct().OrderBy(x => x));
if (config.DiscontWeight != disCont)
{
config.DiscontWeight = disCont;
XmlUtil.SerializerObjToFile(config);
DialogResult = DialogResult.OK;
}
else
DialogResult = DialogResult.Cancel;
}
}
}

+ 120
- 0
ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.resx View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

+ 1155
- 0
ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.Designer.cs
File diff suppressed because it is too large
View File


+ 440
- 0
ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs View File

@ -0,0 +1,440 @@
using ButcherFactory.BO;
using ButcherFactory.BO.LocalBL;
using ButcherFactory.BO.Utils;
using ButcherFactory.Controls;
using ButcherFactory.Dialogs;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinFormControl;
namespace ButcherFactory.SegmentSaleOut_
{
public partial class SegmentSaleOutForm : FormTemplate, IWithRoleForm
{
#region IWithRoleForm
public List<short> RoleName
{
get { return new List<short> { (short). }; }
}
public Form Generate()
{
return this;
}
#endregion
BindingList<SaleOutStore> saleOutStoreList;
BindingList<SaleOutStore_Detail> details;
BindingList<SegmentSaleOut_Detail> weightRecord;
string strDiscontWeight = "";
internal DateTime sendTime = DateTime.Today;
internal long? deliverGoodsLineID;
internal long? customerID;
internal int billState;
internal long? storeID;
long? batchID;
bool already = false;
decimal? discont = null;
public SegmentSaleOutForm()
{
InitializeComponent();
uScanPanel1.AfterScan += uScanPanel1_AfterScan;
productBatchSelect.SelectedIndexChanged += delegate
{
if (productBatchSelect.SelectedValue == null)
batchID = null;
else
batchID = (long)productBatchSelect.SelectedValue;
};
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
billState = 0;
billStateBox.Text = "未审核";
sendDateBox.Text = sendTime.ToString("yyyy-MM-dd");
var config = XmlUtil.DeserializeFromFile<SegmentSaleOutFormConfig>();
if (config.Store_ID.HasValue)
{
storeBox.Text = config.Store_Name;
storeID = config.Store_ID;
}
if (!string.IsNullOrEmpty(config.DiscontWeight))
strDiscontWeight = config.DiscontWeight;
BindProductBatch();
BindDiscontBtn();
}
private void BindProductBatch()
{
var batchs = SegmentSaleOutBL.GetBatchFromEMS();
productBatchSelect.DisplayMember = "Name";
productBatchSelect.ValueMember = "ID";
productBatchSelect.DataSource = batchs;
var idx = batchs.FindIndex(x => x.Date == DateTime.Today);
if (idx > 0)
productBatchSelect.SelectedIndex = idx;
productBatchSelect.Refresh();
}
void uScanPanel1_AfterScan()
{
var barCode = uScanPanel1.TextBox.Text.Trim();
if (string.IsNullOrEmpty(barCode))
throw new Exception("条码错误");
if (already)
throw new Exception("正在查看已配货记录,不允许配货");
if (detailGridView.CurrentRow == null)
throw new Exception("没有订货明细");
if (weightRecord.Any(x => x.BarCode == barCode))
return;
InsertDetailByScan(barCode);
WinFormControl.SoundPalyUtil.PlaySound(WinFormControl.SoundType.Click);
}
void InsertDetailByScan(string barCode)
{
var orderDetail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail;
var detail = new SegmentSaleOut_Detail();
detail.BarCode = barCode;
if (weightRecord.Any())
detail.Idx = weightRecord.Max(x => x.Idx) + 1;
else
detail.Idx = 1;
SegmentSaleOutBL.InsertByCode(orderDetail, detail);
weightRecord.Insert(0, detail);
weightRecordGridView.FirstDisplayedScrollingRowIndex = 0;
weightRecordGridView.Refresh();
BindDetailByLocal(orderDetail.ID);
}
private void queryControl_MouseDown(object sender, MouseEventArgs e)
{
var simpleLbl = sender as Label;
switch (simpleLbl.Name)
{
case "sendDateBox":
var cs = new CalendarSelecter();
if (cs.ShowDialog() == true)
{
sendTime = cs.Result;
sendDateBox.Text = sendTime.ToString("yyyy-MM-dd");
}
break;
case "deliverGoodsLineBox":
var dgl = new SelectDeliverGoodsLineDialog();
if (dgl.ShowDialog() == DialogResult.OK)
{
simpleLbl.Text = dgl.Result.Item1;
deliverGoodsLineID = dgl.Result.Item2;
}
break;
case "customerBox":
var cb = new SelectCustomerDialog();
if (cb.ShowDialog() == DialogResult.OK)
{
simpleLbl.Text = cb.Result.Item1;
customerID = cb.Result.Item2;
}
break;
case "billStateBox":
var bs = new SelectBillStateDialog();
if (bs.ShowDialog() == DialogResult.OK)
{
simpleLbl.Text = bs.Result.Item1;
billState = bs.Result.Item2;
}
break;
case "storeBox":
var sb = new SelectStoreDialog();
if (sb.ShowDialog() == DialogResult.OK)
{
simpleLbl.Text = sb.Result.Item1;
storeID = sb.Result.Item2;
XmlUtil.SerializerObjToFile(new SegmentSaleOutFormConfig { DiscontWeight = strDiscontWeight, Store_ID = storeID, Store_Name = simpleLbl.Text });
}
break;
}
}
private void refreshBtn_Click(object sender, EventArgs e)
{
already = false;
Refersh();
}
private void clearBtn_Click(object sender, EventArgs e)
{
billState = 0;
billStateBox.Text = "未审核";
sendTime = DateTime.Today;
sendDateBox.Text = sendTime.ToString("yyyy-MM-dd");
deliverGoodsLineBox.Text = string.Empty;
deliverGoodsLineID = null;
customerBox.Text = string.Empty;
customerID = null;
storeBox.Text = string.Empty;
storeID = null;
}
private void alreadyViewBtn_Click(object sender, EventArgs e)
{
already = true;
Refersh();
}
void Refersh()
{
goodsFinishBtn.Enabled = !already;
unFinishBtn.Enabled = already;
deleteBtn.Enabled = !already;
readBtn.Enabled = !already;
saleOutStoreList = SegmentSaleOutBL.GetSaleOutStoreList(sendTime, deliverGoodsLineID, customerID, billState, storeID, already);
orderGridView.DataSource = saleOutStoreList;
orderGridView.Refresh();
BindLabels(saleOutStoreList.FirstOrDefault() ?? new SaleOutStore());
BindDetailGrid();
}
private void weightRecordBtn_Click(object sender, EventArgs e)
{
if (detailGridView.CurrentRow == null)
throw new Exception("请选择配货明细");
var detail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail;
var dg = new SegmentSaleOut_.WeightRecordDialog(details.First(x => x.ID == detail.ID), already, batchID);
dg.ShowDialog();
if (dg.Changed)
{
weightRecord = SegmentSaleOutBL.GetWeightRecord(detail.ID);
weightRecordGridView.DataSource = weightRecord;
weightRecordGridView.Refresh();
BindDetailByLocal(detail.ID);
}
}
private void goodsFinishBtn_Click(object sender, EventArgs e)
{
if (orderGridView.CurrentRow == null)
throw new Exception("请选择要配货完成的发货单");
var id = (long)orderGridView.CurrentRow.Cells[0].Value;
var ds = SegmentSaleOutBL.GetSaleOutStoreDetailList(id);
if (ds.Any(x => x.SNumber == null || x.SNumber == 0))
{
if (MessageBox.Show("有未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButtons.OKCancel) != DialogResult.OK)
return;
}
SegmentSaleOutBL.SetGoodsFinish(id);
AfterChangeFinishGoods(id);
MessageBox.Show("配货完成!");
}
private void unFinishBtn_Click(object sender, EventArgs e)
{
if (orderGridView.CurrentRow == null)
throw new Exception("请选择要撤销完毕的发货单");
var id = (long)orderGridView.CurrentRow.Cells[0].Value;
SegmentSaleOutBL.SetGoodsUnFinish(id);
AfterChangeFinishGoods(id);
MessageBox.Show("撤销成功!");
}
private void AfterChangeFinishGoods(long id)
{
saleOutStoreList.Remove(saleOutStoreList.First(x => x.ID == id));
orderGridView.Refresh();
details = new BindingList<SaleOutStore_Detail>();
detailGridView.DataSource = details;
detailGridView.Refresh();
weightRecord = new BindingList<SegmentSaleOut_Detail>();
weightRecordGridView.DataSource = weightRecord;
weightRecordGridView.Refresh();
BindLabels(new SaleOutStore());
}
private void deleteBtn_Click(object sender, EventArgs e)
{
if (weightRecordGridView.CurrentRow == null)
return;
var id = (long)weightRecordGridView.CurrentRow.Cells[0].Value;
var tag = weightRecord.First(x => x.ID == id);
SegmentSaleOutBL.DeleteAndUpdate(tag);
weightRecord.Remove(tag);
foreach (var item in weightRecord.Where(x => x.Idx > tag.Idx))
item.Idx -= 1;
weightRecordGridView.Refresh();
BindDetailByLocal(tag.DetailID.Value);
}
private void readBtn_Click(object sender, EventArgs e)
{
if (weightControl1.Weight == 0)
return;
if (already)
throw new Exception("正在查看已配货记录,不允许配货");
if (detailGridView.CurrentRow == null)
throw new Exception("没有订货明细");
var weight = weightControl1.Weight - (discont ?? 0);
if (weight <= 0)
throw new Exception(string.Format("扣重后重量为{0:#0.##}", weight));
InsertDetailByReadWeight(weight);
}
private void InsertDetailByReadWeight(decimal weight)
{
var orderDetail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail;
var detail = new SegmentSaleOut_Detail();
detail.Number = weight;
detail.DiscontWeight = discont;
if (weightRecord.Any())
detail.Idx = weightRecord.Max(x => x.Idx) + 1;
else
detail.Idx = 1;
SegmentSaleOutBL.InsertReadWeight(orderDetail, detail);
weightRecord.Insert(0, detail);
weightRecordGridView.FirstDisplayedScrollingRowIndex = 0;
weightRecordGridView.Refresh();
BindDetailByLocal(orderDetail.ID);
}
private void orderGridView_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (orderGridView.CurrentRow == null)
return;
BindLabels(orderGridView.CurrentRow.DataBoundItem as SaleOutStore);
BindDetailGrid();
}
private void detailGridView_CellClick(object sender, DataGridViewCellEventArgs e)
{
BindWeightRecord();
}
void BindDetailGrid()
{
var row = orderGridView.CurrentRow;
if (row == null)
details = new BindingList<SaleOutStore_Detail>();
else
{
var id = long.Parse(billIDLabel.Text);
details = SegmentSaleOutBL.GetSaleOutStoreDetailList(id);
foreach (var item in details)
{
item.SaleOutStore_ID = id;
item.Customer_Name = customerLabel.Text;
}
}
detailGridView.DataSource = details;
detailGridView.Refresh();
BindWeightRecord();
}
void BindWeightRecord()
{
var row = detailGridView.CurrentRow;
if (row == null)
weightRecord = new BindingList<SegmentSaleOut_Detail>();
else
weightRecord = SegmentSaleOutBL.GetWeightRecord((long)row.Cells["D_ID"].Value);
weightRecordGridView.DataSource = weightRecord;
weightRecordGridView.Refresh();
}
void BindDetailByLocal(long detailID)
{
var first = details.First(x => x.ID == detailID);
first.SNumber = weightRecord.Sum(x => x.Number);
first.SSecondNumber = weightRecord.Sum(x => x.SecondNumber ?? 0);
foreach (DataGridViewRow row in detailGridView.Rows)
{
if ((long)row.Cells[0].Value == detailID)
{
row.Selected = true;
break;
}
}
detailGridView.Refresh();
}
void BindLabels(SaleOutStore entity)
{
billIDLabel.Text = entity.ID == 0 ? "" : entity.ID.ToString();
customerLabel.Text = entity.Customer_Name;
addressLabel.Text = entity.Address;
carNumberLabel.Text = entity.CarNumber;
}
private void detailGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
{
DataGridViewRow dgrSingle = detailGridView.Rows[e.RowIndex];
var v = (decimal?)dgrSingle.Cells["D_SNumber"].Value;
if (v.HasValue && v > 0)
{
dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen;
}
}
Color btnColor = Color.FromArgb(10, 106, 201);
Color selectedColor = Color.FromArgb(255, 0, 25);
void BindDiscontBtn()
{
var arr = strDiscontWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => decimal.Parse(x)).OrderBy(x => x);
flowLayoutPanel1.Controls.Clear();
foreach (var v in arr)
{
var btn = new ColorButton { Width = 84, Height = 35, BackColor = btnColor, SelectedColor = selectedColor, EnableGroup = true, Margin = new Padding(10, 5, 10, 5), Text = v.ToString("#0.##"), Font = new Font("黑体", 12) };
btn.Click += delegate { discont = v; disContLbl.Text = discont.Value.ToString("#0.##"); };
flowLayoutPanel1.Controls.Add(btn);
}
}
private void discontSetBtn_Click(object sender, EventArgs e)
{
var dialog = new DiscontSetDialog();
if (dialog.ShowDialog() == DialogResult.OK)
{
strDiscontWeight = dialog.disCont;
BindDiscontBtn();
}
}
private void disContLbl_Click(object sender, EventArgs e)
{
var keyBoard = new NumberPad();
if (keyBoard.ShowDialog() == true)
{
discont = decimal.Parse(keyBoard.Result);
disContLbl.Text = discont.Value.ToString("#0.##");
}
}
}
}

+ 189
- 0
ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.resx View File

@ -0,0 +1,189 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="F_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_Idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_GoodsCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_DiscontWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F_Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SaleOutStore_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Goods_Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_DiffNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="M_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="M_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="M_SendTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="M_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

+ 17
- 0
ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutFormConfig.cs View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherFactory.SegmentSaleOut_
{
public class SegmentSaleOutFormConfig
{
public long? Store_ID { get; set; }
public string Store_Name { get; set; }
public string DiscontWeight { get; set; }
}
}

+ 274
- 0
ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.Designer.cs View File

@ -0,0 +1,274 @@
namespace ButcherFactory.SegmentSaleOut_
{
partial class WeightRecordDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.closeBtn = new ButcherFactory.Controls.ColorButton();
this.deleteBtn = new ButcherFactory.Controls.ColorButton();
this.addBtn = new ButcherFactory.Controls.ColorButton();
this.uDataGridView1 = new WinFormControl.UDataGridView();
this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_DiscontWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Time = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.closeBtn);
this.panel1.Controls.Add(this.deleteBtn);
this.panel1.Controls.Add(this.addBtn);
this.panel1.Location = new System.Drawing.Point(185, 461);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(744, 52);
this.panel1.TabIndex = 4;
//
// closeBtn
//
this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.closeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.closeBtn.ForeColor = System.Drawing.Color.White;
this.closeBtn.Location = new System.Drawing.Point(537, 5);
this.closeBtn.Name = "closeBtn";
this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.closeBtn.Size = new System.Drawing.Size(117, 43);
this.closeBtn.TabIndex = 3;
this.closeBtn.Text = "关闭";
this.closeBtn.UseVisualStyleBackColor = false;
this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
//
// deleteBtn
//
this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
this.deleteBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.deleteBtn.ForeColor = System.Drawing.Color.White;
this.deleteBtn.Location = new System.Drawing.Point(328, 5);
this.deleteBtn.Name = "deleteBtn";
this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.deleteBtn.Size = new System.Drawing.Size(117, 43);
this.deleteBtn.TabIndex = 5;
this.deleteBtn.Text = "删除且更新";
this.deleteBtn.UseVisualStyleBackColor = false;
this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
//
// addBtn
//
this.addBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
this.addBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.addBtn.ForeColor = System.Drawing.Color.White;
this.addBtn.Location = new System.Drawing.Point(128, 5);
this.addBtn.Name = "addBtn";
this.addBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
this.addBtn.Size = new System.Drawing.Size(117, 43);
this.addBtn.TabIndex = 3;
this.addBtn.Text = "新增";
this.addBtn.UseVisualStyleBackColor = false;
this.addBtn.Click += new System.EventHandler(this.addBtn_Click);
//
// 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;
this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.R_ID,
this.R_Idx,
this.R_BarCode,
this.R_Goods_Code,
this.R_Goods_Name,
this.R_SecondNumber,
this.R_Number,
this.R_DiscontWeight,
this.R_Operator,
this.R_Time});
this.uDataGridView1.Location = new System.Drawing.Point(12, 15);
this.uDataGridView1.MultiSelect = false;
this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.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.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6;
this.uDataGridView1.RowTemplate.Height = 40;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uDataGridView1.Size = new System.Drawing.Size(1045, 434);
this.uDataGridView1.TabIndex = 3;
//
// R_ID
//
this.R_ID.DataPropertyName = "ID";
this.R_ID.HeaderText = "ID";
this.R_ID.Name = "R_ID";
this.R_ID.ReadOnly = true;
this.R_ID.Visible = false;
//
// R_Idx
//
this.R_Idx.DataPropertyName = "Idx";
this.R_Idx.HeaderText = "序号";
this.R_Idx.Name = "R_Idx";
this.R_Idx.ReadOnly = true;
this.R_Idx.Width = 75;
//
// R_BarCode
//
this.R_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_BarCode.DataPropertyName = "ShortCode";
this.R_BarCode.HeaderText = "存货条码";
this.R_BarCode.MinimumWidth = 100;
this.R_BarCode.Name = "R_BarCode";
this.R_BarCode.ReadOnly = true;
//
// R_Goods_Code
//
this.R_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_Goods_Code.DataPropertyName = "Goods_Code";
this.R_Goods_Code.HeaderText = "产品编码";
this.R_Goods_Code.Name = "R_Goods_Code";
this.R_Goods_Code.ReadOnly = true;
//
// R_Goods_Name
//
this.R_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_Goods_Name.DataPropertyName = "Goods_Name";
this.R_Goods_Name.HeaderText = "产品名称";
this.R_Goods_Name.MinimumWidth = 100;
this.R_Goods_Name.Name = "R_Goods_Name";
this.R_Goods_Name.ReadOnly = true;
//
// R_SecondNumber
//
this.R_SecondNumber.DataPropertyName = "SecondNumber";
dataGridViewCellStyle3.Format = "#0.######";
this.R_SecondNumber.DefaultCellStyle = dataGridViewCellStyle3;
this.R_SecondNumber.HeaderText = "辅数量";
this.R_SecondNumber.Name = "R_SecondNumber";
this.R_SecondNumber.ReadOnly = true;
//
// R_Number
//
this.R_Number.DataPropertyName = "Number";
dataGridViewCellStyle4.Format = "#0.######";
this.R_Number.DefaultCellStyle = dataGridViewCellStyle4;
this.R_Number.HeaderText = "报价数量";
this.R_Number.Name = "R_Number";
this.R_Number.ReadOnly = true;
//
// R_DiscontWeight
//
this.R_DiscontWeight.DataPropertyName = "DiscontWeight";
dataGridViewCellStyle5.Format = "#0.######";
this.R_DiscontWeight.DefaultCellStyle = dataGridViewCellStyle5;
this.R_DiscontWeight.HeaderText = "扣重";
this.R_DiscontWeight.Name = "R_DiscontWeight";
this.R_DiscontWeight.ReadOnly = true;
//
// R_Operator
//
this.R_Operator.DataPropertyName = "Operator";
this.R_Operator.HeaderText = "操作员";
this.R_Operator.Name = "R_Operator";
this.R_Operator.ReadOnly = true;
this.R_Operator.Width = 150;
//
// R_Time
//
this.R_Time.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_Time.DataPropertyName = "Time";
this.R_Time.HeaderText = "时间";
this.R_Time.MinimumWidth = 120;
this.R_Time.Name = "R_Time";
this.R_Time.ReadOnly = true;
//
// WeightRecordDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1069, 528);
this.Controls.Add(this.panel1);
this.Controls.Add(this.uDataGridView1);
this.Name = "WeightRecordDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "称重记录";
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private Controls.ColorButton closeBtn;
private Controls.ColorButton deleteBtn;
private Controls.ColorButton addBtn;
private WinFormControl.UDataGridView uDataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Idx;
private System.Windows.Forms.DataGridViewTextBoxColumn R_BarCode;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Goods_Code;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Goods_Name;
private System.Windows.Forms.DataGridViewTextBoxColumn R_SecondNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Number;
private System.Windows.Forms.DataGridViewTextBoxColumn R_DiscontWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Time;
}
}

+ 122
- 0
ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.cs View File

@ -0,0 +1,122 @@
using ButcherFactory.BO;
using ButcherFactory.BO.LocalBL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ButcherFactory.SegmentSaleOut_
{
public partial class WeightRecordDialog : Form
{
BindingList<SegmentSaleOut_Detail> list;
SaleOutStore_Detail mDetail;
long? mBatchID = null;
public bool Changed = false;
public WeightRecordDialog(SaleOutStore_Detail detail, bool readOnly, long? batchID)
{
InitializeComponent();
mDetail = detail;
mBatchID = batchID;
if (readOnly)
{
addBtn.Enabled = false;
deleteBtn.Enabled = false;
}
uDataGridView1.BorderStyle = BorderStyle.FixedSingle;
BindGrid();
uDataGridView1.RowPrePaint += uDataGridView1_RowPrePaint;
uDataGridView1.CellPainting += uDataGridView1_CellPainting;
}
void uDataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
{
var last = uDataGridView1.Rows.Count - 1;
if (e.RowIndex == last)
{
if (e.ColumnIndex == 2)
{
e.PaintBackground(e.ClipBounds, false);
e.Handled = true;
}
else if (e.ColumnIndex == 3)
{
using (Brush foreColor = new SolidBrush(e.CellStyle.ForeColor))
{
e.PaintBackground(e.ClipBounds, false);
StringFormat drawFormat = new StringFormat();
drawFormat.LineAlignment = StringAlignment.Center;
drawFormat.Alignment = System.Drawing.StringAlignment.Center;
e.Graphics.DrawString("合计", e.CellStyle.Font, foreColor, e.CellBounds, drawFormat);
e.Handled = true;
}
}
}
}
void uDataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
{
if (e.RowIndex == uDataGridView1.Rows.Count - 1)
{
var row = uDataGridView1.Rows[e.RowIndex];
row.DefaultCellStyle.SelectionForeColor = Color.Black;
row.DefaultCellStyle.BackColor = Color.Khaki;
row.DefaultCellStyle.SelectionBackColor = Color.Khaki;
}
}
void BindGrid()
{
list = SegmentSaleOutBL.GetWeightRecord(mDetail.ID);
var total = new SegmentSaleOut_Detail();
total.Number = list.Sum(x => x.Number);
total.SecondNumber = list.Sum(x => x.SecondNumber);
list.Add(total);
uDataGridView1.DataSource = list;
ReBuildTotalRow();
uDataGridView1.Refresh();
}
private void ReBuildTotalRow()
{
var row = uDataGridView1.Rows[list.Count - 1];
row.Cells["R_Time"].Value = null;
}
private void addBtn_Click(object sender, EventArgs e)
{
if (new AddWeightRecord(mDetail, mBatchID).ShowDialog() == DialogResult.OK)
{
BindGrid();
Changed = true;
}
}
private void deleteBtn_Click(object sender, EventArgs e)
{
if (uDataGridView1.CurrentRow == null)
return;
var id = (long)uDataGridView1.CurrentRow.Cells[0].Value;
if (id == 0)
return;
var tag = list.First(x => x.ID == id);
SegmentSaleOutBL.DeleteAndUpdate(tag);
BindGrid();
Changed = true;
}
private void closeBtn_Click(object sender, EventArgs e)
{
Close();
}
}
}

+ 150
- 0
ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.resx View File

@ -0,0 +1,150 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="R_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Goods_Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_DiscontWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Operator.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

+ 57
- 57
ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs View File

@ -28,18 +28,18 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
this.uScanPanel1 = new WinFormControl.UScanPanel();
this.label1 = new System.Windows.Forms.Label();
this.dataPicker = new System.Windows.Forms.Label();
@ -152,7 +152,7 @@
this.goodsLbl.AutoSize = true;
this.goodsLbl.Font = new System.Drawing.Font("宋体", 14F);
this.goodsLbl.ForeColor = System.Drawing.Color.Red;
this.goodsLbl.Location = new System.Drawing.Point(273, 63);
this.goodsLbl.Location = new System.Drawing.Point(236, 63);
this.goodsLbl.Name = "goodsLbl";
this.goodsLbl.Size = new System.Drawing.Size(85, 19);
this.goodsLbl.TabIndex = 4;
@ -184,7 +184,7 @@
this.dhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dhNumberLbl.Font = new System.Drawing.Font("宋体", 14F);
this.dhNumberLbl.ForeColor = System.Drawing.Color.Red;
this.dhNumberLbl.Location = new System.Drawing.Point(107, 94);
this.dhNumberLbl.Location = new System.Drawing.Point(104, 94);
this.dhNumberLbl.Name = "dhNumberLbl";
this.dhNumberLbl.Size = new System.Drawing.Size(120, 30);
this.dhNumberLbl.TabIndex = 5;
@ -209,8 +209,8 @@
this.mainGridView.AllowUserToDeleteRows = false;
this.mainGridView.AllowUserToResizeColumns = false;
this.mainGridView.AllowUserToResizeRows = false;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle25;
this.mainGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
@ -218,12 +218,12 @@
this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.mainGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.mainGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 10F);
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
dataGridViewCellStyle26.Font = new System.Drawing.Font("宋体", 10F);
dataGridViewCellStyle26.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26;
this.mainGridView.ColumnHeadersHeight = 30;
this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -244,10 +244,10 @@
this.mainGridView.Name = "mainGridView";
this.mainGridView.ReadOnly = true;
this.mainGridView.RowHeadersVisible = false;
dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250)))));
dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 9F);
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250)))));
dataGridViewCellStyle31.Font = new System.Drawing.Font("宋体", 9F);
dataGridViewCellStyle31.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle31;
this.mainGridView.RowTemplate.Height = 40;
this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.mainGridView.Size = new System.Drawing.Size(545, 320);
@ -315,8 +315,8 @@
// D_SecondNumber
//
this.D_SecondNumber.DataPropertyName = "SecondNumber";
dataGridViewCellStyle8.Format = "#0.######";
this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle27.Format = "#0.######";
this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle27;
this.D_SecondNumber.HeaderText = "订货数量";
this.D_SecondNumber.Name = "D_SecondNumber";
this.D_SecondNumber.ReadOnly = true;
@ -324,8 +324,8 @@
// D_UnitNum
//
this.D_UnitNum.DataPropertyName = "UnitNum";
dataGridViewCellStyle9.Format = "#0.######";
this.D_UnitNum.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle28.Format = "#0.######";
this.D_UnitNum.DefaultCellStyle = dataGridViewCellStyle28;
this.D_UnitNum.HeaderText = "订货重量";
this.D_UnitNum.Name = "D_UnitNum";
this.D_UnitNum.ReadOnly = true;
@ -333,8 +333,8 @@
// D_SSecondNumber
//
this.D_SSecondNumber.DataPropertyName = "SSecondNumber";
dataGridViewCellStyle10.Format = "#0.######";
this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle29.Format = "#0.######";
this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle29;
this.D_SSecondNumber.HeaderText = "备货数量";
this.D_SSecondNumber.Name = "D_SSecondNumber";
this.D_SSecondNumber.ReadOnly = true;
@ -342,8 +342,8 @@
// D_SUnitNum
//
this.D_SUnitNum.DataPropertyName = "SUnitNum";
dataGridViewCellStyle11.Format = "#0.######";
this.D_SUnitNum.DefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle30.Format = "#0.######";
this.D_SUnitNum.DefaultCellStyle = dataGridViewCellStyle30;
this.D_SUnitNum.HeaderText = "备货重量";
this.D_SUnitNum.Name = "D_SUnitNum";
this.D_SUnitNum.ReadOnly = true;
@ -388,8 +388,8 @@
this.detailGridView.AllowUserToDeleteRows = false;
this.detailGridView.AllowUserToResizeColumns = false;
this.detailGridView.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203)))));
this.detailGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203)))));
this.detailGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle32;
this.detailGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
@ -397,12 +397,12 @@
this.detailGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.detailGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.detailGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 10F);
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.detailGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
dataGridViewCellStyle33.Font = new System.Drawing.Font("宋体", 10F);
dataGridViewCellStyle33.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.detailGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle33;
this.detailGridView.ColumnHeadersHeight = 30;
this.detailGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.detailGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -418,10 +418,10 @@
this.detailGridView.Name = "detailGridView";
this.detailGridView.ReadOnly = true;
this.detailGridView.RowHeadersVisible = false;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240)))));
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 10F);
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
this.detailGridView.RowsDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle36.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240)))));
dataGridViewCellStyle36.Font = new System.Drawing.Font("宋体", 10F);
dataGridViewCellStyle36.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74)))));
this.detailGridView.RowsDefaultCellStyle = dataGridViewCellStyle36;
this.detailGridView.RowTemplate.Height = 40;
this.detailGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.detailGridView.Size = new System.Drawing.Size(580, 320);
@ -464,8 +464,8 @@
// B_SecondNumber
//
this.B_SecondNumber.DataPropertyName = "SecondNumber";
dataGridViewCellStyle3.Format = "#0.######";
this.B_SecondNumber.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle34.Format = "#0.######";
this.B_SecondNumber.DefaultCellStyle = dataGridViewCellStyle34;
this.B_SecondNumber.HeaderText = "数量";
this.B_SecondNumber.Name = "B_SecondNumber";
this.B_SecondNumber.ReadOnly = true;
@ -474,8 +474,8 @@
// B_UnitNumber
//
this.B_UnitNumber.DataPropertyName = "UnitNumber";
dataGridViewCellStyle4.Format = "#0.######";
this.B_UnitNumber.DefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle35.Format = "#0.######";
this.B_UnitNumber.DefaultCellStyle = dataGridViewCellStyle35;
this.B_UnitNumber.HeaderText = "重量";
this.B_UnitNumber.Name = "B_UnitNumber";
this.B_UnitNumber.ReadOnly = true;
@ -486,7 +486,7 @@
this.dhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F);
this.dhUnitNumLbl.ForeColor = System.Drawing.Color.Red;
this.dhUnitNumLbl.Location = new System.Drawing.Point(366, 94);
this.dhUnitNumLbl.Location = new System.Drawing.Point(326, 94);
this.dhUnitNumLbl.Name = "dhUnitNumLbl";
this.dhUnitNumLbl.Size = new System.Drawing.Size(120, 30);
this.dhUnitNumLbl.TabIndex = 14;
@ -496,7 +496,7 @@
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 14F);
this.label7.Location = new System.Drawing.Point(273, 100);
this.label7.Location = new System.Drawing.Point(236, 100);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(85, 19);
this.label7.TabIndex = 15;
@ -507,7 +507,7 @@
this.bhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.bhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F);
this.bhUnitNumLbl.ForeColor = System.Drawing.Color.Red;
this.bhUnitNumLbl.Location = new System.Drawing.Point(879, 94);
this.bhUnitNumLbl.Location = new System.Drawing.Point(773, 94);
this.bhUnitNumLbl.Name = "bhUnitNumLbl";
this.bhUnitNumLbl.Size = new System.Drawing.Size(120, 30);
this.bhUnitNumLbl.TabIndex = 18;
@ -517,7 +517,7 @@
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("宋体", 14F);
this.label9.Location = new System.Drawing.Point(786, 100);
this.label9.Location = new System.Drawing.Point(680, 100);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(85, 19);
this.label9.TabIndex = 19;
@ -528,7 +528,7 @@
this.bhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.bhNumberLbl.Font = new System.Drawing.Font("宋体", 14F);
this.bhNumberLbl.ForeColor = System.Drawing.Color.Red;
this.bhNumberLbl.Location = new System.Drawing.Point(620, 94);
this.bhNumberLbl.Location = new System.Drawing.Point(547, 94);
this.bhNumberLbl.Name = "bhNumberLbl";
this.bhNumberLbl.Size = new System.Drawing.Size(120, 30);
this.bhNumberLbl.TabIndex = 16;
@ -538,7 +538,7 @@
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("宋体", 14F);
this.label11.Location = new System.Drawing.Point(529, 100);
this.label11.Location = new System.Drawing.Point(460, 100);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(85, 19);
this.label11.TabIndex = 17;
@ -556,7 +556,7 @@
//
this.refresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
this.refresh.ForeColor = System.Drawing.Color.White;
this.refresh.Location = new System.Drawing.Point(55, 4);
this.refresh.Location = new System.Drawing.Point(268, 4);
this.refresh.Name = "refresh";
this.refresh.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106)))));
this.refresh.Size = new System.Drawing.Size(75, 35);


+ 17
- 17
ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx View File

@ -117,55 +117,55 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="B_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_DeliverGoodsLine_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_ShortCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_Goods_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_SaleOutStoreID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_Finishd.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_UnitNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_DeliverGoodsLine_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_Goods_Spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Goods_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_UnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Finishd.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="D_SUnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="B_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_Goods_Spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="B_ShortCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="B_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_UnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="B_SaleOutStoreID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="B_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="D_SUnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="B_UnitNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

+ 75
- 78
ButcherFactorySolution/ButcherFactorySolution.vdproj View File

@ -52,13 +52,13 @@
"Entry"
{
"MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -70,13 +70,13 @@
"Entry"
{
"MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -105,6 +105,12 @@
}
"Entry"
{
"MsmKey" = "8:_6F0E808293504BA19048B340A88AEAA1"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"MsmSig" = "8:_UNDEFINED"
@ -160,13 +166,13 @@
"Entry"
{
"MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -226,13 +232,13 @@
"Entry"
{
"MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -255,6 +261,12 @@
}
"Entry"
{
"MsmKey" = "8:_D38B860E2FD246B790618B9B4FB991C5"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
@ -268,13 +280,13 @@
"Entry"
{
"MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -316,37 +328,37 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"OwnerKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_9F09F8DA53F59713DB8BFCD6F53DB58A"
"OwnerKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -358,37 +370,37 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"OwnerKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"OwnerKey" = "8:_9F09F8DA53F59713DB8BFCD6F53DB58A"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED"
}
}
@ -513,11 +525,6 @@
"AssemblyAsmDisplayName" = "8:BwpClientPrint, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_083AAEAE39990B76FE06389D076F1D2C"
{
"Name" = "8:BwpClientPrint.DLL"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:BwpClientPrint.DLL"
"TargetName" = "8:"
@ -604,11 +611,6 @@
"AssemblyAsmDisplayName" = "8:WinFormControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_3E728084E6413DC3E740199EBCA6CF15"
{
"Name" = "8:WinFormControl.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:WinFormControl.dll"
"TargetName" = "8:"
@ -635,11 +637,6 @@
"AssemblyAsmDisplayName" = "8:ButcherFactory.BO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_4083346C24A7D8470DB4B61D58809784"
{
"Name" = "8:ButcherFactory.BO.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:ButcherFactory.BO.dll"
"TargetName" = "8:"
@ -750,6 +747,26 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_6F0E808293504BA19048B340A88AEAA1"
{
"SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Images\\formTitle.png"
"TargetName" = "8:formTitle.png"
"Tag" = "8:"
"Folder" = "8:_86D9513B15F44137B1E283FBC72D78ED"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_70C18C0E0DFD66B15418411D1857F74B"
{
"AssemblyRegister" = "3:1"
@ -757,11 +774,6 @@
"AssemblyAsmDisplayName" = "8:MongoDB.Driver, Version=1.4.0.4468, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_70C18C0E0DFD66B15418411D1857F74B"
{
"Name" = "8:MongoDB.Driver.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:MongoDB.Driver.dll"
"TargetName" = "8:"
@ -888,11 +900,6 @@
"AssemblyAsmDisplayName" = "8:Forks.Json, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_7D717FB201604CFA7400BFF79560F461"
{
"Name" = "8:Forks.Json.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Forks.Json.dll"
"TargetName" = "8:"
@ -959,11 +966,6 @@
"AssemblyAsmDisplayName" = "8:zxing, Version=0.11.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_9F09F8DA53F59713DB8BFCD6F53DB58A"
{
"Name" = "8:zxing.DLL"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:zxing.DLL"
"TargetName" = "8:"
@ -990,11 +992,6 @@
"AssemblyAsmDisplayName" = "8:Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_9F705636DF3FC7591C089E51A914B437"
{
"Name" = "8:Forks.EnterpriseServices.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Forks.EnterpriseServices.dll"
"TargetName" = "8:"
@ -1041,11 +1038,6 @@
"AssemblyAsmDisplayName" = "8:Forks.JsonRpc.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_AED9467B5BDCD87EC2746DB4EF7A24D2"
{
"Name" = "8:Forks.JsonRpc.Client.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Forks.JsonRpc.Client.dll"
"TargetName" = "8:"
@ -1072,11 +1064,6 @@
"AssemblyAsmDisplayName" = "8:MongoDB.Bson, Version=1.4.0.4468, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_B027E23B6E431EA7A5006FCB5BB20236"
{
"Name" = "8:MongoDB.Bson.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:MongoDB.Bson.dll"
"TargetName" = "8:"
@ -1167,6 +1154,26 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D38B860E2FD246B790618B9B4FB991C5"
{
"SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Images\\logo.png"
"TargetName" = "8:logo.png"
"Tag" = "8:"
"Folder" = "8:_86D9513B15F44137B1E283FBC72D78ED"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
{
"SourcePath" = "8:..\\..\\WinFormControl\\WinFormControl\\Sounds\\di.wav"
@ -1194,11 +1201,6 @@
"AssemblyAsmDisplayName" = "8:Forks.Utils, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_DE32A8488C67365FC9BBB4CAF2E074E2"
{
"Name" = "8:Forks.Utils.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Forks.Utils.dll"
"TargetName" = "8:"
@ -1285,11 +1287,6 @@
"AssemblyAsmDisplayName" = "8:Newtonsoft.Json, Version=4.0.3.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_FD82AF7F959387F3F4C23A0EB1AC0E35"
{
"Name" = "8:Newtonsoft.Json.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Newtonsoft.Json.dll"
"TargetName" = "8:"
@ -1995,7 +1992,7 @@
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_7BC73039AAAE423AB1ADC71EDB603430"
{
"SourcePath" = "8:..\\ButcherFactory.Login\\obj\\Release\\ButcherFactory.Login.exe"
"SourcePath" = "8:..\\ButcherFactory.Login\\obj\\Debug\\ButcherFactory.Login.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"


Loading…
Cancel
Save