Browse Source

一系列调整。

master
yibo 7 years ago
parent
commit
c49ab27fbf
33 changed files with 2824 additions and 384 deletions
  1. +1
    -0
      BO/BO.csproj
  2. +0
    -2
      BO/BO/Bill/SecondOrder/SecondOrder.cs
  3. +0
    -2
      BO/BO/Bill/SecondOrder/SecondOrder_Detail.cs
  4. +15
    -0
      BO/BO/Bill/WeightBill/SelfHelpSendMsg.cs
  5. +6
    -6
      BO/Utils/BillRpc/SecondOrderRpc.cs
  6. +8
    -1
      BO/Utils/BillRpc/WeightBillRpc.cs
  7. +30
    -0
      ButcherManage.BO/Bill/HotPick.cs
  8. +60
    -0
      ButcherManage.BO/Bill/OrderDetail.cs
  9. +7
    -0
      ButcherManage.BO/Bill/PickOutConfirmLocal.cs
  10. +0
    -15
      ButcherManage.BO/Bill/PickOutRecord.cs
  11. +5
    -1
      ButcherManage.BO/ButcherManage.BO.csproj
  12. +46
    -0
      ButcherManage.BO/EntityExpand.cs
  13. +2
    -0
      ButcherManage.BO/Enums/DriveType.cs
  14. +53
    -0
      ButcherManage.BO/LocalBL/HotPickBL.cs
  15. +66
    -0
      ButcherManage.BO/LocalBL/OrderConfirmBL.cs
  16. +2
    -1
      ButcherManage.BO/Utils/FormUtil.cs
  17. +18
    -0
      ButcherManage.Form/ButcherManage.Form.csproj
  18. +574
    -0
      ButcherManage.Form/HotPickSelector_/HotPickSelector.Designer.cs
  19. +201
    -0
      ButcherManage.Form/HotPickSelector_/HotPickSelector.cs
  20. +156
    -0
      ButcherManage.Form/HotPickSelector_/HotPickSelector.resx
  21. +629
    -0
      ButcherManage.Form/OrderConfirm_/OrderConfirmForm.Designer.cs
  22. +285
    -0
      ButcherManage.Form/OrderConfirm_/OrderConfirmForm.cs
  23. +168
    -0
      ButcherManage.Form/OrderConfirm_/OrderConfirmForm.resx
  24. +118
    -119
      ButcherManage.Form/PickOutConfirm_/PickOutConfirm.Designer.cs
  25. +1
    -33
      ButcherManage.Form/PickOutConfirm_/PickOutConfirm.cs
  26. +1
    -1
      ButcherManage.Login/Login.xaml
  27. +30
    -22
      ButcherManage.Login/Login.xaml.cs
  28. +45
    -36
      ButcherManageClient/Login.cs
  29. +1
    -1
      ButcherOrder/ButcherOrderForm.cs
  30. +91
    -2
      ButcherWeight/WeightForm.Designer.cs
  31. +32
    -0
      ButcherWeight/WeightForm.cs
  32. +9
    -0
      ButcherWeight/WeightForm.resx
  33. +164
    -142
      OrderConfirm/OrderConfirmForm.Designer.cs

+ 1
- 0
BO/BO.csproj View File

@ -84,6 +84,7 @@
<Compile Include="BO\Bill\WeightBill\HouseAndSanctionEdit.cs" />
<Compile Include="BO\Bill\WeightBill\HouseAndSanctionList.cs" />
<Compile Include="BO\Bill\WeightBill\PrintWeightBill.cs" />
<Compile Include="BO\Bill\WeightBill\SelfHelpSendMsg.cs" />
<Compile Include="BO\Bill\WeightBill\WeightBillList.cs" />
<Compile Include="BO\Bill\WeightBill\WeightDetail.cs" />
<Compile Include="BO\Dtos\ClientGoodsSetDto.cs" />


+ 0
- 2
BO/BO/Bill/SecondOrder/SecondOrder.cs View File

@ -17,8 +17,6 @@ namespace BO.BO.Bill
public int HotFadeNumber { get; set; }
public bool IsOk { get; set; }
public bool Finish { get; set; }
}
}

+ 0
- 2
BO/BO/Bill/SecondOrder/SecondOrder_Detail.cs View File

@ -13,7 +13,5 @@ namespace BO.BO.Bill
public long SecondOrder_ID { get; set; }
public int Number { get; set; }
public DateTime Time { get; set; }
}
}

+ 15
- 0
BO/BO/Bill/WeightBill/SelfHelpSendMsg.cs View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BO.BO
{
public class SelfHelpSendMsg
{
public long WeightBill_ID { get; set; }
public string Car_Name { get; set; }
public string Supplier_Name { get; set; }
}
}

+ 6
- 6
BO/Utils/BillRpc/SecondOrderRpc.cs View File

@ -1,5 +1,6 @@
using BO.BO.Bill;
using Forks.JsonRpc.Client;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@ -11,21 +12,20 @@ namespace BO.Utils.BillRpc
{
public static class SecondOrderRpc
{
static JavaScriptSerializer serializer = new JavaScriptSerializer();
public static List<SecondOrder> GetSecondOrderList(DateTime date)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/SyncSecondOrder";
var result = RpcFacade.Call<string>(method, date);
return serializer.Deserialize<List<SecondOrder>>(result);
return JsonConvert.DeserializeObject<List<SecondOrder>>(result);
}
public static void Insert(SecondOrder_Detail detail, SecondOrder order)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/InsertDetail";
var dJson = serializer.Serialize(detail);
var dJson = JsonConvert.SerializeObject(detail);
string mJson = string.Empty;
if (detail.SecondOrder_ID == 0)
mJson = serializer.Serialize(order);
mJson = JsonConvert.SerializeObject(order);
order.ID = RpcFacade.Call<long>(method, dJson, mJson, order.OrderDetail_ID);
}
@ -40,7 +40,7 @@ namespace BO.Utils.BillRpc
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/SetFinish";
string mJson = string.Empty;
if (id == 0)
mJson = serializer.Serialize(order);
mJson = JsonConvert.SerializeObject(order);
var r = RpcFacade.Call<long>(method, id, orderDetailID, mJson);
if (id == 0)
order.ID = r;
@ -51,7 +51,7 @@ namespace BO.Utils.BillRpc
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/GetSecondOrderDetails";
var result = RpcFacade.Call<string>(method, id);
result = result.ESerializeDateTime();
return serializer.Deserialize<List<SecondOrder_Detail>>(result);
return JsonConvert.DeserializeObject<List<SecondOrder_Detail>>(result);
}
}
}

+ 8
- 1
BO/Utils/BillRpc/WeightBillRpc.cs View File

@ -2,6 +2,7 @@
using BO.BO.BaseInfo;
using Forks.JsonRpc.Client;
using Forks.JsonRpc.Client.Data;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@ -14,7 +15,7 @@ namespace BO.Utils.BillRpc
public static class WeightBillRpc
{
static JavaScriptSerializer serializer = new JavaScriptSerializer();
public static List<WeightBillList> GetWeightBillList(long? carID, long? supplierID,DateTime date)
public static List<WeightBillList> GetWeightBillList(long? carID, long? supplierID, DateTime date)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/GetWeightBillList";
var obj = RpcFacade.Call<string>(method, date, carID, supplierID);
@ -125,5 +126,11 @@ namespace BO.Utils.BillRpc
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/GetFarmerInfo";
return serializer.Deserialize<Farmer>(RpcFacade.Call<string>(method, id));
}
public static List<SelfHelpSendMsg> GetMsgList()
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/GetMsgList";
return JsonConvert.DeserializeObject<List<SelfHelpSendMsg>>(RpcFacade.Call<string>(method));
}
}
}

+ 30
- 0
ButcherManage.BO/Bill/HotPick.cs View File

@ -0,0 +1,30 @@
using Forks.EnterpriseServices.DomainObjects2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherManage.BO
{
public class HotPick
{
public long ID { get; set; }
public long OrderDetail_ID { get; set; }
public int? Order { get; set; }
public int? PlanNumber { get; set; }
public int? HotFadeNumber { get; set; }
public bool Finish { get; set; }
}
public class HotPick_Detail : IWithNumber
{
public long ID { get; set; }
public long SecondOrder_ID { get; set; }
public int? Number { get; set; }
}
}

+ 60
- 0
ButcherManage.BO/Bill/OrderDetail.cs View File

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherManage.BO.Bill
{
public class OrderDetail
{
public long ID { get; set; }
public string Creator { get; set; }
public long? AccountingUnit_ID { get; set; }
public DateTime? Date { get; set; }
public long WeightBill_ID { get; set; }
public long? B3WeighBill_ID { get; set; }
public int Order { get; set; }
public int PlanNumber { get; set; }
public string LiveColonyHouse_Name { get; set; }
public bool IsHurryButcher { get; set; }
public bool SecondarySplit { get; set; }
//0 = 未开始; 10 = 已开始; 20 = 已完毕;
public int OrderState { get; set; }
public int Doing { get { if (OrderState == 10) return -10; else return OrderState; } }
public int? ConfirmNumber { get; set; }
}
public class OrderConfirmDetail : IWithNumber
{
public long ID { get; set; }
public long OrderDetail_ID { get; set; }
public int? Number { get; set; }
}
public class HurryRecord
{
public long WeightBill_ID { get; set; }
public long? B3WeighBill_ID { get; set; }
public string LiveColonyHouse_Name { get; set; }
public int HurryNumber { get; set; }
public long? ToOrderDetail_ID { get; set; }
}
}

+ 7
- 0
ButcherManage.BO/Bill/PickOutConfirmLocal.cs View File

@ -15,4 +15,11 @@ namespace ButcherManage.BO
//0:未开始,1:开始,-1:结束
public int ConfirmState { get; set; }
}
[MapToTable("Butcher_PickOutRecord")]
public class PickOutRecord : Base, IWithNumber
{
public long Order_ID { get; set; }
public int? Number { get; set; }
}
}

+ 0
- 15
ButcherManage.BO/Bill/PickOutRecord.cs View File

@ -1,15 +0,0 @@
using Forks.EnterpriseServices.DomainObjects2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ButcherManage.BO
{
[MapToTable("Butcher_PickOutRecord")]
public class PickOutRecord : Base
{
public long Order_ID { get; set; }
public int? Number { get; set; }
}
}

+ 5
- 1
ButcherManage.BO/ButcherManage.BO.csproj View File

@ -60,10 +60,14 @@
<Compile Include="Base\Base.cs" />
<Compile Include="Base\BaseInfo.cs" />
<Compile Include="Base\ExtensionObj.cs" />
<Compile Include="Bill\HotPick.cs" />
<Compile Include="Bill\OrderDetail.cs" />
<Compile Include="Bill\PickOutConfirmDmo.cs" />
<Compile Include="Bill\PickOutConfirmLocal.cs" />
<Compile Include="Bill\PickOutRecord.cs" />
<Compile Include="EntityExpand.cs" />
<Compile Include="Enums\DriveType.cs" />
<Compile Include="LocalBL\HotPickBL.cs" />
<Compile Include="LocalBL\OrderConfirmBL.cs" />
<Compile Include="LocalBL\PickOutConfirmBL.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils\AppContext.cs" />


+ 46
- 0
ButcherManage.BO/EntityExpand.cs View File

@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherManage.BO
{
public interface IWithNumber
{
int? Number { get; set; }
}
public class EntityExpand
{
public int? Number1 { get; set; }
public int? Number2 { get; set; }
public int? Number3 { get; set; }
public int? Number4 { get; set; }
public int? Number5 { get; set; }
public static List<EntityExpand> Build<T>(List<T> list)
where T : IWithNumber
{
var result = new List<EntityExpand>();
var t = typeof(EntityExpand);
for (var i = 0; i < list.Count; )
{
var entity = new EntityExpand();
result.Add(entity);
for (var j = 1; j <= 5; j++)
{
t.GetProperty(string.Format("Number{0}", j)).SetValue(entity, list[i].Number);
i++;
if (i == list.Count)
break;
}
}
return result;
}
}
}

+ 2
- 0
ButcherManage.BO/Enums/DriveType.cs View File

@ -9,5 +9,7 @@ namespace ButcherManage.BO.Enums
public enum
{
= 103,
线 = 104,
线 = 105,
}
}

+ 53
- 0
ButcherManage.BO/LocalBL/HotPickBL.cs View File

@ -0,0 +1,53 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherManage.BO.LocalBL
{
public static class HotPickBL
{
public static List<HotPick> GetSecondOrderList(DateTime date)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/SyncSecondOrder";
var result = SimpleRest.Call<string>(method, date);
return JsonConvert.DeserializeObject<List<HotPick>>(result);
}
public static void Insert(HotPick_Detail detail, HotPick order)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/InsertDetail";
var dJson = JsonConvert.SerializeObject(detail);
string mJson = string.Empty;
if (detail.SecondOrder_ID == 0)
mJson = JsonConvert.SerializeObject(order);
order.ID = SimpleRest.Call<long>(method, dJson, mJson, order.OrderDetail_ID);
}
public static void DeleteDetail(HotPick_Detail detail)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/DeleteDetail";
SimpleRest.Call<int>(method, detail.ID, detail.SecondOrder_ID, detail.Number);
}
public static void SetFinish(HotPick order)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/SetFinish";
string mJson = string.Empty;
if (order.ID == 0)
mJson = JsonConvert.SerializeObject(order);
var r = SimpleRest.Call<long>(method, order.ID, order.OrderDetail_ID, mJson);
if (order.ID == 0)
order.ID = r;
}
public static List<HotPick_Detail> GetSecondOrderDetails(long id)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/SecondOrderRpc/GetSecondOrderDetails";
var result = SimpleRest.Call<string>(method, id);
return JsonConvert.DeserializeObject<List<HotPick_Detail>>(result);
}
}
}

