diff --git a/BO/BO.csproj b/BO/BO.csproj index e8b0f00..020523f 100644 --- a/BO/BO.csproj +++ b/BO/BO.csproj @@ -66,6 +66,7 @@ + diff --git a/BO/BO/BaseInfo/ProductBatch.cs b/BO/BO/BaseInfo/ProductBatch.cs new file mode 100644 index 0000000..9630611 --- /dev/null +++ b/BO/BO/BaseInfo/ProductBatch.cs @@ -0,0 +1,23 @@ +using Forks.EnterpriseServices.DomainObjects2; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BO.BO.BaseInfo +{ + [MapToTable("Butcher_ProductBatch")] + [KeyField("ID", KeyGenType.assigned)] + public class ProductBatch + { + public long ID { get; set; } + + public string Name { get; set; } + + public DateTime? Date { get; set; } + + [DbColumn(DefaultValue = 0)] + public int RowVersion { get; set; } + } +} diff --git a/BO/Utils/BillRpc/GradeAndWeightRpc.cs b/BO/Utils/BillRpc/GradeAndWeightRpc.cs index 73449f8..f11ecff 100644 --- a/BO/Utils/BillRpc/GradeAndWeightRpc.cs +++ b/BO/Utils/BillRpc/GradeAndWeightRpc.cs @@ -4,6 +4,7 @@ using Forks.EnterpriseServices.DomainObjects2; using Forks.EnterpriseServices.DomainObjects2.DQuery; using Forks.EnterpriseServices.SqlDoms; using Forks.JsonRpc.Client; +using Newtonsoft.Json; using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -92,8 +93,15 @@ namespace BO.Utils.BillRpc public static List GetDataConfirmList(DateTime date, int? order) { const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/GradeAndWeightRpc/GetDataConfirmList"; - var result = RpcFacade.Call(method, date, order); - return serializer.Deserialize>(result); + try + { + var result = RpcFacade.Call(method, date, order); + return serializer.Deserialize>(result); + } + catch + { + return new List(); + } } } @@ -233,9 +241,9 @@ namespace BO.Utils.BillRpc ClearUnSyncDelete(); var syncs = GetAllNeedSyncDetails(); foreach (var detail in syncs) - { + { const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/GradeAndWeightRpc/UpdateOrInsertDetailOrDelete"; - var id = RpcFacade.Call(method, serializer.Serialize(detail)); + var id = RpcFacade.Call(method, JsonConvert.SerializeObject(detail)); if (detail.IsDeleted) Delete(detail.SID); else @@ -295,7 +303,7 @@ namespace BO.Utils.BillRpc } } - public static Dictionary GetOrderIdx(DateTime date) + public static Dictionary GetOrderIdx(DateTime date) { var query = new DQueryDom(new JoinAlias(typeof(GradeAndWeight_Detail))); @@ -348,7 +356,7 @@ namespace BO.Utils.BillRpc public static void UpdateHistory(DateTime dateTime) { var lastOrder = 0; - var orderIdx=1; + var orderIdx = 1; using (var session = LocalDmoSession.New()) { if (CheckTodayUpdated(dateTime, session)) @@ -377,7 +385,7 @@ namespace BO.Utils.BillRpc { var query = new DQueryDom(new JoinAlias(typeof(GradeAndWeight_Detail))); query.Columns.Add(DQSelectColumn.Field("SID")); - query.Where.Conditions.Add(DQCondition.And( DQCondition.EQ("Date", dateTime), DQCondition.IsNotNull(DQExpression.Field("OrderIndex")))); + query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Date", dateTime), DQCondition.IsNotNull(DQExpression.Field("OrderIndex")))); return session.ExecuteScalar(query) != null; } @@ -389,15 +397,15 @@ namespace BO.Utils.BillRpc session.ExecuteNonQuery(update); } - static List> Get20180411Data(DateTime dateTime,IDmoSession session) + static List> Get20180411Data(DateTime dateTime, IDmoSession session) { var query = new DQueryDom(new JoinAlias(typeof(GradeAndWeight_Detail))); query.Columns.Add(DQSelectColumn.Field("Order")); query.Columns.Add(DQSelectColumn.Field("SID")); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("Order")); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("SID")); - query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Date",dateTime),DQCondition.IsNotNull(DQExpression.Field("Order")))); - var list = new List>(); + query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Date", dateTime), DQCondition.IsNotNull(DQExpression.Field("Order")))); + var list = new List>(); using (var reader = session.ExecuteReader(query)) { while (reader.Read()) @@ -407,5 +415,58 @@ namespace BO.Utils.BillRpc } return list; } + + public static List GetProductBatch() + { + var query = new DmoQuery(typeof(ProductBatch)); + using (var session = LocalDmoSession.New()) + { + return session.ExecuteList(query).Cast().ToList(); + } + } + + const string baseInfoRpcPath = @"/MainSystem/B3ClientService/Rpcs/SyncBaseInfoRpc/"; + public static void LoadProductBatchFromServer() + { + using (var session = LocalDmoSession.New()) + { + var local = GetLocalVersion(session); + var json = RpcFacade.Call(baseInfoRpcPath + "SyncProductBatchByType", 0, JsonConvert.SerializeObject(local)); + + var result = JsonConvert.DeserializeObject, List, List>>(json);//insert,update,delete + foreach (var item in result.Item1) + session.Insert(item); + foreach (var item in result.Item2) + session.Update(item); + if (result.Item3.Any()) + Delete(session, result.Item3); + + session.Commit(); + } + } + + static List> GetLocalVersion(IDmoSession session) + { + var query = new DQueryDom(new JoinAlias(typeof(ProductBatch))); + query.Columns.Add(DQSelectColumn.Field("ID")); + query.Columns.Add(DQSelectColumn.Field("RowVersion")); + //query.Where.Conditions.Add(DQCondition.GreaterThanOrEqual("Date", DateTime.Today.AddDays(-1))); + var list = new List>(); + using (var reader = session.ExecuteReader(query)) + { + while (reader.Read()) + { + list.Add(new Tuple((long)reader[0], (int)reader[1])); + } + } + return list; + } + + static void Delete(IDmoSession session, List ids) + { + var delete = new DQDeleteDom(typeof(ProductBatch)); + delete.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("ID"), ids.Select(x => DQExpression.Value(x)).ToArray())); + session.ExecuteNonQuery(delete); + } } } diff --git a/ButcherManage.BO/BaseInfo/BodyDiscont.cs b/ButcherManage.BO/BaseInfo/BodyDiscont.cs new file mode 100644 index 0000000..9041f01 --- /dev/null +++ b/ButcherManage.BO/BaseInfo/BodyDiscont.cs @@ -0,0 +1,15 @@ +using Forks.EnterpriseServices.DomainObjects2; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ButcherManage.BO +{ + [MapToTable("Butcher_BodyDiscont")] + public class BodyDiscont : BaseInfo + { + public decimal? Discont { get; set; } + } +} diff --git a/ButcherManage.BO/BaseInfo/Livestock.cs b/ButcherManage.BO/BaseInfo/Livestock.cs new file mode 100644 index 0000000..79ce240 --- /dev/null +++ b/ButcherManage.BO/BaseInfo/Livestock.cs @@ -0,0 +1,20 @@ +using Forks.EnterpriseServices.DomainObjects2; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ButcherManage.BO +{ + [MapToTable("Butcher_Livestock")] + public class Livestock : BaseInfo + { + public short Technics { get; set; } + + public int? SortNum { get; set; } + + [NonDmoProperty] + public string Technics_Name { get { return Technics == 0 ? "烫褪" : "毛剥"; } } + } +} diff --git a/ButcherManage.BO/Bill/GradeAndWeight.cs b/ButcherManage.BO/Bill/GradeAndWeight.cs new file mode 100644 index 0000000..f26f3fb --- /dev/null +++ b/ButcherManage.BO/Bill/GradeAndWeight.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ButcherManage.BO +{ + public class GradeAndWeight + { + public long? WeightID { get; set; } + + public long OrderDetail_ID { get; set; } + + public int Order { get; set; } + + public int Number { get; set; } + + public int Already { get; set; } + + public bool Finish { get; set; } + } +} diff --git a/ButcherManage.BO/Bill/GradeAndWeight_Detail.cs b/ButcherManage.BO/Bill/GradeAndWeight_Detail.cs new file mode 100644 index 0000000..c9df611 --- /dev/null +++ b/ButcherManage.BO/Bill/GradeAndWeight_Detail.cs @@ -0,0 +1,63 @@ +using Forks.EnterpriseServices.DomainObjects2; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ButcherManage.BO +{ + [Serializable] + [MapToTable("GradeAndWeight_Detail")] + [KeyField("SID", KeyGenType.identity)] + public class GradeAndWeight_Detail + { + /// + /// 本地ID + /// + public long SID { get; set; } + + public long? OrderDetail_ID { get; set; } + + public int? Order { get; set; } + + public int Index { get; set; } + + public int? OrderIndex { get; set; } + + public DateTime Date { get; set; } + + public short? Technics { get; set; } + + public string Technics_Name { get; set; } + + public long? Livestock_ID { get; set; } + + public string Livestock_Name { get; set; } + + public decimal? Weight { get; set; } + + [DbColumn(DbType = SqlDbType.DateTime)] + public DateTime Time { get; set; } + + /// + /// ServerID + /// + public long ID { get; set; } + + public bool Sync { get; set; } + + /// + /// 是否删除的 + /// + public bool IsDeleted { get; set; } + + //掉猪 + public bool IsDrop { get; set; } + + public string BarCode { get; set; } + + public long? ProductBatch_ID { get; set; } + } +} diff --git a/ButcherManage.BO/Bill/OrderGradeFinishRelate.cs b/ButcherManage.BO/Bill/OrderGradeFinishRelate.cs new file mode 100644 index 0000000..436252f --- /dev/null +++ b/ButcherManage.BO/Bill/OrderGradeFinishRelate.cs @@ -0,0 +1,26 @@ +using Forks.EnterpriseServices.DomainObjects2; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ButcherManage.BO +{ + [MapToTable("OrderGradeFinishRelate")] + public class OrderGradeFinishRelate + { + public OrderGradeFinishRelate(int order, DateTime date, short technics) + { + Order = order; + Date = date; + Technics = technics; + } + + public int Order { get; set; } + + public DateTime Date { get; set; } + + public short Technics { get; set; } + } +} diff --git a/ButcherManage.BO/ButcherManage.BO.csproj b/ButcherManage.BO/ButcherManage.BO.csproj index 4d748bc..da5b0d2 100644 --- a/ButcherManage.BO/ButcherManage.BO.csproj +++ b/ButcherManage.BO/ButcherManage.BO.csproj @@ -55,6 +55,8 @@ + + @@ -66,6 +68,9 @@ + + + diff --git a/ButcherManage.BO/Enums/DriveType.cs b/ButcherManage.BO/Enums/DriveType.cs index 6eb546a..133b595 100644 --- a/ButcherManage.BO/Enums/DriveType.cs +++ b/ButcherManage.BO/Enums/DriveType.cs @@ -11,5 +11,6 @@ namespace ButcherManage.BO.Enums 赶猪确认 = 103, 上线确认 = 104, 烫毛分线 = 105, + 胴体定级 = 106, } } diff --git a/ButcherManage.BO/LocalBL/BaseInfoBL.cs b/ButcherManage.BO/LocalBL/BaseInfoBL.cs new file mode 100644 index 0000000..1ee1e15 --- /dev/null +++ b/ButcherManage.BO/LocalBL/BaseInfoBL.cs @@ -0,0 +1,48 @@ +using Forks.EnterpriseServices.DomainObjects2; +using Forks.EnterpriseServices.DomainObjects2.DQuery; +using Forks.EnterpriseServices.SqlDoms; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ButcherManage.BO.LocalBL +{ + public static class BaseInfoBL + { + public static List GetList(int range = 10, params string[] extendFields) + where T : BaseInfo, new() + { + var query = new DQueryDom(new JoinAlias(typeof(T))); + query.Columns.Add(DQSelectColumn.Field("ID")); + query.Columns.Add(DQSelectColumn.Field("Name")); + foreach (var field in extendFields) + query.Columns.Add(DQSelectColumn.Field(field)); + query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true)); + query.Range = SelectRange.Top(range); + var result = new List(); + var type = typeof(T); + using (var session = DmoSession.New()) + { + using (var reader = session.ExecuteReader(query)) + { + while (reader.Read()) + { + var entity = new T(); + result.Add(entity); + entity.ID = (long)reader[0]; + entity.Name = (string)reader[1]; + var idx = 2; + foreach (var field in extendFields) + { + type.GetProperty(field).SetValue(entity, reader[idx]); + idx++; + } + } + } + } + return result; + } + } +} diff --git a/ButcherManage.BO/LocalBL/BaseInfoSyncRpc.cs b/ButcherManage.BO/LocalBL/BaseInfoSyncRpc.cs new file mode 100644 index 0000000..4fb48fc --- /dev/null +++ b/ButcherManage.BO/LocalBL/BaseInfoSyncRpc.cs @@ -0,0 +1,80 @@ +using Forks.EnterpriseServices.DomainObjects2; +using Forks.EnterpriseServices.DomainObjects2.DQuery; +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 BaseInfoSyncRpc + { + const string baseInfoRpcPath = @"/MainSystem/B3ClientService/Rpcs/SyncBaseInfoRpc/"; + static void TruncateTable(Type type, IDmoSession session) + { + var table = DmoInfo.Get(type).MappedDBObject; + var sql = string.Format("truncate table [{0}]", table); + session.ExecuteSqlNonQuery(sql); + } + + public static void SyncBaseInfo(string methodName = null) + where T : BaseInfo + { + var type = typeof(T); + if (string.IsNullOrEmpty(methodName)) + methodName = "Sync" + type.Name; + var json = SimpleRest.Call(baseInfoRpcPath + methodName); + var list = JsonConvert.DeserializeObject>(json); + using (var session = DmoSession.New()) + { + TruncateTable(type, session); + foreach (var item in list) + session.Insert(item); + session.Commit(); + } + } + + public static void SyncBodyDiscont() + { + var json = SimpleRest.Call(baseInfoRpcPath + "SyncBodyDiscont"); + var list = JsonConvert.DeserializeObject>(json); + using (var session = DmoSession.New()) + { + DeleteLocal(session, list.Select(x => x.ID)); + var exist = GetLocal(session); + foreach (var item in list) + { + if (exist.Any(x => x == item.ID)) + UpdateName(session, item); + else + session.Insert(item); + } + session.Commit(); + } + } + + static void DeleteLocal(IDmoSession session, IEnumerable ids) + { + var del = new DQDeleteDom(typeof(BodyDiscont)); + del.Where.Conditions.Add(DQCondition.NotInList(DQExpression.Field("ID"), ids.Select(x => DQExpression.Value(x)).ToArray())); + session.ExecuteNonQuery(del); + } + + static List GetLocal(IDmoSession session) + { + var query = new DQueryDom(new JoinAlias(typeof(BodyDiscont))); + query.Columns.Add(DQSelectColumn.Field("ID")); + return query.EExecuteList(session); + } + + static void UpdateName(IDmoSession session, BodyDiscont entity) + { + var update = new DQUpdateDom(typeof(BodyDiscont)); + update.Columns.Add(new DQUpdateColumn("Name", entity.Name)); + update.Where.Conditions.Add(DQCondition.EQ("ID", entity.ID)); + session.ExecuteNonQuery(update); + } + } +} diff --git a/ButcherManage.BO/LocalBL/GradeAndWeightBL.cs b/ButcherManage.BO/LocalBL/GradeAndWeightBL.cs new file mode 100644 index 0000000..e522525 --- /dev/null +++ b/ButcherManage.BO/LocalBL/GradeAndWeightBL.cs @@ -0,0 +1,57 @@ +using Forks.EnterpriseServices.DomainObjects2; +using Forks.EnterpriseServices.DomainObjects2.DQuery; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ButcherManage.BO; + +namespace ButcherManage.BO.LocalBL +{ + public static class GradeAndWeightBL + { + public static IEnumerable GetLivestock() + { + var query = new DQueryDom(new JoinAlias(typeof(Livestock))); + query.OrderBy.Expressions.Add(DQOrderByExpression.Create("SortNum")); + query.Columns.Add(DQSelectColumn.Field("ID")); + query.Columns.Add(DQSelectColumn.Field("Name")); + query.Columns.Add(DQSelectColumn.Field("Technics")); + using (var session = DmoSession.New()) + { + var list = query.EExecuteList(session); + return list.Select(x => new Livestock { ID = x.Item1, Name = x.Item2, Technics = x.Item3 }); + } + } + + public static IEnumerable GetBodyDiscont() + { + var dom = new DmoQuery(typeof(BodyDiscont)); + dom.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID")); + using (var session = DmoSession.New()) + { + return session.ExecuteList(dom).Cast(); + } + } + + //public static void SetGradeFinish(int order, DateTime date, short technics) + //{ + // using (var session = DmoSession.New()) + // { + // if (Finished(session, date, order, technics)) + // return; + // session.Insert(new OrderGradeFinishRelate(order, date, technics)); + // session.Commit(); + // } + //} + + //static bool Finished(IDmoSession session, DateTime date, int order, short technics) + //{ + // var query = new DQueryDom(new JoinAlias(typeof(OrderGradeFinishRelate))); + // query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Order", order), DQCondition.EQ("Date", date), DQCondition.EQ("Technics", technics))); + // query.Columns.Add(DQSelectColumn.Create(DQExpression.Value("1"), "c")); + // return session.ExecuteScalar(query) != null; + //} + } +} diff --git a/ButcherManage.Form/ButcherManage.Form.csproj b/ButcherManage.Form/ButcherManage.Form.csproj index 42ee2c0..d468fe7 100644 --- a/ButcherManage.Form/ButcherManage.Form.csproj +++ b/ButcherManage.Form/ButcherManage.Form.csproj @@ -72,6 +72,12 @@ PickOutConfirm.cs + + True + True + Resources.resx + + @@ -83,6 +89,10 @@ PickOutConfirm.cs + + ResXFileCodeGenerator + Resources.Designer.cs + @@ -96,6 +106,18 @@ MSBuild:Compile + + + + + + + + + + + + if $(Configuration)==Debug ( diff --git a/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.Designer.cs b/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.Designer.cs new file mode 100644 index 0000000..bd646c5 --- /dev/null +++ b/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.Designer.cs @@ -0,0 +1,1012 @@ +namespace ButcherManage.GradeAndWeight_ +{ + partial class GradeAndWeightForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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 dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = 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(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel6 = new System.Windows.Forms.Panel(); + this.uTimerLabel1 = new WinFormControl.UTimerLabel(); + this.closeBtn = new System.Windows.Forms.Panel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.uWeightControl1 = new WinFormControl.UWeightControl(); + this.nButton1 = new WinFormControl.NButton(); + this.isPrintCheckBox = new System.Windows.Forms.CheckBox(); + this.netStateWatch1 = new WinFormControl.NetStateWatch(); + this.nButton2 = new WinFormControl.NButton(); + this.uLabel1 = new WinFormControl.ULabel(); + this.datePicker = new System.Windows.Forms.TextBox(); + this.nButton3 = new WinFormControl.NButton(); + this.panel4 = new System.Windows.Forms.Panel(); + this.productBatchSelect = new System.Windows.Forms.ComboBox(); + this.uLabel9 = new WinFormControl.ULabel(); + this.panel7 = new System.Windows.Forms.Panel(); + this.nButton6 = new WinFormControl.NButton(); + this.modifyPanel = new System.Windows.Forms.Panel(); + this.cancelBtn = new System.Windows.Forms.Button(); + this.stateLabel = new System.Windows.Forms.Label(); + this.nButton5 = new WinFormControl.NButton(); + this.lblSucessed = new System.Windows.Forms.Label(); + this.nButton4 = new WinFormControl.NButton(); + this.alreadyLabel = new WinFormControl.ULabel(); + this.uLabel8 = new WinFormControl.ULabel(); + this.orderLabel = new WinFormControl.ULabel(); + this.uLabel5 = new WinFormControl.ULabel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.ttPanel = new System.Windows.Forms.FlowLayoutPanel(); + this.tangScrollBar = new System.Windows.Forms.VScrollBar(); + this.tangGridView = new WinFormControl.UDataGridView(); + this.T_OrderDetail_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Finish = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_WeightID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Order = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Already = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Btn = new System.Windows.Forms.DataGridViewButtonColumn(); + this.uLabel2 = new WinFormControl.ULabel(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.mbPanel = new System.Windows.Forms.FlowLayoutPanel(); + this.maoScrollBar = new System.Windows.Forms.VScrollBar(); + this.maoGridView = new WinFormControl.UDataGridView(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewButtonColumn1 = new System.Windows.Forms.DataGridViewButtonColumn(); + this.uLabel3 = new WinFormControl.ULabel(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.historyGrid = new WinFormControl.UDataGridView(); + this.H_SID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Livestock_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_IsDrop = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Technics = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_OrderIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Order = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Technics_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Livestock_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Time = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.vScrollBar2 = new System.Windows.Forms.VScrollBar(); + this.uLabel4 = new WinFormControl.ULabel(); + this.discontPanel = new System.Windows.Forms.FlowLayoutPanel(); + this.panel1.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel7.SuspendLayout(); + this.modifyPanel.SuspendLayout(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tangGridView)).BeginInit(); + this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.maoGridView)).BeginInit(); + this.groupBox3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.historyGrid)).BeginInit(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(88)))), ((int)(((byte)(216))))); + this.panel1.Controls.Add(this.panel6); + this.panel1.Controls.Add(this.uTimerLabel1); + this.panel1.Controls.Add(this.closeBtn); + this.panel1.Controls.Add(this.panel3); + this.panel1.Controls.Add(this.panel2); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1364, 50); + this.panel1.TabIndex = 0; + // + // panel6 + // + this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.panel6.BackColor = System.Drawing.Color.White; + this.panel6.Location = new System.Drawing.Point(1308, 7); + this.panel6.Name = "panel6"; + this.panel6.Size = new System.Drawing.Size(1, 38); + this.panel6.TabIndex = 36; + // + // 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.ForeColor = System.Drawing.Color.White; + this.uTimerLabel1.Format = "M月d日 H:mm:ss"; + this.uTimerLabel1.Location = new System.Drawing.Point(1155, 17); + this.uTimerLabel1.Name = "uTimerLabel1"; + this.uTimerLabel1.Size = new System.Drawing.Size(134, 18); + this.uTimerLabel1.TabIndex = 35; + this.uTimerLabel1.Text = "7月6日 8:38:49"; + // + // closeBtn + // + this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.closeBtn.BackColor = System.Drawing.Color.Transparent; + this.closeBtn.BackgroundImage = global::ButcherManage.Properties.Resources.close; + this.closeBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.closeBtn.Location = new System.Drawing.Point(1321, 12); + this.closeBtn.Name = "closeBtn"; + this.closeBtn.Size = new System.Drawing.Size(31, 23); + this.closeBtn.TabIndex = 34; + this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); + // + // panel3 + // + this.panel3.BackColor = System.Drawing.Color.Transparent; + this.panel3.BackgroundImage = global::ButcherManage.Properties.Resources.title; + this.panel3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.panel3.Location = new System.Drawing.Point(70, 14); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(159, 20); + this.panel3.TabIndex = 1; + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.Transparent; + this.panel2.BackgroundImage = global::ButcherManage.Properties.Resources.wfLogo; + this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.panel2.Location = new System.Drawing.Point(12, 8); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(60, 35); + this.panel2.TabIndex = 1; + // + // uWeightControl1 + // + this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; + this.uWeightControl1.Location = new System.Drawing.Point(3, 3); + this.uWeightControl1.Name = "uWeightControl1"; + this.uWeightControl1.Size = new System.Drawing.Size(349, 78); + this.uWeightControl1.TabIndex = 1; + this.uWeightControl1.WeightFalg = null; + // + // nButton1 + // + this.nButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton1.ClickColor = System.Drawing.Color.YellowGreen; + this.nButton1.Font = new System.Drawing.Font("宋体", 12F); + this.nButton1.ForeColor = System.Drawing.Color.White; + this.nButton1.Location = new System.Drawing.Point(472, 4); + this.nButton1.Name = "nButton1"; + this.nButton1.PlaySound = false; + this.nButton1.Size = new System.Drawing.Size(108, 35); + this.nButton1.SoundType = WinFormControl.SoundType.Click; + this.nButton1.TabIndex = 2; + this.nButton1.Text = "打印选中"; + this.nButton1.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton1.UseVisualStyleBackColor = false; + // + // isPrintCheckBox + // + this.isPrintCheckBox.AutoSize = true; + this.isPrintCheckBox.Font = new System.Drawing.Font("宋体", 15F); + this.isPrintCheckBox.Location = new System.Drawing.Point(358, 9); + this.isPrintCheckBox.Name = "isPrintCheckBox"; + this.isPrintCheckBox.Size = new System.Drawing.Size(108, 24); + this.isPrintCheckBox.TabIndex = 32; + this.isPrintCheckBox.Text = "打印条码"; + this.isPrintCheckBox.UseVisualStyleBackColor = true; + // + // netStateWatch1 + // + this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; + this.netStateWatch1.Location = new System.Drawing.Point(606, 3); + this.netStateWatch1.Name = "netStateWatch1"; + this.netStateWatch1.Size = new System.Drawing.Size(90, 39); + this.netStateWatch1.TabIndex = 33; + // + // nButton2 + // + this.nButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton2.ClickColor = System.Drawing.Color.YellowGreen; + this.nButton2.Font = new System.Drawing.Font("宋体", 12F); + this.nButton2.ForeColor = System.Drawing.Color.White; + this.nButton2.Location = new System.Drawing.Point(47, 1); + this.nButton2.Name = "nButton2"; + this.nButton2.PlaySound = false; + this.nButton2.Size = new System.Drawing.Size(108, 35); + this.nButton2.SoundType = WinFormControl.SoundType.Click; + this.nButton2.TabIndex = 34; + this.nButton2.Text = "扣重项"; + this.nButton2.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton2.UseVisualStyleBackColor = false; + // + // 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(11, 100); + this.uLabel1.Name = "uLabel1"; + this.uLabel1.Size = new System.Drawing.Size(109, 20); + this.uLabel1.TabIndex = 35; + this.uLabel1.Text = "宰杀日期:"; + // + // datePicker + // + this.datePicker.Font = new System.Drawing.Font("宋体", 15F); + this.datePicker.Location = new System.Drawing.Point(118, 97); + this.datePicker.Name = "datePicker"; + this.datePicker.ReadOnly = true; + this.datePicker.Size = new System.Drawing.Size(227, 30); + this.datePicker.TabIndex = 36; + // + // nButton3 + // + this.nButton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton3.ClickColor = System.Drawing.Color.YellowGreen; + this.nButton3.Font = new System.Drawing.Font("宋体", 12F); + this.nButton3.ForeColor = System.Drawing.Color.White; + this.nButton3.Location = new System.Drawing.Point(358, 95); + this.nButton3.Name = "nButton3"; + this.nButton3.PlaySound = false; + this.nButton3.Size = new System.Drawing.Size(108, 35); + this.nButton3.SoundType = WinFormControl.SoundType.Click; + this.nButton3.TabIndex = 37; + this.nButton3.Text = "同步数据"; + this.nButton3.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton3.UseVisualStyleBackColor = false; + this.nButton3.WithStataHode = true; + // + // panel4 + // + this.panel4.Controls.Add(this.productBatchSelect); + this.panel4.Controls.Add(this.uLabel9); + this.panel4.Controls.Add(this.panel7); + this.panel4.Controls.Add(this.netStateWatch1); + this.panel4.Controls.Add(this.alreadyLabel); + this.panel4.Controls.Add(this.uLabel8); + this.panel4.Controls.Add(this.orderLabel); + this.panel4.Controls.Add(this.uLabel5); + this.panel4.Controls.Add(this.uWeightControl1); + this.panel4.Controls.Add(this.nButton3); + this.panel4.Controls.Add(this.nButton1); + this.panel4.Controls.Add(this.datePicker); + this.panel4.Controls.Add(this.isPrintCheckBox); + this.panel4.Controls.Add(this.uLabel1); + this.panel4.Dock = System.Windows.Forms.DockStyle.Top; + this.panel4.Location = new System.Drawing.Point(0, 50); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(1364, 139); + this.panel4.TabIndex = 38; + // + // productBatchSelect + // + this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); + this.productBatchSelect.FormattingEnabled = true; + this.productBatchSelect.Location = new System.Drawing.Point(472, 54); + this.productBatchSelect.Name = "productBatchSelect"; + this.productBatchSelect.Size = new System.Drawing.Size(224, 28); + this.productBatchSelect.TabIndex = 49; + // + // uLabel9 + // + this.uLabel9.AutoSize = true; + this.uLabel9.BackColor = System.Drawing.Color.Transparent; + this.uLabel9.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel9.Location = new System.Drawing.Point(397, 58); + this.uLabel9.Name = "uLabel9"; + this.uLabel9.Size = new System.Drawing.Size(69, 20); + this.uLabel9.TabIndex = 48; + this.uLabel9.Text = "批次:"; + // + // panel7 + // + this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.panel7.Controls.Add(this.nButton2); + this.panel7.Controls.Add(this.nButton6); + this.panel7.Controls.Add(this.modifyPanel); + this.panel7.Controls.Add(this.nButton5); + this.panel7.Controls.Add(this.lblSucessed); + this.panel7.Controls.Add(this.nButton4); + this.panel7.Location = new System.Drawing.Point(803, 1); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(560, 138); + this.panel7.TabIndex = 47; + // + // nButton6 + // + this.nButton6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton6.ClickColor = System.Drawing.Color.YellowGreen; + this.nButton6.Font = new System.Drawing.Font("宋体", 12F); + this.nButton6.ForeColor = System.Drawing.Color.White; + this.nButton6.Location = new System.Drawing.Point(183, 1); + this.nButton6.Name = "nButton6"; + this.nButton6.PlaySound = false; + this.nButton6.Size = new System.Drawing.Size(108, 35); + this.nButton6.SoundType = WinFormControl.SoundType.Click; + this.nButton6.TabIndex = 46; + this.nButton6.Text = "掉猪"; + this.nButton6.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton6.UseVisualStyleBackColor = false; + // + // modifyPanel + // + this.modifyPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.modifyPanel.Controls.Add(this.cancelBtn); + this.modifyPanel.Controls.Add(this.stateLabel); + this.modifyPanel.Location = new System.Drawing.Point(50, 78); + this.modifyPanel.Name = "modifyPanel"; + this.modifyPanel.Size = new System.Drawing.Size(438, 57); + this.modifyPanel.TabIndex = 42; + this.modifyPanel.Visible = false; + // + // cancelBtn + // + this.cancelBtn.Font = new System.Drawing.Font("宋体", 15F); + this.cancelBtn.ForeColor = System.Drawing.Color.Red; + this.cancelBtn.Location = new System.Drawing.Point(330, 6); + this.cancelBtn.Name = "cancelBtn"; + this.cancelBtn.Size = new System.Drawing.Size(102, 43); + this.cancelBtn.TabIndex = 36; + this.cancelBtn.Text = "取消"; + this.cancelBtn.UseVisualStyleBackColor = true; + // + // stateLabel + // + this.stateLabel.AutoSize = true; + this.stateLabel.Font = new System.Drawing.Font("宋体", 15F); + this.stateLabel.ForeColor = System.Drawing.Color.Red; + this.stateLabel.Location = new System.Drawing.Point(14, 19); + this.stateLabel.Name = "stateLabel"; + this.stateLabel.Size = new System.Drawing.Size(289, 20); + this.stateLabel.TabIndex = 35; + this.stateLabel.Text = "您正在修改序号为 1000 的信息"; + // + // nButton5 + // + this.nButton5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton5.ClickColor = System.Drawing.Color.YellowGreen; + this.nButton5.Font = new System.Drawing.Font("宋体", 12F); + this.nButton5.ForeColor = System.Drawing.Color.White; + this.nButton5.Location = new System.Drawing.Point(445, 1); + this.nButton5.Name = "nButton5"; + this.nButton5.PlaySound = false; + this.nButton5.Size = new System.Drawing.Size(108, 35); + this.nButton5.SoundType = WinFormControl.SoundType.Click; + this.nButton5.TabIndex = 45; + this.nButton5.Text = "数据校验"; + this.nButton5.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton5.UseVisualStyleBackColor = false; + // + // lblSucessed + // + this.lblSucessed.BackColor = System.Drawing.Color.Lime; + this.lblSucessed.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblSucessed.ForeColor = System.Drawing.Color.Red; + this.lblSucessed.Location = new System.Drawing.Point(9, 38); + this.lblSucessed.Name = "lblSucessed"; + this.lblSucessed.Size = new System.Drawing.Size(267, 39); + this.lblSucessed.TabIndex = 43; + this.lblSucessed.Text = "插入级别成功"; + this.lblSucessed.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.lblSucessed.Visible = false; + // + // nButton4 + // + this.nButton4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton4.ClickColor = System.Drawing.Color.YellowGreen; + this.nButton4.Font = new System.Drawing.Font("宋体", 12F); + this.nButton4.ForeColor = System.Drawing.Color.White; + this.nButton4.Location = new System.Drawing.Point(314, 1); + this.nButton4.Name = "nButton4"; + this.nButton4.PlaySound = false; + this.nButton4.Size = new System.Drawing.Size(108, 35); + this.nButton4.SoundType = WinFormControl.SoundType.Click; + this.nButton4.TabIndex = 44; + this.nButton4.Text = "删除"; + this.nButton4.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); + this.nButton4.UseVisualStyleBackColor = false; + // + // alreadyLabel + // + this.alreadyLabel.AutoSize = true; + this.alreadyLabel.BackColor = System.Drawing.Color.Transparent; + this.alreadyLabel.Font = new System.Drawing.Font("宋体", 15F); + this.alreadyLabel.ForeColor = System.Drawing.Color.Red; + this.alreadyLabel.Location = new System.Drawing.Point(778, 107); + this.alreadyLabel.Name = "alreadyLabel"; + this.alreadyLabel.Size = new System.Drawing.Size(19, 20); + this.alreadyLabel.TabIndex = 41; + this.alreadyLabel.Text = "0"; + // + // uLabel8 + // + this.uLabel8.AutoSize = true; + this.uLabel8.BackColor = System.Drawing.Color.Transparent; + this.uLabel8.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel8.Location = new System.Drawing.Point(675, 107); + this.uLabel8.Name = "uLabel8"; + this.uLabel8.Size = new System.Drawing.Size(109, 20); + this.uLabel8.TabIndex = 40; + this.uLabel8.Text = "已杀头数:"; + // + // orderLabel + // + this.orderLabel.AutoSize = true; + this.orderLabel.BackColor = System.Drawing.Color.Transparent; + this.orderLabel.Font = new System.Drawing.Font("宋体", 15F); + this.orderLabel.ForeColor = System.Drawing.Color.Red; + this.orderLabel.Location = new System.Drawing.Point(602, 107); + this.orderLabel.Name = "orderLabel"; + this.orderLabel.Size = new System.Drawing.Size(19, 20); + this.orderLabel.TabIndex = 39; + this.orderLabel.Text = "0"; + // + // uLabel5 + // + this.uLabel5.AutoSize = true; + this.uLabel5.BackColor = System.Drawing.Color.Transparent; + this.uLabel5.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel5.Location = new System.Drawing.Point(506, 107); + this.uLabel5.Name = "uLabel5"; + this.uLabel5.Size = new System.Drawing.Size(109, 20); + this.uLabel5.TabIndex = 38; + this.uLabel5.Text = "屠宰顺序:"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.ttPanel); + this.groupBox1.Controls.Add(this.tangScrollBar); + this.groupBox1.Controls.Add(this.tangGridView); + this.groupBox1.Controls.Add(this.uLabel2); + this.groupBox1.Location = new System.Drawing.Point(12, 206); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(837, 239); + this.groupBox1.TabIndex = 39; + this.groupBox1.TabStop = false; + // + // ttPanel + // + this.ttPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.ttPanel.Location = new System.Drawing.Point(492, 36); + this.ttPanel.Name = "ttPanel"; + this.ttPanel.Size = new System.Drawing.Size(337, 194); + this.ttPanel.TabIndex = 53; + // + // tangScrollBar + // + this.tangScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.tangScrollBar.Location = new System.Drawing.Point(446, 36); + this.tangScrollBar.Name = "tangScrollBar"; + this.tangScrollBar.Size = new System.Drawing.Size(40, 194); + this.tangScrollBar.TabIndex = 52; + // + // tangGridView + // + this.tangGridView.AllowUserToAddRows = false; + this.tangGridView.AllowUserToDeleteRows = false; + this.tangGridView.AllowUserToResizeColumns = false; + this.tangGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.tangGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10; + this.tangGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.tangGridView.BackgroundColor = System.Drawing.Color.White; + this.tangGridView.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.tangGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; + this.tangGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.tangGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.T_OrderDetail_ID, + this.T_Finish, + this.T_WeightID, + this.T_Order, + this.T_Number, + this.T_Already, + this.T_Btn}); + this.tangGridView.Location = new System.Drawing.Point(4, 36); + this.tangGridView.MultiSelect = false; + this.tangGridView.Name = "tangGridView"; + this.tangGridView.ReadOnly = true; + this.tangGridView.RowHeadersVisible = false; + dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.tangGridView.RowsDefaultCellStyle = dataGridViewCellStyle12; + this.tangGridView.RowTemplate.Height = 23; + this.tangGridView.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.tangGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.tangGridView.Size = new System.Drawing.Size(440, 194); + this.tangGridView.TabIndex = 1; + // + // T_OrderDetail_ID + // + this.T_OrderDetail_ID.HeaderText = "OrderDetail_ID"; + this.T_OrderDetail_ID.Name = "T_OrderDetail_ID"; + this.T_OrderDetail_ID.ReadOnly = true; + this.T_OrderDetail_ID.Visible = false; + // + // T_Finish + // + this.T_Finish.HeaderText = "Finish"; + this.T_Finish.Name = "T_Finish"; + this.T_Finish.ReadOnly = true; + this.T_Finish.Visible = false; + // + // T_WeightID + // + this.T_WeightID.HeaderText = "磅单号"; + this.T_WeightID.Name = "T_WeightID"; + this.T_WeightID.ReadOnly = true; + this.T_WeightID.Width = 90; + // + // T_Order + // + this.T_Order.HeaderText = "顺序号"; + this.T_Order.Name = "T_Order"; + this.T_Order.ReadOnly = true; + this.T_Order.Width = 90; + // + // T_Number + // + this.T_Number.HeaderText = "头数"; + this.T_Number.Name = "T_Number"; + this.T_Number.ReadOnly = true; + this.T_Number.Width = 80; + // + // T_Already + // + this.T_Already.HeaderText = "已宰"; + this.T_Already.Name = "T_Already"; + this.T_Already.ReadOnly = true; + this.T_Already.Width = 80; + // + // T_Btn + // + this.T_Btn.HeaderText = "完毕"; + this.T_Btn.Name = "T_Btn"; + this.T_Btn.ReadOnly = true; + // + // uLabel2 + // + this.uLabel2.AutoSize = true; + this.uLabel2.BackColor = System.Drawing.Color.Transparent; + this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel2.Location = new System.Drawing.Point(0, -1); + this.uLabel2.Name = "uLabel2"; + this.uLabel2.Size = new System.Drawing.Size(49, 20); + this.uLabel2.TabIndex = 0; + this.uLabel2.Text = "烫褪"; + // + // groupBox2 + // + this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.groupBox2.Controls.Add(this.mbPanel); + this.groupBox2.Controls.Add(this.maoScrollBar); + this.groupBox2.Controls.Add(this.maoGridView); + this.groupBox2.Controls.Add(this.uLabel3); + this.groupBox2.Location = new System.Drawing.Point(12, 464); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(837, 242); + this.groupBox2.TabIndex = 40; + this.groupBox2.TabStop = false; + // + // mbPanel + // + this.mbPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.mbPanel.Location = new System.Drawing.Point(494, 39); + this.mbPanel.Name = "mbPanel"; + this.mbPanel.Size = new System.Drawing.Size(337, 194); + this.mbPanel.TabIndex = 56; + // + // maoScrollBar + // + this.maoScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.maoScrollBar.Location = new System.Drawing.Point(448, 39); + this.maoScrollBar.Name = "maoScrollBar"; + this.maoScrollBar.Size = new System.Drawing.Size(40, 194); + this.maoScrollBar.TabIndex = 55; + // + // maoGridView + // + this.maoGridView.AllowUserToAddRows = false; + this.maoGridView.AllowUserToDeleteRows = false; + this.maoGridView.AllowUserToResizeColumns = false; + this.maoGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.maoGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; + this.maoGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.maoGridView.BackgroundColor = System.Drawing.Color.White; + this.maoGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 12F); + dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.maoGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; + this.maoGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.maoGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn1, + this.dataGridViewTextBoxColumn2, + this.dataGridViewTextBoxColumn3, + this.dataGridViewTextBoxColumn4, + this.dataGridViewTextBoxColumn5, + this.dataGridViewTextBoxColumn6, + this.dataGridViewButtonColumn1}); + this.maoGridView.Location = new System.Drawing.Point(6, 39); + this.maoGridView.MultiSelect = false; + this.maoGridView.Name = "maoGridView"; + this.maoGridView.ReadOnly = true; + this.maoGridView.RowHeadersVisible = false; + dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.maoGridView.RowsDefaultCellStyle = dataGridViewCellStyle15; + this.maoGridView.RowTemplate.Height = 23; + this.maoGridView.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.maoGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.maoGridView.Size = new System.Drawing.Size(440, 194); + this.maoGridView.TabIndex = 54; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.HeaderText = "OrderDetail_ID"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; + this.dataGridViewTextBoxColumn1.Visible = false; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.HeaderText = "Finish"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.dataGridViewTextBoxColumn2.Visible = false; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.HeaderText = "磅单号"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.ReadOnly = true; + this.dataGridViewTextBoxColumn3.Width = 90; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.HeaderText = "顺序号"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Width = 90; + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.HeaderText = "头数"; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + this.dataGridViewTextBoxColumn5.ReadOnly = true; + this.dataGridViewTextBoxColumn5.Width = 80; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.HeaderText = "已宰"; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + this.dataGridViewTextBoxColumn6.ReadOnly = true; + this.dataGridViewTextBoxColumn6.Width = 80; + // + // dataGridViewButtonColumn1 + // + this.dataGridViewButtonColumn1.HeaderText = "完毕"; + this.dataGridViewButtonColumn1.Name = "dataGridViewButtonColumn1"; + this.dataGridViewButtonColumn1.ReadOnly = true; + // + // uLabel3 + // + this.uLabel3.AutoSize = true; + this.uLabel3.BackColor = System.Drawing.Color.Transparent; + this.uLabel3.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel3.Location = new System.Drawing.Point(0, -2); + this.uLabel3.Name = "uLabel3"; + this.uLabel3.Size = new System.Drawing.Size(49, 20); + this.uLabel3.TabIndex = 1; + this.uLabel3.Text = "毛剥"; + // + // groupBox3 + // + this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox3.Controls.Add(this.historyGrid); + this.groupBox3.Controls.Add(this.vScrollBar2); + this.groupBox3.Controls.Add(this.uLabel4); + this.groupBox3.Location = new System.Drawing.Point(860, 206); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(422, 500); + this.groupBox3.TabIndex = 41; + this.groupBox3.TabStop = false; + this.groupBox3.Text = " "; + // + // historyGrid + // + this.historyGrid.AllowUserToAddRows = false; + this.historyGrid.AllowUserToDeleteRows = false; + this.historyGrid.AllowUserToResizeColumns = false; + this.historyGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.historyGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; + this.historyGrid.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.historyGrid.BackgroundColor = System.Drawing.Color.White; + this.historyGrid.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.historyGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17; + this.historyGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.historyGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.H_SID, + this.H_Livestock_ID, + this.H_IsDrop, + this.H_Technics, + this.H_OrderIndex, + this.H_Index, + this.H_Order, + this.H_Technics_Name, + this.H_Livestock_Name, + this.H_Weight, + this.H_Time}); + this.historyGrid.Location = new System.Drawing.Point(6, 36); + this.historyGrid.MultiSelect = false; + this.historyGrid.Name = "historyGrid"; + this.historyGrid.ReadOnly = true; + this.historyGrid.RowHeadersVisible = false; + dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.historyGrid.RowsDefaultCellStyle = dataGridViewCellStyle18; + this.historyGrid.RowTemplate.Height = 23; + this.historyGrid.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.historyGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.historyGrid.Size = new System.Drawing.Size(370, 455); + this.historyGrid.TabIndex = 54; + // + // H_SID + // + this.H_SID.HeaderText = "SID"; + this.H_SID.Name = "H_SID"; + this.H_SID.ReadOnly = true; + this.H_SID.Visible = false; + // + // H_Livestock_ID + // + this.H_Livestock_ID.HeaderText = "Livestock_ID"; + this.H_Livestock_ID.Name = "H_Livestock_ID"; + this.H_Livestock_ID.ReadOnly = true; + this.H_Livestock_ID.Visible = false; + // + // H_IsDrop + // + this.H_IsDrop.HeaderText = "IsDrop"; + this.H_IsDrop.Name = "H_IsDrop"; + this.H_IsDrop.ReadOnly = true; + this.H_IsDrop.Visible = false; + // + // H_Technics + // + this.H_Technics.HeaderText = "Technics"; + this.H_Technics.Name = "H_Technics"; + this.H_Technics.ReadOnly = true; + this.H_Technics.Visible = false; + // + // H_OrderIndex + // + this.H_OrderIndex.HeaderText = "OrderIndex"; + this.H_OrderIndex.Name = "H_OrderIndex"; + this.H_OrderIndex.ReadOnly = true; + this.H_OrderIndex.Visible = false; + // + // H_Index + // + this.H_Index.HeaderText = "序号"; + this.H_Index.Name = "H_Index"; + this.H_Index.ReadOnly = true; + this.H_Index.Width = 65; + // + // H_Order + // + this.H_Order.HeaderText = "顺序"; + this.H_Order.Name = "H_Order"; + this.H_Order.ReadOnly = true; + this.H_Order.Width = 65; + // + // H_Technics_Name + // + this.H_Technics_Name.HeaderText = "工艺"; + this.H_Technics_Name.Name = "H_Technics_Name"; + this.H_Technics_Name.ReadOnly = true; + this.H_Technics_Name.Width = 65; + // + // H_Livestock_Name + // + this.H_Livestock_Name.HeaderText = "级别"; + this.H_Livestock_Name.Name = "H_Livestock_Name"; + this.H_Livestock_Name.ReadOnly = true; + this.H_Livestock_Name.Width = 110; + // + // H_Weight + // + this.H_Weight.HeaderText = "重量"; + this.H_Weight.Name = "H_Weight"; + this.H_Weight.ReadOnly = true; + this.H_Weight.Width = 70; + // + // H_Time + // + this.H_Time.HeaderText = "时间"; + this.H_Time.Name = "H_Time"; + this.H_Time.ReadOnly = true; + // + // vScrollBar2 + // + this.vScrollBar2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.vScrollBar2.Location = new System.Drawing.Point(378, 36); + this.vScrollBar2.Name = "vScrollBar2"; + this.vScrollBar2.Size = new System.Drawing.Size(40, 455); + this.vScrollBar2.TabIndex = 53; + // + // uLabel4 + // + this.uLabel4.AutoSize = true; + this.uLabel4.BackColor = System.Drawing.Color.Transparent; + this.uLabel4.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel4.Location = new System.Drawing.Point(6, -1); + this.uLabel4.Name = "uLabel4"; + this.uLabel4.Size = new System.Drawing.Size(49, 20); + this.uLabel4.TabIndex = 1; + this.uLabel4.Text = "记录"; + // + // discontPanel + // + this.discontPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.discontPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + this.discontPanel.Location = new System.Drawing.Point(1293, 213); + this.discontPanel.Name = "discontPanel"; + this.discontPanel.Size = new System.Drawing.Size(61, 489); + this.discontPanel.TabIndex = 42; + // + // GradeAndWeightForm + // + 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(1364, 714); + this.Controls.Add(this.discontPanel); + this.Controls.Add(this.groupBox3); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panel1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "GradeAndWeightForm"; + this.Text = "称重定级"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel7.ResumeLayout(false); + this.modifyPanel.ResumeLayout(false); + this.modifyPanel.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tangGridView)).EndInit(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.maoGridView)).EndInit(); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.historyGrid)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel2; + private WinFormControl.UWeightControl uWeightControl1; + private WinFormControl.NButton nButton1; + private System.Windows.Forms.CheckBox isPrintCheckBox; + private WinFormControl.NetStateWatch netStateWatch1; + private WinFormControl.NButton nButton2; + private WinFormControl.ULabel uLabel1; + private System.Windows.Forms.TextBox datePicker; + private WinFormControl.NButton nButton3; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.GroupBox groupBox2; + private WinFormControl.ULabel uLabel2; + private WinFormControl.ULabel uLabel3; + private WinFormControl.UDataGridView tangGridView; + private System.Windows.Forms.DataGridViewTextBoxColumn T_OrderDetail_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn T_Finish; + private System.Windows.Forms.DataGridViewTextBoxColumn T_WeightID; + private System.Windows.Forms.DataGridViewTextBoxColumn T_Order; + private System.Windows.Forms.DataGridViewTextBoxColumn T_Number; + private System.Windows.Forms.DataGridViewTextBoxColumn T_Already; + private System.Windows.Forms.DataGridViewButtonColumn T_Btn; + private System.Windows.Forms.VScrollBar tangScrollBar; + private System.Windows.Forms.FlowLayoutPanel ttPanel; + private System.Windows.Forms.FlowLayoutPanel mbPanel; + private System.Windows.Forms.VScrollBar maoScrollBar; + private WinFormControl.UDataGridView maoGridView; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; + private System.Windows.Forms.DataGridViewButtonColumn dataGridViewButtonColumn1; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Panel closeBtn; + private System.Windows.Forms.Panel panel6; + private WinFormControl.UTimerLabel uTimerLabel1; + private WinFormControl.ULabel uLabel4; + private System.Windows.Forms.VScrollBar vScrollBar2; + private WinFormControl.UDataGridView historyGrid; + private System.Windows.Forms.DataGridViewTextBoxColumn H_SID; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Livestock_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn H_IsDrop; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Technics; + private System.Windows.Forms.DataGridViewTextBoxColumn H_OrderIndex; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Index; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Order; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Technics_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Livestock_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Time; + private System.Windows.Forms.FlowLayoutPanel discontPanel; + private WinFormControl.ULabel uLabel5; + private WinFormControl.ULabel alreadyLabel; + private WinFormControl.ULabel uLabel8; + private WinFormControl.ULabel orderLabel; + private System.Windows.Forms.Label lblSucessed; + private System.Windows.Forms.Panel modifyPanel; + private System.Windows.Forms.Button cancelBtn; + private System.Windows.Forms.Label stateLabel; + private System.Windows.Forms.Panel panel7; + private WinFormControl.NButton nButton6; + private WinFormControl.NButton nButton5; + private WinFormControl.NButton nButton4; + private WinFormControl.ULabel uLabel9; + private System.Windows.Forms.ComboBox productBatchSelect; + + } +} \ No newline at end of file diff --git a/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.cs b/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.cs new file mode 100644 index 0000000..4d0c249 --- /dev/null +++ b/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.cs @@ -0,0 +1,625 @@ +using ButcherManage.BO; +using ButcherManage.BO.Enums; +using ButcherManage.BO.LocalBL; +using ButcherManage.BO.Utils; +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; +using ButcherManage.Utils; +using WinFormControl; +using System.IO; + +namespace ButcherManage.GradeAndWeight_ +{ + public partial class GradeAndWeightForm : Form, IWithRoleForm + { + #region IWithRoleForm + public List RoleName + { + get { return new List { (short)设备类别.胴体定级 }; } + } + + public Form Generate() + { + return this; + } + #endregion + + BindingList tangList; + BindingList maoList; + BindingList details; + long? batchID = null; + + int maxIndex = 0; + readonly ConcurrentQueue noLivestockList; + + Dictionary orderMaxIdx; + Thread syncTangGrid, syncMaoGrid, syncDetailGrid; + Thread syncToServer; + GradeAndWeight_Detail modifyDetail = null; + GradeAndWeight tangEntity; + GradeAndWeight maoEntity; + public GradeAndWeightForm() + { + InitializeComponent(); + netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); + datePicker.Text = DateTime.Today.ToString("yyyy-MM-dd"); + productBatchSelect.SelectedIndexChanged += delegate + { + if (productBatchSelect.SelectedValue == null) + batchID = null; + else + batchID = (long)productBatchSelect.SelectedValue; + }; + this.FormClosing += delegate + { + if (syncTangGrid != null && syncTangGrid.IsAlive) + syncTangGrid.Abort(); + if (syncMaoGrid != null && syncMaoGrid.IsAlive) + syncMaoGrid.Abort(); + if (syncDetailGrid != null && syncDetailGrid.IsAlive) + syncDetailGrid.Abort(); + if (syncToServer != null && syncToServer.IsAlive) + syncToServer.Abort(); + }; + uWeightControl1.ReceivedValue += AddWeightDetail; + } + + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + var height = (Screen.PrimaryScreen.Bounds.Height - 236) / 2; + groupBox1.Height = groupBox2.Height = height; + groupBox2.Location = new Point(groupBox2.Location.X, 226 + height); + var initTask = new Thread(LoadBind); + initTask.Start(); + syncToServer = new Thread(ToServerTask); + syncToServer.Start(); + } + + private void LoadBind() + { + this.Invoke(new Action(() => + { + if (netStateWatch1.NetState) + { + BaseInfoSyncRpc.SyncBaseInfo(); + BaseInfoSyncRpc.SyncBaseInfo(); + BaseInfoSyncRpc.SyncBodyDiscont(); + } + productBatchSelect.EBindComboBox(x => x.Date == DateTime.Today, 6, "Date"); + BindLivestockBtn(); + BindDiscountBtn(); + })); + } + + void BindLivestockBtn() + { + var livestocks = GradeAndWeightBL.GetLivestock(); + var i = 0; + foreach (var item in livestocks) + { + i++; + var btn = new NButton() { Name = "_" + item.ID, Text = item.Name, Tag = item, Size = new Size(90, 75), Margin = new Padding { All = 15 }, Font = new Font("宋体", 18), PlaySound = true, PulseOnFocus = true }; + + btn.Click += (sender, e) => + { + JiBieButtonClick(sender as NButton); + }; + if (item.Technics == TANG_TECH) + { + ttPanel.Controls.Add(btn); + } + else + { + mbPanel.Controls.Add(btn); + } + } + SetMargin(ttPanel); + SetMargin(mbPanel); + } + + void SetMargin(FlowLayoutPanel panel) + { + for (var i = 0; i < panel.Controls.Count; i++) + { + var c = panel.Controls[i]; + if (i % 3 == 0)//left + c.Margin = new Padding(0, c.Margin.Top, c.Margin.Right, c.Margin.Bottom); + if ((i + 1) % 3 == 0)//right + c.Margin = new Padding(c.Margin.Left, c.Margin.Top, 0, c.Margin.Bottom); + if (i <= 2)//firstRow + c.Margin = new Padding(c.Margin.Left, 0, c.Margin.Right, c.Margin.Bottom); + } + } + + void BindDiscountBtn() + { + var disconts = GradeAndWeightBL.GetBodyDiscont().Where(x => (x.Discont ?? 0) != 0); + discontPanel.Controls.Clear(); + foreach (var item in disconts) + { + var btn = new NButton() { Name = "_D" + item.ID, Text = item.Name, Tag = item.Discont, Size = new Size(60, 60), Margin = new Padding { Bottom = 30 }, Font = new Font("宋体", 15) }; + btn.Click += (sender, e) => + { + if (modifyDetail == null) + { + //if (disBtn != btn) + //{ + // disBtn = btn; + //} + //else + // disBtn = null; + } + else + { + //modifyDetail.Weight = (modifyDetail.Weight ?? 0) - Convert.ToDecimal(btn.Tag); + //LocalGradeAndWeightBL.Update(modifyDetail, "Weight"); + //cancelBtn_Click(sender, EventArgs.Empty); + } + }; + discontPanel.Controls.Add(btn); + } + } + + void JiBieButtonClick(NButton btn) + { + if (details == null) + { + MessageBox.Show("请先同步数据"); + return; + } + try + { + var livestockTag = btn.Tag as Livestock; + + if (modifyDetail == null) + { + AddDetail(livestockTag); + } + else + { + UpdateDetial(modifyDetail, livestockTag); + cancelBtn_Click(btn, EventArgs.Empty); + } + SetlblSucessVisibleTrue(); + SetlblSucessVisibleFalse(); + } + catch { throw; } + } + + static object _obj = new object(); + void AddDetail(Livestock livestock) + { + lock (_obj) + { + var n = 0; + var currentRow = livestock.Technics == 0 ? tangEntity : maoEntity; + + GradeAndWeight_Detail first; + //TryPeek 尝试返回 ConcurrentQueue 开头处的对象但不将其移除 + //TryDequeue 尝试移除并返回并发队列开头处的对象。 + if (noLivestockList.TryDequeue(out first)) + { + if (currentRow != null) + { + first.OrderDetail_ID = currentRow.OrderDetail_ID; + first.Order = currentRow.Order; + n = currentRow.Already; + SetOrderInex(first); + } + first.Date = DateTime.Parse(datePicker.Text); + first.Livestock_ID = livestock.ID; + first.Livestock_Name = livestock.Name; + first.Technics = livestock.Technics; + first.Technics_Name = livestock.Name; + if (disBtn != null) + { + first.Weight = (first.Weight ?? 0) - Convert.ToDecimal(disBtn.Tag); + SetBtnUnCheck(disBtn); + disBtn = null; + } + var barCode = StartPrintNewEntity(first); + first.BarCode = barCode; + LocalGradeAndWeightBL.Update(first, "OrderDetail_ID", "Order", "OrderIndex", "Date", "Livestock_ID", "Livestock_Name", "Technics", "Technics_Name", "Weight", "BarCode"); + var tag = details.FirstOrDefault(x => x.SID == first.SID); + if (first != null) + { + tag.Date = first.Date; + tag.Livestock_ID = first.Livestock_ID; + tag.Livestock_Name = first.Livestock_Name; + tag.Order = first.Order; + tag.OrderDetail_ID = first.OrderDetail_ID; + tag.Technics = first.Technics; + tag.Technics_Name = first.Technics_Name; + tag.Weight = first.Weight; + historyGrid.Refresh(); + } + } + else//add + { + maxIndex++; + var entity = new GradeAndWeight_Detail(); + entity.Index = maxIndex; + entity.ProductBatch_ID = batchID; + if (currentRow != null) + { + entity.OrderDetail_ID = currentRow.OrderDetail_ID; + entity.Order = currentRow.Order; + n = currentRow.Already; + SetOrderInex(entity); + } + entity.Date = DateTime.Parse(datePicker.Text); + entity.Livestock_ID = livestock.ID; + entity.Livestock_Name = livestock.Name; + entity.Technics = livestock.Technics; + entity.Technics_Name = livestock.Technics_Name; + entity.Time = DateTime.Now; + if (disBtn != null) + { + entity.Weight = -Convert.ToDecimal(disBtn.Tag); + SetBtnUnCheck(disBtn); + disBtn = null; + } + entity.Weight = 0; + entity.BarCode = StartPrintNewEntity(entity); + LocalGradeAndWeightBL.Insert(entity); + details.Insert(0, entity); + AfterAddBindDetailGrid(); + } + + if (currentRow != null) + { + currentRow.Already = n + 1; + orderLabel.Text = currentRow.Order.ToString(); + alreadyLabel.Text = currentRow.Already.ToString(); + if (livestock.Technics==0) + tangGridView.Refresh(); + else + maoGridView.Refresh(); + } + else + { + orderLabel.Text = string.Empty; + alreadyLabel.Text = string.Empty; + } + } + } + + void UpdateDetial(GradeAndWeight_Detail detail, Livestock livestock) + { + var techIsEmpty = detail.Technics == null; + detail.Livestock_ID = livestock.ID; + detail.Livestock_Name = livestock.Name; + detail.Technics = livestock.Technics; + detail.Technics_Name = livestock.Technics_Name; + var current = livestock.Technics == 0 ? tangEntity : maoEntity; + if (current != null) + { + detail.Order = current.Order; + detail.OrderDetail_ID = current.OrderDetail_ID; + } + var updateFileNames = new List { "Order", "OrderDetail_ID", "Livestock_ID", "Livestock_Name", "Technics", "Technics_Name" }; + LocalGradeAndWeightBL.Update(detail, updateFileNames.ToArray()); + if (techIsEmpty) + ResetQueue(); + } + + private void SetOrderInex(GradeAndWeight_Detail detail) + { + if (detail.Order == null) + return; + if (!orderMaxIdx.ContainsKey(detail.Order.Value)) + orderMaxIdx.Add(detail.Order.Value, 0); + orderMaxIdx[detail.Order.Value] += 1; + detail.OrderIndex = orderMaxIdx[detail.Order.Value]; + } + + void SetlblSucessVisibleFalse() + { + System.Timers.Timer tm = new System.Timers.Timer(1000); + tm.Elapsed += delegate(object sender, System.Timers.ElapsedEventArgs e) + { + tm.Enabled = false; + this.Invoke(new Action(delegate + { + lblSucessed.Visible = false; + })); + tm.Dispose(); + }; + tm.Enabled = true; + } + + void SetlblSucessVisibleTrue() + { + this.Invoke(new Action(delegate + { + lblSucessed.Visible = true; + Application.DoEvents(); + })); + } + + void AfterAddBindDetailGrid() + { + if (details.Count > 50) + details.RemoveAt(50); + BindDetailGrid(); + } + + void AddWeightDetail(decimal weight) + { + lock (_obj) + { + maxIndex++; + var entity = new GradeAndWeight_Detail(); + entity.Index = maxIndex; + entity.ProductBatch_ID = batchID; + entity.Weight = (entity.Weight ?? 0) + weight; + entity.Time = DateTime.Now; + entity.Date = DateTime.Parse(datePicker.Text); + + LocalGradeAndWeightBL.Insert(entity); + details.Insert(0, entity); + noLivestockList.Enqueue(entity); + } + AfterAddBindDetailGrid(); + } + + private void cancelBtn_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow row in historyGrid.Rows) + { + if (modifyDetail.SID == (long)row.Cells["H_SID"].Value) + { + row.DefaultCellStyle.BackColor = historyGrid.RowsDefaultCellStyle.BackColor; + break; + } + } + historyGrid.Refresh(); + modifyDetail = null; + modifyPanel.Hide(); + } + + //删除选中 + private void btnDeleteSelected_Click(object sender, EventArgs e) + { + if (MessageBox.Show("确定删除选中的称重记录?", "删除选中", MessageBoxButtons.OKCancel) == DialogResult.Cancel) + return; + + if (modifyDetail == null) + { + UMessageBox.Show("请选中要删除的记录"); + return; + } + //删除选中 更新 IsDeleted 和 Sync + lock (_obj) + { + modifyDetail.IsDeleted = true; + LocalGradeAndWeightBL.Update(modifyDetail, "IsDeleted"); + details.Remove(modifyDetail); + if (modifyDetail.Technics == null) + { + ResetQueue(); + } + modifyDetail = null; + modifyPanel.Hide(); + } + if (details.Any()) + historyGrid.DataSource = details; + historyGrid.Refresh(); + } + + private void historyGrid_CellClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex < 0) + return; + var currentRow = historyGrid.CurrentRow.DataBoundItem as GradeAndWeight_Detail; + if (modifyDetail != null) + { + foreach (DataGridViewRow row in historyGrid.Rows) + { + if (modifyDetail.SID == (long)row.Cells["H_SID"].Value) + { + row.DefaultCellStyle.BackColor = historyGrid.RowsDefaultCellStyle.BackColor; + break; + } + } + } + modifyDetail = currentRow; + historyGrid.Refresh(); + stateLabel.Text = string.Format("您正在修改序号为 {0} 的信息", modifyDetail.Index); + modifyPanel.Show(); + } + + private void tangGridView_CellClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex == -1) + return; + if (e.ColumnIndex == tangGridView.Columns.Count - 1) + return; + var entity = tangGridView.CurrentRow.DataBoundItem as GradeAndWeight; + if (tangEntity != null) + { + foreach (DataGridViewRow row in tangGridView.Rows) + { + if (tangEntity.OrderDetail_ID == (long)row.Cells["T_OrderDetail_ID"].Value) + { + row.DefaultCellStyle.BackColor = tangEntity.Finish ? Color.YellowGreen : tangGridView.RowsDefaultCellStyle.BackColor; + break; + } + } + } + tangEntity = entity; + tangGridView.CurrentRow.DefaultCellStyle.SelectionBackColor = tangEntity.Finish ? Color.Yellow : tangGridView.RowsDefaultCellStyle.SelectionBackColor; + tangGridView.Refresh(); + } + + private void tangGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex == -1) + return; + if (e.ColumnIndex != tangGridView.ColumnCount - 1) + return; + var entity = tangGridView.CurrentRow.DataBoundItem as GradeAndWeight; + if (entity.Finish) + { + tangEntity = null; + return; + } + entity.Finish = true; + LocalGradeAndWeightBL.SetGradeFinish(entity.Order,DateTime.Parse(datePicker.Text), 0); + tangEntity = null; + BindTangGrid(); + } + + private void maoGridView_CellClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex == -1) + return; + if (e.ColumnIndex == maoGridView.Columns.Count - 1) + return; + var entity = maoGridView.CurrentRow.DataBoundItem as GradeAndWeight; + if (maoEntity != null) + { + foreach (DataGridViewRow row in maoGridView.Rows) + { + if (maoEntity.OrderDetail_ID == (long)row.Cells["M_OrderDetail_ID"].Value) + { + row.DefaultCellStyle.BackColor = maoEntity.Finish ? Color.YellowGreen : maoGridView.RowsDefaultCellStyle.BackColor; + break; + } + } + } + maoEntity = entity; + maoGridView.CurrentRow.DefaultCellStyle.SelectionBackColor = maoEntity.Finish ? Color.Yellow : maoGridView.RowsDefaultCellStyle.SelectionBackColor; + maoGridView.Refresh(); + } + + private void maoGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex == -1) + return; + if (e.ColumnIndex != maoGridView.ColumnCount - 1) + return; + var entity = maoGridView.CurrentRow.DataBoundItem as GradeAndWeight; + if (entity.Finish) + { + maoEntity = null; + return; + } + entity.Finish = true; + LocalGradeAndWeightBL.SetGradeFinish(entity.Order, DateTime.Parse(datePicker.Text), 1); + maoEntity = null; + BindMaoGrid(); + } + + private void discontBtn_Click(object sender, EventArgs e) + { + if (new BodyDiscontSetting().ShowDialog() == DialogResult.OK) + BuildDiscontPanel(false); + } + + private void dropPigBtn_Click(object sender, EventArgs e) + { + if (modifyDetail == null) + { + UMessageBox.Show("请先选择要设置为掉猪的行", "错误"); + return; + } + else + { + modifyDetail.IsDrop = !modifyDetail.IsDrop; + LocalGradeAndWeightBL.Update(modifyDetail, "IsDrop"); + cancelBtn_Click(sender, EventArgs.Empty); + } + } + + private void dataConfirmBtn_Click(object sender, EventArgs e) + { + new DataConfirm(butcherTimeInput.Date.Value).ShowDialog(); + } + + #region scrollBar + int tangRoll = -1; + private void InitTangScrollBar() + { + tangScrollBar.Maximum = (tangGridView.RowCount - tangGridView.DisplayedRowCount(false) + 30) * tangGridView.RowTemplate.Height; + tangScrollBar.Minimum = 0; + tangScrollBar.SmallChange = tangGridView.RowTemplate.Height; + tangScrollBar.LargeChange = tangGridView.RowTemplate.Height * 30; + this.tangScrollBar.Scroll += (sender, e) => + { + tangRoll = e.NewValue / tangGridView.RowTemplate.Height; + tangGridView.FirstDisplayedScrollingRowIndex = tangRoll; + }; + } + + int maoRoll = -1; + private void InitMaoScrollBar() + { + maoScrollBar.Maximum = (maoGridView.RowCount - maoGridView.DisplayedRowCount(false) + 30) * maoGridView.RowTemplate.Height; + maoScrollBar.Minimum = 0; + maoScrollBar.SmallChange = maoGridView.RowTemplate.Height; + maoScrollBar.LargeChange = maoGridView.RowTemplate.Height * 30; + maoScrollBar.Scroll += (sender, e) => + { + maoRoll = e.NewValue / maoGridView.RowTemplate.Height; + maoGridView.FirstDisplayedScrollingRowIndex = maoRoll; + }; + } + + int rightRoll = -1; + private void InitDetailScrollBar() + { + vScrollBar2.Maximum = (historyGrid.RowCount - historyGrid.DisplayedRowCount(false) + 30) * historyGrid.RowTemplate.Height; + vScrollBar2.Minimum = 0; + vScrollBar2.SmallChange = historyGrid.RowTemplate.Height; + vScrollBar2.LargeChange = historyGrid.RowTemplate.Height * 30; + + this.vScrollBar2.Scroll += (sender, e) => + { + rightRoll = e.NewValue / historyGrid.RowTemplate.Height; + historyGrid.FirstDisplayedScrollingRowIndex = rightRoll; + }; + } + #endregion + + void ToServerTask() + { + while (true) + { + if (this.IsHandleCreated) + { + this.Invoke(new Action(() => + { + if (netStateWatch1.NetState) + { + try + { + LocalGradeAndWeightBL.Sync(); + } + catch (Exception ex) + { + File.WriteAllText(string.Format("Log\\{0:yyyyMMddHHmmss}log.txt", DateTime.Now), "错误:" + ex.Message + " \n详细信息:" + ex.StackTrace); + } + } + })); + } + Thread.Sleep(200); + } + } + + private void closeBtn_Click(object sender, EventArgs e) + { + Close(); + } + } +} diff --git a/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.resx b/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.resx new file mode 100644 index 0000000..2601ec8 --- /dev/null +++ b/ButcherManage.Form/GradeAndWeight_/GradeAndWeightForm.resx @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/ButcherManage.Form/Properties/Resources.Designer.cs b/ButcherManage.Form/Properties/Resources.Designer.cs new file mode 100644 index 0000000..1d27883 --- /dev/null +++ b/ButcherManage.Form/Properties/Resources.Designer.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace ButcherManage.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ButcherManage.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 使用此强类型资源类,为所有资源查找 + /// 重写当前线程的 CurrentUICulture 属性。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap close { + get { + object obj = ResourceManager.GetObject("close", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap title { + get { + object obj = ResourceManager.GetObject("title", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap wfLogo { + get { + object obj = ResourceManager.GetObject("wfLogo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/ButcherManage.Form/Properties/Resources.resx b/ButcherManage.Form/Properties/Resources.resx new file mode 100644 index 0000000..2e9787f --- /dev/null +++ b/ButcherManage.Form/Properties/Resources.resx @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\title.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\wfLogo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ButcherManage.Form/Resources/close.png b/ButcherManage.Form/Resources/close.png new file mode 100644 index 0000000..2b4ef46 Binary files /dev/null and b/ButcherManage.Form/Resources/close.png differ diff --git a/ButcherManage.Form/Resources/title.png b/ButcherManage.Form/Resources/title.png new file mode 100644 index 0000000..0e3a70d Binary files /dev/null and b/ButcherManage.Form/Resources/title.png differ diff --git a/ButcherManage.Form/Resources/wfLogo.png b/ButcherManage.Form/Resources/wfLogo.png new file mode 100644 index 0000000..c794649 Binary files /dev/null and b/ButcherManage.Form/Resources/wfLogo.png differ diff --git a/ButcherManage.Form/Utils/ControlsUtil.cs b/ButcherManage.Form/Utils/ControlsUtil.cs new file mode 100644 index 0000000..5d15d85 --- /dev/null +++ b/ButcherManage.Form/Utils/ControlsUtil.cs @@ -0,0 +1,31 @@ +using ButcherManage.BO; +using ButcherManage.BO.LocalBL; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ButcherManage.Utils +{ + public static class ControlsUtil + { + public static void EBindComboBox(this ComboBox box, Func SetSelectIndex = null, int top = 10, params string[] extendFields) + where T : BaseInfo, new() + { + box.DisplayMember = "Name"; + box.ValueMember = "ID"; + + var list = BaseInfoBL.GetList(top, extendFields: extendFields); + box.DataSource = list; + if (SetSelectIndex != null) + { + var idx = list.FindIndex(x => SetSelectIndex(x)); + if (idx > 0) + box.SelectedIndex = idx; + } + box.Refresh(); + } + } +} diff --git a/ButcherManage.Login/ButcherManage.Login.csproj b/ButcherManage.Login/ButcherManage.Login.csproj index 92c2ae4..3216efa 100644 --- a/ButcherManage.Login/ButcherManage.Login.csproj +++ b/ButcherManage.Login/ButcherManage.Login.csproj @@ -90,6 +90,15 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\yellow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silvery.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\bgTitle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ButcherWeight/Resources/bgTitle.png b/ButcherWeight/Resources/bgTitle.png new file mode 100644 index 0000000..8f07b72 Binary files /dev/null and b/ButcherWeight/Resources/bgTitle.png differ diff --git a/ButcherWeight/Resources/green.png b/ButcherWeight/Resources/green.png new file mode 100644 index 0000000..01569b3 Binary files /dev/null and b/ButcherWeight/Resources/green.png differ diff --git a/ButcherWeight/Resources/red.png b/ButcherWeight/Resources/red.png new file mode 100644 index 0000000..ccd70f7 Binary files /dev/null and b/ButcherWeight/Resources/red.png differ diff --git a/ButcherWeight/Resources/silvery.png b/ButcherWeight/Resources/silvery.png new file mode 100644 index 0000000..e61bfe4 Binary files /dev/null and b/ButcherWeight/Resources/silvery.png differ diff --git a/ButcherWeight/Resources/silvery1.png b/ButcherWeight/Resources/silvery1.png new file mode 100644 index 0000000..e61bfe4 Binary files /dev/null and b/ButcherWeight/Resources/silvery1.png differ diff --git a/ButcherWeight/Resources/yellow.png b/ButcherWeight/Resources/yellow.png new file mode 100644 index 0000000..01f09ed Binary files /dev/null and b/ButcherWeight/Resources/yellow.png differ diff --git a/ButcherWeight/WeightForm.Designer.cs b/ButcherWeight/WeightForm.Designer.cs index 9722cf4..c5a8e99 100644 --- a/ButcherWeight/WeightForm.Designer.cs +++ b/ButcherWeight/WeightForm.Designer.cs @@ -30,17 +30,18 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WeightForm)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle 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 dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); @@ -49,23 +50,78 @@ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - 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 dataGridViewCellStyle22 = 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.panel3 = new System.Windows.Forms.Panel(); + this.label28 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); - this.enableCheckBox = new System.Windows.Forms.CheckBox(); + this.abnormalGrid = new System.Windows.Forms.DataGridView(); + this.S_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.S_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.S_Sanction_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.S_AbnormalItem_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.S_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.S_AbnormalItem_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.S_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.houseGird = new System.Windows.Forms.DataGridView(); + this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_LiveColonyHouse_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.M_SanctionMoney = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_PurchaseType_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_Employee_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_Car_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_B3ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_PrintNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_FinishWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.billGrid = new System.Windows.Forms.DataGridView(); + this.M_HouseNames = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.M_Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.readPiBtn = new System.Windows.Forms.Button(); this.weightSet = new System.Windows.Forms.Button(); this.exitBtn = new System.Windows.Forms.Button(); this.deleteBtn = new System.Windows.Forms.Button(); this.printBtn = new System.Windows.Forms.Button(); this.createBtn = new System.Windows.Forms.Button(); this.commitBtn = new System.Windows.Forms.Button(); - this.readPiBtn = new System.Windows.Forms.Button(); this.readMaoBtn = new System.Windows.Forms.Button(); - this.panel2 = new System.Windows.Forms.Panel(); + this.label27 = new System.Windows.Forms.Label(); + this.msg_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.msg_Car_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.msg_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.msgGrid = new System.Windows.Forms.DataGridView(); + this.totalNumLbl = new System.Windows.Forms.Label(); + this.label32 = new System.Windows.Forms.Label(); + this.uDatePicker1 = new BWP.WinFormControl.UDatePicker(); + this.label26 = new System.Windows.Forms.Label(); + this.viewDetailBtn = new System.Windows.Forms.Button(); + this.farmerDelete = new System.Windows.Forms.ToolStripMenuItem(); + this.farmerMenu = new System.Windows.Forms.ContextMenuStrip(this.components); + this.queryBtn = new System.Windows.Forms.Button(); + this.qSupplierSelect = new BWP.WinFormControl.UComboBox(); + this.label5 = new System.Windows.Forms.Label(); + this.qCarSelect = new BWP.WinFormControl.UComboBox(); + this.label4 = new System.Windows.Forms.Label(); + this.weightSerialPort = new System.IO.Ports.SerialPort(this.components); + this.weightLabel = new System.Windows.Forms.Label(); + this.panel5 = new System.Windows.Forms.Panel(); + this.D_PiWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label15 = new System.Windows.Forms.Label(); + this.D_MaoWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.bankAccountLabel = new System.Windows.Forms.Label(); this.label22 = new System.Windows.Forms.Label(); this.discontInput = new System.Windows.Forms.TextBox(); @@ -93,6 +149,7 @@ this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.penMoneyInput = new System.Windows.Forms.TextBox(); this.remarkInput = new System.Windows.Forms.TextBox(); + this.panel2 = new System.Windows.Forms.Panel(); this.penPriceInput = new System.Windows.Forms.TextBox(); this.testCardNumberInput = new System.Windows.Forms.TextBox(); this.penWeightInput = new System.Windows.Forms.TextBox(); @@ -104,1457 +161,1509 @@ this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.enableCheckBox = new System.Windows.Forms.CheckBox(); + this.D_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.weightGrid = new System.Windows.Forms.DataGridView(); + this.D_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label3 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.F_Farmer_Address = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Farmer_Tel = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Farmer_BankAccount = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Farmer_IDCard = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Money = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Farmer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.farmerSelect = new BWP.WinFormControl.UComboBox(); this.farmerGrid = new System.Windows.Forms.DataGridView(); - this.F_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.F_Farmer_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Farmer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Money = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Farmer_IDCard = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Farmer_BankAccount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Farmer_Tel = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Farmer_Address = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label3 = new System.Windows.Forms.Label(); - this.label18 = new System.Windows.Forms.Label(); - this.weightGrid = new System.Windows.Forms.DataGridView(); - this.D_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_MaoWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_PiWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.houseGird = new System.Windows.Forms.DataGridView(); - this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_LiveColonyHouse_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.abnormalGrid = new System.Windows.Forms.DataGridView(); - this.S_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.S_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.S_Sanction_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.S_AbnormalItem_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.S_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.S_AbnormalItem_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.S_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.billGrid = new System.Windows.Forms.DataGridView(); - this.M_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_FinishWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_PrintNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_B3ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Car_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Employee_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_PurchaseType_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_HouseNames = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_SanctionMoney = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label15 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.panel5 = new System.Windows.Forms.Panel(); - this.weightLabel = new System.Windows.Forms.Label(); - this.weightSerialPort = new System.IO.Ports.SerialPort(this.components); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.queryBtn = new System.Windows.Forms.Button(); - this.qSupplierSelect = new BWP.WinFormControl.UComboBox(); - this.qCarSelect = new BWP.WinFormControl.UComboBox(); - this.farmerMenu = new System.Windows.Forms.ContextMenuStrip(this.components); - this.farmerDelete = new System.Windows.Forms.ToolStripMenuItem(); - this.viewDetailBtn = new System.Windows.Forms.Button(); - this.uDatePicker1 = new BWP.WinFormControl.UDatePicker(); - 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.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.label27 = new System.Windows.Forms.Label(); + this.panel3.SuspendLayout(); this.panel1.SuspendLayout(); - this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.houseGird)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.abnormalGrid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.houseGird)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.billGrid)).BeginInit(); - this.panel5.SuspendLayout(); - this.farmerMenu.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.msgGrid)).BeginInit(); + this.farmerMenu.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit(); this.SuspendLayout(); // + // panel3 + // + this.panel3.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel3.BackgroundImage"))); + this.panel3.Controls.Add(this.label28); + this.panel3.Location = new System.Drawing.Point(1, 0); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(1273, 40); + this.panel3.TabIndex = 55; + this.panel3.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel_title_MouseDown); + this.panel3.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panel_title_MouseMove); + // + // label28 + // + this.label28.AutoSize = true; + this.label28.BackColor = System.Drawing.Color.Transparent; + this.label28.Font = new System.Drawing.Font("黑体", 13F, System.Drawing.FontStyle.Bold); + this.label28.ForeColor = System.Drawing.Color.White; + this.label28.Location = new System.Drawing.Point(13, 10); + this.label28.Name = "label28"; + this.label28.Size = new System.Drawing.Size(122, 18); + this.label28.TabIndex = 0; + this.label28.Text = "毛猪过磅系统"; + // // panel1 // - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel1.Controls.Add(this.enableCheckBox); - this.panel1.Controls.Add(this.weightSet); - this.panel1.Controls.Add(this.exitBtn); - this.panel1.Controls.Add(this.deleteBtn); - this.panel1.Controls.Add(this.printBtn); - this.panel1.Controls.Add(this.createBtn); - this.panel1.Controls.Add(this.commitBtn); - this.panel1.Controls.Add(this.readPiBtn); - this.panel1.Controls.Add(this.readMaoBtn); - this.panel1.Location = new System.Drawing.Point(12, 12); + this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.panel1.Controls.Add(this.abnormalGrid); + this.panel1.Controls.Add(this.houseGird); + this.panel1.Controls.Add(this.label17); + this.panel1.Controls.Add(this.label16); + this.panel1.Location = new System.Drawing.Point(1, 41); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1252, 61); - this.panel1.TabIndex = 1; + this.panel1.Size = new System.Drawing.Size(1273, 655); + this.panel1.TabIndex = 56; // - // enableCheckBox + // abnormalGrid // - this.enableCheckBox.AutoCheck = false; - this.enableCheckBox.AutoSize = true; - this.enableCheckBox.Font = new System.Drawing.Font("宋体", 19F); - this.enableCheckBox.Location = new System.Drawing.Point(162, 13); - this.enableCheckBox.Name = "enableCheckBox"; - this.enableCheckBox.Size = new System.Drawing.Size(135, 30); - this.enableCheckBox.TabIndex = 11; - this.enableCheckBox.Text = "启用称重"; - this.enableCheckBox.UseVisualStyleBackColor = true; - this.enableCheckBox.Click += new System.EventHandler(this.enableCheckBox_Click); + this.abnormalGrid.AllowUserToAddRows = false; + this.abnormalGrid.AllowUserToDeleteRows = false; + this.abnormalGrid.AllowUserToResizeColumns = false; + this.abnormalGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.abnormalGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.abnormalGrid.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.abnormalGrid.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.abnormalGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.abnormalGrid.ColumnHeadersHeight = 24; + this.abnormalGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.abnormalGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.S_ID, + this.S_WeightBill_ID, + this.S_Sanction_ID, + this.S_AbnormalItem_ID, + this.S_Index, + this.S_AbnormalItem_Name, + this.S_Number}); + this.abnormalGrid.Location = new System.Drawing.Point(442, 438); + this.abnormalGrid.MultiSelect = false; + this.abnormalGrid.Name = "abnormalGrid"; + this.abnormalGrid.RowHeadersVisible = false; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.abnormalGrid.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.abnormalGrid.RowTemplate.Height = 23; + this.abnormalGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.abnormalGrid.Size = new System.Drawing.Size(400, 91); + this.abnormalGrid.TabIndex = 60; // - // weightSet + // S_ID // - this.weightSet.Font = new System.Drawing.Font("宋体", 15F); - this.weightSet.Location = new System.Drawing.Point(1146, 0); - this.weightSet.Name = "weightSet"; - this.weightSet.Size = new System.Drawing.Size(101, 59); - this.weightSet.TabIndex = 10; - this.weightSet.Text = "称设置"; - this.weightSet.UseVisualStyleBackColor = true; - this.weightSet.Click += new System.EventHandler(this.weightSet_Click); + this.S_ID.DataPropertyName = "ID"; + this.S_ID.HeaderText = "ID"; + this.S_ID.Name = "S_ID"; + this.S_ID.Visible = false; // - // exitBtn + // S_WeightBill_ID // - this.exitBtn.Font = new System.Drawing.Font("宋体", 15F); - this.exitBtn.Location = new System.Drawing.Point(1011, 0); - this.exitBtn.Name = "exitBtn"; - this.exitBtn.Size = new System.Drawing.Size(101, 59); - this.exitBtn.TabIndex = 4; - this.exitBtn.Text = "退出"; - this.exitBtn.UseVisualStyleBackColor = true; - this.exitBtn.Click += new System.EventHandler(this.exitBtn_Click); + this.S_WeightBill_ID.DataPropertyName = "WeightBill_ID"; + this.S_WeightBill_ID.HeaderText = "WeightBill_ID"; + this.S_WeightBill_ID.Name = "S_WeightBill_ID"; + this.S_WeightBill_ID.Visible = false; // - // deleteBtn + // S_Sanction_ID // - this.deleteBtn.Font = new System.Drawing.Font("宋体", 15F); - this.deleteBtn.Location = new System.Drawing.Point(893, 0); - this.deleteBtn.Name = "deleteBtn"; - this.deleteBtn.Size = new System.Drawing.Size(101, 59); - this.deleteBtn.TabIndex = 5; - this.deleteBtn.Text = "删除"; - this.deleteBtn.UseVisualStyleBackColor = true; - this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); + this.S_Sanction_ID.DataPropertyName = "Sanction_ID"; + this.S_Sanction_ID.HeaderText = "Sanction_ID"; + this.S_Sanction_ID.Name = "S_Sanction_ID"; + this.S_Sanction_ID.Visible = false; // - // printBtn + // S_AbnormalItem_ID // - this.printBtn.Font = new System.Drawing.Font("宋体", 15F); - this.printBtn.Location = new System.Drawing.Point(776, 0); - this.printBtn.Name = "printBtn"; - this.printBtn.Size = new System.Drawing.Size(101, 59); - this.printBtn.TabIndex = 8; - this.printBtn.Text = "打印"; - this.printBtn.UseVisualStyleBackColor = true; - this.printBtn.Click += new System.EventHandler(this.printBtn_Click); + this.S_AbnormalItem_ID.HeaderText = "AbnormalItem_ID"; + this.S_AbnormalItem_ID.Name = "S_AbnormalItem_ID"; + this.S_AbnormalItem_ID.Visible = false; // - // createBtn + // S_Index // - this.createBtn.Font = new System.Drawing.Font("宋体", 15F); - this.createBtn.Location = new System.Drawing.Point(542, 0); - this.createBtn.Name = "createBtn"; - this.createBtn.Size = new System.Drawing.Size(101, 59); - this.createBtn.TabIndex = 3; - this.createBtn.Text = "新建"; - this.createBtn.UseVisualStyleBackColor = true; - this.createBtn.Click += new System.EventHandler(this.createBtn_Click); - // - // commitBtn + this.S_Index.DataPropertyName = "Index"; + this.S_Index.HeaderText = "序号"; + this.S_Index.Name = "S_Index"; + this.S_Index.ReadOnly = true; + this.S_Index.Width = 80; // - this.commitBtn.Font = new System.Drawing.Font("宋体", 15F); - this.commitBtn.Location = new System.Drawing.Point(659, 0); - this.commitBtn.Name = "commitBtn"; - this.commitBtn.Size = new System.Drawing.Size(101, 59); - this.commitBtn.TabIndex = 3; - this.commitBtn.Text = "保存"; - this.commitBtn.UseVisualStyleBackColor = true; - this.commitBtn.Click += new System.EventHandler(this.commitBtn_Click); + // S_AbnormalItem_Name // - // readPiBtn + this.S_AbnormalItem_Name.DataPropertyName = "AbnormalItem_Name"; + this.S_AbnormalItem_Name.HeaderText = "异常项目"; + this.S_AbnormalItem_Name.Name = "S_AbnormalItem_Name"; + this.S_AbnormalItem_Name.ReadOnly = true; + this.S_AbnormalItem_Name.Width = 150; // - this.readPiBtn.Enabled = false; - this.readPiBtn.Font = new System.Drawing.Font("宋体", 15F); - this.readPiBtn.Location = new System.Drawing.Point(426, 0); - this.readPiBtn.Name = "readPiBtn"; - this.readPiBtn.Size = new System.Drawing.Size(101, 59); - this.readPiBtn.TabIndex = 2; - this.readPiBtn.Text = "读取皮重"; - this.readPiBtn.UseVisualStyleBackColor = true; - this.readPiBtn.Click += new System.EventHandler(this.readPiBtn_Click); + // S_Number // - // readMaoBtn + this.S_Number.DataPropertyName = "Number"; + this.S_Number.HeaderText = "头数"; + this.S_Number.Name = "S_Number"; + this.S_Number.Width = 130; // - this.readMaoBtn.Enabled = false; - this.readMaoBtn.Font = new System.Drawing.Font("宋体", 15F); - this.readMaoBtn.Location = new System.Drawing.Point(309, 0); - this.readMaoBtn.Name = "readMaoBtn"; - this.readMaoBtn.Size = new System.Drawing.Size(101, 59); - this.readMaoBtn.TabIndex = 1; - this.readMaoBtn.Text = "读取毛重"; - this.readMaoBtn.UseVisualStyleBackColor = true; - this.readMaoBtn.Click += new System.EventHandler(this.readMaoBtn_Click); + // houseGird // - // panel2 + this.houseGird.AllowUserToAddRows = false; + this.houseGird.AllowUserToDeleteRows = false; + this.houseGird.AllowUserToResizeColumns = false; + this.houseGird.AllowUserToResizeRows = false; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.houseGird.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; + this.houseGird.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.houseGird.BackgroundColor = System.Drawing.Color.White; + 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.houseGird.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; + this.houseGird.ColumnHeadersHeight = 24; + this.houseGird.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.houseGird.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.H_ID, + this.H_WeightBill_ID, + this.H_LiveColonyHouse_ID, + this.H_Index, + this.H_LiveColonyHouse_Name, + this.H_Number}); + this.houseGird.Location = new System.Drawing.Point(442, 438); + this.houseGird.MultiSelect = false; + this.houseGird.Name = "houseGird"; + this.houseGird.RowHeadersVisible = false; + dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.houseGird.RowsDefaultCellStyle = dataGridViewCellStyle6; + this.houseGird.RowTemplate.Height = 23; + this.houseGird.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.houseGird.Size = new System.Drawing.Size(400, 90); + this.houseGird.TabIndex = 61; // - this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel2.Controls.Add(this.bankAccountLabel); - this.panel2.Controls.Add(this.label22); - this.panel2.Controls.Add(this.discontInput); - this.panel2.Controls.Add(this.label9); - this.panel2.Controls.Add(this.jingjianInput); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.zoneSelect); - this.panel2.Controls.Add(this.hogGradeSelect); - this.panel2.Controls.Add(this.label2); - this.panel2.Controls.Add(this.label1); - this.panel2.Controls.Add(this.employeeSelect); - this.panel2.Controls.Add(this.carSelect); - this.panel2.Controls.Add(this.liveVarietiesSelect); - this.panel2.Controls.Add(this.purchaseTypeSelect); - this.panel2.Controls.Add(this.supplierSelect); - this.panel2.Controls.Add(this.testManInput); - this.panel2.Controls.Add(this.testTimeInput); - this.panel2.Controls.Add(this.weightTimeSelect); - this.panel2.Controls.Add(this.label19); - this.panel2.Controls.Add(this.label20); - this.panel2.Controls.Add(this.label21); - this.panel2.Controls.Add(this.label23); - this.panel2.Controls.Add(this.label24); - this.panel2.Controls.Add(this.label25); - this.panel2.Controls.Add(this.tableLayoutPanel3); - this.panel2.Controls.Add(this.penMoneyInput); - this.panel2.Controls.Add(this.remarkInput); - this.panel2.Controls.Add(this.penPriceInput); - this.panel2.Controls.Add(this.testCardNumberInput); - this.panel2.Controls.Add(this.penWeightInput); - this.panel2.Controls.Add(this.label14); - this.panel2.Controls.Add(this.label13); - this.panel2.Controls.Add(this.label12); - this.panel2.Controls.Add(this.label11); - this.panel2.Controls.Add(this.label10); - this.panel2.Controls.Add(this.label8); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.tableLayoutPanel2); - this.panel2.Location = new System.Drawing.Point(13, 78); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1251, 174); - this.panel2.TabIndex = 2; + // H_ID // - // bankAccountLabel + this.H_ID.DataPropertyName = "ID"; + this.H_ID.HeaderText = "ID"; + this.H_ID.Name = "H_ID"; + this.H_ID.Visible = false; // - this.bankAccountLabel.Font = new System.Drawing.Font("宋体", 14F); - this.bankAccountLabel.Location = new System.Drawing.Point(501, 129); - this.bankAccountLabel.Name = "bankAccountLabel"; - this.bankAccountLabel.Size = new System.Drawing.Size(233, 23); - this.bankAccountLabel.TabIndex = 43; + // H_WeightBill_ID // - // label22 + this.H_WeightBill_ID.DataPropertyName = "WeightBill_ID"; + this.H_WeightBill_ID.HeaderText = "WeightBill_ID"; + this.H_WeightBill_ID.Name = "H_WeightBill_ID"; + this.H_WeightBill_ID.Visible = false; // - this.label22.AutoSize = true; - this.label22.Font = new System.Drawing.Font("宋体", 14F); - this.label22.Location = new System.Drawing.Point(501, 92); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(85, 19); - this.label22.TabIndex = 42; - this.label22.Text = "银行卡号"; + // H_LiveColonyHouse_ID // - // discontInput + this.H_LiveColonyHouse_ID.DataPropertyName = "LiveColonyHouse_ID"; + this.H_LiveColonyHouse_ID.HeaderText = "LiveColonyHouse_ID"; + this.H_LiveColonyHouse_ID.Name = "H_LiveColonyHouse_ID"; + this.H_LiveColonyHouse_ID.Visible = false; // - this.discontInput.Font = new System.Drawing.Font("宋体", 14F); - this.discontInput.Location = new System.Drawing.Point(599, 49); - this.discontInput.Name = "discontInput"; - this.discontInput.Size = new System.Drawing.Size(135, 29); - this.discontInput.TabIndex = 41; - this.discontInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); + // H_Index // - // label9 + this.H_Index.DataPropertyName = "Index"; + this.H_Index.HeaderText = "序号"; + this.H_Index.Name = "H_Index"; + this.H_Index.ReadOnly = true; + this.H_Index.Width = 80; // - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("宋体", 14F); - this.label9.Location = new System.Drawing.Point(501, 55); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(85, 19); - this.label9.TabIndex = 40; - this.label9.Text = "猪场扣款"; + // H_LiveColonyHouse_Name // - // jingjianInput + this.H_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name"; + this.H_LiveColonyHouse_Name.HeaderText = "圈舍"; + this.H_LiveColonyHouse_Name.Name = "H_LiveColonyHouse_Name"; + this.H_LiveColonyHouse_Name.ReadOnly = true; + this.H_LiveColonyHouse_Name.Width = 150; // - this.jingjianInput.Font = new System.Drawing.Font("宋体", 14F); - this.jingjianInput.Location = new System.Drawing.Point(599, 9); - this.jingjianInput.Name = "jingjianInput"; - this.jingjianInput.Size = new System.Drawing.Size(135, 29); - this.jingjianInput.TabIndex = 39; - this.jingjianInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); + // H_Number // - // label6 + this.H_Number.DataPropertyName = "Number"; + this.H_Number.HeaderText = "入圈头数"; + this.H_Number.Name = "H_Number"; + this.H_Number.Width = 130; // - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("宋体", 14F); - this.label6.Location = new System.Drawing.Point(501, 15); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(66, 19); - this.label6.TabIndex = 38; - this.label6.Text = "经检费"; + // label17 // - // zoneSelect + this.label17.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("黑体", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label17.ForeColor = System.Drawing.Color.Red; + this.label17.Location = new System.Drawing.Point(442, 414); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(80, 17); + this.label17.TabIndex = 67; + this.label17.Text = "异常明细"; // - this.zoneSelect.CodeArgs = null; - this.zoneSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.zoneSelect.EnableTopItem = true; - this.zoneSelect.Font = new System.Drawing.Font("宋体", 14F); - this.zoneSelect.FormattingEnabled = true; - this.zoneSelect.Location = new System.Drawing.Point(348, 129); - this.zoneSelect.Name = "zoneSelect"; - this.zoneSelect.Range = 10; - this.zoneSelect.Size = new System.Drawing.Size(135, 30); - this.zoneSelect.TabIndex = 37; + // label16 // - // hogGradeSelect + this.label16.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("黑体", 13F, System.Drawing.FontStyle.Bold); + this.label16.ForeColor = System.Drawing.Color.Red; + this.label16.Location = new System.Drawing.Point(442, 414); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(84, 18); + this.label16.TabIndex = 66; + this.label16.Text = "入圈信息"; // - this.hogGradeSelect.CodeArgs = null; - this.hogGradeSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.hogGradeSelect.EnableTopItem = true; - this.hogGradeSelect.Font = new System.Drawing.Font("宋体", 14F); - this.hogGradeSelect.FormattingEnabled = true; - this.hogGradeSelect.Location = new System.Drawing.Point(103, 129); - this.hogGradeSelect.Name = "hogGradeSelect"; - this.hogGradeSelect.Range = 10; - this.hogGradeSelect.Size = new System.Drawing.Size(135, 30); - this.hogGradeSelect.TabIndex = 36; + // M_SanctionMoney // - // label2 + this.M_SanctionMoney.DataPropertyName = "SanctionMoney"; + dataGridViewCellStyle7.Format = "#0.######"; + this.M_SanctionMoney.DefaultCellStyle = dataGridViewCellStyle7; + this.M_SanctionMoney.HeaderText = "异常明细"; + this.M_SanctionMoney.Name = "M_SanctionMoney"; + this.M_SanctionMoney.ReadOnly = true; // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("宋体", 14F); - this.label2.Location = new System.Drawing.Point(251, 135); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(47, 19); - this.label2.TabIndex = 35; - this.label2.Text = "地区"; + // M_Weight // - // label1 + this.M_Weight.DataPropertyName = "Weight"; + dataGridViewCellStyle8.Format = "#0.######"; + this.M_Weight.DefaultCellStyle = dataGridViewCellStyle8; + this.M_Weight.HeaderText = "收购重量"; + this.M_Weight.Name = "M_Weight"; + this.M_Weight.ReadOnly = true; + this.M_Weight.Width = 120; // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("宋体", 14F); - this.label1.Location = new System.Drawing.Point(6, 135); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(85, 19); - this.label1.TabIndex = 34; - this.label1.Text = "毛猪等级"; + // M_Number // - // employeeSelect + this.M_Number.DataPropertyName = "Number"; + this.M_Number.HeaderText = "收购头数"; + this.M_Number.Name = "M_Number"; + this.M_Number.ReadOnly = true; + this.M_Number.Width = 110; // - this.employeeSelect.CodeArgs = null; - this.employeeSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.employeeSelect.EnableTopItem = true; - this.employeeSelect.Font = new System.Drawing.Font("宋体", 14F); - this.employeeSelect.FormattingEnabled = true; - this.employeeSelect.Location = new System.Drawing.Point(348, 88); - this.employeeSelect.Name = "employeeSelect"; - this.employeeSelect.Range = 10; - this.employeeSelect.Size = new System.Drawing.Size(135, 30); - this.employeeSelect.TabIndex = 33; + // M_PurchaseType_Name // - // carSelect + this.M_PurchaseType_Name.DataPropertyName = "PurchaseType_Name"; + this.M_PurchaseType_Name.HeaderText = "收购类型"; + this.M_PurchaseType_Name.Name = "M_PurchaseType_Name"; + this.M_PurchaseType_Name.ReadOnly = true; + this.M_PurchaseType_Name.Width = 110; // - this.carSelect.CodeArgs = null; - this.carSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.carSelect.EnableTopItem = true; - this.carSelect.Font = new System.Drawing.Font("宋体", 14F); - this.carSelect.FormattingEnabled = true; - this.carSelect.Location = new System.Drawing.Point(348, 49); - this.carSelect.Name = "carSelect"; - this.carSelect.Range = 10; - this.carSelect.Size = new System.Drawing.Size(135, 30); - this.carSelect.TabIndex = 32; + // M_Employee_Name // - // liveVarietiesSelect + this.M_Employee_Name.DataPropertyName = "Employee_Name"; + this.M_Employee_Name.HeaderText = "业务员"; + this.M_Employee_Name.Name = "M_Employee_Name"; + this.M_Employee_Name.ReadOnly = true; + this.M_Employee_Name.Width = 110; // - this.liveVarietiesSelect.CodeArgs = null; - this.liveVarietiesSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.liveVarietiesSelect.EnableTopItem = true; - this.liveVarietiesSelect.Font = new System.Drawing.Font("宋体", 14F); - this.liveVarietiesSelect.FormattingEnabled = true; - this.liveVarietiesSelect.Location = new System.Drawing.Point(103, 88); - this.liveVarietiesSelect.Name = "liveVarietiesSelect"; - this.liveVarietiesSelect.Range = 10; - this.liveVarietiesSelect.Size = new System.Drawing.Size(135, 30); - this.liveVarietiesSelect.TabIndex = 31; + // M_Supplier_Name // - // purchaseTypeSelect + this.M_Supplier_Name.DataPropertyName = "Supplier_Name"; + this.M_Supplier_Name.HeaderText = "供应商"; + this.M_Supplier_Name.Name = "M_Supplier_Name"; + this.M_Supplier_Name.ReadOnly = true; + this.M_Supplier_Name.Width = 120; // - this.purchaseTypeSelect.CodeArgs = null; - this.purchaseTypeSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.purchaseTypeSelect.EnableTopItem = true; - this.purchaseTypeSelect.Font = new System.Drawing.Font("宋体", 14F); - this.purchaseTypeSelect.FormattingEnabled = true; - this.purchaseTypeSelect.Location = new System.Drawing.Point(348, 8); - this.purchaseTypeSelect.Name = "purchaseTypeSelect"; - this.purchaseTypeSelect.Range = 10; - this.purchaseTypeSelect.Size = new System.Drawing.Size(135, 30); - this.purchaseTypeSelect.TabIndex = 30; + // M_Car_Name // - // supplierSelect + this.M_Car_Name.DataPropertyName = "Car_Name"; + this.M_Car_Name.HeaderText = "车辆"; + this.M_Car_Name.Name = "M_Car_Name"; + this.M_Car_Name.ReadOnly = true; + this.M_Car_Name.Width = 120; // - this.supplierSelect.CodeArgs = null; - this.supplierSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.supplierSelect.EnableTopItem = true; - this.supplierSelect.Font = new System.Drawing.Font("宋体", 14F); - this.supplierSelect.FormattingEnabled = true; - this.supplierSelect.Location = new System.Drawing.Point(103, 8); - this.supplierSelect.Name = "supplierSelect"; - this.supplierSelect.Range = 10; - this.supplierSelect.Size = new System.Drawing.Size(135, 30); - this.supplierSelect.TabIndex = 29; - this.supplierSelect.SelectedIndexChanged += new System.EventHandler(this.supplierSelect_SelectedIndexChanged); + // M_B3ID // - // testManInput + this.M_B3ID.DataPropertyName = "B3ID"; + this.M_B3ID.HeaderText = "过磅单号"; + this.M_B3ID.Name = "M_B3ID"; + this.M_B3ID.ReadOnly = true; // - this.testManInput.Font = new System.Drawing.Font("宋体", 14F); - this.testManInput.Location = new System.Drawing.Point(1100, 90); - this.testManInput.Name = "testManInput"; - this.testManInput.Size = new System.Drawing.Size(135, 29); - this.testManInput.TabIndex = 28; + // M_PrintNumber // - // testTimeInput + this.M_PrintNumber.DataPropertyName = "PrintNumber"; + this.M_PrintNumber.HeaderText = "PrintNumber"; + this.M_PrintNumber.Name = "M_PrintNumber"; + this.M_PrintNumber.ReadOnly = true; + this.M_PrintNumber.Visible = false; // - this.testTimeInput.BackColor = System.Drawing.Color.White; - this.testTimeInput.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.testTimeInput.Date = new System.DateTime(2017, 9, 8, 0, 0, 0, 0); - this.testTimeInput.Font = new System.Drawing.Font("宋体", 15F); - this.testTimeInput.Location = new System.Drawing.Point(1100, 51); - this.testTimeInput.Name = "testTimeInput"; - this.testTimeInput.Size = new System.Drawing.Size(135, 30); - this.testTimeInput.TabIndex = 27; - this.testTimeInput.Text = "2017/09/08"; - this.testTimeInput.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.testTimeInput.Type = BWP.WinFormControl.DateTimeType.Date; + // M_FinishWeight // - // weightTimeSelect + this.M_FinishWeight.DataPropertyName = "FinishWeight"; + this.M_FinishWeight.HeaderText = "FinishWeight"; + this.M_FinishWeight.Name = "M_FinishWeight"; + this.M_FinishWeight.ReadOnly = true; + this.M_FinishWeight.Visible = false; // - this.weightTimeSelect.BackColor = System.Drawing.Color.White; - this.weightTimeSelect.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.weightTimeSelect.Date = new System.DateTime(2017, 9, 8, 16, 38, 45, 0); - this.weightTimeSelect.Font = new System.Drawing.Font("宋体", 9F); - this.weightTimeSelect.Location = new System.Drawing.Point(103, 49); - this.weightTimeSelect.Name = "weightTimeSelect"; - this.weightTimeSelect.Size = new System.Drawing.Size(135, 30); - this.weightTimeSelect.TabIndex = 26; - this.weightTimeSelect.Text = "2017/09/08 16:38:45"; - this.weightTimeSelect.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.weightTimeSelect.Type = BWP.WinFormControl.DateTimeType.DateTime; + // M_ID // - // label19 + this.M_ID.DataPropertyName = "ID"; + this.M_ID.HeaderText = "ID"; + this.M_ID.Name = "M_ID"; + this.M_ID.ReadOnly = true; + this.M_ID.Visible = false; // - this.label19.AutoSize = true; - this.label19.Font = new System.Drawing.Font("宋体", 14F); - this.label19.Location = new System.Drawing.Point(251, 94); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(66, 19); - this.label19.TabIndex = 24; - this.label19.Text = "业务员"; + // billGrid // - // label20 + this.billGrid.AllowUserToAddRows = false; + this.billGrid.AllowUserToDeleteRows = false; + this.billGrid.AllowUserToResizeColumns = false; + this.billGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.billGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + this.billGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.billGrid.BackgroundColor = System.Drawing.Color.White; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F); + dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.billGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; + this.billGrid.ColumnHeadersHeight = 24; + this.billGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.billGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.M_ID, + this.M_FinishWeight, + this.M_PrintNumber, + this.M_B3ID, + this.M_Car_Name, + this.M_Supplier_Name, + this.M_Employee_Name, + this.M_PurchaseType_Name, + this.M_Number, + this.M_Weight, + this.M_HouseNames, + this.M_SanctionMoney, + this.M_Remark}); + this.billGrid.Location = new System.Drawing.Point(13, 627); + this.billGrid.MultiSelect = false; + this.billGrid.Name = "billGrid"; + this.billGrid.ReadOnly = true; + this.billGrid.RowHeadersVisible = false; + dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(151)))), ((int)(((byte)(230))))); + this.billGrid.RowsDefaultCellStyle = dataGridViewCellStyle11; + this.billGrid.RowTemplate.Height = 23; + this.billGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.billGrid.Size = new System.Drawing.Size(1250, 54); + this.billGrid.TabIndex = 58; + this.billGrid.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.billGrid_CellDoubleClick); // - this.label20.AutoSize = true; - this.label20.Font = new System.Drawing.Font("宋体", 14F); - this.label20.Location = new System.Drawing.Point(251, 55); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(47, 19); - this.label20.TabIndex = 23; - this.label20.Text = "车辆"; + // M_HouseNames // - // label21 + this.M_HouseNames.DataPropertyName = "HouseNames"; + this.M_HouseNames.HeaderText = "圈舍"; + this.M_HouseNames.Name = "M_HouseNames"; + this.M_HouseNames.ReadOnly = true; + this.M_HouseNames.Width = 180; // - this.label21.AutoSize = true; - this.label21.Font = new System.Drawing.Font("宋体", 14F); - this.label21.Location = new System.Drawing.Point(251, 15); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(85, 19); - this.label21.TabIndex = 22; - this.label21.Text = "收购类型"; + // M_Remark // - // label23 + this.M_Remark.DataPropertyName = "Remark"; + this.M_Remark.HeaderText = "摘要"; + this.M_Remark.Name = "M_Remark"; + this.M_Remark.ReadOnly = true; + this.M_Remark.Width = 130; // - this.label23.AutoSize = true; - this.label23.Font = new System.Drawing.Font("宋体", 14F); - this.label23.Location = new System.Drawing.Point(6, 94); - this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(85, 19); - this.label23.TabIndex = 20; - this.label23.Text = "生猪品种"; + // D_Weight // - // label24 + this.D_Weight.DataPropertyName = "Weight"; + dataGridViewCellStyle12.Format = "#0.######"; + this.D_Weight.DefaultCellStyle = dataGridViewCellStyle12; + this.D_Weight.HeaderText = "重量"; + this.D_Weight.Name = "D_Weight"; + this.D_Weight.ReadOnly = true; + this.D_Weight.Width = 88; // - this.label24.AutoSize = true; - this.label24.Font = new System.Drawing.Font("宋体", 14F); - this.label24.Location = new System.Drawing.Point(6, 15); - this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(66, 19); - this.label24.TabIndex = 19; - this.label24.Text = "供应商"; + // readPiBtn // - // label25 + this.readPiBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("readPiBtn.BackgroundImage"))); + this.readPiBtn.Enabled = false; + this.readPiBtn.Font = new System.Drawing.Font("黑体", 11F); + this.readPiBtn.Location = new System.Drawing.Point(423, 7); + this.readPiBtn.Name = "readPiBtn"; + this.readPiBtn.Size = new System.Drawing.Size(90, 42); + this.readPiBtn.TabIndex = 2; + this.readPiBtn.Text = "读取皮重"; + this.readPiBtn.UseVisualStyleBackColor = true; + this.readPiBtn.Click += new System.EventHandler(this.readPiBtn_Click); // - this.label25.AutoSize = true; - this.label25.Font = new System.Drawing.Font("宋体", 14F); - this.label25.Location = new System.Drawing.Point(6, 55); - this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(85, 19); - this.label25.TabIndex = 17; - this.label25.Text = "过磅时间"; + // weightSet // - // tableLayoutPanel3 + this.weightSet.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("weightSet.BackgroundImage"))); + this.weightSet.Font = new System.Drawing.Font("黑体", 11F); + this.weightSet.Location = new System.Drawing.Point(1143, 7); + this.weightSet.Name = "weightSet"; + this.weightSet.Size = new System.Drawing.Size(90, 42); + this.weightSet.TabIndex = 10; + this.weightSet.Text = "称设置"; + this.weightSet.UseVisualStyleBackColor = true; + this.weightSet.Click += new System.EventHandler(this.weightSet_Click); // - this.tableLayoutPanel3.ColumnCount = 4; - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); - this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 3); - this.tableLayoutPanel3.Name = "tableLayoutPanel3"; - this.tableLayoutPanel3.RowCount = 4; - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel3.Size = new System.Drawing.Size(492, 162); - this.tableLayoutPanel3.TabIndex = 18; + // exitBtn // - // penMoneyInput + this.exitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("exitBtn.BackgroundImage"))); + this.exitBtn.Font = new System.Drawing.Font("黑体", 11F); + this.exitBtn.Location = new System.Drawing.Point(1023, 7); + this.exitBtn.Name = "exitBtn"; + this.exitBtn.Size = new System.Drawing.Size(90, 42); + this.exitBtn.TabIndex = 4; + this.exitBtn.Text = "退出"; + this.exitBtn.UseVisualStyleBackColor = true; + this.exitBtn.Click += new System.EventHandler(this.exitBtn_Click); // - this.penMoneyInput.Font = new System.Drawing.Font("宋体", 14F); - this.penMoneyInput.Location = new System.Drawing.Point(854, 89); - this.penMoneyInput.Name = "penMoneyInput"; - this.penMoneyInput.ReadOnly = true; - this.penMoneyInput.Size = new System.Drawing.Size(135, 29); - this.penMoneyInput.TabIndex = 15; - this.penMoneyInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); + // deleteBtn // - // remarkInput + this.deleteBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteBtn.BackgroundImage"))); + this.deleteBtn.Font = new System.Drawing.Font("黑体", 11F); + this.deleteBtn.ForeColor = System.Drawing.Color.White; + this.deleteBtn.Location = new System.Drawing.Point(903, 7); + this.deleteBtn.Name = "deleteBtn"; + this.deleteBtn.Size = new System.Drawing.Size(90, 42); + this.deleteBtn.TabIndex = 5; + this.deleteBtn.Text = "删除"; + this.deleteBtn.UseVisualStyleBackColor = true; + this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); // - this.remarkInput.Font = new System.Drawing.Font("宋体", 14F); - this.remarkInput.Location = new System.Drawing.Point(854, 130); - this.remarkInput.Name = "remarkInput"; - this.remarkInput.Size = new System.Drawing.Size(381, 29); - this.remarkInput.TabIndex = 14; + // printBtn // - // penPriceInput + this.printBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("printBtn.BackgroundImage"))); + this.printBtn.Font = new System.Drawing.Font("黑体", 11F); + this.printBtn.Location = new System.Drawing.Point(783, 7); + this.printBtn.Name = "printBtn"; + this.printBtn.Size = new System.Drawing.Size(90, 42); + this.printBtn.TabIndex = 8; + this.printBtn.Text = "打印"; + this.printBtn.UseVisualStyleBackColor = true; + this.printBtn.Click += new System.EventHandler(this.printBtn_Click); // - this.penPriceInput.Font = new System.Drawing.Font("宋体", 14F); - this.penPriceInput.Location = new System.Drawing.Point(854, 50); - this.penPriceInput.Name = "penPriceInput"; - this.penPriceInput.ReadOnly = true; - this.penPriceInput.Size = new System.Drawing.Size(135, 29); - this.penPriceInput.TabIndex = 12; + // createBtn // - // testCardNumberInput + this.createBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("createBtn.BackgroundImage"))); + this.createBtn.Font = new System.Drawing.Font("黑体", 11F); + this.createBtn.ForeColor = System.Drawing.Color.White; + this.createBtn.Location = new System.Drawing.Point(543, 7); + this.createBtn.Name = "createBtn"; + this.createBtn.Size = new System.Drawing.Size(90, 42); + this.createBtn.TabIndex = 3; + this.createBtn.Text = "新建"; + this.createBtn.UseVisualStyleBackColor = true; + this.createBtn.Click += new System.EventHandler(this.createBtn_Click); // - this.testCardNumberInput.Font = new System.Drawing.Font("宋体", 14F); - this.testCardNumberInput.Location = new System.Drawing.Point(1100, 9); - this.testCardNumberInput.Name = "testCardNumberInput"; - this.testCardNumberInput.Size = new System.Drawing.Size(135, 29); - this.testCardNumberInput.TabIndex = 11; + // commitBtn // - // penWeightInput + this.commitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("commitBtn.BackgroundImage"))); + this.commitBtn.Font = new System.Drawing.Font("黑体", 11F); + this.commitBtn.ForeColor = System.Drawing.Color.White; + this.commitBtn.Location = new System.Drawing.Point(663, 7); + this.commitBtn.Name = "commitBtn"; + this.commitBtn.Size = new System.Drawing.Size(90, 42); + this.commitBtn.TabIndex = 3; + this.commitBtn.Text = "保存"; + this.commitBtn.UseVisualStyleBackColor = true; + this.commitBtn.Click += new System.EventHandler(this.commitBtn_Click); // - this.penWeightInput.Font = new System.Drawing.Font("宋体", 14F); - this.penWeightInput.Location = new System.Drawing.Point(854, 9); - this.penWeightInput.Name = "penWeightInput"; - this.penWeightInput.ReadOnly = true; - this.penWeightInput.Size = new System.Drawing.Size(135, 29); - this.penWeightInput.TabIndex = 0; - this.penWeightInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); + // readMaoBtn // - // label14 + this.readMaoBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("readMaoBtn.BackgroundImage"))); + this.readMaoBtn.Enabled = false; + this.readMaoBtn.Font = new System.Drawing.Font("黑体", 11F); + this.readMaoBtn.ForeColor = System.Drawing.Color.Black; + this.readMaoBtn.Location = new System.Drawing.Point(303, 7); + this.readMaoBtn.Name = "readMaoBtn"; + this.readMaoBtn.Size = new System.Drawing.Size(90, 42); + this.readMaoBtn.TabIndex = 1; + this.readMaoBtn.Text = "读取毛重"; + this.readMaoBtn.UseVisualStyleBackColor = true; + this.readMaoBtn.Click += new System.EventHandler(this.readMaoBtn_Click); // - this.label14.AutoSize = true; - this.label14.Font = new System.Drawing.Font("宋体", 14F); - this.label14.Location = new System.Drawing.Point(1002, 94); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(66, 19); - this.label14.TabIndex = 7; - this.label14.Text = "动检人"; + // label27 // - // label13 + this.label27.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label27.AutoSize = true; + this.label27.Font = new System.Drawing.Font("黑体", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label27.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(73)))), ((int)(((byte)(211))))); + this.label27.Location = new System.Drawing.Point(858, 453); + this.label27.Name = "label27"; + this.label27.Size = new System.Drawing.Size(80, 17); + this.label27.TabIndex = 83; + this.label27.Text = "我的待办"; // - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("宋体", 14F); - this.label13.Location = new System.Drawing.Point(1002, 55); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(85, 19); - this.label13.TabIndex = 6; - this.label13.Text = "动检日期"; + // msg_Supplier_Name // - // label12 + 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; // - this.label12.AutoSize = true; - this.label12.Font = new System.Drawing.Font("宋体", 14F); - this.label12.Location = new System.Drawing.Point(1002, 15); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(85, 19); - this.label12.TabIndex = 5; - this.label12.Text = "动检证号"; + // msg_Car_Name // - // label11 + 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; // - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("宋体", 14F); - this.label11.Location = new System.Drawing.Point(757, 136); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(47, 19); - this.label11.TabIndex = 4; - this.label11.Text = "摘要"; + // msg_WeightBill_ID // - // label10 + 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; // - this.label10.AutoSize = true; - this.label10.Font = new System.Drawing.Font("宋体", 14F); - this.label10.Location = new System.Drawing.Point(757, 94); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(85, 19); - this.label10.TabIndex = 3; - this.label10.Text = "棚前金额"; + // msgGrid // - // label8 + this.msgGrid.AllowUserToAddRows = false; + this.msgGrid.AllowUserToDeleteRows = false; + this.msgGrid.AllowUserToResizeColumns = false; + this.msgGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.msgGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; + this.msgGrid.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.msgGrid.BackgroundColor = System.Drawing.Color.White; + 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.msgGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; + 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(862, 477); + this.msgGrid.MultiSelect = false; + this.msgGrid.Name = "msgGrid"; + this.msgGrid.ReadOnly = true; + this.msgGrid.RowHeadersVisible = false; + dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(151)))), ((int)(((byte)(230))))); + this.msgGrid.RowsDefaultCellStyle = dataGridViewCellStyle15; + 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 = 82; + this.msgGrid.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.msgGrid_CellDoubleClick); // - this.label8.AutoSize = true; - this.label8.Font = new System.Drawing.Font("宋体", 14F); - this.label8.Location = new System.Drawing.Point(757, 15); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(85, 19); - this.label8.TabIndex = 2; - this.label8.Text = "棚前重量"; + // totalNumLbl // - // label7 + this.totalNumLbl.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.totalNumLbl.AutoSize = true; + this.totalNumLbl.Font = new System.Drawing.Font("宋体", 17F); + this.totalNumLbl.ForeColor = System.Drawing.Color.Red; + this.totalNumLbl.Location = new System.Drawing.Point(883, 592); + this.totalNumLbl.Name = "totalNumLbl"; + this.totalNumLbl.Size = new System.Drawing.Size(22, 23); + this.totalNumLbl.TabIndex = 81; + this.totalNumLbl.Text = "0"; // - this.label7.AutoSize = true; - this.label7.Font = new System.Drawing.Font("宋体", 14F); - this.label7.Location = new System.Drawing.Point(757, 55); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(85, 19); - this.label7.TabIndex = 1; - this.label7.Text = "棚前单价"; + // label32 // - // tableLayoutPanel2 + this.label32.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label32.AutoSize = true; + this.label32.Font = new System.Drawing.Font("宋体", 14F); + this.label32.Location = new System.Drawing.Point(811, 593); + this.label32.Name = "label32"; + this.label32.Size = new System.Drawing.Size(66, 19); + this.label32.TabIndex = 80; + this.label32.Text = "合计:"; // - this.tableLayoutPanel2.ColumnCount = 4; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); - this.tableLayoutPanel2.Location = new System.Drawing.Point(754, 3); - this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - this.tableLayoutPanel2.RowCount = 4; - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel2.Size = new System.Drawing.Size(492, 162); - this.tableLayoutPanel2.TabIndex = 1; + // uDatePicker1 // - // farmerSelect + this.uDatePicker1.Anchor = System.Windows.Forms.AnchorStyles.Top; + 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(540, 588); + this.uDatePicker1.Name = "uDatePicker1"; + this.uDatePicker1.Size = new System.Drawing.Size(150, 30); + this.uDatePicker1.TabIndex = 79; + this.uDatePicker1.Text = "2017/09/05"; + this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date; // - this.farmerSelect.CodeArgs = null; - this.farmerSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.farmerSelect.EnableTopItem = true; - this.farmerSelect.Font = new System.Drawing.Font("宋体", 12F); - this.farmerSelect.FormattingEnabled = true; - this.farmerSelect.Location = new System.Drawing.Point(218, 267); - this.farmerSelect.Name = "farmerSelect"; - this.farmerSelect.Range = 10; - this.farmerSelect.Size = new System.Drawing.Size(135, 27); - this.farmerSelect.TabIndex = 38; - this.farmerSelect.SelectedIndexChanged += new System.EventHandler(this.farmerSelect_SelectedIndexChanged); + // label26 // - // farmerGrid + this.label26.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label26.AutoSize = true; + this.label26.Font = new System.Drawing.Font("宋体", 15F); + this.label26.Location = new System.Drawing.Point(432, 592); + this.label26.Name = "label26"; + this.label26.Size = new System.Drawing.Size(109, 20); + this.label26.TabIndex = 78; + this.label26.Text = "宰杀日期:"; // - this.farmerGrid.AllowUserToAddRows = false; - this.farmerGrid.AllowUserToDeleteRows = false; - this.farmerGrid.AllowUserToResizeColumns = false; - this.farmerGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.farmerGrid.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.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.farmerGrid.ColumnHeadersHeight = 24; - this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.F_ID, - this.F_WeightBill_ID, - this.F_Farmer_ID, - this.F_Index, - this.F_Farmer_Name, - this.F_Number, - this.F_Weight, - this.F_Money, - this.F_Farmer_IDCard, - this.F_Farmer_BankAccount, - this.F_Farmer_Tel, - this.F_Farmer_Address}); - this.farmerGrid.Location = new System.Drawing.Point(11, 297); - this.farmerGrid.MultiSelect = false; - this.farmerGrid.Name = "farmerGrid"; - this.farmerGrid.RowHeadersVisible = false; - dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle5; - this.farmerGrid.RowTemplate.Height = 23; - this.farmerGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.farmerGrid.Size = new System.Drawing.Size(1249, 113); - this.farmerGrid.TabIndex = 8; - this.farmerGrid.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.farmerGrid_CellMouseDown); - this.farmerGrid.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.farmerGrid_CellValueChanged); + // viewDetailBtn // - // F_ID + this.viewDetailBtn.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.viewDetailBtn.BackgroundImage = global::ButcherWeight.Properties.Resources.silvery; + this.viewDetailBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.viewDetailBtn.FlatAppearance.BorderSize = 0; + this.viewDetailBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.viewDetailBtn.Font = new System.Drawing.Font("黑体", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.viewDetailBtn.Location = new System.Drawing.Point(109, 446); + this.viewDetailBtn.Name = "viewDetailBtn"; + this.viewDetailBtn.Size = new System.Drawing.Size(80, 30); + this.viewDetailBtn.TabIndex = 77; + this.viewDetailBtn.Text = "记录"; + this.viewDetailBtn.UseVisualStyleBackColor = true; + this.viewDetailBtn.Click += new System.EventHandler(this.viewDetailBtn_Click); // - this.F_ID.DataPropertyName = "ID"; - this.F_ID.HeaderText = "ID"; - this.F_ID.Name = "F_ID"; - this.F_ID.Visible = false; + // farmerDelete // - // F_WeightBill_ID - // - this.F_WeightBill_ID.DataPropertyName = "WeightBill_ID"; - this.F_WeightBill_ID.HeaderText = "WeightBill_ID"; - this.F_WeightBill_ID.Name = "F_WeightBill_ID"; - this.F_WeightBill_ID.Visible = false; + this.farmerDelete.Name = "farmerDelete"; + this.farmerDelete.Size = new System.Drawing.Size(100, 22); + this.farmerDelete.Text = "删除"; + this.farmerDelete.Click += new System.EventHandler(this.farmerDelete_Click); // - // F_Farmer_ID + // farmerMenu // - this.F_Farmer_ID.DataPropertyName = "Farmer_ID"; - this.F_Farmer_ID.HeaderText = "Farmer_ID"; - this.F_Farmer_ID.Name = "F_Farmer_ID"; - this.F_Farmer_ID.Visible = false; + this.farmerMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.farmerDelete}); + this.farmerMenu.Name = "farmerMenu"; + this.farmerMenu.Size = new System.Drawing.Size(101, 26); // - // F_Index + // queryBtn // - this.F_Index.DataPropertyName = "Index"; - this.F_Index.HeaderText = "序号"; - this.F_Index.Name = "F_Index"; - this.F_Index.ReadOnly = true; - this.F_Index.Width = 80; + this.queryBtn.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.queryBtn.BackgroundImage = global::ButcherWeight.Properties.Resources.silvery; + this.queryBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.queryBtn.FlatAppearance.BorderSize = 0; + this.queryBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.queryBtn.Font = new System.Drawing.Font("黑体", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.queryBtn.Location = new System.Drawing.Point(709, 585); + this.queryBtn.Name = "queryBtn"; + this.queryBtn.Size = new System.Drawing.Size(80, 35); + this.queryBtn.TabIndex = 76; + this.queryBtn.Text = "查询"; + this.queryBtn.UseVisualStyleBackColor = true; + this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click); // - // F_Farmer_Name + // qSupplierSelect // - this.F_Farmer_Name.DataPropertyName = "Farmer_Name"; - this.F_Farmer_Name.HeaderText = "养殖户"; - this.F_Farmer_Name.Name = "F_Farmer_Name"; - this.F_Farmer_Name.ReadOnly = true; - this.F_Farmer_Name.Width = 120; + this.qSupplierSelect.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.qSupplierSelect.CodeArgs = null; + this.qSupplierSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.qSupplierSelect.EnableTopItem = true; + this.qSupplierSelect.Font = new System.Drawing.Font("宋体", 12F); + this.qSupplierSelect.FormattingEnabled = true; + this.qSupplierSelect.Location = new System.Drawing.Point(280, 588); + this.qSupplierSelect.Name = "qSupplierSelect"; + this.qSupplierSelect.Range = 10; + this.qSupplierSelect.Size = new System.Drawing.Size(135, 27); + this.qSupplierSelect.TabIndex = 75; // - // F_Number + // label5 // - this.F_Number.DataPropertyName = "Number"; - this.F_Number.HeaderText = "头数"; - this.F_Number.Name = "F_Number"; - this.F_Number.Width = 80; + this.label5.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("宋体", 15F); + this.label5.Location = new System.Drawing.Point(205, 592); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(89, 20); + this.label5.TabIndex = 74; + this.label5.Text = "供应商:"; // - // F_Weight + // qCarSelect // - this.F_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle3.Format = "#0.######"; - this.F_Weight.DefaultCellStyle = dataGridViewCellStyle3; - this.F_Weight.HeaderText = "重量"; - this.F_Weight.Name = "F_Weight"; + this.qCarSelect.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.qCarSelect.CodeArgs = null; + this.qCarSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.qCarSelect.EnableTopItem = true; + this.qCarSelect.Font = new System.Drawing.Font("宋体", 12F); + this.qCarSelect.FormattingEnabled = true; + this.qCarSelect.Location = new System.Drawing.Point(65, 588); + this.qCarSelect.Name = "qCarSelect"; + this.qCarSelect.Range = 10; + this.qCarSelect.Size = new System.Drawing.Size(135, 27); + this.qCarSelect.TabIndex = 73; // - // F_Money + // label4 // - this.F_Money.DataPropertyName = "Money"; - dataGridViewCellStyle4.Format = "#0.######"; - this.F_Money.DefaultCellStyle = dataGridViewCellStyle4; - this.F_Money.HeaderText = "棚前金额"; - this.F_Money.Name = "F_Money"; + this.label4.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("宋体", 15F); + this.label4.Location = new System.Drawing.Point(10, 591); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(69, 20); + this.label4.TabIndex = 72; + this.label4.Text = "车辆:"; // - // F_Farmer_IDCard + // weightLabel // - this.F_Farmer_IDCard.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_Farmer_IDCard.DataPropertyName = "Farmer_IDCard"; - this.F_Farmer_IDCard.HeaderText = "身份证号"; - this.F_Farmer_IDCard.Name = "F_Farmer_IDCard"; - this.F_Farmer_IDCard.ReadOnly = true; + this.weightLabel.AutoSize = true; + this.weightLabel.Font = new System.Drawing.Font("宋体", 22F, System.Drawing.FontStyle.Bold); + this.weightLabel.ForeColor = System.Drawing.Color.Red; + this.weightLabel.Location = new System.Drawing.Point(3, 15); + this.weightLabel.Name = "weightLabel"; + this.weightLabel.Size = new System.Drawing.Size(29, 30); + this.weightLabel.TabIndex = 12; + this.weightLabel.Text = "0"; // - // F_Farmer_BankAccount + // panel5 // - this.F_Farmer_BankAccount.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_Farmer_BankAccount.DataPropertyName = "Farmer_BankAccount"; - this.F_Farmer_BankAccount.HeaderText = "银行卡号"; - this.F_Farmer_BankAccount.Name = "F_Farmer_BankAccount"; - this.F_Farmer_BankAccount.ReadOnly = true; + this.panel5.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel5.BackColor = System.Drawing.Color.Black; + this.panel5.Controls.Add(this.weightLabel); + this.panel5.Location = new System.Drawing.Point(14, 45); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(156, 59); + this.panel5.TabIndex = 70; // - // F_Farmer_Tel + // D_PiWeight // - this.F_Farmer_Tel.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_Farmer_Tel.DataPropertyName = "Farmer_Tel"; - this.F_Farmer_Tel.HeaderText = "手机"; - this.F_Farmer_Tel.Name = "F_Farmer_Tel"; - this.F_Farmer_Tel.ReadOnly = true; + this.D_PiWeight.DataPropertyName = "PiWeight"; + dataGridViewCellStyle16.Format = "#0.######"; + this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle16; + this.D_PiWeight.HeaderText = "皮重"; + this.D_PiWeight.Name = "D_PiWeight"; + this.D_PiWeight.ReadOnly = true; + this.D_PiWeight.Width = 88; // - // F_Farmer_Address + // label15 // - this.F_Farmer_Address.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_Farmer_Address.DataPropertyName = "Farmer_Address"; - this.F_Farmer_Address.HeaderText = "地址"; - this.F_Farmer_Address.Name = "F_Farmer_Address"; - this.F_Farmer_Address.ReadOnly = true; + this.label15.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("黑体", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(195)))), ((int)(((byte)(25))))); + this.label15.Location = new System.Drawing.Point(14, 453); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(80, 17); + this.label15.TabIndex = 64; + this.label15.Text = "过磅记录"; // - // label3 + // D_MaoWeight // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("宋体", 15F); - this.label3.Location = new System.Drawing.Point(131, 270); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(89, 20); - this.label3.TabIndex = 9; - this.label3.Text = "养殖户:"; + this.D_MaoWeight.DataPropertyName = "MaoWeight"; + dataGridViewCellStyle17.Format = "#0.######"; + this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle17; + this.D_MaoWeight.HeaderText = "毛重"; + this.D_MaoWeight.Name = "D_MaoWeight"; + this.D_MaoWeight.ReadOnly = true; + this.D_MaoWeight.Width = 88; // - // label18 + // bankAccountLabel // - this.label18.AutoSize = true; - this.label18.Font = new System.Drawing.Font("宋体", 15F); - this.label18.ForeColor = System.Drawing.Color.Red; - this.label18.Location = new System.Drawing.Point(12, 270); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(109, 20); - this.label18.TabIndex = 7; - this.label18.Text = "养殖户信息"; + this.bankAccountLabel.Font = new System.Drawing.Font("宋体", 14F); + this.bankAccountLabel.Location = new System.Drawing.Point(501, 129); + this.bankAccountLabel.Name = "bankAccountLabel"; + this.bankAccountLabel.Size = new System.Drawing.Size(233, 23); + this.bankAccountLabel.TabIndex = 43; // - // weightGrid + // label22 // - this.weightGrid.AllowUserToAddRows = false; - this.weightGrid.AllowUserToDeleteRows = false; - this.weightGrid.AllowUserToResizeColumns = false; - this.weightGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.weightGrid.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.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.weightGrid.ColumnHeadersHeight = 24; - this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.D_ID, - this.D_WeightBill_ID, - this.D_Index, - this.D_Number, - this.D_MaoWeight, - this.D_PiWeight, - this.D_Weight}); - this.weightGrid.Location = new System.Drawing.Point(16, 447); - this.weightGrid.MultiSelect = false; - this.weightGrid.Name = "weightGrid"; - this.weightGrid.RowHeadersVisible = false; - dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle11.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle11; - this.weightGrid.RowTemplate.Height = 23; - this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.weightGrid.Size = new System.Drawing.Size(400, 90); - this.weightGrid.TabIndex = 0; + this.label22.AutoSize = true; + this.label22.Font = new System.Drawing.Font("宋体", 14F); + this.label22.Location = new System.Drawing.Point(501, 92); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(85, 19); + this.label22.TabIndex = 42; + this.label22.Text = "银行卡号"; // - // D_ID + // discontInput // - this.D_ID.DataPropertyName = "ID"; - this.D_ID.HeaderText = "ID"; - this.D_ID.Name = "D_ID"; - this.D_ID.Visible = false; + this.discontInput.Font = new System.Drawing.Font("宋体", 14F); + this.discontInput.Location = new System.Drawing.Point(599, 49); + this.discontInput.Name = "discontInput"; + this.discontInput.Size = new System.Drawing.Size(135, 29); + this.discontInput.TabIndex = 41; + this.discontInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); // - // D_WeightBill_ID + // label9 // - this.D_WeightBill_ID.DataPropertyName = "WeightBill_ID"; - this.D_WeightBill_ID.HeaderText = "WeightBill_ID"; - this.D_WeightBill_ID.Name = "D_WeightBill_ID"; - this.D_WeightBill_ID.Visible = false; + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("宋体", 14F); + this.label9.Location = new System.Drawing.Point(501, 55); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(85, 19); + this.label9.TabIndex = 40; + this.label9.Text = "猪场扣款"; // - // D_Index + // jingjianInput // - this.D_Index.DataPropertyName = "Index"; - this.D_Index.HeaderText = "序号"; - this.D_Index.Name = "D_Index"; - this.D_Index.ReadOnly = true; - this.D_Index.Width = 55; + this.jingjianInput.Font = new System.Drawing.Font("宋体", 14F); + this.jingjianInput.Location = new System.Drawing.Point(599, 9); + this.jingjianInput.Name = "jingjianInput"; + this.jingjianInput.Size = new System.Drawing.Size(135, 29); + this.jingjianInput.TabIndex = 39; + this.jingjianInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); // - // D_Number + // label6 // - this.D_Number.DataPropertyName = "Number"; - this.D_Number.HeaderText = "头数"; - this.D_Number.Name = "D_Number"; - this.D_Number.Width = 75; + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("宋体", 14F); + this.label6.Location = new System.Drawing.Point(520, 15); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(66, 19); + this.label6.TabIndex = 38; + this.label6.Text = "经检费"; // - // D_MaoWeight + // zoneSelect // - this.D_MaoWeight.DataPropertyName = "MaoWeight"; - dataGridViewCellStyle8.Format = "#0.######"; - this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle8; - this.D_MaoWeight.HeaderText = "毛重"; - this.D_MaoWeight.Name = "D_MaoWeight"; - this.D_MaoWeight.ReadOnly = true; - this.D_MaoWeight.Width = 88; + this.zoneSelect.CodeArgs = null; + this.zoneSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.zoneSelect.EnableTopItem = true; + this.zoneSelect.Font = new System.Drawing.Font("宋体", 14F); + this.zoneSelect.FormattingEnabled = true; + this.zoneSelect.Location = new System.Drawing.Point(348, 129); + this.zoneSelect.Name = "zoneSelect"; + this.zoneSelect.Range = 10; + this.zoneSelect.Size = new System.Drawing.Size(135, 30); + this.zoneSelect.TabIndex = 37; // - // D_PiWeight + // hogGradeSelect // - this.D_PiWeight.DataPropertyName = "PiWeight"; - dataGridViewCellStyle9.Format = "#0.######"; - this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle9; - this.D_PiWeight.HeaderText = "皮重"; - this.D_PiWeight.Name = "D_PiWeight"; - this.D_PiWeight.ReadOnly = true; - this.D_PiWeight.Width = 88; + this.hogGradeSelect.CodeArgs = null; + this.hogGradeSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.hogGradeSelect.EnableTopItem = true; + this.hogGradeSelect.Font = new System.Drawing.Font("宋体", 14F); + this.hogGradeSelect.FormattingEnabled = true; + this.hogGradeSelect.Location = new System.Drawing.Point(103, 129); + this.hogGradeSelect.Name = "hogGradeSelect"; + this.hogGradeSelect.Range = 10; + this.hogGradeSelect.Size = new System.Drawing.Size(135, 30); + this.hogGradeSelect.TabIndex = 36; // - // D_Weight + // label2 // - this.D_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle10.Format = "#0.######"; - this.D_Weight.DefaultCellStyle = dataGridViewCellStyle10; - this.D_Weight.HeaderText = "重量"; - this.D_Weight.Name = "D_Weight"; - this.D_Weight.ReadOnly = true; - this.D_Weight.Width = 88; + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("宋体", 14F); + this.label2.Location = new System.Drawing.Point(289, 135); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(47, 19); + this.label2.TabIndex = 35; + this.label2.Text = "地区"; // - // houseGird + // label1 // - this.houseGird.AllowUserToAddRows = false; - this.houseGird.AllowUserToDeleteRows = false; - this.houseGird.AllowUserToResizeColumns = false; - this.houseGird.AllowUserToResizeRows = false; - dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.houseGird.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle12; - this.houseGird.BackgroundColor = System.Drawing.Color.White; - dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.houseGird.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; - this.houseGird.ColumnHeadersHeight = 24; - this.houseGird.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.houseGird.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.H_ID, - this.H_WeightBill_ID, - this.H_LiveColonyHouse_ID, - this.H_Index, - this.H_LiveColonyHouse_Name, - this.H_Number}); - this.houseGird.Location = new System.Drawing.Point(443, 447); - this.houseGird.MultiSelect = false; - this.houseGird.Name = "houseGird"; - this.houseGird.RowHeadersVisible = false; - dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.houseGird.RowsDefaultCellStyle = dataGridViewCellStyle14; - this.houseGird.RowTemplate.Height = 23; - this.houseGird.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.houseGird.Size = new System.Drawing.Size(400, 90); - this.houseGird.TabIndex = 1; + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("宋体", 14F); + this.label1.Location = new System.Drawing.Point(6, 135); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(85, 19); + this.label1.TabIndex = 34; + this.label1.Text = "毛猪等级"; // - // H_ID + // employeeSelect // - this.H_ID.DataPropertyName = "ID"; - this.H_ID.HeaderText = "ID"; - this.H_ID.Name = "H_ID"; - this.H_ID.Visible = false; + this.employeeSelect.CodeArgs = null; + this.employeeSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.employeeSelect.EnableTopItem = true; + this.employeeSelect.Font = new System.Drawing.Font("宋体", 14F); + this.employeeSelect.FormattingEnabled = true; + this.employeeSelect.Location = new System.Drawing.Point(348, 88); + this.employeeSelect.Name = "employeeSelect"; + this.employeeSelect.Range = 10; + this.employeeSelect.Size = new System.Drawing.Size(135, 30); + this.employeeSelect.TabIndex = 33; // - // H_WeightBill_ID + // carSelect // - this.H_WeightBill_ID.DataPropertyName = "WeightBill_ID"; - this.H_WeightBill_ID.HeaderText = "WeightBill_ID"; - this.H_WeightBill_ID.Name = "H_WeightBill_ID"; - this.H_WeightBill_ID.Visible = false; + this.carSelect.CodeArgs = null; + this.carSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.carSelect.EnableTopItem = true; + this.carSelect.Font = new System.Drawing.Font("宋体", 14F); + this.carSelect.FormattingEnabled = true; + this.carSelect.Location = new System.Drawing.Point(348, 49); + this.carSelect.Name = "carSelect"; + this.carSelect.Range = 10; + this.carSelect.Size = new System.Drawing.Size(135, 30); + this.carSelect.TabIndex = 32; // - // H_LiveColonyHouse_ID + // liveVarietiesSelect // - this.H_LiveColonyHouse_ID.DataPropertyName = "LiveColonyHouse_ID"; - this.H_LiveColonyHouse_ID.HeaderText = "LiveColonyHouse_ID"; - this.H_LiveColonyHouse_ID.Name = "H_LiveColonyHouse_ID"; - this.H_LiveColonyHouse_ID.Visible = false; + this.liveVarietiesSelect.CodeArgs = null; + this.liveVarietiesSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.liveVarietiesSelect.EnableTopItem = true; + this.liveVarietiesSelect.Font = new System.Drawing.Font("宋体", 14F); + this.liveVarietiesSelect.FormattingEnabled = true; + this.liveVarietiesSelect.Location = new System.Drawing.Point(103, 88); + this.liveVarietiesSelect.Name = "liveVarietiesSelect"; + this.liveVarietiesSelect.Range = 10; + this.liveVarietiesSelect.Size = new System.Drawing.Size(135, 30); + this.liveVarietiesSelect.TabIndex = 31; // - // H_Index + // purchaseTypeSelect // - this.H_Index.DataPropertyName = "Index"; - this.H_Index.HeaderText = "序号"; - this.H_Index.Name = "H_Index"; - this.H_Index.ReadOnly = true; - this.H_Index.Width = 80; + this.purchaseTypeSelect.CodeArgs = null; + this.purchaseTypeSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.purchaseTypeSelect.EnableTopItem = true; + this.purchaseTypeSelect.Font = new System.Drawing.Font("宋体", 14F); + this.purchaseTypeSelect.FormattingEnabled = true; + this.purchaseTypeSelect.Location = new System.Drawing.Point(348, 8); + this.purchaseTypeSelect.Name = "purchaseTypeSelect"; + this.purchaseTypeSelect.Range = 10; + this.purchaseTypeSelect.Size = new System.Drawing.Size(135, 30); + this.purchaseTypeSelect.TabIndex = 30; // - // H_LiveColonyHouse_Name + // supplierSelect // - this.H_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name"; - this.H_LiveColonyHouse_Name.HeaderText = "圈舍"; - this.H_LiveColonyHouse_Name.Name = "H_LiveColonyHouse_Name"; - this.H_LiveColonyHouse_Name.ReadOnly = true; - this.H_LiveColonyHouse_Name.Width = 150; + this.supplierSelect.CodeArgs = null; + this.supplierSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.supplierSelect.EnableTopItem = true; + this.supplierSelect.Font = new System.Drawing.Font("宋体", 14F); + this.supplierSelect.FormattingEnabled = true; + this.supplierSelect.Location = new System.Drawing.Point(103, 8); + this.supplierSelect.Name = "supplierSelect"; + this.supplierSelect.Range = 10; + this.supplierSelect.Size = new System.Drawing.Size(135, 30); + this.supplierSelect.TabIndex = 29; + this.supplierSelect.SelectedIndexChanged += new System.EventHandler(this.supplierSelect_SelectedIndexChanged); // - // H_Number + // testManInput // - this.H_Number.DataPropertyName = "Number"; - this.H_Number.HeaderText = "入圈头数"; - this.H_Number.Name = "H_Number"; - this.H_Number.Width = 130; + this.testManInput.Font = new System.Drawing.Font("宋体", 14F); + this.testManInput.Location = new System.Drawing.Point(1100, 90); + this.testManInput.Name = "testManInput"; + this.testManInput.Size = new System.Drawing.Size(135, 29); + this.testManInput.TabIndex = 28; // - // abnormalGrid + // testTimeInput // - this.abnormalGrid.AllowUserToAddRows = false; - this.abnormalGrid.AllowUserToDeleteRows = false; - this.abnormalGrid.AllowUserToResizeColumns = false; - this.abnormalGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.abnormalGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle15; - this.abnormalGrid.BackgroundColor = System.Drawing.Color.White; - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.abnormalGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16; - this.abnormalGrid.ColumnHeadersHeight = 24; - this.abnormalGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.abnormalGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.S_ID, - this.S_WeightBill_ID, - this.S_Sanction_ID, - this.S_AbnormalItem_ID, - this.S_Index, - this.S_AbnormalItem_Name, - this.S_Number}); - this.abnormalGrid.Location = new System.Drawing.Point(443, 445); - this.abnormalGrid.MultiSelect = false; - this.abnormalGrid.Name = "abnormalGrid"; - this.abnormalGrid.RowHeadersVisible = false; - dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle17.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.abnormalGrid.RowsDefaultCellStyle = dataGridViewCellStyle17; - this.abnormalGrid.RowTemplate.Height = 23; - this.abnormalGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.abnormalGrid.Size = new System.Drawing.Size(400, 91); - this.abnormalGrid.TabIndex = 1; + this.testTimeInput.BackColor = System.Drawing.Color.White; + this.testTimeInput.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.testTimeInput.Date = new System.DateTime(2017, 9, 8, 0, 0, 0, 0); + this.testTimeInput.Font = new System.Drawing.Font("宋体", 15F); + this.testTimeInput.Location = new System.Drawing.Point(1100, 51); + this.testTimeInput.Name = "testTimeInput"; + this.testTimeInput.Size = new System.Drawing.Size(135, 30); + this.testTimeInput.TabIndex = 27; + this.testTimeInput.Text = "2017/09/08"; + this.testTimeInput.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.testTimeInput.Type = BWP.WinFormControl.DateTimeType.Date; // - // S_ID + // weightTimeSelect // - this.S_ID.DataPropertyName = "ID"; - this.S_ID.HeaderText = "ID"; - this.S_ID.Name = "S_ID"; - this.S_ID.Visible = false; + this.weightTimeSelect.BackColor = System.Drawing.Color.White; + this.weightTimeSelect.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.weightTimeSelect.Date = new System.DateTime(2017, 9, 8, 16, 38, 45, 0); + this.weightTimeSelect.Font = new System.Drawing.Font("宋体", 9F); + this.weightTimeSelect.Location = new System.Drawing.Point(103, 49); + this.weightTimeSelect.Name = "weightTimeSelect"; + this.weightTimeSelect.Size = new System.Drawing.Size(135, 30); + this.weightTimeSelect.TabIndex = 26; + this.weightTimeSelect.Text = "2017/09/08 16:38:45"; + this.weightTimeSelect.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.weightTimeSelect.Type = BWP.WinFormControl.DateTimeType.DateTime; // - // S_WeightBill_ID + // label19 // - this.S_WeightBill_ID.DataPropertyName = "WeightBill_ID"; - this.S_WeightBill_ID.HeaderText = "WeightBill_ID"; - this.S_WeightBill_ID.Name = "S_WeightBill_ID"; - this.S_WeightBill_ID.Visible = false; + this.label19.AutoSize = true; + this.label19.Font = new System.Drawing.Font("宋体", 14F); + this.label19.Location = new System.Drawing.Point(270, 94); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(66, 19); + this.label19.TabIndex = 24; + this.label19.Text = "业务员"; // - // S_Sanction_ID + // label20 // - this.S_Sanction_ID.DataPropertyName = "Sanction_ID"; - this.S_Sanction_ID.HeaderText = "Sanction_ID"; - this.S_Sanction_ID.Name = "S_Sanction_ID"; - this.S_Sanction_ID.Visible = false; + this.label20.AutoSize = true; + this.label20.Font = new System.Drawing.Font("宋体", 14F); + this.label20.Location = new System.Drawing.Point(289, 55); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 19); + this.label20.TabIndex = 23; + this.label20.Text = "车辆"; // - // S_AbnormalItem_ID + // label21 // - this.S_AbnormalItem_ID.HeaderText = "AbnormalItem_ID"; - this.S_AbnormalItem_ID.Name = "S_AbnormalItem_ID"; - this.S_AbnormalItem_ID.Visible = false; + this.label21.AutoSize = true; + this.label21.Font = new System.Drawing.Font("宋体", 14F); + this.label21.Location = new System.Drawing.Point(251, 15); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(85, 19); + this.label21.TabIndex = 22; + this.label21.Text = "收购类型"; // - // S_Index + // label23 // - this.S_Index.DataPropertyName = "Index"; - this.S_Index.HeaderText = "序号"; - this.S_Index.Name = "S_Index"; - this.S_Index.ReadOnly = true; - this.S_Index.Width = 80; + this.label23.AutoSize = true; + this.label23.Font = new System.Drawing.Font("宋体", 14F); + this.label23.Location = new System.Drawing.Point(6, 94); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(85, 19); + this.label23.TabIndex = 20; + this.label23.Text = "生猪品种"; // - // S_AbnormalItem_Name + // label24 // - this.S_AbnormalItem_Name.DataPropertyName = "AbnormalItem_Name"; - this.S_AbnormalItem_Name.HeaderText = "异常项目"; - this.S_AbnormalItem_Name.Name = "S_AbnormalItem_Name"; - this.S_AbnormalItem_Name.ReadOnly = true; - this.S_AbnormalItem_Name.Width = 150; + this.label24.AutoSize = true; + this.label24.Font = new System.Drawing.Font("宋体", 14F); + this.label24.Location = new System.Drawing.Point(22, 15); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(66, 19); + this.label24.TabIndex = 19; + this.label24.Text = "供应商"; // - // S_Number + // label25 // - this.S_Number.DataPropertyName = "Number"; - this.S_Number.HeaderText = "头数"; - this.S_Number.Name = "S_Number"; - this.S_Number.Width = 130; + this.label25.AutoSize = true; + this.label25.Font = new System.Drawing.Font("宋体", 14F); + this.label25.Location = new System.Drawing.Point(6, 55); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(85, 19); + this.label25.TabIndex = 17; + this.label25.Text = "过磅时间"; // - // billGrid + // tableLayoutPanel3 + // + this.tableLayoutPanel3.ColumnCount = 4; + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 3); + this.tableLayoutPanel3.Name = "tableLayoutPanel3"; + this.tableLayoutPanel3.RowCount = 4; + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel3.Size = new System.Drawing.Size(492, 162); + this.tableLayoutPanel3.TabIndex = 18; + // + // penMoneyInput + // + this.penMoneyInput.Font = new System.Drawing.Font("宋体", 14F); + this.penMoneyInput.Location = new System.Drawing.Point(854, 89); + this.penMoneyInput.Name = "penMoneyInput"; + this.penMoneyInput.ReadOnly = true; + this.penMoneyInput.Size = new System.Drawing.Size(135, 29); + this.penMoneyInput.TabIndex = 15; + this.penMoneyInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); + // + // remarkInput + // + this.remarkInput.Font = new System.Drawing.Font("宋体", 14F); + this.remarkInput.Location = new System.Drawing.Point(854, 130); + this.remarkInput.Name = "remarkInput"; + this.remarkInput.Size = new System.Drawing.Size(381, 29); + this.remarkInput.TabIndex = 14; + // + // panel2 + // + this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel2.BackColor = System.Drawing.Color.WhiteSmoke; + this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel2.Controls.Add(this.bankAccountLabel); + this.panel2.Controls.Add(this.label22); + this.panel2.Controls.Add(this.discontInput); + this.panel2.Controls.Add(this.label9); + this.panel2.Controls.Add(this.jingjianInput); + this.panel2.Controls.Add(this.label6); + this.panel2.Controls.Add(this.zoneSelect); + this.panel2.Controls.Add(this.hogGradeSelect); + this.panel2.Controls.Add(this.label2); + this.panel2.Controls.Add(this.label1); + this.panel2.Controls.Add(this.employeeSelect); + this.panel2.Controls.Add(this.carSelect); + this.panel2.Controls.Add(this.liveVarietiesSelect); + this.panel2.Controls.Add(this.purchaseTypeSelect); + this.panel2.Controls.Add(this.supplierSelect); + this.panel2.Controls.Add(this.testManInput); + this.panel2.Controls.Add(this.testTimeInput); + this.panel2.Controls.Add(this.weightTimeSelect); + this.panel2.Controls.Add(this.label19); + this.panel2.Controls.Add(this.label20); + this.panel2.Controls.Add(this.label21); + this.panel2.Controls.Add(this.label23); + this.panel2.Controls.Add(this.label24); + this.panel2.Controls.Add(this.label25); + this.panel2.Controls.Add(this.tableLayoutPanel3); + this.panel2.Controls.Add(this.penMoneyInput); + this.panel2.Controls.Add(this.remarkInput); + this.panel2.Controls.Add(this.penPriceInput); + this.panel2.Controls.Add(this.testCardNumberInput); + this.panel2.Controls.Add(this.penWeightInput); + this.panel2.Controls.Add(this.label14); + this.panel2.Controls.Add(this.label13); + this.panel2.Controls.Add(this.label12); + this.panel2.Controls.Add(this.label11); + this.panel2.Controls.Add(this.label10); + this.panel2.Controls.Add(this.label8); + this.panel2.Controls.Add(this.label7); + this.panel2.Controls.Add(this.tableLayoutPanel2); + this.panel2.Location = new System.Drawing.Point(14, 110); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1251, 174); + this.panel2.TabIndex = 63; + // + // penPriceInput + // + this.penPriceInput.Font = new System.Drawing.Font("宋体", 14F); + this.penPriceInput.Location = new System.Drawing.Point(854, 50); + this.penPriceInput.Name = "penPriceInput"; + this.penPriceInput.ReadOnly = true; + this.penPriceInput.Size = new System.Drawing.Size(135, 29); + this.penPriceInput.TabIndex = 12; // - this.billGrid.AllowUserToAddRows = false; - this.billGrid.AllowUserToDeleteRows = false; - this.billGrid.AllowUserToResizeColumns = false; - this.billGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.billGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle18; - this.billGrid.BackgroundColor = System.Drawing.Color.White; - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.billGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19; - this.billGrid.ColumnHeadersHeight = 24; - this.billGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.billGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.M_ID, - this.M_FinishWeight, - this.M_PrintNumber, - this.M_B3ID, - this.M_Car_Name, - this.M_Supplier_Name, - this.M_Employee_Name, - this.M_PurchaseType_Name, - this.M_Number, - this.M_Weight, - this.M_HouseNames, - this.M_SanctionMoney, - this.M_Remark}); - this.billGrid.Location = new System.Drawing.Point(12, 595); - this.billGrid.MultiSelect = false; - this.billGrid.Name = "billGrid"; - this.billGrid.ReadOnly = true; - this.billGrid.RowHeadersVisible = false; - dataGridViewCellStyle22.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle22.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.billGrid.RowsDefaultCellStyle = dataGridViewCellStyle22; - this.billGrid.RowTemplate.Height = 23; - this.billGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.billGrid.Size = new System.Drawing.Size(1250, 230); - this.billGrid.TabIndex = 0; - this.billGrid.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.billGrid_CellDoubleClick); + // testCardNumberInput // - // M_ID + this.testCardNumberInput.Font = new System.Drawing.Font("宋体", 14F); + this.testCardNumberInput.Location = new System.Drawing.Point(1100, 9); + this.testCardNumberInput.Name = "testCardNumberInput"; + this.testCardNumberInput.Size = new System.Drawing.Size(135, 29); + this.testCardNumberInput.TabIndex = 11; // - this.M_ID.DataPropertyName = "ID"; - this.M_ID.HeaderText = "ID"; - this.M_ID.Name = "M_ID"; - this.M_ID.ReadOnly = true; - this.M_ID.Visible = false; + // penWeightInput // - // M_FinishWeight + this.penWeightInput.Font = new System.Drawing.Font("宋体", 14F); + this.penWeightInput.Location = new System.Drawing.Point(854, 9); + this.penWeightInput.Name = "penWeightInput"; + this.penWeightInput.ReadOnly = true; + this.penWeightInput.Size = new System.Drawing.Size(135, 29); + this.penWeightInput.TabIndex = 0; + this.penWeightInput.TextChanged += new System.EventHandler(this.penMoneyInput_TextChanged); // - this.M_FinishWeight.DataPropertyName = "FinishWeight"; - this.M_FinishWeight.HeaderText = "FinishWeight"; - this.M_FinishWeight.Name = "M_FinishWeight"; - this.M_FinishWeight.ReadOnly = true; - this.M_FinishWeight.Visible = false; + // label14 // - // M_PrintNumber + this.label14.AutoSize = true; + this.label14.Font = new System.Drawing.Font("宋体", 14F); + this.label14.Location = new System.Drawing.Point(1021, 94); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(66, 19); + this.label14.TabIndex = 7; + this.label14.Text = "动检人"; // - this.M_PrintNumber.DataPropertyName = "PrintNumber"; - this.M_PrintNumber.HeaderText = "PrintNumber"; - this.M_PrintNumber.Name = "M_PrintNumber"; - this.M_PrintNumber.ReadOnly = true; - this.M_PrintNumber.Visible = false; + // label13 // - // M_B3ID + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("宋体", 14F); + this.label13.Location = new System.Drawing.Point(1002, 55); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(85, 19); + this.label13.TabIndex = 6; + this.label13.Text = "动检日期"; // - this.M_B3ID.DataPropertyName = "B3ID"; - this.M_B3ID.HeaderText = "过磅单号"; - this.M_B3ID.Name = "M_B3ID"; - this.M_B3ID.ReadOnly = true; + // label12 // - // M_Car_Name + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("宋体", 14F); + this.label12.Location = new System.Drawing.Point(1002, 15); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(85, 19); + this.label12.TabIndex = 5; + this.label12.Text = "动检证号"; // - this.M_Car_Name.DataPropertyName = "Car_Name"; - this.M_Car_Name.HeaderText = "车辆"; - this.M_Car_Name.Name = "M_Car_Name"; - this.M_Car_Name.ReadOnly = true; - this.M_Car_Name.Width = 120; + // label11 // - // M_Supplier_Name + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("宋体", 14F); + this.label11.Location = new System.Drawing.Point(795, 136); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(47, 19); + this.label11.TabIndex = 4; + this.label11.Text = "摘要"; // - this.M_Supplier_Name.DataPropertyName = "Supplier_Name"; - this.M_Supplier_Name.HeaderText = "供应商"; - this.M_Supplier_Name.Name = "M_Supplier_Name"; - this.M_Supplier_Name.ReadOnly = true; - this.M_Supplier_Name.Width = 120; + // label10 // - // M_Employee_Name + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("宋体", 14F); + this.label10.Location = new System.Drawing.Point(757, 94); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(85, 19); + this.label10.TabIndex = 3; + this.label10.Text = "棚前金额"; // - this.M_Employee_Name.DataPropertyName = "Employee_Name"; - this.M_Employee_Name.HeaderText = "业务员"; - this.M_Employee_Name.Name = "M_Employee_Name"; - this.M_Employee_Name.ReadOnly = true; - this.M_Employee_Name.Width = 110; + // label8 // - // M_PurchaseType_Name + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("宋体", 14F); + this.label8.Location = new System.Drawing.Point(757, 15); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(85, 19); + this.label8.TabIndex = 2; + this.label8.Text = "棚前重量"; // - this.M_PurchaseType_Name.DataPropertyName = "PurchaseType_Name"; - this.M_PurchaseType_Name.HeaderText = "收购类型"; - this.M_PurchaseType_Name.Name = "M_PurchaseType_Name"; - this.M_PurchaseType_Name.ReadOnly = true; - this.M_PurchaseType_Name.Width = 110; + // label7 // - // M_Number + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("宋体", 14F); + this.label7.Location = new System.Drawing.Point(757, 55); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(85, 19); + this.label7.TabIndex = 1; + this.label7.Text = "棚前单价"; // - this.M_Number.DataPropertyName = "Number"; - this.M_Number.HeaderText = "收购头数"; - this.M_Number.Name = "M_Number"; - this.M_Number.ReadOnly = true; - this.M_Number.Width = 110; + // tableLayoutPanel2 // - // M_Weight + this.tableLayoutPanel2.ColumnCount = 4; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.tableLayoutPanel2.Location = new System.Drawing.Point(754, 3); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 4; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(492, 162); + this.tableLayoutPanel2.TabIndex = 1; // - this.M_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle20.Format = "#0.######"; - this.M_Weight.DefaultCellStyle = dataGridViewCellStyle20; - this.M_Weight.HeaderText = "收购重量"; - this.M_Weight.Name = "M_Weight"; - this.M_Weight.ReadOnly = true; - this.M_Weight.Width = 120; + // panel4 + // + this.panel4.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel4.BackColor = System.Drawing.Color.WhiteSmoke; + this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel4.Controls.Add(this.enableCheckBox); + this.panel4.Controls.Add(this.weightSet); + this.panel4.Controls.Add(this.exitBtn); + this.panel4.Controls.Add(this.deleteBtn); + this.panel4.Controls.Add(this.printBtn); + this.panel4.Controls.Add(this.createBtn); + this.panel4.Controls.Add(this.commitBtn); + this.panel4.Controls.Add(this.readPiBtn); + this.panel4.Controls.Add(this.readMaoBtn); + this.panel4.Location = new System.Drawing.Point(13, 44); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(1252, 61); + this.panel4.TabIndex = 62; // - // M_HouseNames + // enableCheckBox // - this.M_HouseNames.DataPropertyName = "HouseNames"; - this.M_HouseNames.HeaderText = "圈舍"; - this.M_HouseNames.Name = "M_HouseNames"; - this.M_HouseNames.ReadOnly = true; - this.M_HouseNames.Width = 180; + this.enableCheckBox.AutoCheck = false; + this.enableCheckBox.AutoSize = true; + this.enableCheckBox.Font = new System.Drawing.Font("宋体", 15F); + this.enableCheckBox.Location = new System.Drawing.Point(162, 17); + this.enableCheckBox.Name = "enableCheckBox"; + this.enableCheckBox.Size = new System.Drawing.Size(108, 24); + this.enableCheckBox.TabIndex = 11; + this.enableCheckBox.Text = "启用称重"; + this.enableCheckBox.UseVisualStyleBackColor = true; + this.enableCheckBox.Click += new System.EventHandler(this.enableCheckBox_Click); // - // M_SanctionMoney + // D_Index // - this.M_SanctionMoney.DataPropertyName = "SanctionMoney"; - dataGridViewCellStyle21.Format = "#0.######"; - this.M_SanctionMoney.DefaultCellStyle = dataGridViewCellStyle21; - this.M_SanctionMoney.HeaderText = "异常明细"; - this.M_SanctionMoney.Name = "M_SanctionMoney"; - this.M_SanctionMoney.ReadOnly = true; + this.D_Index.DataPropertyName = "Index"; + this.D_Index.HeaderText = "序号"; + this.D_Index.Name = "D_Index"; + this.D_Index.ReadOnly = true; + this.D_Index.Width = 55; // - // M_Remark + // D_WeightBill_ID // - this.M_Remark.DataPropertyName = "Remark"; - this.M_Remark.HeaderText = "摘要"; - this.M_Remark.Name = "M_Remark"; - this.M_Remark.ReadOnly = true; - this.M_Remark.Width = 130; + this.D_WeightBill_ID.DataPropertyName = "WeightBill_ID"; + this.D_WeightBill_ID.HeaderText = "WeightBill_ID"; + this.D_WeightBill_ID.Name = "D_WeightBill_ID"; + this.D_WeightBill_ID.Visible = false; // - // label15 + // D_ID // - this.label15.AutoSize = true; - this.label15.Font = new System.Drawing.Font("宋体", 15F); - this.label15.ForeColor = System.Drawing.Color.Red; - this.label15.Location = new System.Drawing.Point(13, 424); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(89, 20); - this.label15.TabIndex = 6; - this.label15.Text = "过磅记录"; + this.D_ID.DataPropertyName = "ID"; + this.D_ID.HeaderText = "ID"; + this.D_ID.Name = "D_ID"; + this.D_ID.Visible = false; // - // label16 + // weightGrid // - this.label16.AutoSize = true; - this.label16.Font = new System.Drawing.Font("宋体", 15F); - this.label16.ForeColor = System.Drawing.Color.Red; - this.label16.Location = new System.Drawing.Point(438, 424); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(89, 20); - this.label16.TabIndex = 7; - this.label16.Text = "入圈信息"; + this.weightGrid.AllowUserToAddRows = false; + this.weightGrid.AllowUserToDeleteRows = false; + this.weightGrid.AllowUserToResizeColumns = false; + this.weightGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle18; + this.weightGrid.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.weightGrid.BackgroundColor = System.Drawing.Color.White; + dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 12F); + dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19; + this.weightGrid.ColumnHeadersHeight = 24; + this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.D_ID, + this.D_WeightBill_ID, + this.D_Index, + this.D_Number, + this.D_MaoWeight, + this.D_PiWeight, + this.D_Weight}); + this.weightGrid.Location = new System.Drawing.Point(17, 479); + this.weightGrid.MultiSelect = false; + this.weightGrid.Name = "weightGrid"; + this.weightGrid.RowHeadersVisible = false; + dataGridViewCellStyle20.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle20.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(151)))), ((int)(((byte)(230))))); + this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle20; + this.weightGrid.RowTemplate.Height = 23; + this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.weightGrid.Size = new System.Drawing.Size(400, 90); + this.weightGrid.TabIndex = 59; // - // label17 + // D_Number // - 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(439, 424); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(89, 20); - this.label17.TabIndex = 8; - this.label17.Text = "异常明细"; + this.D_Number.DataPropertyName = "Number"; + this.D_Number.HeaderText = "头数"; + this.D_Number.Name = "D_Number"; + this.D_Number.Width = 75; // - // panel5 + // label3 // - this.panel5.BackColor = System.Drawing.Color.Black; - this.panel5.Controls.Add(this.weightLabel); - this.panel5.Location = new System.Drawing.Point(13, 13); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(156, 59); - this.panel5.TabIndex = 11; + this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("宋体", 15F); + this.label3.Location = new System.Drawing.Point(132, 303); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(89, 20); + this.label3.TabIndex = 69; + this.label3.Text = "养殖户:"; // - // weightLabel + // label18 // - this.weightLabel.AutoSize = true; - this.weightLabel.Font = new System.Drawing.Font("宋体", 22F, System.Drawing.FontStyle.Bold); - this.weightLabel.ForeColor = System.Drawing.Color.Red; - this.weightLabel.Location = new System.Drawing.Point(3, 15); - this.weightLabel.Name = "weightLabel"; - this.weightLabel.Size = new System.Drawing.Size(29, 30); - this.weightLabel.TabIndex = 12; - this.weightLabel.Text = "0"; + this.label18.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label18.AutoSize = true; + this.label18.Font = new System.Drawing.Font("黑体", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(73)))), ((int)(((byte)(211))))); + this.label18.Location = new System.Drawing.Point(13, 303); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(98, 17); + this.label18.TabIndex = 65; + this.label18.Text = "养殖户信息"; // - // label4 + // F_Farmer_Address // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("宋体", 15F); - this.label4.Location = new System.Drawing.Point(9, 566); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(69, 20); - this.label4.TabIndex = 39; - this.label4.Text = "车辆:"; + this.F_Farmer_Address.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.F_Farmer_Address.DataPropertyName = "Farmer_Address"; + this.F_Farmer_Address.HeaderText = "地址"; + this.F_Farmer_Address.Name = "F_Farmer_Address"; + this.F_Farmer_Address.ReadOnly = true; // - // label5 + // F_Farmer_Tel // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("宋体", 15F); - this.label5.Location = new System.Drawing.Point(204, 566); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(89, 20); - this.label5.TabIndex = 41; - this.label5.Text = "供应商:"; + this.F_Farmer_Tel.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.F_Farmer_Tel.DataPropertyName = "Farmer_Tel"; + this.F_Farmer_Tel.HeaderText = "手机"; + this.F_Farmer_Tel.Name = "F_Farmer_Tel"; + this.F_Farmer_Tel.ReadOnly = true; // - // queryBtn + // F_Farmer_BankAccount // - this.queryBtn.Font = new System.Drawing.Font("宋体", 13F); - this.queryBtn.Location = new System.Drawing.Point(708, 556); - this.queryBtn.Name = "queryBtn"; - this.queryBtn.Size = new System.Drawing.Size(80, 35); - this.queryBtn.TabIndex = 43; - this.queryBtn.Text = "查询"; - this.queryBtn.UseVisualStyleBackColor = true; - this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click); + this.F_Farmer_BankAccount.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.F_Farmer_BankAccount.DataPropertyName = "Farmer_BankAccount"; + this.F_Farmer_BankAccount.HeaderText = "银行卡号"; + this.F_Farmer_BankAccount.Name = "F_Farmer_BankAccount"; + this.F_Farmer_BankAccount.ReadOnly = true; // - // qSupplierSelect + // F_Farmer_IDCard // - this.qSupplierSelect.CodeArgs = null; - this.qSupplierSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.qSupplierSelect.EnableTopItem = true; - this.qSupplierSelect.Font = new System.Drawing.Font("宋体", 12F); - this.qSupplierSelect.FormattingEnabled = true; - this.qSupplierSelect.Location = new System.Drawing.Point(279, 562); - this.qSupplierSelect.Name = "qSupplierSelect"; - this.qSupplierSelect.Range = 10; - this.qSupplierSelect.Size = new System.Drawing.Size(135, 27); - this.qSupplierSelect.TabIndex = 42; + this.F_Farmer_IDCard.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.F_Farmer_IDCard.DataPropertyName = "Farmer_IDCard"; + this.F_Farmer_IDCard.HeaderText = "身份证号"; + this.F_Farmer_IDCard.Name = "F_Farmer_IDCard"; + this.F_Farmer_IDCard.ReadOnly = true; // - // qCarSelect + // F_Money // - this.qCarSelect.CodeArgs = null; - this.qCarSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.qCarSelect.EnableTopItem = true; - this.qCarSelect.Font = new System.Drawing.Font("宋体", 12F); - this.qCarSelect.FormattingEnabled = true; - this.qCarSelect.Location = new System.Drawing.Point(64, 562); - this.qCarSelect.Name = "qCarSelect"; - this.qCarSelect.Range = 10; - this.qCarSelect.Size = new System.Drawing.Size(135, 27); - this.qCarSelect.TabIndex = 40; + this.F_Money.DataPropertyName = "Money"; + dataGridViewCellStyle21.Format = "#0.######"; + this.F_Money.DefaultCellStyle = dataGridViewCellStyle21; + this.F_Money.HeaderText = "棚前金额"; + this.F_Money.Name = "F_Money"; // - // farmerMenu + // F_Weight // - this.farmerMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.farmerDelete}); - this.farmerMenu.Name = "farmerMenu"; - this.farmerMenu.Size = new System.Drawing.Size(101, 26); + this.F_Weight.DataPropertyName = "Weight"; + dataGridViewCellStyle22.Format = "#0.######"; + this.F_Weight.DefaultCellStyle = dataGridViewCellStyle22; + this.F_Weight.HeaderText = "重量"; + this.F_Weight.Name = "F_Weight"; // - // farmerDelete + // F_Number // - this.farmerDelete.Name = "farmerDelete"; - this.farmerDelete.Size = new System.Drawing.Size(100, 22); - this.farmerDelete.Text = "删除"; - this.farmerDelete.Click += new System.EventHandler(this.farmerDelete_Click); + this.F_Number.DataPropertyName = "Number"; + this.F_Number.HeaderText = "头数"; + this.F_Number.Name = "F_Number"; + this.F_Number.Width = 80; // - // viewDetailBtn + // F_Farmer_Name // - this.viewDetailBtn.Font = new System.Drawing.Font("宋体", 15F); - this.viewDetailBtn.Location = new System.Drawing.Point(108, 414); - this.viewDetailBtn.Name = "viewDetailBtn"; - this.viewDetailBtn.Size = new System.Drawing.Size(80, 30); - this.viewDetailBtn.TabIndex = 44; - this.viewDetailBtn.Text = "记录"; - this.viewDetailBtn.UseVisualStyleBackColor = true; - this.viewDetailBtn.Click += new System.EventHandler(this.viewDetailBtn_Click); + this.F_Farmer_Name.DataPropertyName = "Farmer_Name"; + this.F_Farmer_Name.HeaderText = "养殖户"; + this.F_Farmer_Name.Name = "F_Farmer_Name"; + this.F_Farmer_Name.ReadOnly = true; + this.F_Farmer_Name.Width = 120; // - // uDatePicker1 + // F_Index // - 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(539, 561); - this.uDatePicker1.Name = "uDatePicker1"; - this.uDatePicker1.Size = new System.Drawing.Size(150, 30); - this.uDatePicker1.TabIndex = 46; - this.uDatePicker1.Text = "2017/09/05"; - this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date; + this.F_Index.DataPropertyName = "Index"; + this.F_Index.HeaderText = "序号"; + this.F_Index.Name = "F_Index"; + this.F_Index.ReadOnly = true; + this.F_Index.Width = 80; // - // label26 + // F_WeightBill_ID // - this.label26.AutoSize = true; - this.label26.Font = new System.Drawing.Font("宋体", 15F); - this.label26.Location = new System.Drawing.Point(431, 566); - this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(109, 20); - this.label26.TabIndex = 45; - this.label26.Text = "宰杀日期:"; + this.F_WeightBill_ID.DataPropertyName = "WeightBill_ID"; + this.F_WeightBill_ID.HeaderText = "WeightBill_ID"; + this.F_WeightBill_ID.Name = "F_WeightBill_ID"; + this.F_WeightBill_ID.Visible = false; // - // totalNumLbl + // F_ID // - this.totalNumLbl.AutoSize = true; - this.totalNumLbl.Font = new System.Drawing.Font("宋体", 17F); - this.totalNumLbl.ForeColor = System.Drawing.Color.Red; - this.totalNumLbl.Location = new System.Drawing.Point(882, 566); - this.totalNumLbl.Name = "totalNumLbl"; - this.totalNumLbl.Size = new System.Drawing.Size(22, 23); - this.totalNumLbl.TabIndex = 52; - this.totalNumLbl.Text = "0"; + this.F_ID.DataPropertyName = "ID"; + this.F_ID.HeaderText = "ID"; + this.F_ID.Name = "F_ID"; + this.F_ID.Visible = false; // - // label32 + // farmerSelect // - this.label32.AutoSize = true; - this.label32.Font = new System.Drawing.Font("宋体", 14F); - this.label32.Location = new System.Drawing.Point(810, 566); - this.label32.Name = "label32"; - this.label32.Size = new System.Drawing.Size(66, 19); - this.label32.TabIndex = 51; - this.label32.Text = "合计:"; + this.farmerSelect.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.farmerSelect.CodeArgs = null; + this.farmerSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.farmerSelect.EnableTopItem = true; + this.farmerSelect.Font = new System.Drawing.Font("宋体", 12F); + this.farmerSelect.FormattingEnabled = true; + this.farmerSelect.Location = new System.Drawing.Point(220, 297); + this.farmerSelect.Name = "farmerSelect"; + this.farmerSelect.Range = 10; + this.farmerSelect.Size = new System.Drawing.Size(135, 27); + this.farmerSelect.TabIndex = 71; + this.farmerSelect.SelectedIndexChanged += new System.EventHandler(this.farmerSelect_SelectedIndexChanged); // - // msgGrid + // farmerGrid // - this.msgGrid.AllowUserToAddRows = false; - this.msgGrid.AllowUserToDeleteRows = false; - this.msgGrid.AllowUserToResizeColumns = false; - this.msgGrid.AllowUserToResizeRows = false; + this.farmerGrid.AllowUserToAddRows = false; + this.farmerGrid.AllowUserToDeleteRows = false; + this.farmerGrid.AllowUserToResizeColumns = false; + this.farmerGrid.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; + this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle23; + this.farmerGrid.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.farmerGrid.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); @@ -1562,75 +1671,53 @@ 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); - // - // 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; + this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle24; + this.farmerGrid.ColumnHeadersHeight = 24; + this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.F_ID, + this.F_WeightBill_ID, + this.F_Farmer_ID, + this.F_Index, + this.F_Farmer_Name, + this.F_Number, + this.F_Weight, + this.F_Money, + this.F_Farmer_IDCard, + this.F_Farmer_BankAccount, + this.F_Farmer_Tel, + this.F_Farmer_Address}); + this.farmerGrid.Location = new System.Drawing.Point(12, 329); + this.farmerGrid.MultiSelect = false; + this.farmerGrid.Name = "farmerGrid"; + this.farmerGrid.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)(115)))), ((int)(((byte)(151)))), ((int)(((byte)(230))))); + this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle25; + this.farmerGrid.RowTemplate.Height = 23; + this.farmerGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.farmerGrid.Size = new System.Drawing.Size(1249, 113); + this.farmerGrid.TabIndex = 68; + this.farmerGrid.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.farmerGrid_CellMouseDown); + this.farmerGrid.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.farmerGrid_CellValueChanged); // - // label27 + // F_Farmer_ID // - 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 = "我的待办"; + this.F_Farmer_ID.DataPropertyName = "Farmer_ID"; + this.F_Farmer_ID.HeaderText = "Farmer_ID"; + this.F_Farmer_ID.Name = "F_Farmer_ID"; + this.F_Farmer_ID.Visible = false; // // 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.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(234)))), ((int)(((byte)(252))))); + this.ClientSize = new System.Drawing.Size(1276, 705); this.Controls.Add(this.farmerSelect); - this.Controls.Add(this.farmerGrid); - this.Controls.Add(this.label3); - this.Controls.Add(this.label18); + this.Controls.Add(this.billGrid); + this.Controls.Add(this.label27); + this.Controls.Add(this.msgGrid); this.Controls.Add(this.totalNumLbl); this.Controls.Add(this.label32); this.Controls.Add(this.uDatePicker1); @@ -1642,32 +1729,38 @@ this.Controls.Add(this.qCarSelect); this.Controls.Add(this.label4); this.Controls.Add(this.panel5); - this.Controls.Add(this.abnormalGrid); - this.Controls.Add(this.billGrid); - this.Controls.Add(this.label17); - this.Controls.Add(this.label16); this.Controls.Add(this.label15); this.Controls.Add(this.panel2); + this.Controls.Add(this.panel4); + this.Controls.Add(this.weightGrid); + this.Controls.Add(this.label3); + this.Controls.Add(this.label18); + this.Controls.Add(this.farmerGrid); this.Controls.Add(this.panel1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Controls.Add(this.panel3); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.MaximizeBox = false; this.Name = "WeightForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "毛猪过磅"; this.Load += new System.EventHandler(this.WeightForm_Load); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.houseGird)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.abnormalGrid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.houseGird)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.billGrid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.msgGrid)).EndInit(); + this.farmerMenu.ResumeLayout(false); this.panel5.ResumeLayout(false); this.panel5.PerformLayout(); - this.farmerMenu.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.msgGrid)).EndInit(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -1675,15 +1768,99 @@ #endregion + private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Button commitBtn; + private System.Windows.Forms.DataGridViewTextBoxColumn M_SanctionMoney; + private System.Windows.Forms.DataGridViewTextBoxColumn M_Weight; + private System.Windows.Forms.DataGridViewTextBoxColumn M_Number; + private System.Windows.Forms.DataGridViewTextBoxColumn M_PurchaseType_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn M_Employee_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn M_Supplier_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn M_Car_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn M_B3ID; + private System.Windows.Forms.DataGridViewTextBoxColumn M_PrintNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn M_FinishWeight; + private System.Windows.Forms.DataGridViewTextBoxColumn M_ID; + private System.Windows.Forms.DataGridView billGrid; + private System.Windows.Forms.DataGridViewTextBoxColumn M_HouseNames; + private System.Windows.Forms.DataGridViewTextBoxColumn M_Remark; + private System.Windows.Forms.DataGridViewTextBoxColumn S_Number; + private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn S_Index; + private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn S_Sanction_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn S_WeightBill_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn S_ID; + private System.Windows.Forms.DataGridView abnormalGrid; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Number; + private System.Windows.Forms.DataGridViewTextBoxColumn H_LiveColonyHouse_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn H_Index; + private System.Windows.Forms.DataGridViewTextBoxColumn H_LiveColonyHouse_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn H_WeightBill_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; + private System.Windows.Forms.DataGridView houseGird; + private System.Windows.Forms.DataGridViewTextBoxColumn D_Weight; private System.Windows.Forms.Button readPiBtn; + private System.Windows.Forms.Button weightSet; + private System.Windows.Forms.Button exitBtn; + private System.Windows.Forms.Button deleteBtn; + private System.Windows.Forms.Button printBtn; + private System.Windows.Forms.Button createBtn; + private System.Windows.Forms.Button commitBtn; private System.Windows.Forms.Button readMaoBtn; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label27; + private System.Windows.Forms.DataGridViewTextBoxColumn msg_Supplier_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn msg_Car_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn msg_WeightBill_ID; + private System.Windows.Forms.DataGridView msgGrid; + private System.Windows.Forms.Label totalNumLbl; + private System.Windows.Forms.Label label32; + private BWP.WinFormControl.UDatePicker uDatePicker1; + private System.Windows.Forms.Label label26; + private System.Windows.Forms.Button viewDetailBtn; + private System.Windows.Forms.ToolStripMenuItem farmerDelete; + private System.Windows.Forms.ContextMenuStrip farmerMenu; + private System.Windows.Forms.Button queryBtn; + private BWP.WinFormControl.UComboBox qSupplierSelect; + private System.Windows.Forms.Label label5; + private BWP.WinFormControl.UComboBox qCarSelect; + private System.Windows.Forms.Label label4; + private System.IO.Ports.SerialPort weightSerialPort; + private System.Windows.Forms.Label weightLabel; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.DataGridViewTextBoxColumn D_PiWeight; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.DataGridViewTextBoxColumn D_MaoWeight; + private System.Windows.Forms.Label bankAccountLabel; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.TextBox discontInput; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.TextBox jingjianInput; + private System.Windows.Forms.Label label6; + private BWP.WinFormControl.UComboBox zoneSelect; + private BWP.WinFormControl.UComboBox hogGradeSelect; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private BWP.WinFormControl.UComboBox employeeSelect; + private BWP.WinFormControl.UComboBox carSelect; + private BWP.WinFormControl.UComboBox liveVarietiesSelect; + private BWP.WinFormControl.UComboBox purchaseTypeSelect; + private BWP.WinFormControl.UComboBox supplierSelect; + private System.Windows.Forms.TextBox testManInput; + private BWP.WinFormControl.UDatePicker testTimeInput; + private BWP.WinFormControl.UDatePicker weightTimeSelect; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.Label label24; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; private System.Windows.Forms.TextBox penMoneyInput; private System.Windows.Forms.TextBox remarkInput; + private System.Windows.Forms.Panel panel2; private System.Windows.Forms.TextBox penPriceInput; private System.Windows.Forms.TextBox testCardNumberInput; private System.Windows.Forms.TextBox penWeightInput; @@ -1693,112 +1870,31 @@ private System.Windows.Forms.Label label11; private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label8; - private System.Windows.Forms.DataGridView farmerGrid; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.DataGridView weightGrid; - private System.Windows.Forms.DataGridView houseGird; - private System.Windows.Forms.DataGridView abnormalGrid; - private System.Windows.Forms.DataGridView billGrid; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.Label label16; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.Label label21; - private System.Windows.Forms.Label label23; - private System.Windows.Forms.Label label24; - private System.Windows.Forms.Label label25; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; - private BWP.WinFormControl.UDatePicker weightTimeSelect; - private BWP.WinFormControl.UDatePicker testTimeInput; - private System.Windows.Forms.TextBox testManInput; - private BWP.WinFormControl.UComboBox supplierSelect; - private BWP.WinFormControl.UComboBox employeeSelect; - private BWP.WinFormControl.UComboBox carSelect; - private BWP.WinFormControl.UComboBox liveVarietiesSelect; - private BWP.WinFormControl.UComboBox purchaseTypeSelect; - private BWP.WinFormControl.UComboBox zoneSelect; - private BWP.WinFormControl.UComboBox hogGradeSelect; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private BWP.WinFormControl.UComboBox farmerSelect; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Button createBtn; - private System.Windows.Forms.Button exitBtn; - private System.Windows.Forms.Button deleteBtn; - private System.Windows.Forms.Button printBtn; - private System.Windows.Forms.Button weightSet; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.Panel panel4; private System.Windows.Forms.CheckBox enableCheckBox; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label weightLabel; - private System.IO.Ports.SerialPort weightSerialPort; - private BWP.WinFormControl.UComboBox qCarSelect; - private System.Windows.Forms.Label label4; - private BWP.WinFormControl.UComboBox qSupplierSelect; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Button queryBtn; - private System.Windows.Forms.ContextMenuStrip farmerMenu; - private System.Windows.Forms.ToolStripMenuItem farmerDelete; - private System.Windows.Forms.Button viewDetailBtn; - private System.Windows.Forms.TextBox discontInput; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.TextBox jingjianInput; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.DataGridViewTextBoxColumn D_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn D_WeightBill_ID; private System.Windows.Forms.DataGridViewTextBoxColumn D_Index; + private System.Windows.Forms.DataGridViewTextBoxColumn D_WeightBill_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn D_ID; + private System.Windows.Forms.DataGridView weightGrid; private System.Windows.Forms.DataGridViewTextBoxColumn D_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn D_MaoWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn D_PiWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn D_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn H_WeightBill_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn H_LiveColonyHouse_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Index; - private System.Windows.Forms.DataGridViewTextBoxColumn H_LiveColonyHouse_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn S_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn S_WeightBill_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn S_Sanction_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn S_Index; - private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn S_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn M_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn M_FinishWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn M_PrintNumber; - private System.Windows.Forms.DataGridViewTextBoxColumn M_B3ID; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Car_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Supplier_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Employee_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn M_PurchaseType_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn M_HouseNames; - private System.Windows.Forms.DataGridViewTextBoxColumn M_SanctionMoney; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Remark; - private System.Windows.Forms.Label bankAccountLabel; - private System.Windows.Forms.Label label22; - private BWP.WinFormControl.UDatePicker uDatePicker1; - private System.Windows.Forms.Label label26; - private System.Windows.Forms.Label totalNumLbl; - private System.Windows.Forms.Label label32; - private System.Windows.Forms.DataGridViewTextBoxColumn F_ID; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_Address; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_Tel; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_BankAccount; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_IDCard; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Money; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Weight; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Number; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_Name; + private System.Windows.Forms.DataGridViewTextBoxColumn F_Index; private System.Windows.Forms.DataGridViewTextBoxColumn F_WeightBill_ID; + private System.Windows.Forms.DataGridViewTextBoxColumn F_ID; + private BWP.WinFormControl.UComboBox farmerSelect; + private System.Windows.Forms.DataGridView farmerGrid; private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Index; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Money; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Farmer_IDCard; - 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; + private System.Windows.Forms.Label label28; } } \ No newline at end of file diff --git a/ButcherWeight/WeightForm.cs b/ButcherWeight/WeightForm.cs index f9043dd..192149d 100644 --- a/ButcherWeight/WeightForm.cs +++ b/ButcherWeight/WeightForm.cs @@ -33,6 +33,25 @@ namespace ButcherWeight } #endregion + private Point mousePoint = new Point(); + private void panel_title_MouseDown(object sender, MouseEventArgs e) + { + base.OnMouseDown(e); + this.mousePoint.X = e.X; + this.mousePoint.Y = e.Y; + } + + private void panel_title_MouseMove(object sender, MouseEventArgs e) + { + base.OnMouseMove(e); + if (e.Button == MouseButtons.Left) + { + this.Top = Control.MousePosition.Y - mousePoint.Y; + this.Left = Control.MousePosition.X - mousePoint.X; + } + } + + private delegate void InvokeHandler(); bool mainIsRun = false; @@ -47,6 +66,17 @@ namespace ButcherWeight public WeightForm() { InitializeComponent(); + foreach (var c in panel4.Controls) + { + if (c is Button) + { + var btn = c as Button; + btn.FlatStyle = FlatStyle.Flat; + btn.FlatAppearance.BorderSize = 0; + } + } + this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width; + this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height; uDatePicker1.Date = DateTime.Today; supplierSelect.Init("BaseInfoRpc/GetSupplierList"); purchaseTypeSelect.Init("BaseInfoRpc/GetPurchaseTypeList"); @@ -147,10 +177,10 @@ namespace ButcherWeight billGrid.DataSource = dmoList.OrderByDescending(x => x.ID).OrderBy(x => x.FinishWeight).ToList(); foreach (DataGridViewRow row in billGrid.Rows) { - if ((bool)row.Cells["M_FinishWeight"].Value) - row.DefaultCellStyle.BackColor = Color.YellowGreen; if ((int)row.Cells["M_PrintNumber"].Value > 0) - row.DefaultCellStyle.BackColor = ColorTranslator.FromHtml("#CC9999"); + row.DefaultCellStyle.BackColor = Color.FromArgb(236, 152, 62); + else if ((bool)row.Cells["M_FinishWeight"].Value) + row.DefaultCellStyle.BackColor = Color.FromArgb(23, 223, 51); } totalNumLbl.Text = dmoList.Sum(x => x.Number ?? 0).ToString(); billGrid.Refresh(); diff --git a/ButcherWeight/WeightForm.resx b/ButcherWeight/WeightForm.resx index 1d2ddf1..57ce092 100644 --- a/ButcherWeight/WeightForm.resx +++ b/ButcherWeight/WeightForm.resx @@ -117,154 +117,348 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + iVBORw0KGgoAAAANSUhEUgAAAAEAAAAoCAIAAACw1AcgAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m + dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACPSURBVBhXFcOHFoEAAEDR9wtGtmOnUKHsvT/czN4k + H0P3nMvM+DLTv0x1m2nZZlL6MHYWLUaaxVB9M1De9JUXvcKTbv5JJ/egLd1pZW80xRuNzJV6+kItdaaa + PFFJnDDiR/TYgXJ0TymypxjeoYW2qEETJWBS8G/I+9bkhDWysEL2rpA8S7Ju5wLR9e+a/wA97S5ZX5Ah + VwAAAABJRU5ErkJggg== + + + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + + + 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 + gg== + + + + + iVBORw0KGgoAAAANSUhEUgAAAFoAAAAqCAYAAAAzikzDAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m + dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAM7SURBVGhD7dpZTypBEIbh+XvHn+uCuOOuuIs77iK4 + bxFQo/bxq5Nqa5oCROXmTF28CYlkiA8J09NdUTab/TM3N1ecn593CwsLbnFx0S0tLbnl5WW3srJCra6u + Urlczre2tpbIpAG7sBPMYAdDWMIUtjAGdPHm5sa9vb3Fen9/t75R6AhbGEezs7Pu9fXVamMwjmZmZtzz + 83Osl5cX6weFnjAm6Eql4qrV6pd6enqyPtJstGBL0NPT0+7x8VGtXC5bLaQZIhhHU1NT7u7uznd/f1+3 + h4cHS6QZcdIUxtHk5KS7vr6mcIfUur29tRqkmSF2hXE0MTHhzs/P3cXFRU2Xl5dWC2mGsIUxQZ+enrpi + sRirVCo17OzsLJFpFrLQEbYEPT4+7o6Ojqjj4+NYJycndSsUColMs+BCP3aFcTQ2Nub29vao/f39mg4O + DqwvpNmxK4yj0dFRt729HWtnZ6emfD5vKWlWoSeMCZo3TNbX12NtbGxYLRT6sStBZzIZv/sk450pLbmD + lcQ0E06zhHE0MjJC23m8TVovbP1ZtWlWHLvCmKCxu6SVzWatFtIMEUEPDw/Ts7jVvmBM0FhQIzwqWr8X + u3porPM4LK6tnydNPTSWH5x8g/X9pKlBtzFpatBtTJp6aO2N2u+O1TzN0kPz3bFR2l3V+lxZNMpD46jF + al8EPTQ0pC6yrd8LxgStPU5av5eHbrY5Yn0/2HpoDOdpYWDP+nqaISLowcHBminJZnuuVv1CR9jCmKA3 + Nzcp7dQAhScHVjzNDLErQQ8MDDQ98+K2trYskWaEQk8YE3R4aru7u1uTdjBp5VUrdmRXgu7v7/fzB4eH + h75mR+nWZ9JKGrIrjAka0zThcIg2CCKTF0xSmoW0koYwha2HlqNM+APD15vOkRdOYqGHtGI/9oQtQff1 + 9flhPKTNmIVfgvUvicmxH3vCFsYEfXV1RYUTkRKekxdNcqELo3KwZFeCTqfTfsaX53kbwVufSRsJy44w + hS2MAV3EjzxPp8vB6hCe8cPkB/6Paf+zNJGwjMuesP0wLgG6Ay96e3tdKpWienp6qO7ubl9XV5evs7Mz + 0UkLacRu7AjTD9tCOp3u+Au2mDGZwgrkuwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAAFoAAAAqCAYAAAAzikzDAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m + dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAASRSURBVGhD7djrbxRVHMbxI2pDC7TSXVEMIN4qYrWC + Ag0BwWoKrQpIvMXLn6AxxsTERBM1KkYE7XV72YKlFQrlXi4WvP8rpi1gd3a27brrXh5/z8ye7ZRdSZVd + 33hefCfZzDnz4vNi9jdH4Wh1A46vHsGpWmBoI3C2DjhXD5xvAIafkbYBF3ZIzwEXd5q80YQ2NKIVzWhH + Q1rSlLZirDC4ciR9ZgPSw/VIX2xE+vvtSP+4E+mfXkD655eR/uUV6VXpNaR/fd3kjSaOjRjRima0oyEt + aSq2NFY4UoWU/Eidq0PqfD1Sww1IXXhWFu6QDbLph+clPuBF6SXTjMSENjSilZjRzjGkJU0JLcYKA3ch + eXIdUqcFe2iz3HhSFmyRhbL4u6clbtwmbZfkQSZPNBEbGtGKZrSjIS3FlLY0Vji4FMnB1UgeW4vkifVy + YyOSpzYheboOyaGnpHokz2yRtiJ5tsHkjSa0oRGtaEY7GtKSpmJLY4X+25E49CASAzVIHHkUicE1SByt + ReLYeiSOb5AeR+LEJmmz28knTEx70IZGtKIZ7WhIS5qKLY0V+vyI91Yh3vcA4v3ViH9bg/jBVYgfegzx + gTXSWsQPr5NqTXkTGxrRima0oyEtaSq2NFborUAsuByxffcgtr8KsW9WINa7ErED1dJDiPU9LNVIj0zX + v+r/ndfCsREjWtGMdjSkJU3FlsYK++chGliMaMcSRDuXIdq1XLob0e57EQ3eJ1Uh2nN/phWmGWVcaEQr + mtGOhrSkqdjSWKGnBJNNfmkRpppvw1TLYky13oGptiXSUmmZW/udpnxpH8dKzGhHQ7GkKW1prBCcg8ju + cqkCkS8XIrKnUvJhYq9futXtq0Wma6WdxIx2jiEtaSq2NFboVrA/LZXKYH82T5oPe9eCTOWwP68wzSZa + aTca0pKmYktjle5SsD6am6dSt4/LTLNJe+WxpLEDPf5BCUKmokTbLPSV9252+t1U0LRrFvryuzc5XTEV + NO2ahb70zo1Ol00FTbtmocfenuN0yVTQtGsWevStG5zGTAVNu05Dv+k2Zipo2jULPfKG26ipoGlXA13k + DPR/VA60eUcXp5x3tJk6ilPO1GHm6OKUM0ebL8PilPNlaM46ilPOWYc+ZTIneIXLa5qFHn+/xC1zfqrL + d75q+vuu9tOuDnSK0B/OnVHIdF1d7UljB9r6pNRUxBzoZKdA7yrLFjIVJK8pjVVCLuHd892+cLNM15V2 + 1K40Vn92CPTeBU6Wbk9uIVPe8llpR+1KYwfabq6A3eQWzmR9bfo3aT/tSVsHOh5QiLTeAlsKt8iiTBaT + RSxkumbaiWZeQ5rSlsYqJpeJwEJEAoLd7hbOZLWZ/knaTTvSlLY0VrF2ge6qRKSzErYU7nCzAm4h06zS + XtqPljSlLY3VH4QO+hDp9sGWwl0+WLpOH0Kexk0z8trQSrvRkJY0pS2NVbRNjUwGyxHZ54fd40c46GZJ + oe7pxk158xrRTPvRkqa0FeNRQjdOtqrRiVb5U2yRCYQ1y8gnWU3ThUx58xrRjHY0pCVNxfa3aJtq/AtE + zMwwHDdDbgAAAABJRU5ErkJggg== + + + + + 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 + + + True - + True - + True - - True + + 417, 5 - - True + + 541, 13 - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - + True - - 268, 5 + + True - - 143, 5 + + True - + True - + True - + True diff --git a/WeighAndGrading/BodyDiscontSetting.cs b/WeighAndGrading/BodyDiscontSetting.cs index 27d4177..6c1c65e 100644 --- a/WeighAndGrading/BodyDiscontSetting.cs +++ b/WeighAndGrading/BodyDiscontSetting.cs @@ -45,9 +45,13 @@ namespace WeighAndGrading var connection = LoginRpcUtil.TestConnection(); if (connection) { - GradeAndWeightRpc.SaveBodyDiscontItem(list); + try + { + GradeAndWeightRpc.SaveBodyDiscontItem(list); if (existFile) File.Delete(changeFlagPath); + } + catch { } } else if (!existFile) File.WriteAllText(changeFlagPath, string.Empty); diff --git a/WeighAndGrading/DataViewForm.cs b/WeighAndGrading/DataViewForm.cs index 70028a0..dbc2742 100644 --- a/WeighAndGrading/DataViewForm.cs +++ b/WeighAndGrading/DataViewForm.cs @@ -318,7 +318,7 @@ namespace WeighAndGrading { list = GradeAndWeightRpc.GetGradeAndWeightList(butcherTimeInput.Date.Value, tang); } - catch (TimeoutException) { } + catch (Exception ex) { } } } @@ -546,8 +546,12 @@ namespace WeighAndGrading VerifyConnection(); if (connection) { - disconts = GradeAndWeightRpc.GetBodyDiscontItem(); - XmlUtil.SerializerObjToFile(disconts, discontPath); + try + { + disconts = GradeAndWeightRpc.GetBodyDiscontItem(); + XmlUtil.SerializerObjToFile(disconts, discontPath); + } + catch { } } else disconts = XmlUtil.DeserializeFromFile>(discontPath); diff --git a/WeighAndGrading/GradeFrom.Designer.cs b/WeighAndGrading/GradeFrom.Designer.cs index d94d044..5f7e977 100644 --- a/WeighAndGrading/GradeFrom.Designer.cs +++ b/WeighAndGrading/GradeFrom.Designer.cs @@ -104,8 +104,8 @@ this.btnStartWeight = new System.Windows.Forms.Button(); this.btnStopWeight = new System.Windows.Forms.Button(); this.dataConfirmBtn = new System.Windows.Forms.Button(); - this.batchSelect = new BWP.WinFormControl.UComboBox(); this.label3 = new System.Windows.Forms.Label(); + this.batchSelect = new System.Windows.Forms.ComboBox(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tangGridView)).BeginInit(); this.groupBox2.SuspendLayout(); @@ -820,19 +820,6 @@ this.dataConfirmBtn.UseVisualStyleBackColor = true; this.dataConfirmBtn.Click += new System.EventHandler(this.dataConfirmBtn_Click); // - // batchSelect - // - this.batchSelect.CodeArgs = null; - this.batchSelect.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.batchSelect.EnableTopItem = true; - this.batchSelect.Font = new System.Drawing.Font("宋体", 14F); - this.batchSelect.FormattingEnabled = true; - this.batchSelect.Location = new System.Drawing.Point(603, 8); - this.batchSelect.Name = "batchSelect"; - this.batchSelect.Range = 10; - this.batchSelect.Size = new System.Drawing.Size(204, 30); - this.batchSelect.TabIndex = 44; - // // label3 // this.label3.AutoSize = true; @@ -843,6 +830,15 @@ this.label3.TabIndex = 43; this.label3.Text = "批次"; // + // batchSelect + // + this.batchSelect.Font = new System.Drawing.Font("宋体", 14F); + this.batchSelect.FormattingEnabled = true; + this.batchSelect.Location = new System.Drawing.Point(603, 11); + this.batchSelect.Name = "batchSelect"; + this.batchSelect.Size = new System.Drawing.Size(204, 27); + this.batchSelect.TabIndex = 45; + // // GradeFrom // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -964,7 +960,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn H_Livestock_Name; private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; private System.Windows.Forms.DataGridViewTextBoxColumn H_Time; - private BWP.WinFormControl.UComboBox batchSelect; private System.Windows.Forms.Label label3; + private System.Windows.Forms.ComboBox batchSelect; } } \ No newline at end of file diff --git a/WeighAndGrading/GradeFrom.cs b/WeighAndGrading/GradeFrom.cs index 90889ea..22aed00 100644 --- a/WeighAndGrading/GradeFrom.cs +++ b/WeighAndGrading/GradeFrom.cs @@ -86,7 +86,22 @@ namespace WeighAndGrading maoGridView.DataSource = null; historyGrid.AutoGenerateColumns = false; historyGrid.DataSource = null; - batchSelect.Init("BaseInfoRpc/GetProductBatchList"); + + try + { + LocalGradeAndWeightBL.LoadProductBatchFromServer(); + } + catch + { + #if DEBUG + throw; +#endif + } + + + batchSelect.DataSource = LocalGradeAndWeightBL.GetProductBatch(); + batchSelect.DisplayMember = "Name"; + batchSelect.ValueMember = "ID"; tangList = new List(); maoList = new List(); noLivestockList = new ConcurrentQueue(); @@ -242,7 +257,7 @@ namespace WeighAndGrading private void syncBtn_Click(object sender, EventArgs e) { - if (batchSelect.LongValue == null) + if (batchSelect.SelectedValue == null) throw new Exception("请先选择批次"); if (butcherTimeInput.Date.Value == new DateTime(2018, 3, 15)) LocalGradeAndWeightBL.UpdateHistory(butcherTimeInput.Date.Value); @@ -346,7 +361,7 @@ namespace WeighAndGrading { list = GradeAndWeightRpc.GetGradeAndWeightList(butcherTimeInput.Date.Value, tang); } - catch (TimeoutException) { } + catch (Exception ex) { } } } @@ -765,7 +780,7 @@ namespace WeighAndGrading maxIndex++; var entity = new GradeAndWeight_Detail(); entity.Index = maxIndex; - entity.ProductBatch_ID = batchSelect.LongValue; + entity.ProductBatch_ID = (long)batchSelect.SelectedValue; if (currentRow != null) { entity.OrderDetail_ID = currentRow.OrderDetail_ID; @@ -861,7 +876,7 @@ namespace WeighAndGrading maxIndex++; var entity = new GradeAndWeight_Detail(); entity.Index = maxIndex; - entity.ProductBatch_ID = batchSelect.LongValue; + entity.ProductBatch_ID = (long)batchSelect.SelectedValue; entity.Weight = (entity.Weight ?? 0) + weight; entity.Time = DateTime.Now; entity.Date = butcherTimeInput.Date.Value; @@ -1036,8 +1051,12 @@ namespace WeighAndGrading VerifyConnection(); if (connection) { - disconts = GradeAndWeightRpc.GetBodyDiscontItem(); - XmlUtil.SerializerObjToFile(disconts, discontPath); + try + { + disconts = GradeAndWeightRpc.GetBodyDiscontItem(); + XmlUtil.SerializerObjToFile(disconts, discontPath); + } + catch { } } else disconts = XmlUtil.DeserializeFromFile>(discontPath); @@ -1215,8 +1234,12 @@ namespace WeighAndGrading var changes = new List>(); foreach (var item in list) changes.Add(new CTuple(item.ID, item.Discont)); - GradeAndWeightRpc.SaveBodyDiscontItem(changes); - File.Delete(changeFlagPath); + try + { + GradeAndWeightRpc.SaveBodyDiscontItem(changes); + File.Delete(changeFlagPath); + } + catch { } } } diff --git a/WeighAndGrading/WeightGradePrint.cs b/WeighAndGrading/WeightGradePrint.cs index 04a6419..3473716 100644 --- a/WeighAndGrading/WeightGradePrint.cs +++ b/WeighAndGrading/WeightGradePrint.cs @@ -56,7 +56,7 @@ namespace WeighAndGrading var imgUrl = string.Format("TempImg\\_img{0}.png", id); try { - BwpClientPrint.BwpClientWebPrint.Create2DPic(entity._2DQRCode, imgUrl, 120); + BwpClientPrint.BwpClientWebPrint.Create2DPic(entity._2DQRCode, imgUrl, 100); } catch (Exception ex) {