+ 66
- 0
ButcherManage.BO/LocalBL/OrderConfirmBL.cs View File

@ -0,0 +1,66 @@
using ButcherManage.BO.Bill;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ButcherManage.BO.LocalBL
{
public static class OrderConfirmBL
{
public static List<OrderDetail> GetOrderDetail(DateTime date)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetConfirmOrder";
var result = SimpleRest.Call<string>(method, date);
return JsonConvert.DeserializeObject<List<OrderDetail>>(result);
}
public static List<OrderConfirmDetail> GetRecords(long id)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetOrderConfirmDetail";
var result = SimpleRest.Call<string>(method, id);
return JsonConvert.DeserializeObject<List<OrderConfirmDetail>>(result);
}
public static void SaveRecord(OrderConfirmDetail detail)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/SaveConfirmDetail";
detail.ID = SimpleRest.Call<long>(method, JsonConvert.SerializeObject(detail));
}
public static void SetOrderState(long id, int state)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/SetOrderState";
SimpleRest.Call<int>(method, id, state);
}
public static HurryRecord GetHurryRecord(long id)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetHurryRecord";
var result = SimpleRest.Call<string>(method, id);
return JsonConvert.DeserializeObject<HurryRecord>(result);
}
public static int GetCurrentOrder(long id)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetCurrentOrder";
return SimpleRest.Call<int>(method, id);
}
public static int GetMaxOrder(DateTime date)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetMaxOrder";
return SimpleRest.Call<int>(method, date);
}
public static void InsertByHurryRecord(OrderDetail orderDetail, long hurryOrderID)
{
orderDetail.AccountingUnit_ID = 1;
orderDetail.Creator = "田存波";
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/InsertByHurryRecord";
orderDetail.ID = SimpleRest.Call<long>(method, JsonConvert.SerializeObject(orderDetail), hurryOrderID);
}
}
}

+ 2
- 1
ButcherManage.BO/Utils/FormUtil.cs View File

@ -12,7 +12,8 @@ namespace ButcherManage.BO.Utils
{
public static Form CreateFrom()
{
var dll = Path.Combine(Environment.CurrentDirectory, "ButcherManage.Form.dll");
//var dll = Path.Combine(Environment.CurrentDirectory, "ButcherManage.Form.dll");
var dll = Path.Combine(@"C:\BwpB3Project\src\B3ButcherManageClient\ButcherManage.Form\bin\Debug", "ButcherManage.Form.dll");
if (!File.Exists(dll))
throw new Exception("缺少必要的程序集文件 ButcherManage.Form.dll");


+ 18
- 0
ButcherManage.Form/ButcherManage.Form.csproj View File

@ -53,6 +53,18 @@
<Compile Include="Dialogs\CalendarSelecter.xaml.cs">
<DependentUpon>CalendarSelecter.xaml</DependentUpon>
</Compile>
<Compile Include="HotPickSelector_\HotPickSelector.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="HotPickSelector_\HotPickSelector.Designer.cs">
<DependentUpon>HotPickSelector.cs</DependentUpon>
</Compile>
<Compile Include="OrderConfirm_\OrderConfirmForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OrderConfirm_\OrderConfirmForm.Designer.cs">
<DependentUpon>OrderConfirmForm.cs</DependentUpon>
</Compile>
<Compile Include="PickOutConfirm_\PickOutConfirm.cs">
<SubType>Form</SubType>
</Compile>
@ -62,6 +74,12 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="HotPickSelector_\HotPickSelector.resx">
<DependentUpon>HotPickSelector.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OrderConfirm_\OrderConfirmForm.resx">
<DependentUpon>OrderConfirmForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PickOutConfirm_\PickOutConfirm.resx">
<DependentUpon>PickOutConfirm.cs</DependentUpon>
</EmbeddedResource>


+ 574
- 0
ButcherManage.Form/HotPickSelector_/HotPickSelector.Designer.cs View File

@ -0,0 +1,574 @@
namespace ButcherManage.HotPickSelector_
{
partial class HotPickSelector
{
/// <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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.queryBtn = new WinFormControl.NButton();
this.datePicker = new System.Windows.Forms.TextBox();
this.colseBtn = new WinFormControl.NButton();
this.uTimerLabel1 = new WinFormControl.UTimerLabel();
this.uLabel1 = new WinFormControl.ULabel();
this.numPad = new System.Windows.Forms.FlowLayoutPanel();
this.R_C5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.recordGrid = new WinFormControl.UDataGridView();
this.countLbl = new WinFormControl.ULabel();
this.uLabel3 = new WinFormControl.ULabel();
this.uLabel2 = new WinFormControl.ULabel();
this.numberLbl = new WinFormControl.ULabel();
this.zeroBtn = new WinFormControl.NButton();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.orderGrid = new WinFormControl.UDataGridView();
this.panel1 = new System.Windows.Forms.Panel();
this.uLabel4 = new WinFormControl.ULabel();
this.uLabel5 = new WinFormControl.ULabel();
this.orderLbl = new WinFormControl.ULabel();
this.hotNumLbl = new WinFormControl.ULabel();
this.panel4 = new System.Windows.Forms.Panel();
this.L_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_OrderDetail_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Finish = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_HotFadeNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_End = new System.Windows.Forms.DataGridViewButtonColumn();
((System.ComponentModel.ISupportInitialize)(this.recordGrid)).BeginInit();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit();
this.panel1.SuspendLayout();
this.panel4.SuspendLayout();
this.SuspendLayout();
//
// queryBtn
//
this.queryBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.queryBtn.ClickColor = System.Drawing.Color.YellowGreen;
this.queryBtn.Font = new System.Drawing.Font("宋体", 12F);
this.queryBtn.ForeColor = System.Drawing.Color.White;
this.queryBtn.Location = new System.Drawing.Point(283, 18);
this.queryBtn.Name = "queryBtn";
this.queryBtn.PlaySound = false;
this.queryBtn.Size = new System.Drawing.Size(113, 45);
this.queryBtn.SoundType = WinFormControl.SoundType.Click;
this.queryBtn.TabIndex = 16;
this.queryBtn.Text = "查 询";
this.queryBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.queryBtn.UseVisualStyleBackColor = false;
this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click);
//
// datePicker
//
this.datePicker.Font = new System.Drawing.Font("宋体", 15F);
this.datePicker.Location = new System.Drawing.Point(121, 26);
this.datePicker.Name = "datePicker";
this.datePicker.ReadOnly = true;
this.datePicker.Size = new System.Drawing.Size(156, 30);
this.datePicker.TabIndex = 14;
this.datePicker.MouseDown += new System.Windows.Forms.MouseEventHandler(this.datePicker_MouseDown);
//
// colseBtn
//
this.colseBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.colseBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.colseBtn.ClickColor = System.Drawing.Color.YellowGreen;
this.colseBtn.Font = new System.Drawing.Font("宋体", 12F);
this.colseBtn.ForeColor = System.Drawing.Color.White;
this.colseBtn.Location = new System.Drawing.Point(897, 16);
this.colseBtn.Name = "colseBtn";
this.colseBtn.PlaySound = false;
this.colseBtn.Size = new System.Drawing.Size(113, 45);
this.colseBtn.SoundType = WinFormControl.SoundType.Click;
this.colseBtn.TabIndex = 13;
this.colseBtn.Text = "关 闭";
this.colseBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.colseBtn.UseVisualStyleBackColor = false;
this.colseBtn.Click += new System.EventHandler(this.colseBtn_Click);
//
// uTimerLabel1
//
this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.uTimerLabel1.AutoSize = true;
this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent;
this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 13F);
this.uTimerLabel1.Format = "M月d日 H:mm:ss";
this.uTimerLabel1.Location = new System.Drawing.Point(739, 29);
this.uTimerLabel1.Name = "uTimerLabel1";
this.uTimerLabel1.Size = new System.Drawing.Size(152, 18);
this.uTimerLabel1.TabIndex = 10;
this.uTimerLabel1.Text = "6月13日 11:00:49";
//
// uLabel1
//
this.uLabel1.AutoSize = true;
this.uLabel1.BackColor = System.Drawing.Color.Transparent;
this.uLabel1.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel1.Location = new System.Drawing.Point(12, 31);
this.uLabel1.Name = "uLabel1";
this.uLabel1.Size = new System.Drawing.Size(109, 20);
this.uLabel1.TabIndex = 15;
this.uLabel1.Text = "宰杀日期:";
//
// numPad
//
this.numPad.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.numPad.Location = new System.Drawing.Point(-1, 220);
this.numPad.Name = "numPad";
this.numPad.Size = new System.Drawing.Size(421, 278);
this.numPad.TabIndex = 0;
//
// R_C5
//
this.R_C5.DataPropertyName = "Number5";
this.R_C5.HeaderText = "列5";
this.R_C5.Name = "R_C5";
this.R_C5.ReadOnly = true;
this.R_C5.Width = 80;
//
// R_C4
//
this.R_C4.DataPropertyName = "Number4";
this.R_C4.HeaderText = "列4";
this.R_C4.Name = "R_C4";
this.R_C4.ReadOnly = true;
this.R_C4.Width = 80;
//
// R_C3
//
this.R_C3.DataPropertyName = "Number3";
this.R_C3.HeaderText = "列3";
this.R_C3.Name = "R_C3";
this.R_C3.ReadOnly = true;
this.R_C3.Width = 80;
//
// R_C2
//
this.R_C2.DataPropertyName = "Number2";
this.R_C2.HeaderText = "列2";
this.R_C2.Name = "R_C2";
this.R_C2.ReadOnly = true;
this.R_C2.Width = 80;
//
// R_C1
//
this.R_C1.DataPropertyName = "Number1";
this.R_C1.HeaderText = "列1";
this.R_C1.Name = "R_C1";
this.R_C1.ReadOnly = true;
this.R_C1.Width = 80;
//
// recordGrid
//
this.recordGrid.AllowUserToAddRows = false;
this.recordGrid.AllowUserToDeleteRows = false;
this.recordGrid.AllowUserToResizeColumns = false;
this.recordGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.recordGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.recordGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.recordGrid.BackgroundColor = System.Drawing.Color.White;
this.recordGrid.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.recordGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.recordGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.recordGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.R_C1,
this.R_C2,
this.R_C3,
this.R_C4,
this.R_C5});
this.recordGrid.Location = new System.Drawing.Point(-1, -1);
this.recordGrid.MultiSelect = false;
this.recordGrid.Name = "recordGrid";
this.recordGrid.ReadOnly = true;
this.recordGrid.RowHeadersVisible = false;
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.recordGrid.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.recordGrid.RowTemplate.Height = 50;
this.recordGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.recordGrid.Size = new System.Drawing.Size(421, 153);
this.recordGrid.TabIndex = 1;
//
// countLbl
//
this.countLbl.AutoSize = true;
this.countLbl.BackColor = System.Drawing.Color.Transparent;
this.countLbl.Font = new System.Drawing.Font("宋体", 15F);
this.countLbl.ForeColor = System.Drawing.Color.Red;
this.countLbl.Location = new System.Drawing.Point(14, 9);
this.countLbl.Name = "countLbl";
this.countLbl.Size = new System.Drawing.Size(19, 20);
this.countLbl.TabIndex = 2;
this.countLbl.Text = "0";
//
// uLabel3
//
this.uLabel3.AutoSize = true;
this.uLabel3.BackColor = System.Drawing.Color.Transparent;
this.uLabel3.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel3.ForeColor = System.Drawing.Color.Red;
this.uLabel3.Location = new System.Drawing.Point(200, 9);
this.uLabel3.Name = "uLabel3";
this.uLabel3.Size = new System.Drawing.Size(29, 20);
this.uLabel3.TabIndex = 5;
this.uLabel3.Text = "头";
//
// uLabel2
//
this.uLabel2.AutoSize = true;
this.uLabel2.BackColor = System.Drawing.Color.Transparent;
this.uLabel2.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel2.ForeColor = System.Drawing.Color.Red;
this.uLabel2.Location = new System.Drawing.Point(55, 9);
this.uLabel2.Name = "uLabel2";
this.uLabel2.Size = new System.Drawing.Size(29, 20);
this.uLabel2.TabIndex = 3;
this.uLabel2.Text = "次";
//
// numberLbl
//
this.numberLbl.AutoSize = true;
this.numberLbl.BackColor = System.Drawing.Color.Transparent;
this.numberLbl.Font = new System.Drawing.Font("宋体", 15F);
this.numberLbl.ForeColor = System.Drawing.Color.Red;
this.numberLbl.Location = new System.Drawing.Point(159, 9);
this.numberLbl.Name = "numberLbl";
this.numberLbl.Size = new System.Drawing.Size(19, 20);
this.numberLbl.TabIndex = 4;
this.numberLbl.Text = "0";
//
// zeroBtn
//
this.zeroBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.zeroBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.zeroBtn.ClickColor = System.Drawing.Color.YellowGreen;
this.zeroBtn.Font = new System.Drawing.Font("宋体", 15F);
this.zeroBtn.ForeColor = System.Drawing.Color.White;
this.zeroBtn.Location = new System.Drawing.Point(17, 157);
this.zeroBtn.Name = "zeroBtn";
this.zeroBtn.PlaySound = true;
this.zeroBtn.Size = new System.Drawing.Size(100, 60);
this.zeroBtn.SoundType = WinFormControl.SoundType.Click;
this.zeroBtn.TabIndex = 7;
this.zeroBtn.Text = "0";
this.zeroBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.zeroBtn.UseVisualStyleBackColor = false;
this.zeroBtn.Click += new System.EventHandler(this.NumberBtnClick);
//
// panel3
//
this.panel3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.panel3.Controls.Add(this.countLbl);
this.panel3.Controls.Add(this.uLabel3);
this.panel3.Controls.Add(this.uLabel2);
this.panel3.Controls.Add(this.numberLbl);
this.panel3.Location = new System.Drawing.Point(157, 158);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(239, 38);
this.panel3.TabIndex = 6;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.zeroBtn);
this.panel2.Controls.Add(this.panel3);
this.panel2.Controls.Add(this.recordGrid);
this.panel2.Controls.Add(this.numPad);
this.panel2.Location = new System.Drawing.Point(589, 72);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(421, 503);
this.panel2.TabIndex = 12;
//
// orderGrid
//
this.orderGrid.AllowUserToAddRows = false;
this.orderGrid.AllowUserToDeleteRows = false;
this.orderGrid.AllowUserToResizeColumns = false;
this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
this.orderGrid.BackgroundColor = System.Drawing.Color.White;
this.orderGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.L_ID,
this.L_OrderDetail_ID,
this.L_Finish,
this.L_Order,
this.L_PlanNumber,
this.L_HotFadeNumber,
this.L_End});
this.orderGrid.Dock = System.Windows.Forms.DockStyle.Fill;
this.orderGrid.Location = new System.Drawing.Point(0, 0);
this.orderGrid.MultiSelect = false;
this.orderGrid.Name = "orderGrid";
this.orderGrid.ReadOnly = true;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle8;
this.orderGrid.RowTemplate.Height = 80;
this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.orderGrid.Size = new System.Drawing.Size(557, 501);
this.orderGrid.TabIndex = 2;
this.orderGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellClick);
this.orderGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellContentClick);
this.orderGrid.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.orderGrid_RowPrePaint);
//
// panel1
//
this.panel1.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.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.orderGrid);
this.panel1.Location = new System.Drawing.Point(12, 72);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(559, 503);
this.panel1.TabIndex = 11;
//
// uLabel4
//
this.uLabel4.AutoSize = true;
this.uLabel4.BackColor = System.Drawing.Color.Transparent;
this.uLabel4.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel4.ForeColor = System.Drawing.SystemColors.ControlText;
this.uLabel4.Location = new System.Drawing.Point(3, 18);
this.uLabel4.Name = "uLabel4";
this.uLabel4.Size = new System.Drawing.Size(69, 20);
this.uLabel4.TabIndex = 17;
this.uLabel4.Text = "顺序:";
//
// uLabel5
//
this.uLabel5.AutoSize = true;
this.uLabel5.BackColor = System.Drawing.Color.Transparent;
this.uLabel5.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel5.ForeColor = System.Drawing.SystemColors.ControlText;
this.uLabel5.Location = new System.Drawing.Point(155, 18);
this.uLabel5.Name = "uLabel5";
this.uLabel5.Size = new System.Drawing.Size(109, 20);
this.uLabel5.TabIndex = 19;
this.uLabel5.Text = "烫褪合计:";
//
// orderLbl
//
this.orderLbl.AutoSize = true;
this.orderLbl.BackColor = System.Drawing.Color.Transparent;
this.orderLbl.Font = new System.Drawing.Font("宋体", 23F);
this.orderLbl.ForeColor = System.Drawing.Color.Red;
this.orderLbl.Location = new System.Drawing.Point(72, 10);
this.orderLbl.Name = "orderLbl";
this.orderLbl.Size = new System.Drawing.Size(30, 31);
this.orderLbl.TabIndex = 18;
this.orderLbl.Text = "0";
//
// hotNumLbl
//
this.hotNumLbl.AutoSize = true;
this.hotNumLbl.BackColor = System.Drawing.Color.Transparent;
this.hotNumLbl.Font = new System.Drawing.Font("宋体", 23F);
this.hotNumLbl.ForeColor = System.Drawing.Color.Red;
this.hotNumLbl.Location = new System.Drawing.Point(249, 10);
this.hotNumLbl.Name = "hotNumLbl";
this.hotNumLbl.Size = new System.Drawing.Size(30, 31);
this.hotNumLbl.TabIndex = 20;
this.hotNumLbl.Text = "0";
//
// panel4
//
this.panel4.Controls.Add(this.uLabel4);
this.panel4.Controls.Add(this.hotNumLbl);
this.panel4.Controls.Add(this.uLabel5);
this.panel4.Controls.Add(this.orderLbl);
this.panel4.Location = new System.Drawing.Point(404, 13);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(329, 55);
this.panel4.TabIndex = 3;
//
// L_ID
//
this.L_ID.DataPropertyName = "ID";
this.L_ID.HeaderText = "ID";
this.L_ID.Name = "L_ID";
this.L_ID.ReadOnly = true;
this.L_ID.Visible = false;
//
// L_OrderDetail_ID
//
this.L_OrderDetail_ID.DataPropertyName = "OrderDetail_ID";
this.L_OrderDetail_ID.HeaderText = "OrderDetail_ID";
this.L_OrderDetail_ID.Name = "L_OrderDetail_ID";
this.L_OrderDetail_ID.ReadOnly = true;
this.L_OrderDetail_ID.Visible = false;
//
// L_Finish
//
this.L_Finish.DataPropertyName = "Finish";
this.L_Finish.HeaderText = "Finish";
this.L_Finish.Name = "L_Finish";
this.L_Finish.ReadOnly = true;
this.L_Finish.Visible = false;
//
// L_Order
//
this.L_Order.DataPropertyName = "Order";
this.L_Order.HeaderText = "顺序";
this.L_Order.Name = "L_Order";
this.L_Order.ReadOnly = true;
//
// L_PlanNumber
//
this.L_PlanNumber.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.L_PlanNumber.DataPropertyName = "PlanNumber";
this.L_PlanNumber.HeaderText = "头数";
this.L_PlanNumber.MinimumWidth = 100;
this.L_PlanNumber.Name = "L_PlanNumber";
this.L_PlanNumber.ReadOnly = true;
//
// L_HotFadeNumber
//
this.L_HotFadeNumber.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.L_HotFadeNumber.DataPropertyName = "HotFadeNumber";
this.L_HotFadeNumber.HeaderText = "烫褪头数";
this.L_HotFadeNumber.MinimumWidth = 100;
this.L_HotFadeNumber.Name = "L_HotFadeNumber";
this.L_HotFadeNumber.ReadOnly = true;
//
// L_End
//
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_End.DefaultCellStyle = dataGridViewCellStyle6;
this.L_End.HeaderText = "结束";
this.L_End.MinimumWidth = 160;
this.L_End.Name = "L_End";
this.L_End.ReadOnly = true;
this.L_End.Text = "结束";
this.L_End.UseColumnTextForButtonValue = true;
this.L_End.Width = 160;
//
// HotPickSelector
//
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(1022, 591);
this.Controls.Add(this.panel4);
this.Controls.Add(this.queryBtn);
this.Controls.Add(this.datePicker);
this.Controls.Add(this.colseBtn);
this.Controls.Add(this.uTimerLabel1);
this.Controls.Add(this.uLabel1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "HotPickSelector";
this.Text = "烫毛分线";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
((System.ComponentModel.ISupportInitialize)(this.recordGrid)).EndInit();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).EndInit();
this.panel1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private WinFormControl.NButton queryBtn;
private System.Windows.Forms.TextBox datePicker;
private WinFormControl.NButton colseBtn;
private WinFormControl.UTimerLabel uTimerLabel1;
private WinFormControl.ULabel uLabel1;
private System.Windows.Forms.FlowLayoutPanel numPad;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C5;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C4;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C3;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C2;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C1;
private WinFormControl.UDataGridView recordGrid;
private WinFormControl.ULabel countLbl;
private WinFormControl.ULabel uLabel3;
private WinFormControl.ULabel uLabel2;
private WinFormControl.ULabel numberLbl;
private WinFormControl.NButton zeroBtn;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2;
private WinFormControl.UDataGridView orderGrid;
private System.Windows.Forms.Panel panel1;
private WinFormControl.ULabel uLabel4;
private WinFormControl.ULabel uLabel5;
private WinFormControl.ULabel orderLbl;
private WinFormControl.ULabel hotNumLbl;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.DataGridViewTextBoxColumn L_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn L_OrderDetail_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn L_Finish;
private System.Windows.Forms.DataGridViewTextBoxColumn L_Order;
private System.Windows.Forms.DataGridViewTextBoxColumn L_PlanNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn L_HotFadeNumber;
private System.Windows.Forms.DataGridViewButtonColumn L_End;
}
}

+ 201
- 0
ButcherManage.Form/HotPickSelector_/HotPickSelector.cs View File

@ -0,0 +1,201 @@
using ButcherManage.BO;
using ButcherManage.BO.Enums;
using ButcherManage.BO.LocalBL;
using ButcherManage.BO.Utils;
using ButcherManage.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 ButcherManage.HotPickSelector_
{
public partial class HotPickSelector : Form, IWithRoleForm
{
#region IWithRoleForm
public List<short> RoleName
{
get { return new List<short> { (short).线 }; }
}
public Form Generate()
{
return this;
}
#endregion
List<HotPick> list;
List<HotPick_Detail> records;
DateTime date = DateTime.Today;
HotPick current;
public HotPickSelector()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
datePicker.Text = date.ToString("yyyy-MM-dd");
BindGrid();
FillNumberPad();
}
void RefreshRecordGrid()//bindgrid、numberclick
{
if (current == null)
return;
records = HotPickBL.GetSecondOrderDetails(current.ID);
var row = records.Count % 5;
if (records.Count % 5 == 0)
{
records.Add(new HotPick_Detail() { SecondOrder_ID = current.ID });
row = 0;
}
BindRecorGrid();
BindLabel();
recordGrid.Rows[records.Count / 5].Cells[row].Selected = true;
}
void BindLabel()
{
countLbl.Text = records.Where(x => x.Number > 0).Count().ToString();
numberLbl.Text = records.Sum(x => x.Number).ToString();
hotNumLbl.Text = list.Sum(x => x.HotFadeNumber).ToString();
}
private void BindGrid()//onload、query、finish
{
list = HotPickBL.GetSecondOrderList(date).OrderBy(x => x.Order).OrderBy(x => x.Finish).ToList();
orderGrid.DataSource = list;
current = list.FirstOrDefault();
foreach (DataGridViewRow row in orderGrid.Rows)
{
if ((bool)row.Cells["L_Finish"].Value)
row.Cells[orderGrid.Columns.Count - 1] = new DataGridViewTextBoxCell();
}
orderGrid.Refresh();
orderLbl.Text = current == null ? "0" : current.Order.ToString();
RefreshRecordGrid();
}
private void FillNumberPad()
{
for (var i = 1; i < 10; i++)
CreateBtn(i.ToString());
}
void CreateBtn(string content)
{
var btn = new NButton() { Width = 100, Height = 60, Text = content, Font = new Font("宋体", 15), Margin = new Padding(18, 10, 18, 20), PlaySound = true };
btn.Click += NumberBtnClick;
numPad.Controls.Add(btn);
}
private void NumberBtnClick(object sender, EventArgs e)
{
if (current == null)
{
NMessageBox.ShowDialog("没有待处理的数据");
return;
}
var number = int.Parse((sender as NButton).Text);
var cell = recordGrid.CurrentCell;
if (cell.Value == null && number == 0)
return;
var idx = cell.RowIndex * 5 + cell.ColumnIndex;
var detail = new HotPick_Detail();
if (idx > records.Count - 1)
{
if (cell.RowIndex != records.Count / 5 || cell.ColumnIndex != records.Count % 5)
cell = recordGrid.Rows[records.Count / 5].Cells[records.Count % 5];
detail.SecondOrder_ID = current.ID;
detail.Number = number;
records.Add(detail);
}
else
{
detail = records[idx];
detail.Number = number;
}
HotPickBL.Insert(detail, current);
cell.Value = number;
var row = records.Count % 5;
if (records[records.Count - 1].Number == null)
row -= 1;
if (records.Count % 5 == 0)
{
records.Add(new HotPick_Detail() { SecondOrder_ID = current.ID });
row = 0;
BindRecorGrid();
}
recordGrid.Rows[records.Count / 5].Cells[row].Selected = true;
var v = records.Sum(x => x.Number ?? 0);
orderGrid.CurrentRow.Cells["L_HotFadeNumber"].Value = v;
current.HotFadeNumber = v;
BindLabel();
}
void BindRecorGrid()
{
recordGrid.DataSource = EntityExpand.Build(records);
recordGrid.Refresh();
}
private void colseBtn_Click(object sender, EventArgs e)
{
Close();
}
private void orderGrid_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0)
return;
var id = (long)orderGrid.CurrentRow.Cells[1].Value;
if (id == current.OrderDetail_ID)
return;
current = list.First(x => x.OrderDetail_ID == id);
orderLbl.Text = current.Order.ToString();
RefreshRecordGrid();
}
private void orderGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex != orderGrid.Columns.Count - 1 || e.RowIndex == -1)
return;
HotPickBL.SetFinish(current);
BindGrid();
}
private void datePicker_MouseDown(object sender, MouseEventArgs e)
{
var cs = new CalendarSelecter();
if (cs.ShowDialog() == true)
{
date = cs.Result;
datePicker.Text = date.ToString("yyyy-MM-dd");
}
}
private void queryBtn_Click(object sender, EventArgs e)
{
BindGrid();
}
private void orderGrid_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
{
DataGridViewRow dgrSingle = orderGrid.Rows[e.RowIndex];
var v = (bool)dgrSingle.Cells["L_Finish"].Value;
if (v)
dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen;
}
}
}

+ 156
- 0
ButcherManage.Form/HotPickSelector_/HotPickSelector.resx View File

@ -0,0 +1,156 @@
<?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_C5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_OrderDetail_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_Finish.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_Order.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_PlanNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_HotFadeNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_End.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

+ 629
- 0
ButcherManage.Form/OrderConfirm_/OrderConfirmForm.Designer.cs View File

@ -0,0 +1,629 @@
namespace ButcherManage.OrderConfirm_
{
partial class OrderConfirmForm
{
/// <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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = 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();
this.queryBtn = new WinFormControl.NButton();
this.datePicker = new System.Windows.Forms.TextBox();
this.colseBtn = new WinFormControl.NButton();
this.uTimerLabel1 = new WinFormControl.UTimerLabel();
this.uLabel1 = new WinFormControl.ULabel();
this.numPad = new System.Windows.Forms.FlowLayoutPanel();
this.R_C5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_C1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.recordGrid = new WinFormControl.UDataGridView();
this.countLbl = new WinFormControl.ULabel();
this.uLabel3 = new WinFormControl.ULabel();
this.uLabel2 = new WinFormControl.ULabel();
this.numberLbl = new WinFormControl.ULabel();
this.zeroBtn = new WinFormControl.NButton();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.orderGrid = new WinFormControl.UDataGridView();
this.panel1 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.finishNumberLabel = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.setTop = new System.Windows.Forms.CheckBox();
this.orderLabel = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.L_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_OrderState = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_IsHurryButcher = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_SecondarySplit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_B3WeighBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_ConfirmNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Start = new System.Windows.Forms.DataGridViewButtonColumn();
this.L_End = new System.Windows.Forms.DataGridViewButtonColumn();
((System.ComponentModel.ISupportInitialize)(this.recordGrid)).BeginInit();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit();
this.panel1.SuspendLayout();
this.panel4.SuspendLayout();
this.SuspendLayout();
//
// queryBtn
//
this.queryBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.queryBtn.ClickColor = System.Drawing.Color.YellowGreen;
this.queryBtn.Font = new System.Drawing.Font("宋体", 12F);
this.queryBtn.ForeColor = System.Drawing.Color.White;
this.queryBtn.Location = new System.Drawing.Point(283, 16);
this.queryBtn.Name = "queryBtn";
this.queryBtn.PlaySound = false;
this.queryBtn.Size = new System.Drawing.Size(113, 45);
this.queryBtn.SoundType = WinFormControl.SoundType.Click;
this.queryBtn.TabIndex = 16;
this.queryBtn.Text = "查 询";
this.queryBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.queryBtn.UseVisualStyleBackColor = false;
this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click);
//
// datePicker
//
this.datePicker.Font = new System.Drawing.Font("宋体", 15F);
this.datePicker.Location = new System.Drawing.Point(121, 24);
this.datePicker.Name = "datePicker";
this.datePicker.ReadOnly = true;
this.datePicker.Size = new System.Drawing.Size(156, 30);
this.datePicker.TabIndex = 14;
this.datePicker.MouseDown += new System.Windows.Forms.MouseEventHandler(this.datePicker_MouseDown);
//
// colseBtn
//
this.colseBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.colseBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.colseBtn.ClickColor = System.Drawing.Color.YellowGreen;
this.colseBtn.Font = new System.Drawing.Font("宋体", 12F);
this.colseBtn.ForeColor = System.Drawing.Color.White;
this.colseBtn.Location = new System.Drawing.Point(958, 16);
this.colseBtn.Name = "colseBtn";
this.colseBtn.PlaySound = false;
this.colseBtn.Size = new System.Drawing.Size(113, 45);
this.colseBtn.SoundType = WinFormControl.SoundType.Click;
this.colseBtn.TabIndex = 13;
this.colseBtn.Text = "关 闭";
this.colseBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.colseBtn.UseVisualStyleBackColor = false;
this.colseBtn.Click += new System.EventHandler(this.colseBtn_Click);
//
// uTimerLabel1
//
this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.uTimerLabel1.AutoSize = true;
this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent;
this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 13F);
this.uTimerLabel1.Format = "M月d日 H:mm:ss";
this.uTimerLabel1.Location = new System.Drawing.Point(803, 29);
this.uTimerLabel1.Name = "uTimerLabel1";
this.uTimerLabel1.Size = new System.Drawing.Size(152, 18);
this.uTimerLabel1.TabIndex = 10;
this.uTimerLabel1.Text = "6月13日 21:39:23";
//
// uLabel1
//
this.uLabel1.AutoSize = true;
this.uLabel1.BackColor = System.Drawing.Color.Transparent;
this.uLabel1.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel1.Location = new System.Drawing.Point(12, 29);
this.uLabel1.Name = "uLabel1";
this.uLabel1.Size = new System.Drawing.Size(109, 20);
this.uLabel1.TabIndex = 15;
this.uLabel1.Text = "宰杀日期:";
//
// numPad
//
this.numPad.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.numPad.Location = new System.Drawing.Point(-1, 220);
this.numPad.Name = "numPad";
this.numPad.Size = new System.Drawing.Size(421, 278);
this.numPad.TabIndex = 0;
//
// R_C5
//
this.R_C5.DataPropertyName = "Number5";
this.R_C5.HeaderText = "列5";
this.R_C5.Name = "R_C5";
this.R_C5.ReadOnly = true;
this.R_C5.Width = 80;
//
// R_C4
//
this.R_C4.DataPropertyName = "Number4";
this.R_C4.HeaderText = "列4";
this.R_C4.Name = "R_C4";
this.R_C4.ReadOnly = true;
this.R_C4.Width = 80;
//
// R_C3
//
this.R_C3.DataPropertyName = "Number3";
this.R_C3.HeaderText = "列3";
this.R_C3.Name = "R_C3";
this.R_C3.ReadOnly = true;
this.R_C3.Width = 80;
//
// R_C2
//
this.R_C2.DataPropertyName = "Number2";
this.R_C2.HeaderText = "列2";
this.R_C2.Name = "R_C2";
this.R_C2.ReadOnly = true;
this.R_C2.Width = 80;
//
// R_C1
//
this.R_C1.DataPropertyName = "Number1";
this.R_C1.HeaderText = "列1";
this.R_C1.Name = "R_C1";
this.R_C1.ReadOnly = true;
this.R_C1.Width = 80;
//
// recordGrid
//
this.recordGrid.AllowUserToAddRows = false;
this.recordGrid.AllowUserToDeleteRows = false;
this.recordGrid.AllowUserToResizeColumns = false;
this.recordGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.recordGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.recordGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.recordGrid.BackgroundColor = System.Drawing.Color.White;
this.recordGrid.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.recordGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.recordGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.recordGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.R_C1,
this.R_C2,
this.R_C3,
this.R_C4,
this.R_C5});
this.recordGrid.Location = new System.Drawing.Point(-1, -1);
this.recordGrid.MultiSelect = false;
this.recordGrid.Name = "recordGrid";
this.recordGrid.ReadOnly = true;
this.recordGrid.RowHeadersVisible = false;
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.recordGrid.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.recordGrid.RowTemplate.Height = 50;
this.recordGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.recordGrid.Size = new System.Drawing.Size(421, 153);
this.recordGrid.TabIndex = 1;
//
// countLbl
//
this.countLbl.AutoSize = true;
this.countLbl.BackColor = System.Drawing.Color.Transparent;
this.countLbl.Font = new System.Drawing.Font("宋体", 15F);
this.countLbl.ForeColor = System.Drawing.Color.Red;
this.countLbl.Location = new System.Drawing.Point(14, 9);
this.countLbl.Name = "countLbl";
this.countLbl.Size = new System.Drawing.Size(19, 20);
this.countLbl.TabIndex = 2;
this.countLbl.Text = "0";
//
// uLabel3
//
this.uLabel3.AutoSize = true;
this.uLabel3.BackColor = System.Drawing.Color.Transparent;
this.uLabel3.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel3.ForeColor = System.Drawing.Color.Red;
this.uLabel3.Location = new System.Drawing.Point(200, 9);
this.uLabel3.Name = "uLabel3";
this.uLabel3.Size = new System.Drawing.Size(29, 20);
this.uLabel3.TabIndex = 5;
this.uLabel3.Text = "头";
//
// uLabel2
//
this.uLabel2.AutoSize = true;
this.uLabel2.BackColor = System.Drawing.Color.Transparent;
this.uLabel2.Font = new System.Drawing.Font("宋体", 15F);
this.uLabel2.ForeColor = System.Drawing.Color.Red;
this.uLabel2.Location = new System.Drawing.Point(55, 9);
this.uLabel2.Name = "uLabel2";
this.uLabel2.Size = new System.Drawing.Size(29, 20);
this.uLabel2.TabIndex = 3;
this.uLabel2.Text = "次";
//
// numberLbl
//
this.numberLbl.AutoSize = true;
this.numberLbl.BackColor = System.Drawing.Color.Transparent;
this.numberLbl.Font = new System.Drawing.Font("宋体", 15F);
this.numberLbl.ForeColor = System.Drawing.Color.Red;
this.numberLbl.Location = new System.Drawing.Point(159, 9);
this.numberLbl.Name = "numberLbl";
this.numberLbl.Size = new System.Drawing.Size(19, 20);
this.numberLbl.TabIndex = 4;
this.numberLbl.Text = "0";
//
// zeroBtn
//
this.zeroBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.zeroBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.zeroBtn.ClickColor = System.Drawing.Color.YellowGreen;
this.zeroBtn.Font = new System.Drawing.Font("宋体", 15F);
this.zeroBtn.ForeColor = System.Drawing.Color.White;
this.zeroBtn.Location = new System.Drawing.Point(17, 157);
this.zeroBtn.Name = "zeroBtn";
this.zeroBtn.PlaySound = true;
this.zeroBtn.Size = new System.Drawing.Size(100, 60);
this.zeroBtn.SoundType = WinFormControl.SoundType.Click;
this.zeroBtn.TabIndex = 7;
this.zeroBtn.Text = "0";
this.zeroBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255)))));
this.zeroBtn.UseVisualStyleBackColor = false;
this.zeroBtn.Click += new System.EventHandler(this.NumberBtnClick);
//
// panel3
//
this.panel3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.panel3.Controls.Add(this.countLbl);
this.panel3.Controls.Add(this.uLabel3);
this.panel3.Controls.Add(this.uLabel2);
this.panel3.Controls.Add(this.numberLbl);
this.panel3.Location = new System.Drawing.Point(157, 158);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(239, 38);
this.panel3.TabIndex = 6;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.zeroBtn);
this.panel2.Controls.Add(this.panel3);
this.panel2.Controls.Add(this.recordGrid);
this.panel2.Controls.Add(this.numPad);
this.panel2.Location = new System.Drawing.Point(650, 72);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(421, 503);
this.panel2.TabIndex = 12;
//
// orderGrid
//
this.orderGrid.AllowUserToAddRows = false;
this.orderGrid.AllowUserToDeleteRows = false;
this.orderGrid.AllowUserToResizeColumns = false;
this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
this.orderGrid.BackgroundColor = System.Drawing.Color.White;
this.orderGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.L_ID,
this.L_OrderState,
this.L_IsHurryButcher,
this.L_SecondarySplit,
this.L_Order,
this.L_B3WeighBill_ID,
this.L_LiveColonyHouse_Name,
this.L_PlanNumber,
this.L_ConfirmNumber,
this.L_Start,
this.L_End});
this.orderGrid.Dock = System.Windows.Forms.DockStyle.Fill;
this.orderGrid.Location = new System.Drawing.Point(0, 0);
this.orderGrid.MultiSelect = false;
this.orderGrid.Name = "orderGrid";
this.orderGrid.ReadOnly = true;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.RowHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle9;
this.orderGrid.RowTemplate.Height = 80;
this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.orderGrid.Size = new System.Drawing.Size(618, 501);
this.orderGrid.TabIndex = 2;
this.orderGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellClick);
this.orderGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellContentClick);
this.orderGrid.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.orderGrid_RowPrePaint);
//
// panel1
//
this.panel1.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.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.orderGrid);
this.panel1.Location = new System.Drawing.Point(12, 72);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(620, 503);
this.panel1.TabIndex = 11;
//
// panel4
//
this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.panel4.Controls.Add(this.finishNumberLabel);
this.panel4.Controls.Add(this.label4);
this.panel4.Controls.Add(this.setTop);
this.panel4.Controls.Add(this.orderLabel);
this.panel4.Controls.Add(this.label2);
this.panel4.Location = new System.Drawing.Point(402, 12);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(395, 56);
this.panel4.TabIndex = 19;
//
// finishNumberLabel
//
this.finishNumberLabel.AutoSize = true;
this.finishNumberLabel.Font = new System.Drawing.Font("宋体", 23F);
this.finishNumberLabel.ForeColor = System.Drawing.Color.Red;
this.finishNumberLabel.Location = new System.Drawing.Point(224, 12);
this.finishNumberLabel.Name = "finishNumberLabel";
this.finishNumberLabel.Size = new System.Drawing.Size(30, 31);
this.finishNumberLabel.TabIndex = 66;
this.finishNumberLabel.Text = "0";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("宋体", 15F);
this.label4.Location = new System.Drawing.Point(126, 18);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(109, 20);
this.label4.TabIndex = 65;
this.label4.Text = "已杀头数:";
//
// setTop
//
this.setTop.AutoSize = true;
this.setTop.Font = new System.Drawing.Font("宋体", 15F);
this.setTop.Location = new System.Drawing.Point(307, 16);
this.setTop.Name = "setTop";
this.setTop.Size = new System.Drawing.Size(68, 24);
this.setTop.TabIndex = 64;
this.setTop.Text = "置顶";
this.setTop.UseVisualStyleBackColor = true;
//
// orderLabel
//
this.orderLabel.AutoSize = true;
this.orderLabel.Font = new System.Drawing.Font("宋体", 23F);
this.orderLabel.ForeColor = System.Drawing.Color.Red;
this.orderLabel.Location = new System.Drawing.Point(63, 10);
this.orderLabel.Name = "orderLabel";
this.orderLabel.Size = new System.Drawing.Size(30, 31);
this.orderLabel.TabIndex = 63;
this.orderLabel.Text = "0";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 15F);
this.label2.Location = new System.Drawing.Point(5, 18);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(69, 20);
this.label2.TabIndex = 62;
this.label2.Text = "顺序:";
//
// L_ID
//
this.L_ID.DataPropertyName = "ID";
this.L_ID.HeaderText = "ID";
this.L_ID.Name = "L_ID";
this.L_ID.ReadOnly = true;
this.L_ID.Visible = false;
//
// L_OrderState
//
this.L_OrderState.DataPropertyName = "OrderState";
this.L_OrderState.HeaderText = "OrderState";
this.L_OrderState.Name = "L_OrderState";
this.L_OrderState.ReadOnly = true;
this.L_OrderState.Visible = false;
//
// L_IsHurryButcher
//
this.L_IsHurryButcher.DataPropertyName = "IsHurryButcher";
this.L_IsHurryButcher.HeaderText = "IsHurryButcher";
this.L_IsHurryButcher.Name = "L_IsHurryButcher";
this.L_IsHurryButcher.ReadOnly = true;
this.L_IsHurryButcher.Visible = false;
//
// L_SecondarySplit
//
this.L_SecondarySplit.DataPropertyName = "SecondarySplit";
this.L_SecondarySplit.HeaderText = "SecondarySplit";
this.L_SecondarySplit.Name = "L_SecondarySplit";
this.L_SecondarySplit.ReadOnly = true;
this.L_SecondarySplit.Visible = false;
//
// L_Order
//
this.L_Order.DataPropertyName = "Order";
this.L_Order.HeaderText = "顺序";
this.L_Order.Name = "L_Order";
this.L_Order.ReadOnly = true;
this.L_Order.Width = 80;
//
// L_B3WeighBill_ID
//
this.L_B3WeighBill_ID.DataPropertyName = "B3WeighBill_ID";
this.L_B3WeighBill_ID.HeaderText = "磅单号";
this.L_B3WeighBill_ID.Name = "L_B3WeighBill_ID";
this.L_B3WeighBill_ID.ReadOnly = true;
//
// L_LiveColonyHouse_Name
//
this.L_LiveColonyHouse_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.L_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name";
this.L_LiveColonyHouse_Name.HeaderText = "圈舍";
this.L_LiveColonyHouse_Name.MinimumWidth = 200;
this.L_LiveColonyHouse_Name.Name = "L_LiveColonyHouse_Name";
this.L_LiveColonyHouse_Name.ReadOnly = true;
//
// L_PlanNumber
//
this.L_PlanNumber.DataPropertyName = "PlanNumber";
this.L_PlanNumber.HeaderText = "排宰头数";
this.L_PlanNumber.Name = "L_PlanNumber";
this.L_PlanNumber.ReadOnly = true;
//
// L_ConfirmNumber
//
this.L_ConfirmNumber.DataPropertyName = "ConfirmNumber";
this.L_ConfirmNumber.HeaderText = "确认头数";
this.L_ConfirmNumber.Name = "L_ConfirmNumber";
this.L_ConfirmNumber.ReadOnly = true;
//
// L_Start
//
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_Start.DefaultCellStyle = dataGridViewCellStyle6;
this.L_Start.HeaderText = "开始";
this.L_Start.Name = "L_Start";
this.L_Start.ReadOnly = true;
this.L_Start.Text = "开始";
this.L_Start.Width = 140;
//
// L_End
//
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_End.DefaultCellStyle = dataGridViewCellStyle7;
this.L_End.HeaderText = "结束";
this.L_End.Name = "L_End";
this.L_End.ReadOnly = true;
this.L_End.Text = "结束";
this.L_End.UseColumnTextForButtonValue = true;
this.L_End.Width = 140;
//
// OrderConfirmForm
//
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(1083, 591);
this.Controls.Add(this.panel4);
this.Controls.Add(this.queryBtn);
this.Controls.Add(this.datePicker);
this.Controls.Add(this.colseBtn);
this.Controls.Add(this.uTimerLabel1);
this.Controls.Add(this.uLabel1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.KeyPreview = true;
this.Name = "OrderConfirmForm";
this.Text = "上线确认";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OrderConfirmForm_KeyPress);
((System.ComponentModel.ISupportInitialize)(this.recordGrid)).EndInit();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).EndInit();
this.panel1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private WinFormControl.NButton queryBtn;
private System.Windows.Forms.TextBox datePicker;
private WinFormControl.NButton colseBtn;
private WinFormControl.UTimerLabel uTimerLabel1;
private WinFormControl.ULabel uLabel1;
private System.Windows.Forms.FlowLayoutPanel numPad;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C5;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C4;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C3;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C2;
private System.Windows.Forms.DataGridViewTextBoxColumn R_C1;
private WinFormControl.UDataGridView recordGrid;
private WinFormControl.ULabel countLbl;
private WinFormControl.ULabel uLabel3;
private WinFormControl.ULabel uLabel2;
private WinFormControl.ULabel numberLbl;
private WinFormControl.NButton zeroBtn;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2;
private WinFormControl.UDataGridView orderGrid;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Label finishNumberLabel;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.CheckBox setTop;
private System.Windows.Forms.Label orderLabel;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DataGridViewTextBoxColumn L_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn L_OrderState;
private System.Windows.Forms.DataGridViewTextBoxColumn L_IsHurryButcher;
private System.Windows.Forms.DataGridViewTextBoxColumn L_SecondarySplit;
private System.Windows.Forms.DataGridViewTextBoxColumn L_Order;
private System.Windows.Forms.DataGridViewTextBoxColumn L_B3WeighBill_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn L_LiveColonyHouse_Name;
private System.Windows.Forms.DataGridViewTextBoxColumn L_PlanNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn L_ConfirmNumber;
private System.Windows.Forms.DataGridViewButtonColumn L_Start;
private System.Windows.Forms.DataGridViewButtonColumn L_End;
}
}

+ 285
- 0
ButcherManage.Form/OrderConfirm_/OrderConfirmForm.cs View File

@ -0,0 +1,285 @@
using ButcherManage.BO;
using ButcherManage.BO.Bill;
using ButcherManage.BO.Enums;
using ButcherManage.BO.LocalBL;
using ButcherManage.BO.Utils;
using ButcherManage.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 ButcherManage.OrderConfirm_
{
public partial class OrderConfirmForm : Form, IWithRoleForm
{
#region IWithRoleForm
public List<short> RoleName
{
get { return new List<short> { (short).线 }; }
}
public Form Generate()
{
return this;
}
#endregion
IList<OrderDetail> list;
List<OrderConfirmDetail> records;
DateTime date = DateTime.Today;
OrderDetail current;
public OrderConfirmForm()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
datePicker.Text = date.ToString("yyyy-MM-dd");
BindGrid();
FillNumberPad();
}
void RefreshRecordGrid()
{
if (current == null)
return;
records = OrderConfirmBL.GetRecords(current.ID);
var row = records.Count % 5;
if (records.Count % 5 == 0)
{
records.Add(new OrderConfirmDetail() { OrderDetail_ID = current.ID });
row = 0;
}
BindRecorGrid();
BindLabel();
recordGrid.Rows[records.Count / 5].Cells[row].Selected = true;
}
void BindLabel()
{
countLbl.Text = records.Where(x => x.Number > 0).Count().ToString();
numberLbl.Text = records.Sum(x => x.Number).ToString();
}
private void BindGrid()
{
list = OrderConfirmBL.GetOrderDetail(date).OrderBy(x => x.Order).OrderBy(x => x.Doing).ToList();
orderGrid.DataSource = list;
current = list.FirstOrDefault();
foreach (DataGridViewRow row in orderGrid.Rows)
{
var state = (int)row.Cells["L_OrderState"].Value;
if (state == 20)
{
row.Cells[orderGrid.Columns.Count - 1] = new DataGridViewTextBoxCell();
row.Cells[orderGrid.Columns.Count - 2] = new DataGridViewTextBoxCell();
}
else
{
row.Cells[orderGrid.Columns.Count - 2].Value = state == 0 ? "开始" : "取消";
if (state == 10)
{
var btnCell = ((DataGridViewButtonCell)row.Cells[orderGrid.Columns.Count - 2]);
btnCell.Style.BackColor = Color.LightSkyBlue;
btnCell.Style.SelectionBackColor = Color.LightSkyBlue;
}
}
}
orderGrid.Refresh();
orderLabel.Text = current == null ? "0" : current.Order.ToString();
finishNumberLabel.Text = list.Where(x => x.OrderState == 20).Sum(x => x.PlanNumber).ToString();
RefreshRecordGrid();
}
private void FillNumberPad()
{
for (var i = 1; i < 10; i++)
CreateBtn(i.ToString());
}
void CreateBtn(string content)
{
var btn = new NButton() { Width = 100, Height = 60, Text = content, Font = new Font("宋体", 15), Margin = new Padding(18, 10, 18, 20), PlaySound = true };
btn.Click += NumberBtnClick;
numPad.Controls.Add(btn);
}
private void NumberBtnClick(object sender, EventArgs e)
{
if (current == null)
{
NMessageBox.ShowDialog("没有待处理的数据");
return;
}
var number = int.Parse((sender as NButton).Text);
var cell = recordGrid.CurrentCell;
if (cell.Value == null && number == 0)
return;
var idx = cell.RowIndex * 5 + cell.ColumnIndex;
var detail = new OrderConfirmDetail();
if (idx > records.Count - 1)
{
if (cell.RowIndex != records.Count / 5 || cell.ColumnIndex != records.Count % 5)
cell = recordGrid.Rows[records.Count / 5].Cells[records.Count % 5];
detail.OrderDetail_ID = current.ID;
detail.Number = number;
records.Add(detail);
}
else
{
detail = records[idx];
detail.Number = number;
}
OrderConfirmBL.SaveRecord(detail);
cell.Value = number;
var row = records.Count % 5;
if (records[records.Count - 1].Number == null)
row -= 1;
if (records.Count % 5 == 0)
{
records.Add(new OrderConfirmDetail() { OrderDetail_ID = current.ID });
row = 0;
BindRecorGrid();
}
recordGrid.Rows[records.Count / 5].Cells[row].Selected = true;
var v = records.Sum(x => x.Number ?? 0);
orderGrid.CurrentRow.Cells["L_ConfirmNumber"].Value = v;
current.ConfirmNumber = v;
BindLabel();
}
void BindRecorGrid()
{
recordGrid.DataSource = EntityExpand.Build(records);
recordGrid.Refresh();
}
private void colseBtn_Click(object sender, EventArgs e)
{
Close();
}
private void orderGrid_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0)
return;
var id = (long)orderGrid.CurrentRow.Cells[0].Value;
if (id == current.ID)
return;
current = list.First(x => x.ID == id);
orderLabel.Text = current.Order.ToString();
RefreshRecordGrid();
}
private void orderGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex < orderGrid.Columns.Count - 2 || e.RowIndex == -1)
return;
if (e.ColumnIndex == orderGrid.Columns.Count - 1)
OrderConfirmBL.SetOrderState(current.ID, 20);
else
{
OrderConfirmBL.SetOrderState(current.ID, current.OrderState == 0 ? 10 : 0);
finishNumberLabel.Text = list.Where(x => x.OrderState == 20).Sum(x => x.PlanNumber).ToString();
}
BindGrid();
}
private void datePicker_MouseDown(object sender, MouseEventArgs e)
{
var cs = new CalendarSelecter();
if (cs.ShowDialog() == true)
{
date = cs.Result;
datePicker.Text = date.ToString("yyyy-MM-dd");
}
}
private void queryBtn_Click(object sender, EventArgs e)
{
BindGrid();
}
private void orderGrid_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
{
DataGridViewRow dgrSingle = orderGrid.Rows[e.RowIndex];
if ((bool)dgrSingle.Cells["L_SecondarySplit"].Value)
dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen;
else if ((bool)dgrSingle.Cells["L_IsHurryButcher"].Value)
dgrSingle.DefaultCellStyle.BackColor = Color.LightBlue;
}
string code = string.Empty;
bool start = false;
private void OrderConfirmForm_KeyPress(object sender, KeyPressEventArgs e)
{
switch (e.KeyChar)
{
case (char)Keys.S:
start = true;
code = string.Empty;
break;
case (char)Keys.E:
if (!start)
break;
InsertDetail();
start = false;
code = string.Empty;
break;
default:
if (start)
code += e.KeyChar.ToString();
break;
}
}
void InsertDetail()
{
long id = 0;
if (!long.TryParse(code, out id))
throw new Exception(string.Format("接收扫码输入错误 {0}", code));
var entity = OrderConfirmBL.GetHurryRecord(id);
if (entity.ToOrderDetail_ID.HasValue)
throw new Exception("该条码已插入过,不能重复插入");
var currentOrder = 0;
if (!setTop.Checked)
{
if (current != null)
currentOrder = OrderConfirmBL.GetCurrentOrder(current.ID);
else
currentOrder = OrderConfirmBL.GetMaxOrder(date);
currentOrder++;
}
else
{
setTop.Checked = false;
var l = list.OrderBy(x => x.Order).OrderBy(x => x.Doing).FirstOrDefault();
if (l != null)
currentOrder = l.Order;
else
currentOrder = 1;
}
var order = new OrderDetail();
order.Order = currentOrder;
order.LiveColonyHouse_Name = entity.LiveColonyHouse_Name;
order.PlanNumber = entity.HurryNumber;
order.WeightBill_ID = entity.WeightBill_ID;
order.B3WeighBill_ID = entity.B3WeighBill_ID;
order.Date = date;
order.IsHurryButcher = true;
OrderConfirmBL.InsertByHurryRecord(order, id);
BindGrid();
}
}
}

+ 168
- 0
ButcherManage.Form/OrderConfirm_/OrderConfirmForm.resx View File

@ -0,0 +1,168 @@
<?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_C5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_C1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_OrderState.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_IsHurryButcher.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_SecondarySplit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_Order.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_B3WeighBill_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_LiveColonyHouse_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_PlanNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_ConfirmNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_Start.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_End.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

+ 118
- 119
ButcherManage.Form/PickOutConfirm_/PickOutConfirm.Designer.cs View File

@ -28,25 +28,17 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.orderGrid = new WinFormControl.UDataGridView();
this.L_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_ConfirmState = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_AlreadyNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Start = new System.Windows.Forms.DataGridViewButtonColumn();
this.L_End = new System.Windows.Forms.DataGridViewButtonColumn();
this.panel2 = new System.Windows.Forms.Panel();
this.zeroBtn = new WinFormControl.NButton();
this.panel3 = new System.Windows.Forms.Panel();
@ -68,6 +60,14 @@
this.queryBtn = new WinFormControl.NButton();
this.uLabel4 = new WinFormControl.ULabel();
this.orderLbl = new WinFormControl.ULabel();
this.L_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_ConfirmState = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_AlreadyNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.L_Start = new System.Windows.Forms.DataGridViewButtonColumn();
this.L_End = new System.Windows.Forms.DataGridViewButtonColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit();
this.panel2.SuspendLayout();
@ -93,15 +93,15 @@
this.orderGrid.AllowUserToDeleteRows = false;
this.orderGrid.AllowUserToResizeColumns = false;
this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.orderGrid.BackgroundColor = System.Drawing.Color.White;
this.orderGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle11.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
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.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.L_ID,
@ -117,18 +117,18 @@
this.orderGrid.MultiSelect = false;
this.orderGrid.Name = "orderGrid";
this.orderGrid.ReadOnly = true;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.RowHeadersDefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle6;
this.orderGrid.RowTemplate.Height = 80;
this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.orderGrid.Size = new System.Drawing.Size(557, 501);
@ -137,77 +137,6 @@
this.orderGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellContentClick);
this.orderGrid.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.orderGrid_RowPrePaint);
//
// L_ID
//
this.L_ID.DataPropertyName = "ID";
this.L_ID.HeaderText = "ID";
this.L_ID.Name = "L_ID";
this.L_ID.ReadOnly = true;
this.L_ID.Visible = false;
//
// L_ConfirmState
//
this.L_ConfirmState.DataPropertyName = "ConfirmState";
this.L_ConfirmState.HeaderText = "ConfirmState";
this.L_ConfirmState.Name = "L_ConfirmState";
this.L_ConfirmState.ReadOnly = true;
this.L_ConfirmState.Visible = false;
//
// L_Order
//
this.L_Order.DataPropertyName = "Order";
this.L_Order.HeaderText = "顺序";
this.L_Order.Name = "L_Order";
this.L_Order.ReadOnly = true;
//
// L_PlanNumber
//
this.L_PlanNumber.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.L_PlanNumber.DataPropertyName = "PlanNumber";
this.L_PlanNumber.HeaderText = "排宰头数";
this.L_PlanNumber.Name = "L_PlanNumber";
this.L_PlanNumber.ReadOnly = true;
//
// L_LiveColonyHouse_Name
//
this.L_LiveColonyHouse_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.L_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name";
this.L_LiveColonyHouse_Name.HeaderText = "圈舍";
this.L_LiveColonyHouse_Name.MinimumWidth = 200;
this.L_LiveColonyHouse_Name.Name = "L_LiveColonyHouse_Name";
this.L_LiveColonyHouse_Name.ReadOnly = true;
//
// L_AlreadyNumber
//
this.L_AlreadyNumber.DataPropertyName = "AlreadyNumber";
this.L_AlreadyNumber.HeaderText = "确认头数";
this.L_AlreadyNumber.Name = "L_AlreadyNumber";
this.L_AlreadyNumber.ReadOnly = true;
//
// L_Start
//
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_Start.DefaultCellStyle = dataGridViewCellStyle12;
this.L_Start.HeaderText = "开始";
this.L_Start.Name = "L_Start";
this.L_Start.ReadOnly = true;
this.L_Start.Text = "开始";
this.L_Start.UseColumnTextForButtonValue = true;
this.L_Start.Width = 140;
//
// L_End
//
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_End.DefaultCellStyle = dataGridViewCellStyle13;
this.L_End.HeaderText = "结束";
this.L_End.Name = "L_End";
this.L_End.ReadOnly = true;
this.L_End.Text = "结束";
this.L_End.UseColumnTextForButtonValue = true;
this.L_End.Width = 140;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -306,16 +235,16 @@
this.recordGrid.AllowUserToDeleteRows = false;
this.recordGrid.AllowUserToResizeColumns = false;
this.recordGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.recordGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.recordGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
this.recordGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.recordGrid.BackgroundColor = System.Drawing.Color.White;
this.recordGrid.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.recordGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.recordGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.recordGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.recordGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.R_C1,
@ -328,9 +257,9 @@
this.recordGrid.Name = "recordGrid";
this.recordGrid.ReadOnly = true;
this.recordGrid.RowHeadersVisible = false;
dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.recordGrid.RowsDefaultCellStyle = dataGridViewCellStyle18;
dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.recordGrid.RowsDefaultCellStyle = dataGridViewCellStyle9;
this.recordGrid.RowTemplate.Height = 50;
this.recordGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.recordGrid.Size = new System.Drawing.Size(421, 153);
@ -413,7 +342,7 @@
this.uTimerLabel1.Name = "uTimerLabel1";
this.uTimerLabel1.Size = new System.Drawing.Size(152, 18);
this.uTimerLabel1.TabIndex = 0;
this.uTimerLabel1.Text = "6月11日 15:37:03";
this.uTimerLabel1.Text = "6月13日 16:44:14";
//
// datePicker
//
@ -477,6 +406,76 @@
this.orderLbl.TabIndex = 9;
this.orderLbl.Text = "0";
//
// L_ID
//
this.L_ID.DataPropertyName = "ID";
this.L_ID.HeaderText = "ID";
this.L_ID.Name = "L_ID";
this.L_ID.ReadOnly = true;
this.L_ID.Visible = false;
//
// L_ConfirmState
//
this.L_ConfirmState.DataPropertyName = "ConfirmState";
this.L_ConfirmState.HeaderText = "ConfirmState";
this.L_ConfirmState.Name = "L_ConfirmState";
this.L_ConfirmState.ReadOnly = true;
this.L_ConfirmState.Visible = false;
//
// L_Order
//
this.L_Order.DataPropertyName = "Order";
this.L_Order.HeaderText = "顺序";
this.L_Order.Name = "L_Order";
this.L_Order.ReadOnly = true;
//
// L_PlanNumber
//
this.L_PlanNumber.DataPropertyName = "PlanNumber";
this.L_PlanNumber.HeaderText = "排宰头数";
this.L_PlanNumber.Name = "L_PlanNumber";
this.L_PlanNumber.ReadOnly = true;
//
// L_LiveColonyHouse_Name
//
this.L_LiveColonyHouse_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.L_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name";
this.L_LiveColonyHouse_Name.HeaderText = "圈舍";
this.L_LiveColonyHouse_Name.MinimumWidth = 200;
this.L_LiveColonyHouse_Name.Name = "L_LiveColonyHouse_Name";
this.L_LiveColonyHouse_Name.ReadOnly = true;
//
// L_AlreadyNumber
//
this.L_AlreadyNumber.DataPropertyName = "AlreadyNumber";
this.L_AlreadyNumber.HeaderText = "确认头数";
this.L_AlreadyNumber.Name = "L_AlreadyNumber";
this.L_AlreadyNumber.ReadOnly = true;
//
// L_Start
//
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_Start.DefaultCellStyle = dataGridViewCellStyle3;
this.L_Start.HeaderText = "开始";
this.L_Start.Name = "L_Start";
this.L_Start.ReadOnly = true;
this.L_Start.Text = "开始";
this.L_Start.UseColumnTextForButtonValue = true;
this.L_Start.Width = 140;
//
// L_End
//
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.Padding = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.L_End.DefaultCellStyle = dataGridViewCellStyle4;
this.L_End.HeaderText = "结束";
this.L_End.Name = "L_End";
this.L_End.ReadOnly = true;
this.L_End.Text = "结束";
this.L_End.UseColumnTextForButtonValue = true;
this.L_End.Width = 140;
//
// PickOutConfirm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -529,6 +528,8 @@
private System.Windows.Forms.TextBox datePicker;
private WinFormControl.ULabel uLabel1;
private WinFormControl.NButton queryBtn;
private WinFormControl.ULabel uLabel4;
private WinFormControl.ULabel orderLbl;
private System.Windows.Forms.DataGridViewTextBoxColumn L_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn L_ConfirmState;
private System.Windows.Forms.DataGridViewTextBoxColumn L_Order;
@ -537,7 +538,5 @@
private System.Windows.Forms.DataGridViewTextBoxColumn L_AlreadyNumber;
private System.Windows.Forms.DataGridViewButtonColumn L_Start;
private System.Windows.Forms.DataGridViewButtonColumn L_End;
private WinFormControl.ULabel uLabel4;
private WinFormControl.ULabel orderLbl;
}
}

+ 1
- 33
ButcherManage.Form/PickOutConfirm_/PickOutConfirm.cs View File

@ -173,7 +173,7 @@ namespace ButcherManage.PickOutConfirm_
void BindRecorGrid()
{
recordGrid.DataSource = Expand.Build(records);
recordGrid.DataSource = EntityExpand.Build(records);
recordGrid.Refresh();
}
@ -241,36 +241,4 @@ namespace ButcherManage.PickOutConfirm_
dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen;
}
}
class Expand
{
public int? Number1 { get; set; }
public int? Number2 { get; set; }
public int? Number3 { get; set; }
public int? Number4 { get; set; }
public int? Number5 { get; set; }
public static List<Expand> Build(List<PickOutRecord> list)
{
var result = new List<Expand>();
var t = typeof(Expand);
for (var i = 0; i < list.Count; )
{
var entity = new Expand();
result.Add(entity);
for (var j = 1; j <= 5; j++)
{
t.GetProperty(string.Format("Number{0}", j)).SetValue(entity, list[i].Number);
i++;
if (i == list.Count)
break;
}
}
return result;
}
}
}

+ 1
- 1
ButcherManage.Login/Login.xaml View File

@ -16,7 +16,7 @@
<Label Content="密 码 :" FontFamily="微软雅黑" FontSize="22px" HorizontalAlignment="Left" Margin="142,202,0,0" VerticalAlignment="Top" Width="90" />
<PasswordBox Name="pwdInput" HorizontalAlignment="Left" Height="33" Margin="233,208,0,0" VerticalAlignment="Top" FontSize="17" Width="187" VerticalContentAlignment="Center" PreviewMouseLeftButtonDown="PwdTextBoxClick"/>
<Button Style="{StaticResource Login}" Content="登录" Foreground="#FFFFFF" HorizontalAlignment="Left" Margin="233,260,0,0" VerticalAlignment="Top" Width="80" Height="40" FontSize="18" BorderBrush="#0675E3" Click="LoginBtn_Click">
<Button Name="loginBtn" Style="{StaticResource Login}" Content="登录" Foreground="#FFFFFF" HorizontalAlignment="Left" Margin="233,260,0,0" VerticalAlignment="Top" Width="80" Height="40" FontSize="18" BorderBrush="#0675E3" Click="LoginBtn_Click">
<!--<Button.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF055EB6" Offset="1"/>


+ 30
- 22
ButcherManage.Login/Login.xaml.cs View File

@ -43,31 +43,39 @@ namespace ButcherManage.Login
private async void LoginBtn_Click(object sender, RoutedEventArgs e)
{
var username = userNameInput.Text.Trim();
var pwd = pwdInput.Password;
if (string.IsNullOrEmpty(username))
throw new Exception("请输入用户名");
if (LoginUtil.TestConnection(1000))
try
{
await Task.Factory.StartNew(() => LoginUtil.Login(username, pwd));
loginBtn.IsEnabled = false;
var username = userNameInput.Text.Trim();
var pwd = pwdInput.Password;
if (string.IsNullOrEmpty(username))
throw new Exception("请输入用户名");
if (LoginUtil.TestConnection(1000))
{
await Task.Factory.StartNew(() => LoginUtil.Login(username, pwd));
}
else
{
if (!AppContext.ConnectInfo.LocalOffline)
throw new Exception("无法连接到远程服务器");
if (AppContext.Worker.Name != username || string.Join("", LoginUtil.EncodePwd(pwd)) != string.Join("", AppContext.Worker.Password))
throw new Exception("离线时只能使用上次登录信息登录");
}
var form = FormUtil.CreateFrom();
if (form == null)
throw new Exception("权限不符");
form.FormClosing += delegate
{
this.Show();
};
form.Show();
Hide();
}
else
{
if (!AppContext.ConnectInfo.LocalOffline)
throw new Exception("无法连接到远程服务器");
if (AppContext.Worker.Name != username || string.Join("", LoginUtil.EncodePwd(pwd)) != string.Join("", AppContext.Worker.Password))
throw new Exception("离线时只能使用上次登录信息登录");
catch { throw; }
finally {
loginBtn.IsEnabled = true;
}
var form = FormUtil.CreateFrom();
if (form == null)
throw new Exception("权限不符");
form.FormClosing += delegate
{
this.Show();
};
form.Show();
Hide();
}
private void ExistBtn_Click(object sender, RoutedEventArgs e)


+ 45
- 36
ButcherManageClient/Login.cs View File

@ -47,45 +47,54 @@ namespace ButcherManageClient
private async void loginBtn_Click(object sender, EventArgs e)
{
var username = userNameTxt.Text.Trim();
var pwd = pwdTxt.Text;
if (string.IsNullOrEmpty(username))
throw new Exception("请输入用户名");
IniteRpcFacade();
ButcherAppContext.Context.UserConfig.PWD = pwd;
if (LoginRpcUtil.TestConnection(1000))
try
{
await Task.Factory.StartNew(() => RpcFacade.Login(username, pwd));
LoginRpcUtil.FillUserEmpInfo(username, ButcherAppContext.Context.UserConfig);
ButcherAppContext.Context.UrlConfig.OutAddress = GetOutAddress();
ButcherAppContext.Context.Save();
ButcherAppContext.Context.UserConfig.Connection = true;
loginBtn.Enabled = false;
Application.DoEvents();
var username = userNameTxt.Text.Trim();
var pwd = pwdTxt.Text;
if (string.IsNullOrEmpty(username))
throw new Exception("请输入用户名");
IniteRpcFacade();
ButcherAppContext.Context.UserConfig.PWD = pwd;
if (LoginRpcUtil.TestConnection(1000))
{
await Task.Factory.StartNew(() => RpcFacade.Login(username, pwd));
LoginRpcUtil.FillUserEmpInfo(username, ButcherAppContext.Context.UserConfig);
ButcherAppContext.Context.UrlConfig.OutAddress = GetOutAddress();
ButcherAppContext.Context.Save();
ButcherAppContext.Context.UserConfig.Connection = true;
}
else
{
if (ButcherAppContext.Context.UserConfig.Role != "定级员")
throw new Exception("无法连接到服务器");
if (username != ButcherAppContext.Context.UserConfig.UserName)
throw new Exception("离线状态请保持与上次用户名一致");
ButcherAppContext.Context.UserConfig.Connection = false;
}
//#if DEBUG
// var form = AfterLoginUtil.CreateForm("分割称重");
//#endif
//#if DEBUG
var form = AfterLoginUtil.CreateForm();
//#endif
// var form = AfterLoginUtil.CreateForm("分割入库");
// var form = AfterLoginUtil.CreateForm("分割称重");
// var form = AfterLoginUtil.CreateForm("定级员");
if (form == null)
throw new Exception("权限不符");
form.FormClosing += delegate { SubFormClosing(); };
form.Show();
Hide();
}
else
{
if (ButcherAppContext.Context.UserConfig.Role != "定级员")
throw new Exception("无法连接到服务器");
if (username != ButcherAppContext.Context.UserConfig.UserName)
throw new Exception("离线状态请保持与上次用户名一致");
ButcherAppContext.Context.UserConfig.Connection = false;
catch { throw; }
finally {
loginBtn.Enabled = true;
}
//#if DEBUG
// var form = AfterLoginUtil.CreateForm("分割称重");
//#endif
//#if DEBUG
var form = AfterLoginUtil.CreateForm();
//#endif
// var form = AfterLoginUtil.CreateForm("分割入库");
// var form = AfterLoginUtil.CreateForm("分割称重");
// var form = AfterLoginUtil.CreateForm("定级员");
if (form == null)
throw new Exception("权限不符");
form.FormClosing += delegate { SubFormClosing(); };
form.Show();
Hide();
}
private string GetOutAddress()


+ 1
- 1
ButcherOrder/ButcherOrderForm.cs View File

@ -175,7 +175,7 @@ namespace ButcherOrder
var number = int.Parse(numberInput.Text);
if (last.HotFadeNumber + number > last.PlanNumber)
throw new Exception("烫褪头数多余总头数,请确认!");
var detail = new SecondOrder_Detail() { Number = number, SecondOrder_ID = last.ID, Time = DateTime.Now };
var detail = new SecondOrder_Detail() { Number = number, SecondOrder_ID = last.ID };
last.HotFadeNumber += detail.Number;
SecondOrderRpc.Insert(detail, last);
secondOrderGridView.Refresh();


+ 91
- 2
ButcherWeight/WeightForm.Designer.cs View File

@ -52,6 +52,9 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.enableCheckBox = new System.Windows.Forms.CheckBox();
this.weightSet = new System.Windows.Forms.Button();
@ -172,6 +175,11 @@
this.label26 = new System.Windows.Forms.Label();
this.totalNumLbl = new System.Windows.Forms.Label();
this.label32 = new System.Windows.Forms.Label();
this.msgGrid = new System.Windows.Forms.DataGridView();
this.label27 = new System.Windows.Forms.Label();
this.msg_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.msg_Car_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.msg_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit();
@ -181,6 +189,7 @@
((System.ComponentModel.ISupportInitialize)(this.billGrid)).BeginInit();
this.panel5.SuspendLayout();
this.farmerMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.msgGrid)).BeginInit();
this.SuspendLayout();
//
// panel1
@ -1142,7 +1151,7 @@
this.S_Index,
this.S_AbnormalItem_Name,
this.S_Number});
this.abnormalGrid.Location = new System.Drawing.Point(866, 445);
this.abnormalGrid.Location = new System.Drawing.Point(443, 445);
this.abnormalGrid.MultiSelect = false;
this.abnormalGrid.Name = "abnormalGrid";
this.abnormalGrid.RowHeadersVisible = false;
@ -1384,7 +1393,7 @@
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("宋体", 15F);
this.label17.ForeColor = System.Drawing.Color.Red;
this.label17.Location = new System.Drawing.Point(862, 424);
this.label17.Location = new System.Drawing.Point(439, 424);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(89, 20);
this.label17.TabIndex = 8;
@ -1537,11 +1546,85 @@
this.label32.TabIndex = 51;
this.label32.Text = "合计:";
//
// msgGrid
//
this.msgGrid.AllowUserToAddRows = false;
this.msgGrid.AllowUserToDeleteRows = false;
this.msgGrid.AllowUserToResizeColumns = false;
this.msgGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.msgGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle23;
this.msgGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle24.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.msgGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle24;
this.msgGrid.ColumnHeadersHeight = 24;
this.msgGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.msgGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.msg_WeightBill_ID,
this.msg_Car_Name,
this.msg_Supplier_Name});
this.msgGrid.Location = new System.Drawing.Point(861, 447);
this.msgGrid.MultiSelect = false;
this.msgGrid.Name = "msgGrid";
this.msgGrid.ReadOnly = true;
this.msgGrid.RowHeadersVisible = false;
dataGridViewCellStyle25.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle25.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.msgGrid.RowsDefaultCellStyle = dataGridViewCellStyle25;
this.msgGrid.RowTemplate.Height = 23;
this.msgGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.msgGrid.Size = new System.Drawing.Size(400, 90);
this.msgGrid.TabIndex = 53;
this.msgGrid.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.msgGrid_CellDoubleClick);
//
// label27
//
this.label27.AutoSize = true;
this.label27.Font = new System.Drawing.Font("宋体", 15F);
this.label27.ForeColor = System.Drawing.Color.Red;
this.label27.Location = new System.Drawing.Point(857, 424);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(89, 20);
this.label27.TabIndex = 54;
this.label27.Text = "我的待办";
//
// msg_WeightBill_ID
//
this.msg_WeightBill_ID.DataPropertyName = "WeightBill_ID";
this.msg_WeightBill_ID.HeaderText = "WeightBill_ID";
this.msg_WeightBill_ID.Name = "msg_WeightBill_ID";
this.msg_WeightBill_ID.ReadOnly = true;
this.msg_WeightBill_ID.Visible = false;
//
// msg_Car_Name
//
this.msg_Car_Name.DataPropertyName = "Car_Name";
this.msg_Car_Name.HeaderText = "车辆";
this.msg_Car_Name.Name = "msg_Car_Name";
this.msg_Car_Name.ReadOnly = true;
this.msg_Car_Name.Width = 130;
//
// msg_Supplier_Name
//
this.msg_Supplier_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.msg_Supplier_Name.DataPropertyName = "Supplier_Name";
this.msg_Supplier_Name.HeaderText = "供应商";
this.msg_Supplier_Name.Name = "msg_Supplier_Name";
this.msg_Supplier_Name.ReadOnly = true;
//
// WeightForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1276, 831);
this.Controls.Add(this.msgGrid);
this.Controls.Add(this.label27);
this.Controls.Add(this.weightGrid);
this.Controls.Add(this.houseGird);
this.Controls.Add(this.farmerSelect);
@ -1584,6 +1667,7 @@
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.farmerMenu.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.msgGrid)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -1711,5 +1795,10 @@
private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_BankAccount;
private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_Tel;
private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_Address;
private System.Windows.Forms.DataGridView msgGrid;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.DataGridViewTextBoxColumn msg_WeightBill_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn msg_Car_Name;
private System.Windows.Forms.DataGridViewTextBoxColumn msg_Supplier_Name;
}
}

+ 32
- 0
ButcherWeight/WeightForm.cs View File

@ -42,6 +42,7 @@ namespace ButcherWeight
private List<WeightBill_Detail> _details = new List<WeightBill_Detail>();
private List<WeightBill_FarmerDetail> _fDelete = new List<WeightBill_FarmerDetail>();
private List<WeightDetail> weightRecord = new List<WeightDetail>();
Thread syncMsg;
public WeightForm()
{
@ -67,6 +68,7 @@ namespace ButcherWeight
weightGrid.AutoGenerateColumns = false;
houseGird.AutoGenerateColumns = false;
abnormalGrid.AutoGenerateColumns = false;
msgGrid.AutoGenerateColumns = false;
mainIsRun = true;
var syncThread = new Thread(SyncTask);
syncThread.Start();
@ -76,12 +78,32 @@ namespace ButcherWeight
syncThread.Abort();
if (_inQueryThread != null && _inQueryThread.IsAlive)
DisableWeight();
if (syncMsg != null && syncMsg.IsAlive)
syncMsg.Abort();
};
}
private void WeightForm_Load(object sender, EventArgs e)
{
BindWeightBill();
syncMsg = new Thread(BindMsgGrid);
syncMsg.Start();
}
private void BindMsgGrid()
{
while (true)
{
if (this.IsHandleCreated)
{
this.Invoke(new Action(() =>
{
msgGrid.DataSource = WeightBillRpc.GetMsgList();
msgGrid.Refresh();
}));
}
Thread.Sleep(2000);
}
}
private void SyncTask()
@ -613,5 +635,15 @@ namespace ButcherWeight
penMoneyInput.Text = (farmerGrid.DataSource as List<WeightBill_FarmerDetail>).Sum(x => x.Money ?? 0).ToString("#0.######");
}
}
private void msgGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0)
return;
var id = (long)msgGrid.CurrentRow.Cells["msg_WeightBill_ID"].Value;
Dmo = WeightBillRpc.Load(id);
AppToUI();
}
}
}

+ 9
- 0
ButcherWeight/WeightForm.resx View File

@ -258,6 +258,15 @@
<metadata name="farmerMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>143, 5</value>
</metadata>
<metadata name="msg_WeightBill_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="msg_Car_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="msg_Supplier_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>26</value>
</metadata>

+ 164
- 142
OrderConfirm/OrderConfirmForm.Designer.cs View File

@ -28,22 +28,23 @@
/// </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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.orderGrid = new BWP.WinFormControl.UDataGridView();
this.existBtn = new System.Windows.Forms.Button();
this.orderLabel = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
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();
this.syncBtn = new System.Windows.Forms.Button();
this.uDatePicker1 = new BWP.WinFormControl.UDatePicker();
this.label1 = new System.Windows.Forms.Label();
this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
this.setTop = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.finishNumberLabel = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.setTop = new System.Windows.Forms.CheckBox();
this.existBtn = new System.Windows.Forms.Button();
this.orderLabel = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.uDatePicker1 = new BWP.WinFormControl.UDatePicker();
this.orderGrid = new BWP.WinFormControl.UDataGridView();
this.C_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.C_IsHurryButcher = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.C_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -58,91 +59,10 @@
this.C_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.C_OK = new System.Windows.Forms.DataGridViewButtonColumn();
this.C_Finish = new System.Windows.Forms.DataGridViewButtonColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit();
this.SuspendLayout();
//
// orderGrid
//
this.orderGrid.AllowUserToAddRows = false;
this.orderGrid.AllowUserToDeleteRows = false;
this.orderGrid.AllowUserToResizeColumns = false;
this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.orderGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.C_ID,
this.C_IsHurryButcher,
this.C_WeightBill_ID,
this.C_SecondarySplit,
this.C_OrderState,
this.C_Date,
this.C_Technics,
this.C_Order,
this.C_B3WeighBill_ID,
this.C_Supplier_Name,
this.C_LiveColonyHouse_Name,
this.C_PlanNumber,
this.C_OK,
this.C_Finish});
this.orderGrid.Location = new System.Drawing.Point(35, 73);
this.orderGrid.MultiSelect = false;
this.orderGrid.Name = "orderGrid";
this.orderGrid.ReadOnly = true;
this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.Black;
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle5;
this.orderGrid.RowTemplate.Height = 60;
this.orderGrid.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.orderGrid.Size = new System.Drawing.Size(1006, 698);
this.orderGrid.TabIndex = 0;
this.orderGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellClick);
this.orderGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellContentClick);
//
// existBtn
//
this.existBtn.Font = new System.Drawing.Font("宋体", 15F);
this.existBtn.Location = new System.Drawing.Point(974, 12);
this.existBtn.Name = "existBtn";
this.existBtn.Size = new System.Drawing.Size(108, 41);
this.existBtn.TabIndex = 12;
this.existBtn.Text = "退出";
this.existBtn.UseVisualStyleBackColor = true;
this.existBtn.Click += new System.EventHandler(this.existBtn_Click);
//
// orderLabel
//
this.orderLabel.AutoSize = true;
this.orderLabel.Font = new System.Drawing.Font("宋体", 15F);
this.orderLabel.Location = new System.Drawing.Point(617, 21);
this.orderLabel.Name = "orderLabel";
this.orderLabel.Size = new System.Drawing.Size(19, 20);
this.orderLabel.TabIndex = 11;
this.orderLabel.Text = "0";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 15F);
this.label2.Location = new System.Drawing.Point(519, 21);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(109, 20);
this.label2.TabIndex = 10;
this.label2.Text = "排宰顺序:";
//
// syncBtn
//
this.syncBtn.Font = new System.Drawing.Font("宋体", 15F);
@ -154,20 +74,6 @@
this.syncBtn.UseVisualStyleBackColor = true;
this.syncBtn.Click += new System.EventHandler(this.syncBtn_Click);
//
// uDatePicker1
//
this.uDatePicker1.BackColor = System.Drawing.Color.White;
this.uDatePicker1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.uDatePicker1.Date = new System.DateTime(2017, 9, 5, 0, 0, 0, 0);
this.uDatePicker1.Font = new System.Drawing.Font("宋体", 15F);
this.uDatePicker1.Location = new System.Drawing.Point(158, 17);
this.uDatePicker1.Name = "uDatePicker1";
this.uDatePicker1.Size = new System.Drawing.Size(175, 30);
this.uDatePicker1.TabIndex = 8;
this.uDatePicker1.Text = "2017/09/05";
this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date;
//
// label1
//
this.label1.AutoSize = true;
@ -180,42 +86,159 @@
//
// vScrollBar1
//
this.vScrollBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.vScrollBar1.Location = new System.Drawing.Point(1042, 73);
this.vScrollBar1.Name = "vScrollBar1";
this.vScrollBar1.Size = new System.Drawing.Size(40, 698);
this.vScrollBar1.TabIndex = 52;
//
// setTop
// panel1
//
this.setTop.AutoSize = true;
this.setTop.Font = new System.Drawing.Font("宋体", 15F);
this.setTop.Location = new System.Drawing.Point(845, 20);
this.setTop.Name = "setTop";
this.setTop.Size = new System.Drawing.Size(68, 24);
this.setTop.TabIndex = 53;
this.setTop.Text = "置顶";
this.setTop.UseVisualStyleBackColor = true;
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.finishNumberLabel);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.setTop);
this.panel1.Controls.Add(this.existBtn);
this.panel1.Controls.Add(this.orderLabel);
this.panel1.Controls.Add(this.label2);
this.panel1.Location = new System.Drawing.Point(495, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(609, 56);
this.panel1.TabIndex = 56;
//
// finishNumberLabel
//
this.finishNumberLabel.AutoSize = true;
this.finishNumberLabel.Font = new System.Drawing.Font("宋体", 15F);
this.finishNumberLabel.Location = new System.Drawing.Point(758, 21);
this.finishNumberLabel.Font = new System.Drawing.Font("宋体", 23F);
this.finishNumberLabel.ForeColor = System.Drawing.Color.Red;
this.finishNumberLabel.Location = new System.Drawing.Point(279, 12);
this.finishNumberLabel.Name = "finishNumberLabel";
this.finishNumberLabel.Size = new System.Drawing.Size(19, 20);
this.finishNumberLabel.TabIndex = 55;
this.finishNumberLabel.Size = new System.Drawing.Size(30, 31);
this.finishNumberLabel.TabIndex = 61;
this.finishNumberLabel.Text = "0";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("宋体", 15F);
this.label4.Location = new System.Drawing.Point(660, 21);
this.label4.Location = new System.Drawing.Point(181, 17);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(109, 20);
this.label4.TabIndex = 54;
this.label4.TabIndex = 60;
this.label4.Text = "已杀头数:";
//
// setTop
//
this.setTop.AutoSize = true;
this.setTop.Font = new System.Drawing.Font("宋体", 15F);
this.setTop.Location = new System.Drawing.Point(371, 16);
this.setTop.Name = "setTop";
this.setTop.Size = new System.Drawing.Size(68, 24);
this.setTop.TabIndex = 59;
this.setTop.Text = "置顶";
this.setTop.UseVisualStyleBackColor = true;
//
// existBtn
//
this.existBtn.Font = new System.Drawing.Font("宋体", 15F);
this.existBtn.Location = new System.Drawing.Point(491, 8);
this.existBtn.Name = "existBtn";
this.existBtn.Size = new System.Drawing.Size(108, 41);
this.existBtn.TabIndex = 58;
this.existBtn.Text = "退出";
this.existBtn.UseVisualStyleBackColor = true;
this.existBtn.Click += new System.EventHandler(this.existBtn_Click);
//
// orderLabel
//
this.orderLabel.AutoSize = true;
this.orderLabel.Font = new System.Drawing.Font("宋体", 23F);
this.orderLabel.ForeColor = System.Drawing.Color.Red;
this.orderLabel.Location = new System.Drawing.Point(119, 11);
this.orderLabel.Name = "orderLabel";
this.orderLabel.Size = new System.Drawing.Size(30, 31);
this.orderLabel.TabIndex = 57;
this.orderLabel.Text = "0";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 15F);
this.label2.Location = new System.Drawing.Point(21, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(109, 20);
this.label2.TabIndex = 56;
this.label2.Text = "排宰顺序:";
//
// uDatePicker1
//
this.uDatePicker1.BackColor = System.Drawing.Color.White;
this.uDatePicker1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.uDatePicker1.Date = new System.DateTime(2017, 9, 5, 0, 0, 0, 0);
this.uDatePicker1.Font = new System.Drawing.Font("宋体", 15F);
this.uDatePicker1.Location = new System.Drawing.Point(158, 17);
this.uDatePicker1.Name = "uDatePicker1";
this.uDatePicker1.Size = new System.Drawing.Size(175, 30);
this.uDatePicker1.TabIndex = 8;
this.uDatePicker1.Text = "2017/09/05";
this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date;
//
// orderGrid
//
this.orderGrid.AllowUserToAddRows = false;
this.orderGrid.AllowUserToDeleteRows = false;
this.orderGrid.AllowUserToResizeColumns = false;
this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
this.orderGrid.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.orderGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.C_ID,
this.C_IsHurryButcher,
this.C_WeightBill_ID,
this.C_SecondarySplit,
this.C_OrderState,
this.C_Date,
this.C_Technics,
this.C_Order,
this.C_B3WeighBill_ID,
this.C_Supplier_Name,
this.C_LiveColonyHouse_Name,
this.C_PlanNumber,
this.C_OK,
this.C_Finish});
this.orderGrid.Location = new System.Drawing.Point(35, 73);
this.orderGrid.MultiSelect = false;
this.orderGrid.Name = "orderGrid";
this.orderGrid.ReadOnly = true;
this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle10.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.Black;
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle10;
this.orderGrid.RowTemplate.Height = 80;
this.orderGrid.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.orderGrid.Size = new System.Drawing.Size(1006, 698);
this.orderGrid.TabIndex = 0;
this.orderGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellClick);
this.orderGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellContentClick);
//
// C_ID
//
this.C_ID.DataPropertyName = "ID";
@ -288,19 +311,21 @@
//
// C_Supplier_Name
//
this.C_Supplier_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.C_Supplier_Name.DataPropertyName = "Supplier_Name";
this.C_Supplier_Name.HeaderText = "供应商";
this.C_Supplier_Name.MinimumWidth = 150;
this.C_Supplier_Name.Name = "C_Supplier_Name";
this.C_Supplier_Name.ReadOnly = true;
this.C_Supplier_Name.Width = 150;
//
// C_LiveColonyHouse_Name
//
this.C_LiveColonyHouse_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.C_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name";
this.C_LiveColonyHouse_Name.HeaderText = "圈舍";
this.C_LiveColonyHouse_Name.Name = "C_LiveColonyHouse_Name";
this.C_LiveColonyHouse_Name.ReadOnly = true;
this.C_LiveColonyHouse_Name.Width = 200;
//
// C_PlanNumber
//
@ -311,9 +336,9 @@
//
// C_OK
//
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(10);
this.C_OK.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.Padding = new System.Windows.Forms.Padding(10);
this.C_OK.DefaultCellStyle = dataGridViewCellStyle8;
this.C_OK.HeaderText = "开始";
this.C_OK.Name = "C_OK";
this.C_OK.ReadOnly = true;
@ -322,9 +347,9 @@
//
// C_Finish
//
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.Padding = new System.Windows.Forms.Padding(10);
this.C_Finish.DefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.Padding = new System.Windows.Forms.Padding(10);
this.C_Finish.DefaultCellStyle = dataGridViewCellStyle9;
this.C_Finish.HeaderText = "完毕";
this.C_Finish.Name = "C_Finish";
this.C_Finish.ReadOnly = true;
@ -337,24 +362,20 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1105, 805);
this.Controls.Add(this.finishNumberLabel);
this.Controls.Add(this.label4);
this.Controls.Add(this.setTop);
this.Controls.Add(this.panel1);
this.Controls.Add(this.vScrollBar1);
this.Controls.Add(this.existBtn);
this.Controls.Add(this.orderLabel);
this.Controls.Add(this.label2);
this.Controls.Add(this.syncBtn);
this.Controls.Add(this.uDatePicker1);
this.Controls.Add(this.label1);
this.Controls.Add(this.orderGrid);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.KeyPreview = true;
this.MaximizeBox = false;
this.Name = "OrderConfirmForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "上线确认";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OrderConfirmForm_KeyUp);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.orderGrid)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -364,16 +385,17 @@
#endregion
private BWP.WinFormControl.UDataGridView orderGrid;
private System.Windows.Forms.Button existBtn;
private System.Windows.Forms.Label orderLabel;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button syncBtn;
private BWP.WinFormControl.UDatePicker uDatePicker1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.VScrollBar vScrollBar1;
private System.Windows.Forms.CheckBox setTop;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label finishNumberLabel;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.CheckBox setTop;
private System.Windows.Forms.Button existBtn;
private System.Windows.Forms.Label orderLabel;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DataGridViewTextBoxColumn C_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn C_IsHurryButcher;
private System.Windows.Forms.DataGridViewTextBoxColumn C_WeightBill_ID;


Loading…
Cancel
Save