diff --git a/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs b/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs
index 0493d4f..989311a 100644
--- a/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs
+++ b/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs
@@ -39,6 +39,10 @@ namespace ButcherFactory.BO
[Join("Goods_ID", "ID")]
public string Goods_Spec { get; set; }
+ [ReferenceTo(typeof(Goods), "Code")]
+ [Join("Goods_ID", "ID")]
+ public string Goods_Code { get; set; }
+
public decimal? StandardWeight { get; set; }
public decimal? StandardWeightUp { get; set; }
diff --git a/ButcherFactory.BO/Bill/CarcassSaleOut_Delete.cs b/ButcherFactory.BO/Bill/CarcassSaleOut_Delete.cs
new file mode 100644
index 0000000..edab923
--- /dev/null
+++ b/ButcherFactory.BO/Bill/CarcassSaleOut_Delete.cs
@@ -0,0 +1,16 @@
+using Forks.EnterpriseServices.DomainObjects2;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ButcherFactory.BO
+{
+ [MapToTable("Butcher_CarcassSaleOut_Delete")]
+ public class CarcassSaleOut_Delete : CarcassSaleOut_Detail
+ {
+ public DateTime DeleteTime { get; set; }
+ public string Deleter { get; set; }
+ }
+}
diff --git a/ButcherFactory.BO/Bill/CarcassSaleOut_Detail.cs b/ButcherFactory.BO/Bill/CarcassSaleOut_Detail.cs
index 85d2bc5..ee2169a 100644
--- a/ButcherFactory.BO/Bill/CarcassSaleOut_Detail.cs
+++ b/ButcherFactory.BO/Bill/CarcassSaleOut_Detail.cs
@@ -1,4 +1,5 @@
-using Forks.EnterpriseServices.DomainObjects2;
+using Forks.EnterpriseServices.DataDictionary;
+using Forks.EnterpriseServices.DomainObjects2;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -9,6 +10,8 @@ namespace ButcherFactory.BO
{
[MapToTable("Butcher_CarcassSaleOut_Detail")]
[KeyField("ID", KeyGenType.identity)]
+ [DBIndex("IDX_Butcher_CarcassSaleOut_Detail_Clustered", "BarCode", false, 0)]
+ [DBIndexType("IDX_Butcher_CarcassSaleOut_Detail_Clustered", IndexType.Clustered)]
public class CarcassSaleOut_Detail
{
public CarcassSaleOut_Detail()
diff --git a/ButcherFactory.BO/Bill/SegmentInStore.cs b/ButcherFactory.BO/Bill/SegmentInStore.cs
index 4a07262..954f40f 100644
--- a/ButcherFactory.BO/Bill/SegmentInStore.cs
+++ b/ButcherFactory.BO/Bill/SegmentInStore.cs
@@ -47,6 +47,7 @@ namespace ButcherFactory.BO
public DateTime? BackStoreTime { get; set; }
+ //-1 删除
//0 已入库
//1 正在退库
//2 已退库
diff --git a/ButcherFactory.BO/Bill/SegmentProduction.cs b/ButcherFactory.BO/Bill/SegmentProduction.cs
index 5a27bce..0b057d6 100644
--- a/ButcherFactory.BO/Bill/SegmentProduction.cs
+++ b/ButcherFactory.BO/Bill/SegmentProduction.cs
@@ -44,6 +44,10 @@ namespace ButcherFactory.BO
[Join("Goods_ID", "ID")]
public string Goods_Spec { get; set; }
+ [ReferenceTo(typeof(Goods), "Code")]
+ [Join("Goods_ID", "ID")]
+ public string Goods_Code { get; set; }
+
public long? GroupID { get; set; }
public bool Submited { get; set; }
@@ -52,5 +56,27 @@ namespace ButcherFactory.BO
//public bool TrunOut { get; set; }
public long? TrunOutID { get; set; }
+
+ [DbColumn(DefaultValue = false)]
+ public bool InStored { get; set; }
+ }
+
+ public class ProductTask
+ {
+ public string Item { get; set; }
+
+ public decimal? Need { get; set; }
+
+ public decimal? Done { get; set; }
+
+ public decimal? Last
+ {
+ get
+ {
+ if (Need.HasValue && Done.HasValue)
+ return Need.Value - Done.Value;
+ return null;
+ }
+ }
}
}
diff --git a/ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs b/ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs
index dd5e005..bafb37d 100644
--- a/ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs
+++ b/ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs
@@ -1,4 +1,5 @@
-using Forks.EnterpriseServices.DomainObjects2;
+using Forks.EnterpriseServices.DataDictionary;
+using Forks.EnterpriseServices.DomainObjects2;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -9,6 +10,8 @@ namespace ButcherFactory.BO
{
[MapToTable("Butcher_SegmentSaleOut_Detail")]
[KeyField("ID", KeyGenType.identity)]
+ [DBIndex("IDX_Butcher_SegmentSaleOut_Detail_Clustered", "BarCode", false, 0)]
+ [DBIndexType("IDX_Butcher_SegmentSaleOut_Detail_Clustered", IndexType.Clustered)]
public class SegmentSaleOut_Detail
{
public SegmentSaleOut_Detail()
diff --git a/ButcherFactory.BO/ButcherFactory.BO.csproj b/ButcherFactory.BO/ButcherFactory.BO.csproj
index 431d226..947ee11 100644
--- a/ButcherFactory.BO/ButcherFactory.BO.csproj
+++ b/ButcherFactory.BO/ButcherFactory.BO.csproj
@@ -62,6 +62,7 @@
+
diff --git a/ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs b/ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs
index 9863b4a..40b9eb1 100644
--- a/ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs
+++ b/ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs
@@ -57,6 +57,14 @@ namespace ButcherFactory.BO.LocalBL
}
}
+ public static bool BarCodeUsed(string barCode)
+ {
+ var query = new DQueryDom(new JoinAlias(typeof(CarcassSaleOut_Detail)));
+ query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode));
+ query.Columns.Add(DQSelectColumn.Create(DQExpression.Value(1), "c"));
+ return query.EExecuteScalar() != null;
+ }
+
public static BindingList GetUnSubmitWeightRecord()
{
var query = new DmoQuery(typeof(CarcassSaleOut_Detail));
@@ -96,7 +104,7 @@ namespace ButcherFactory.BO.LocalBL
}
else
{
- var json = ButcherFactoryUtil.SimpleMESCall(MESPath + "CarcassSaleOutStoreRpc/GetCarcassInstoreInfo", barCode);
+ var json = ButcherFactoryUtil.SecondUrlCall(MESPath + "CarcassSaleOutStoreRpc/GetCarcassInstoreInfo", barCode);
var mesInfo = JsonConvert.DeserializeObject(json);
if (!string.IsNullOrEmpty(mesInfo.Goods_Code))
{
@@ -170,7 +178,7 @@ namespace ButcherFactory.BO.LocalBL
public static List GetBatchFromEMS()
{
- var json = ButcherFactoryUtil.SimpleMESCall(MESPath + "SyncBaseInfoRpc/GetProductBatch", 9);
+ var json = ButcherFactoryUtil.SecondUrlCall(MESPath + "SyncBaseInfoRpc/GetProductBatch", 9);
return JsonConvert.DeserializeObject>(json);
}
@@ -237,9 +245,28 @@ namespace ButcherFactory.BO.LocalBL
{
var json = JsonConvert.SerializeObject(new List() { new ExtensionObj { LongExt1 = tag.DetailID, LongExt2 = tag.WeightRecord_ID, LongExt3 = tag.ScanRecord_ID } });
RpcFacade.Call(RpcPath + "SaleOutStoreRpc/DeleteAndUpdate", json);
+ SaveDeleteInfo(tag);
Delete(tag.ID);
}
+ static void SaveDeleteInfo(CarcassSaleOut_Detail tag)
+ {
+ using (var session = DmoSession.New())
+ {
+ var delete = new CarcassSaleOut_Delete();
+ var type = typeof(CarcassSaleOut_Delete);
+ foreach (var p in tag.GetType().GetProperties())
+ {
+ if (p.CanWrite)
+ type.GetProperty(p.Name).SetValue(delete, p.GetValue(tag));
+ }
+ delete.DeleteTime = DateTime.Now;
+ delete.Deleter = AppContext.Worker.Name;
+ session.Insert(delete);
+ session.Commit();
+ }
+ }
+
public static void RollBackDetails(List backList)
{
var list = backList.Select(x => new ExtensionObj { LongExt1 = x.DetailID, LongExt2 = x.WeightRecord_ID, LongExt3 = x.ScanRecord_ID });
@@ -258,6 +285,21 @@ namespace ButcherFactory.BO.LocalBL
{
return RpcFacade.Call(RpcPath + "SaleOutStoreRpc/HasNoAssignDetail", billid);
}
+
+ public static BindingList GetDeletedWeightRecord(long detailID)
+ {
+ var query = new DmoQuery(typeof(CarcassSaleOut_Delete));
+ query.Where.Conditions.Add(DQCondition.EQ("DetailID", detailID));
+ query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
+ var list = query.EExecuteList().Cast().ToList();
+ var idx = list.Count;
+ foreach (var item in list)
+ {
+ item.Idx = idx;
+ idx--;
+ }
+ return new BindingList(list);
+ }
}
class SaleOutCarcassObj
diff --git a/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs b/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs
index b2450d5..a91cbcc 100644
--- a/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs
+++ b/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs
@@ -66,6 +66,7 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("StandardWeightUp", detail));
query.Columns.Add(DQSelectColumn.Field("StandardWeightLow", detail));
query.Columns.Add(DQSelectColumn.Field("Goods_Spec", detail));
+ query.Columns.Add(DQSelectColumn.Field("Goods_Code", detail));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create(main, "ID"));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create(detail, "ID"));
@@ -85,6 +86,7 @@ namespace ButcherFactory.BO.LocalBL
entity.StandardWeightUp = (decimal?)reader[4];
entity.StandardWeightLow = (decimal?)reader[5];
entity.Goods_Spec = (string)reader[6];
+ entity.Goods_Code = (string)reader[7];
if (result.ContainsKey(key))
result[key].Add(entity);
else
diff --git a/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs b/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
index 45f1438..7a0e2c0 100644
--- a/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
+++ b/ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
@@ -35,8 +35,7 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("ProductTime"));
query.Where.Conditions.Add(DQCondition.EQ("State", state));
if (state == 0)
- query.Where.Conditions.Add(DQCondition.EQ(DQExpression.Snippet("CAST([_main].[InStoreTime] AS DATE)"), DQExpression.Value(DateTime.Today)));
- query.Where.Conditions.Add(DQCondition.EQ("Delete", false));
+ query.Where.Conditions.Add(DQCondition.Between("InStoreTime", DateTime.Today, DateTime.Today + new TimeSpan(23, 59, 59)));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("RowIndex", true));
var list = new List();
using (var session = DmoSession.New())
@@ -103,7 +102,7 @@ namespace ButcherFactory.BO.LocalBL
{
var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore)));
query.Columns.Add(DQSelectColumn.Field("BarCode"));
- query.Where.Conditions.Add(DQCondition.And(DQCondition.InList(DQExpression.Field("BarCode"), barCodes.Select(x => DQExpression.Value(x)).ToArray()), DQCondition.EQ("Delete", false)));
+ query.Where.Conditions.Add(DQCondition.And(DQCondition.InList(DQExpression.Field("BarCode"), barCodes.Select(x => DQExpression.Value(x)).ToArray()), DQCondition.InEQ("State", -1)));
using (var session = DmoSession.New())
{
return query.EExecuteList(session);
@@ -132,6 +131,7 @@ namespace ButcherFactory.BO.LocalBL
entity.Goods_Spec = obj.Goods_Spec;
entity.ProductTime = obj.ProductTime;
entity.Weight = obj.Weight;
+ session.Insert(entity);
}
catch
{
@@ -142,14 +142,16 @@ namespace ButcherFactory.BO.LocalBL
}
else
{
- if (localData.Item3) //if delete LoadFromLocal
+ if (localData.Item2 == -1) //if delete LoadFromLocal
{
- var obj = LoadLocalData(session, localData.Item1);
- entity.Goods_Code = obj.Goods_Code;
- entity.Goods_Name = obj.Goods_Name;
- entity.Goods_Spec = obj.Goods_Spec;
- entity.ProductTime = obj.ProductTime;
- entity.Weight = obj.Weight;
+ entity.ID = localData.Item1;
+ entity.State = 0;
+ Update(session, entity.ID,
+ new Tuple("Store_ID", entity.Store_ID),
+ new Tuple("InStoreTime", entity.InStoreTime),
+ new Tuple("RowIndex", rowIndex),
+ new Tuple("State", 0)
+ );
}
else
{
@@ -169,47 +171,20 @@ namespace ButcherFactory.BO.LocalBL
throw new Exception(string.Format("入库失败!当前条码{0}", msg));
}
}
-
- session.Insert(entity);
session.Commit();
return entity;
}
}
- static Tuple GetLocalData(IDmoSession session, string barCode)
+ static Tuple GetLocalData(IDmoSession session, string barCode)
{
var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore)));
query.Columns.Add(DQSelectColumn.Field("ID"));
query.Columns.Add(DQSelectColumn.Field("State"));
- query.Columns.Add(DQSelectColumn.Field("Delete"));
query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
query.Range = SelectRange.Top(1);
- return query.EExecuteScalar(session);
- }
-
- static SegmentProductObj LoadLocalData(IDmoSession session, long id)
- {
- var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore)));
- query.Columns.Add(DQSelectColumn.Field("Goods_Code"));
- query.Columns.Add(DQSelectColumn.Field("Goods_Name"));
- query.Columns.Add(DQSelectColumn.Field("Goods_Spec"));
- query.Columns.Add(DQSelectColumn.Field("ProductTime"));
- query.Columns.Add(DQSelectColumn.Field("Weight"));
- query.Where.Conditions.Add(DQCondition.EQ("ID", id));
- using (var reader = session.ExecuteReader(query))
- {
- var obj = new SegmentProductObj();
- if (reader.Read())
- {
- obj.Goods_Code = (string)reader[0];
- obj.Goods_Name = (string)reader[1];
- obj.Goods_Spec = (string)reader[2];
- obj.ProductTime = (DateTime?)reader[3];
- obj.Weight = (decimal?)reader[4];
- }
- return obj;
- }
+ return query.EExecuteScalar(session);
}
public static void SetAsBacking(string barCode, int rowIndex)
@@ -219,61 +194,68 @@ namespace ButcherFactory.BO.LocalBL
var localData = GetLocalData(session, barCode);
if (localData == null)
throw new Exception("未入库,无法退库");
- if (localData.Item3)
- throw new Exception("已删除,无法退库");
switch (localData.Item2)
{
+ case -1:
+ throw new Exception("已删除,无法退库");
case 1:
throw new Exception("已在退库中,等待提交");
case 2:
throw new Exception("已退库,无法重复退库");
default:
- UpdateAsBacking(session, localData.Item1, rowIndex);
+ Update(session, localData.Item1,
+ new Tuple("State", 1),
+ new Tuple("RowIndex", rowIndex));
session.Commit();
break;
}
}
}
- static void UpdateAsBacking(IDmoSession session, long id, int rowIndex)
+ public static void Delete(long id)
{
- var update = new DQUpdateDom(typeof(SegmentInStore));
- update.Columns.Add(new DQUpdateColumn("State", 1));
- update.Columns.Add(new DQUpdateColumn("RowIndex", rowIndex));
- update.Columns.Add(new DQUpdateColumn("Sync", false));
- update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1))));
- update.Where.Conditions.Add(DQCondition.EQ("ID", id));
- session.ExecuteNonQuery(update);
+ using (var session = DmoSession.New())
+ {
+ Update(session, id, new Tuple("State", -1),
+ new Tuple("InStoreTime", DQExpression.NULL),
+ new Tuple("Store_ID", DQExpression.NULL));
+ session.Commit();
+ }
}
- public static void Delete(long id)
+ public static void SubmitBackStore(IEnumerable ids)
{
- var update = new DQUpdateDom(typeof(SegmentInStore));
- update.Columns.Add(new DQUpdateColumn("State", 0));
- update.Columns.Add(new DQUpdateColumn("Delete", 1));
- update.Columns.Add(new DQUpdateColumn("Sync", false));
- update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1))));
- update.Where.Conditions.Add(DQCondition.EQ("ID", id));
using (var session = DmoSession.New())
{
- session.ExecuteNonQuery(update);
+ BatchUpdate(session, ids, new Tuple("State", 2), new Tuple("BackStoreTime", DateTime.Now));
session.Commit();
}
}
- public static void SubmitBackStore(IEnumerable ids)
+ static void Update(IDmoSession session, long id, params Tuple[] tuple)
{
var update = new DQUpdateDom(typeof(SegmentInStore));
- update.Columns.Add(new DQUpdateColumn("State", 2));
- update.Columns.Add(new DQUpdateColumn("BackStoreTime", DateTime.Now));
+ update.Where.Conditions.Add(DQCondition.EQ("ID", id));
+
+ foreach (var item in tuple)
+ update.Columns.Add(new DQUpdateColumn(item.Item1, item.Item2));
+
update.Columns.Add(new DQUpdateColumn("Sync", false));
update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1))));
+ session.ExecuteNonQuery(update);
+ }
+
+ static void BatchUpdate(IDmoSession session, IEnumerable ids, params Tuple[] tuple)
+ {
+ var update = new DQUpdateDom(typeof(SegmentInStore));
update.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("ID"), ids.Select(x => DQExpression.Value(x)).ToArray()));
- using (var session = DmoSession.New())
- {
- session.ExecuteNonQuery(update);
- session.Commit();
- }
+
+ foreach (var item in tuple)
+ update.Columns.Add(new DQUpdateColumn(item.Item1, item.Item2));
+
+ update.Columns.Add(new DQUpdateColumn("Sync", false));
+ update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1))));
+ session.ExecuteNonQuery(update);
}
public static void InsertScanException(SegmentCodeError error)
@@ -297,8 +279,8 @@ namespace ButcherFactory.BO.LocalBL
query.GroupBy.Expressions.Add(DQExpression.Field("Goods_Name"));
query.GroupBy.Expressions.Add(DQExpression.Field("Goods_Spec"));
- query.Where.Conditions.Add(DQCondition.EQ(DQExpression.Snippet("CAST([_main].[InStoreTime] AS DATE)"), DQExpression.Value(DateTime.Today)));
- query.Where.Conditions.Add(DQCondition.And(DQCondition.InEQ("State", 2), DQCondition.EQ("Delete", false)));
+ query.Where.Conditions.Add(DQCondition.Between("InStoreTime", DateTime.Today, DateTime.Today + new TimeSpan(23, 59, 59)));
+ query.Where.Conditions.Add(DQCondition.Or(DQCondition.EQ("State", 0), DQCondition.EQ("State", 1)));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("Goods_Code"));
var list = new BindingList();
@@ -357,8 +339,6 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("BarCode"));
query.Columns.Add(DQSelectColumn.Field("InStoreTime"));
query.Columns.Add(DQSelectColumn.Field("Store_ID"));
- query.Columns.Add(DQSelectColumn.Field("State"));
- query.Columns.Add(DQSelectColumn.Field("Delete"));
query.Columns.Add(DQSelectColumn.Field("BackStoreTime"));
query.Where.Conditions.Add(DQCondition.And(DQCondition.InEQ("State", 1), DQCondition.EQ("Sync", false)));
query.Range = SelectRange.Top(10);
@@ -375,9 +355,7 @@ namespace ButcherFactory.BO.LocalBL
obj.BarCode = (string)reader[2];
obj.InStoreTime = (DateTime)reader[3];
obj.Store_ID = (long?)reader[4];
- obj.State = (int)reader[5];
- obj.Delete = (bool)reader[6];
- obj.BackStoreTime = (DateTime?)reader[7];
+ obj.BackStoreTime = (DateTime?)reader[5];
upload.Add(obj);
}
}
@@ -407,10 +385,6 @@ namespace ButcherFactory.BO.LocalBL
public long? Store_ID { get; set; }
- public int State { get; set; }
-
- public bool Delete { get; set; }
-
public DateTime? BackStoreTime { get; set; }
}
diff --git a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
index 32ce957..cca45ab 100644
--- a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
+++ b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
@@ -16,6 +16,7 @@ namespace ButcherFactory.BO.LocalBL
public static class SegmentProductionBL
{
const string RpcPath = @"/MainSystem/B3ClientService/Rpcs/SegmentProductionRpc/";
+ const string ProductTaskRpc = @"/MainSystem/B3ButcherManage/Rpcs/ProductTaskRpc/GetProductTaskNumber";
public static BindingList GetListByState(bool submited)
{
@@ -28,10 +29,10 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("GroupID"));
query.Columns.Add(DQSelectColumn.Field("TrunOutID"));
query.Columns.Add(DQSelectColumn.Field("Goods_Spec"));
- query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Delete", false), DQCondition.EQ("Submited", submited)));
+ query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("InStored", false), DQCondition.EQ("Delete", false), DQCondition.EQ("Submited", submited)));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
if (submited)
- query.Range = SelectRange.Top(20);
+ query.Range = SelectRange.Top(50);
var list = new BindingList();
using (var session = DmoSession.New())
{
@@ -95,10 +96,10 @@ namespace ButcherFactory.BO.LocalBL
}
}
- static void FillGroupIDAsID(IDmoSession session,long id)
+ static void FillGroupIDAsID(IDmoSession session, long id)
{
var update = new DQUpdateDom(typeof(SegmentProduction));
- update.Where.Conditions.Add(DQCondition.EQ("ID",id));
+ update.Where.Conditions.Add(DQCondition.EQ("ID", id));
update.Columns.Add(new DQUpdateColumn("GroupID", id));
session.ExecuteNonQuery(update);
}
@@ -158,6 +159,54 @@ namespace ButcherFactory.BO.LocalBL
delete.EExecute();
}
+ public static List GetInStoreState(List codeArr)
+ {
+ var json = RpcFacade.Call(RpcPath + "CheckInStored", JsonConvert.SerializeObject(codeArr));
+ return JsonConvert.DeserializeObject>(json);
+ }
+
+ public static void SetInStored(List ids)
+ {
+ var update = new DQUpdateDom(typeof(SegmentProduction));
+ update.Columns.Add(new DQUpdateColumn("InStored", true));
+ update.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("ID"),ids.Select(x=>DQExpression.Value(x)).ToArray()));
+ update.EExecute();
+ }
+
+ public static List GetProductTask(DateTime date, SegmentProduction detail)
+ {
+ var json = ButcherFactoryUtil.SecondUrlCall(ProductTaskRpc, date, detail.Goods_Code);
+ var task = JsonConvert.DeserializeObject(json);
+
+ var local = GetLocalProducted(detail);
+
+ var list = new List();
+ list.Add(new ProductTask { Item = "重量", Need = task.Weight, Done = local.Weight });
+ list.Add(new ProductTask { Item = "数量", Need = task.Number, Done = local.Number });
+ return list;
+ }
+
+ private static TaskTemp GetLocalProducted(SegmentProduction detail)
+ {
+ var local = new TaskTemp();
+ var query = new DQueryDom(new JoinAlias(typeof(SegmentProduction)));
+ query.Columns.Add(DQSelectColumn.Sum("Weight"));
+ query.Columns.Add(DQSelectColumn.Count());
+ query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("ProductBatch_ID", detail.ProductBatch_ID), DQCondition.EQ("Goods_ID", detail.Goods_ID)));
+ using (var session = DmoSession.New())
+ {
+ using (var reader = session.ExecuteReader(query))
+ {
+ while (reader.Read())
+ {
+ local.Weight = (decimal?)reader[0];
+ local.Number = Convert.ToDecimal(reader[1]);
+ }
+ }
+ }
+ return local;
+ }
+
public static void UploadSegmentInfo()
{
try
@@ -245,4 +294,10 @@ namespace ButcherFactory.BO.LocalBL
public DateTime? InStoreTime { get; set; }
}
+
+ class TaskTemp
+ {
+ public decimal? Weight { get; set; }
+ public decimal? Number { get; set; }
+ }
}
diff --git a/ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs b/ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs
index 00533f3..0351367 100644
--- a/ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs
+++ b/ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs
@@ -136,7 +136,7 @@ namespace ButcherFactory.BO.LocalBL
public static void InsertByCode(SaleOutStore_Detail orderDetail, SegmentSaleOut_Detail detail)
{
- var json = ButcherFactoryUtil.SimpleMESCall(MESPath + "SegmentSaleOutStoreRpc/GetSegmentInfo", detail.BarCode);
+ var json = ButcherFactoryUtil.SecondUrlCall(MESPath + "SegmentSaleOutStoreRpc/GetSegmentInfo", detail.BarCode);
var scanInfo = JsonConvert.DeserializeObject(json);
if (scanInfo.StringExt1 != orderDetail.Goods_Code)
throw new Exception("扫码明细与发货明细 存货不一致!");
@@ -176,5 +176,13 @@ namespace ButcherFactory.BO.LocalBL
SubmitDetails(new SegmentSaleOut_Detail[] { detail }, orderDetail, 2);
}
+
+ public static bool BarCodeUsed(string barCode)
+ {
+ var query = new DQueryDom(new JoinAlias(typeof(SegmentSaleOut_Detail)));
+ query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode));
+ query.Columns.Add(DQSelectColumn.Create(DQExpression.Value(1), "c"));
+ return query.EExecuteScalar() != null;
+ }
}
}
diff --git a/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs b/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
index 8c58589..fc1edb0 100644
--- a/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
+++ b/ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
@@ -22,7 +22,7 @@ namespace ButcherFactory.BO.LocalBL
/// GoodsCode:StringExt1,Weight:DecimalExt1
public static ExtensionObj StockUpScan(string code)
{
- var json = ButcherFactoryUtil.SimpleMESCall(MESPath + "SegmentInStoreRpc/StockUpScan", code);
+ var json = ButcherFactoryUtil.SecondUrlCall(MESPath + "SegmentInStoreRpc/StockUpScan", code);
return JsonConvert.DeserializeObject(json);
}
diff --git a/ButcherFactory.BO/Utils/AppContext.cs b/ButcherFactory.BO/Utils/AppContext.cs
index 80328c8..dab3934 100644
--- a/ButcherFactory.BO/Utils/AppContext.cs
+++ b/ButcherFactory.BO/Utils/AppContext.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Xml.Serialization;
namespace ButcherFactory.BO.Utils
{
@@ -33,7 +34,15 @@ namespace ButcherFactory.BO.Utils
public int ServerMode { get; set; }
- public string ServerUrl { get; set; }
+ public string MESUrl { get; set; }
+
+ public string B3Url { get; set; }
+
+ [XmlIgnore]
+ public string MainUrl { get { return ServerMode == 0 ? MESUrl : B3Url; } }
+
+ [XmlIgnore]
+ public string SecondUrl { get { return ServerMode == 0 ? B3Url : MESUrl; } }
public string SqlConnection { get; set; }
diff --git a/ButcherFactory.BO/Utils/ButcherFactoryUtil.cs b/ButcherFactory.BO/Utils/ButcherFactoryUtil.cs
index 51ddd3e..9948ba1 100644
--- a/ButcherFactory.BO/Utils/ButcherFactoryUtil.cs
+++ b/ButcherFactory.BO/Utils/ButcherFactoryUtil.cs
@@ -32,7 +32,7 @@ namespace ButcherFactory.BO.Utils
static ClientRpc clientRpc;
- public static T SimpleMESCall(string method, params object[] args)
+ public static T SecondUrlCall(string method, params object[] args)
{
InitClientRpc();
return clientRpc.Call(method, args);
@@ -42,13 +42,9 @@ namespace ButcherFactory.BO.Utils
{
if (clientRpc != null)
return;
- var fileName = @"Config\MESUrl.cfg";
- if (!File.Exists(fileName))
- throw new Exception("缺少配置文件MESUrl.cfg");
- var url = File.ReadAllText(fileName);
- if (string.IsNullOrEmpty(url))
- throw new Exception("MESUrl.cfg 配置文件错误");
- clientRpc = new ClientRpc(url);
+ if (string.IsNullOrEmpty(AppContext.ConnectInfo.SecondUrl))
+ throw new Exception(string.Format("请先配置{0}服务器地址", AppContext.ConnectInfo.ServerMode == 0 ? "B3" : "MES"));
+ clientRpc = new ClientRpc(AppContext.ConnectInfo.SecondUrl);
}
}
}
diff --git a/ButcherFactory.BO/Utils/LoginUtil.cs b/ButcherFactory.BO/Utils/LoginUtil.cs
index a149312..c305603 100644
--- a/ButcherFactory.BO/Utils/LoginUtil.cs
+++ b/ButcherFactory.BO/Utils/LoginUtil.cs
@@ -30,11 +30,11 @@ namespace ButcherFactory.BO.Utils
public static void InitRpcFacade()
{
- if (string.IsNullOrEmpty(AppContext.ConnectInfo.ServerUrl))
+ if (string.IsNullOrEmpty(AppContext.ConnectInfo.MainUrl))
throw new Exception("请先设置服务器地址");
if (!AppContext.RpcFacadeInited)
{
- RpcFacade.Init(AppContext.ConnectInfo.ServerUrl, "ButcherFactorySolution");
+ RpcFacade.Init(AppContext.ConnectInfo.MainUrl, "ButcherFactorySolution");
AppContext.RpcFacadeInited = true;
}
}
@@ -42,7 +42,7 @@ namespace ButcherFactory.BO.Utils
public static void ReInitRpcFacade()
{
if (AppContext.RpcFacadeInited)
- RpcFacade.ReInit(AppContext.ConnectInfo.ServerUrl);
+ RpcFacade.ReInit(AppContext.ConnectInfo.MainUrl);
}
public static string GetWorkerNameByCode(string code)
@@ -112,7 +112,7 @@ namespace ButcherFactory.BO.Utils
public static bool TestConnection(int? millisecondsTimeout = null)
{
- var url = AppContext.ConnectInfo.ServerUrl;
+ var url = AppContext.ConnectInfo.MainUrl;
if (string.IsNullOrEmpty(url))
return false;
var uri = new Uri(url);
diff --git a/ButcherFactory.Form/ButcherFactory.Form.csproj b/ButcherFactory.Form/ButcherFactory.Form.csproj
index 5483547..5d143c4 100644
--- a/ButcherFactory.Form/ButcherFactory.Form.csproj
+++ b/ButcherFactory.Form/ButcherFactory.Form.csproj
@@ -152,6 +152,12 @@
SelectStoreDialog.cs
+
+ Form
+
+
+ WeightDeleteRecord.cs
+
Form
@@ -285,6 +291,9 @@
SelectStoreDialog.cs
+
+ WeightDeleteRecord.cs
+
WeightRecordDialog.cs
diff --git a/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
index c8fc80f..a7f4d4f 100644
--- a/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
+++ b/ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
@@ -157,8 +157,13 @@ namespace ButcherFactory.CarcassSaleOut2_
void uScanPanel1_AfterScan()
{
var barCode = uScanPanel1.TextBox.Text.Trim();
- if (!barCode.StartsWith("G") && weightRecord.Any(x => x.BarCode == barCode))//正常重复码
- return;
+ if (!barCode.StartsWith("G"))
+ {
+ if (weightRecord.Any(x => x.BarCode == barCode))//未提交队列里重复码
+ throw new Exception("扫码重复");
+ if (CarcassSaleOutBL.BarCodeUsed(barCode))
+ throw new Exception("扫码重复");
+ }
AfterScan(barCode);
}
diff --git a/ButcherFactory.Form/Dialogs/WeightDeleteRecord.Designer.cs b/ButcherFactory.Form/Dialogs/WeightDeleteRecord.Designer.cs
new file mode 100644
index 0000000..da5f4ec
--- /dev/null
+++ b/ButcherFactory.Form/Dialogs/WeightDeleteRecord.Designer.cs
@@ -0,0 +1,267 @@
+namespace ButcherFactory.Dialogs
+{
+ partial class WeightDeleteRecord
+ {
+ ///
+ /// 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 dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = 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();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.uDataGridView1 = new WinFormControl.UDataGridView();
+ this.closeBtn = new ButcherFactory.Controls.ColorButton();
+ this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_InStoreWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Time = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_DeleteTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Deleter = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // uDataGridView1
+ //
+ this.uDataGridView1.AllowUserToAddRows = false;
+ this.uDataGridView1.AllowUserToDeleteRows = false;
+ this.uDataGridView1.AllowUserToResizeColumns = false;
+ this.uDataGridView1.AllowUserToResizeRows = false;
+ dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle22;
+ this.uDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
+ this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle23.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle23.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23;
+ this.uDataGridView1.ColumnHeadersHeight = 40;
+ this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.R_ID,
+ this.R_Idx,
+ this.R_BarCode,
+ this.R_Goods_Code,
+ this.R_Goods_Name,
+ this.R_Number,
+ this.R_InStoreWeight,
+ this.R_Weight,
+ this.R_DiffWeight,
+ this.R_Operator,
+ this.R_Time,
+ this.R_DeleteTime,
+ this.R_Deleter});
+ this.uDataGridView1.Location = new System.Drawing.Point(12, 22);
+ this.uDataGridView1.MultiSelect = false;
+ this.uDataGridView1.Name = "uDataGridView1";
+ this.uDataGridView1.ReadOnly = true;
+ this.uDataGridView1.RowHeadersVisible = false;
+ dataGridViewCellStyle28.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle28.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle28;
+ this.uDataGridView1.RowTemplate.Height = 40;
+ this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.uDataGridView1.Size = new System.Drawing.Size(1151, 434);
+ this.uDataGridView1.TabIndex = 1;
+ //
+ // closeBtn
+ //
+ this.closeBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.closeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.closeBtn.ForeColor = System.Drawing.Color.White;
+ this.closeBtn.Location = new System.Drawing.Point(529, 473);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
+ this.closeBtn.Size = new System.Drawing.Size(117, 43);
+ this.closeBtn.TabIndex = 4;
+ this.closeBtn.Text = "关闭";
+ this.closeBtn.UseVisualStyleBackColor = false;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // R_ID
+ //
+ this.R_ID.DataPropertyName = "ID";
+ this.R_ID.HeaderText = "ID";
+ this.R_ID.Name = "R_ID";
+ this.R_ID.ReadOnly = true;
+ this.R_ID.Visible = false;
+ //
+ // R_Idx
+ //
+ this.R_Idx.DataPropertyName = "Idx";
+ this.R_Idx.HeaderText = "序号";
+ this.R_Idx.Name = "R_Idx";
+ this.R_Idx.ReadOnly = true;
+ this.R_Idx.Width = 70;
+ //
+ // R_BarCode
+ //
+ this.R_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.R_BarCode.DataPropertyName = "ShortCode";
+ this.R_BarCode.HeaderText = "存货条码";
+ this.R_BarCode.MinimumWidth = 100;
+ this.R_BarCode.Name = "R_BarCode";
+ this.R_BarCode.ReadOnly = true;
+ //
+ // R_Goods_Code
+ //
+ this.R_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.R_Goods_Code.DataPropertyName = "Goods_Code";
+ this.R_Goods_Code.HeaderText = "产品编码";
+ this.R_Goods_Code.MinimumWidth = 100;
+ this.R_Goods_Code.Name = "R_Goods_Code";
+ this.R_Goods_Code.ReadOnly = true;
+ //
+ // R_Goods_Name
+ //
+ this.R_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.R_Goods_Name.DataPropertyName = "Goods_Name";
+ this.R_Goods_Name.HeaderText = "产品名称";
+ this.R_Goods_Name.MinimumWidth = 100;
+ this.R_Goods_Name.Name = "R_Goods_Name";
+ this.R_Goods_Name.ReadOnly = true;
+ //
+ // R_Number
+ //
+ this.R_Number.DataPropertyName = "Number";
+ dataGridViewCellStyle24.Format = "#0.######";
+ this.R_Number.DefaultCellStyle = dataGridViewCellStyle24;
+ this.R_Number.HeaderText = "数量";
+ this.R_Number.Name = "R_Number";
+ this.R_Number.ReadOnly = true;
+ this.R_Number.Width = 70;
+ //
+ // R_InStoreWeight
+ //
+ this.R_InStoreWeight.DataPropertyName = "InStoreWeight";
+ dataGridViewCellStyle25.Format = "#0.######";
+ this.R_InStoreWeight.DefaultCellStyle = dataGridViewCellStyle25;
+ this.R_InStoreWeight.HeaderText = "入库重量";
+ this.R_InStoreWeight.Name = "R_InStoreWeight";
+ this.R_InStoreWeight.ReadOnly = true;
+ //
+ // R_Weight
+ //
+ this.R_Weight.DataPropertyName = "Weight";
+ dataGridViewCellStyle26.Format = "#0.######";
+ this.R_Weight.DefaultCellStyle = dataGridViewCellStyle26;
+ this.R_Weight.HeaderText = "重量";
+ this.R_Weight.Name = "R_Weight";
+ this.R_Weight.ReadOnly = true;
+ //
+ // R_DiffWeight
+ //
+ this.R_DiffWeight.DataPropertyName = "DiffWeight";
+ dataGridViewCellStyle27.Format = "#0.######";
+ this.R_DiffWeight.DefaultCellStyle = dataGridViewCellStyle27;
+ this.R_DiffWeight.HeaderText = "差异";
+ this.R_DiffWeight.Name = "R_DiffWeight";
+ this.R_DiffWeight.ReadOnly = true;
+ //
+ // R_Operator
+ //
+ this.R_Operator.DataPropertyName = "Operator";
+ this.R_Operator.HeaderText = "操作员";
+ this.R_Operator.Name = "R_Operator";
+ this.R_Operator.ReadOnly = true;
+ //
+ // R_Time
+ //
+ this.R_Time.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.R_Time.DataPropertyName = "Time";
+ this.R_Time.HeaderText = "时间";
+ this.R_Time.MinimumWidth = 100;
+ this.R_Time.Name = "R_Time";
+ this.R_Time.ReadOnly = true;
+ //
+ // R_DeleteTime
+ //
+ this.R_DeleteTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.R_DeleteTime.DataPropertyName = "DeleteTime";
+ this.R_DeleteTime.HeaderText = "删除时间";
+ this.R_DeleteTime.MinimumWidth = 100;
+ this.R_DeleteTime.Name = "R_DeleteTime";
+ this.R_DeleteTime.ReadOnly = true;
+ //
+ // R_Deleter
+ //
+ this.R_Deleter.DataPropertyName = "Deleter";
+ this.R_Deleter.HeaderText = "删除人";
+ this.R_Deleter.Name = "R_Deleter";
+ this.R_Deleter.ReadOnly = true;
+ //
+ // WeightDeleteRecord
+ //
+ 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(1175, 528);
+ this.Controls.Add(this.closeBtn);
+ this.Controls.Add(this.uDataGridView1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.MinimizeBox = false;
+ this.Name = "WeightDeleteRecord";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "删除记录";
+ this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private WinFormControl.UDataGridView uDataGridView1;
+ private Controls.ColorButton closeBtn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Idx;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_BarCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Goods_Code;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Goods_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_InStoreWeight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Weight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_DiffWeight;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Time;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_DeleteTime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Deleter;
+ }
+}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/WeightDeleteRecord.cs b/ButcherFactory.Form/Dialogs/WeightDeleteRecord.cs
new file mode 100644
index 0000000..1877db0
--- /dev/null
+++ b/ButcherFactory.Form/Dialogs/WeightDeleteRecord.cs
@@ -0,0 +1,37 @@
+using ButcherFactory.BO;
+using ButcherFactory.BO.LocalBL;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace ButcherFactory.Dialogs
+{
+ public partial class WeightDeleteRecord : Form
+ {
+ BindingList list;
+ public WeightDeleteRecord(long detailID)
+ {
+ InitializeComponent();
+ uDataGridView1.BorderStyle = BorderStyle.FixedSingle;
+ BindGrid(detailID);
+ }
+
+ void BindGrid(long detailID)
+ {
+ list = CarcassSaleOutBL.GetDeletedWeightRecord(detailID);
+ uDataGridView1.DataSource = list;
+ uDataGridView1.Refresh();
+ }
+
+ private void closeBtn_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/ButcherFactory.Form/Dialogs/WeightDeleteRecord.resx b/ButcherFactory.Form/Dialogs/WeightDeleteRecord.resx
new file mode 100644
index 0000000..1e08b48
--- /dev/null
+++ b/ButcherFactory.Form/Dialogs/WeightDeleteRecord.resx
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs b/ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs
index 6837438..02adc5d 100644
--- a/ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs
+++ b/ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs
@@ -28,19 +28,14 @@
///
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = 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 dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = 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();
this.uDataGridView1 = new WinFormControl.UDataGridView();
- this.panel1 = new System.Windows.Forms.Panel();
- this.closeBtn = new ButcherFactory.Controls.ColorButton();
- this.rollBackBtn = new ButcherFactory.Controls.ColorButton();
- this.deleteBtn = new ButcherFactory.Controls.ColorButton();
- this.addBtn = new ButcherFactory.Controls.ColorButton();
this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Selected = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Image = new System.Windows.Forms.DataGridViewImageColumn();
@@ -54,6 +49,12 @@
this.R_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Time = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.deleteLogBtn = new ButcherFactory.Controls.ColorButton();
+ this.closeBtn = new ButcherFactory.Controls.ColorButton();
+ this.rollBackBtn = new ButcherFactory.Controls.ColorButton();
+ this.deleteBtn = new ButcherFactory.Controls.ColorButton();
+ this.addBtn = new ButcherFactory.Controls.ColorButton();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
@@ -64,18 +65,18 @@
this.uDataGridView1.AllowUserToDeleteRows = false;
this.uDataGridView1.AllowUserToResizeColumns = false;
this.uDataGridView1.AllowUserToResizeRows = false;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
this.uDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White;
+ dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
this.uDataGridView1.ColumnHeadersHeight = 40;
this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -97,9 +98,9 @@
this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.RowHeadersVisible = false;
- dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle7;
+ 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.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle14;
this.uDataGridView1.RowTemplate.Height = 40;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uDataGridView1.Size = new System.Drawing.Size(1045, 434);
@@ -107,75 +108,6 @@
this.uDataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uDataGridView1_CellClick);
this.uDataGridView1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.uDataGridView1_CellFormatting);
//
- // panel1
- //
- this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.panel1.Controls.Add(this.closeBtn);
- this.panel1.Controls.Add(this.rollBackBtn);
- this.panel1.Controls.Add(this.deleteBtn);
- this.panel1.Controls.Add(this.addBtn);
- this.panel1.Location = new System.Drawing.Point(185, 468);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(744, 52);
- this.panel1.TabIndex = 2;
- //
- // closeBtn
- //
- this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
- this.closeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.closeBtn.ForeColor = System.Drawing.Color.White;
- this.closeBtn.Location = new System.Drawing.Point(624, 5);
- this.closeBtn.Name = "closeBtn";
- this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
- this.closeBtn.Size = new System.Drawing.Size(117, 43);
- this.closeBtn.TabIndex = 3;
- this.closeBtn.Text = "关闭";
- this.closeBtn.UseVisualStyleBackColor = false;
- this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
- //
- // rollBackBtn
- //
- this.rollBackBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(75)))), ((int)(((byte)(71)))));
- this.rollBackBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.rollBackBtn.ForeColor = System.Drawing.Color.White;
- this.rollBackBtn.Location = new System.Drawing.Point(428, 5);
- this.rollBackBtn.Name = "rollBackBtn";
- this.rollBackBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
- this.rollBackBtn.Size = new System.Drawing.Size(117, 43);
- this.rollBackBtn.TabIndex = 6;
- this.rollBackBtn.Text = "退回";
- this.rollBackBtn.UseVisualStyleBackColor = false;
- this.rollBackBtn.Click += new System.EventHandler(this.rollBackBtn_Click);
- //
- // deleteBtn
- //
- this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
- this.deleteBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.deleteBtn.ForeColor = System.Drawing.Color.White;
- this.deleteBtn.Location = new System.Drawing.Point(207, 5);
- this.deleteBtn.Name = "deleteBtn";
- this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
- this.deleteBtn.Size = new System.Drawing.Size(117, 43);
- this.deleteBtn.TabIndex = 5;
- this.deleteBtn.Text = "删除且更新";
- this.deleteBtn.UseVisualStyleBackColor = false;
- this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
- //
- // addBtn
- //
- this.addBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
- this.addBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.addBtn.ForeColor = System.Drawing.Color.White;
- this.addBtn.Location = new System.Drawing.Point(3, 5);
- this.addBtn.Name = "addBtn";
- this.addBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
- this.addBtn.Size = new System.Drawing.Size(117, 43);
- this.addBtn.TabIndex = 3;
- this.addBtn.Text = "新增";
- this.addBtn.UseVisualStyleBackColor = false;
- this.addBtn.Click += new System.EventHandler(this.addBtn_Click);
- //
// R_ID
//
this.R_ID.DataPropertyName = "ID";
@@ -236,8 +168,8 @@
// R_Number
//
this.R_Number.DataPropertyName = "Number";
- dataGridViewCellStyle3.Format = "#0.######";
- this.R_Number.DefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle10.Format = "#0.######";
+ this.R_Number.DefaultCellStyle = dataGridViewCellStyle10;
this.R_Number.HeaderText = "数量";
this.R_Number.Name = "R_Number";
this.R_Number.ReadOnly = true;
@@ -245,8 +177,8 @@
// R_InStoreWeight
//
this.R_InStoreWeight.DataPropertyName = "InStoreWeight";
- dataGridViewCellStyle4.Format = "#0.######";
- this.R_InStoreWeight.DefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle11.Format = "#0.######";
+ this.R_InStoreWeight.DefaultCellStyle = dataGridViewCellStyle11;
this.R_InStoreWeight.HeaderText = "入库重量";
this.R_InStoreWeight.Name = "R_InStoreWeight";
this.R_InStoreWeight.ReadOnly = true;
@@ -254,8 +186,8 @@
// R_Weight
//
this.R_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle5.Format = "#0.######";
- this.R_Weight.DefaultCellStyle = dataGridViewCellStyle5;
+ dataGridViewCellStyle12.Format = "#0.######";
+ this.R_Weight.DefaultCellStyle = dataGridViewCellStyle12;
this.R_Weight.HeaderText = "重量";
this.R_Weight.Name = "R_Weight";
this.R_Weight.ReadOnly = true;
@@ -263,8 +195,8 @@
// R_DiffWeight
//
this.R_DiffWeight.DataPropertyName = "DiffWeight";
- dataGridViewCellStyle6.Format = "#0.######";
- this.R_DiffWeight.DefaultCellStyle = dataGridViewCellStyle6;
+ dataGridViewCellStyle13.Format = "#0.######";
+ this.R_DiffWeight.DefaultCellStyle = dataGridViewCellStyle13;
this.R_DiffWeight.HeaderText = "差异";
this.R_DiffWeight.Name = "R_DiffWeight";
this.R_DiffWeight.ReadOnly = true;
@@ -285,6 +217,89 @@
this.R_Time.Name = "R_Time";
this.R_Time.ReadOnly = true;
//
+ // panel1
+ //
+ this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.panel1.Controls.Add(this.deleteLogBtn);
+ this.panel1.Controls.Add(this.closeBtn);
+ this.panel1.Controls.Add(this.rollBackBtn);
+ this.panel1.Controls.Add(this.deleteBtn);
+ this.panel1.Controls.Add(this.addBtn);
+ this.panel1.Location = new System.Drawing.Point(54, 462);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(942, 52);
+ this.panel1.TabIndex = 2;
+ //
+ // deleteLogBtn
+ //
+ this.deleteLogBtn.BackColor = System.Drawing.Color.Red;
+ this.deleteLogBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.deleteLogBtn.ForeColor = System.Drawing.Color.White;
+ this.deleteLogBtn.Location = new System.Drawing.Point(822, 5);
+ this.deleteLogBtn.Name = "deleteLogBtn";
+ this.deleteLogBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
+ this.deleteLogBtn.Size = new System.Drawing.Size(117, 43);
+ this.deleteLogBtn.TabIndex = 7;
+ this.deleteLogBtn.Text = "删除记录";
+ this.deleteLogBtn.UseVisualStyleBackColor = false;
+ this.deleteLogBtn.Click += new System.EventHandler(this.deleteLogBtn_Click);
+ //
+ // closeBtn
+ //
+ this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245)))));
+ this.closeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.closeBtn.ForeColor = System.Drawing.Color.White;
+ this.closeBtn.Location = new System.Drawing.Point(418, 5);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
+ this.closeBtn.Size = new System.Drawing.Size(117, 43);
+ this.closeBtn.TabIndex = 3;
+ this.closeBtn.Text = "关闭";
+ this.closeBtn.UseVisualStyleBackColor = false;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // rollBackBtn
+ //
+ this.rollBackBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(75)))), ((int)(((byte)(71)))));
+ this.rollBackBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.rollBackBtn.ForeColor = System.Drawing.Color.White;
+ this.rollBackBtn.Location = new System.Drawing.Point(177, 5);
+ this.rollBackBtn.Name = "rollBackBtn";
+ this.rollBackBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
+ this.rollBackBtn.Size = new System.Drawing.Size(117, 43);
+ this.rollBackBtn.TabIndex = 6;
+ this.rollBackBtn.Text = "退回";
+ this.rollBackBtn.UseVisualStyleBackColor = false;
+ this.rollBackBtn.Click += new System.EventHandler(this.rollBackBtn_Click);
+ //
+ // deleteBtn
+ //
+ this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25)))));
+ this.deleteBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.deleteBtn.ForeColor = System.Drawing.Color.White;
+ this.deleteBtn.Location = new System.Drawing.Point(649, 5);
+ this.deleteBtn.Name = "deleteBtn";
+ this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
+ this.deleteBtn.Size = new System.Drawing.Size(117, 43);
+ this.deleteBtn.TabIndex = 5;
+ this.deleteBtn.Text = "删除且更新";
+ this.deleteBtn.UseVisualStyleBackColor = false;
+ this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click);
+ //
+ // addBtn
+ //
+ this.addBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58)))));
+ this.addBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.addBtn.ForeColor = System.Drawing.Color.White;
+ this.addBtn.Location = new System.Drawing.Point(3, 5);
+ this.addBtn.Name = "addBtn";
+ this.addBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107)))));
+ this.addBtn.Size = new System.Drawing.Size(117, 43);
+ this.addBtn.TabIndex = 3;
+ this.addBtn.Text = "新增";
+ this.addBtn.UseVisualStyleBackColor = false;
+ this.addBtn.Click += new System.EventHandler(this.addBtn_Click);
+ //
// WeightRecordDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -326,5 +341,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn R_DiffWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Time;
+ private Controls.ColorButton deleteLogBtn;
}
}
\ No newline at end of file
diff --git a/ButcherFactory.Form/Dialogs/WeightRecordDialog.cs b/ButcherFactory.Form/Dialogs/WeightRecordDialog.cs
index 8413acd..da5dc13 100644
--- a/ButcherFactory.Form/Dialogs/WeightRecordDialog.cs
+++ b/ButcherFactory.Form/Dialogs/WeightRecordDialog.cs
@@ -126,6 +126,8 @@ namespace ButcherFactory.Dialogs
var id = (long)uDataGridView1.CurrentRow.Cells[0].Value;
if (id == 0)
return;
+ if (MessageBox.Show("确定删除该明细?", "删除确认", MessageBoxButtons.OKCancel) != DialogResult.OK)
+ return;
var tag = list.First(x => x.ID == id);
CarcassSaleOutBL.DeleteAndUpdate(tag);
BindGrid();
@@ -174,5 +176,10 @@ namespace ButcherFactory.Dialogs
Changed = true;
rolBack = true;
}
+
+ private void deleteLogBtn_Click(object sender, EventArgs e)
+ {
+ new WeightDeleteRecord(mDetail.ID).ShowDialog();
+ }
}
}
diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
index 683f0e1..a534c0f 100644
--- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
+++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
@@ -33,6 +33,7 @@ namespace ButcherFactory.SegmentProductionAuto_
}
Thread uploadData;
+ Thread checkInStoreState;
BindingList historyList;
Dictionary> goodsSetDic;
long? workUnitID;
@@ -47,6 +48,8 @@ namespace ButcherFactory.SegmentProductionAuto_
{
if (uploadData != null && uploadData.IsAlive)
uploadData.Abort();
+ if (checkInStoreState != null && checkInStoreState.IsAlive)
+ checkInStoreState.Abort();
};
workUnitSelect.SelectedIndexChanged += delegate
{
@@ -78,6 +81,9 @@ namespace ButcherFactory.SegmentProductionAuto_
var initTask = new Thread(LoadBind);
initTask.Start();
+ checkInStoreState = new Thread(CheckInStored);
+ checkInStoreState.Start();
+
uploadData = new Thread(UpLoadLocalData);
uploadData.Start();
}
@@ -144,6 +150,7 @@ namespace ButcherFactory.SegmentProductionAuto_
weight = detail.StandardWeight.Value;
}
var entity = SegmentProductionBL.InsertAndSetGroupID(detail.Goods_ID, weight, workUnitID, batchID.Value, batchDate.Value);
+ entity.Goods_Code = detail.Goods_Code;
entity.Goods_Name = detail.Goods_Name;
entity.Goods_Spec = detail.Goods_Spec;
GoodsLabel.Text = entity.Goods_Name;
@@ -154,6 +161,9 @@ namespace ButcherFactory.SegmentProductionAuto_
historyDataGrid.Refresh();
if (barPrintCheck.Checked)
NotAuto.SegmentProductionPrint.Print(entity, batchDate);
+
+ taskDataGrid.DataSource= SegmentProductionBL.GetProductTask(batchDate ?? DateTime.Today, entity);
+ taskDataGrid.Refresh();
}
void BindGrid()
@@ -183,6 +193,35 @@ namespace ButcherFactory.SegmentProductionAuto_
}
}
+ private void CheckInStored()
+ {
+ while (true)
+ {
+ if (this.IsHandleCreated)
+ {
+ this.Invoke(new Action(() =>
+ {
+ if (netStateWatch1.NetState)
+ {
+ if (historyList.Any()) {
+ var arr = historyList.Reverse().Take(20).ToList();
+ var inStored = SegmentProductionBL.GetInStoreState(arr.Select(x => x.BarCode).ToList());
+ var tag = arr.Where(x => inStored.Contains(x.BarCode));
+ if (tag.Any())
+ {
+ SegmentProductionBL.SetInStored(tag.Select(x => x.ID).ToList());
+ foreach (var item in tag)
+ historyList.Remove(item);
+ historyDataGrid.Refresh();
+ }
+ }
+ }
+ }));
+ }
+ Thread.Sleep(5000);
+ }
+ }
+
private void closeBtn_Click(object sender, EventArgs e)
{
Close();
@@ -191,6 +230,7 @@ namespace ButcherFactory.SegmentProductionAuto_
private void goodsSetBtn_Click(object sender, EventArgs e)
{
new ClientGoodsSetDialog().ShowDialog();
+ BindGoods();
}
private void rePrintBtn_Click(object sender, EventArgs e)
diff --git a/ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs b/ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs
index 75800d2..44f7c8f 100644
--- a/ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs
+++ b/ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs
@@ -98,7 +98,9 @@ namespace ButcherFactory.SegmentSaleOut_
if (detailGridView.CurrentRow == null)
throw new Exception("没有订货明细");
if (weightRecord.Any(x => x.BarCode == barCode))
- return;
+ throw new Exception("扫码重复");
+ if (SegmentSaleOutBL.BarCodeUsed(barCode))
+ throw new Exception("扫码重复");
InsertDetailByScan(barCode);
diff --git a/ButcherFactory.Login/Login.xaml.cs b/ButcherFactory.Login/Login.xaml.cs
index 3e5eb99..c164fb5 100644
--- a/ButcherFactory.Login/Login.xaml.cs
+++ b/ButcherFactory.Login/Login.xaml.cs
@@ -16,7 +16,7 @@ namespace ButcherFactory.Login
{
InitializeComponent();
#if DEBUG
- pwdInput.Password = AppContext.ConnectInfo.ServerMode == 0 ? "123" : "bwp2017";
+ pwdInput.Password = AppContext.ConnectInfo.ServerMode == 0 ? "123" : "";
#endif
try
diff --git a/ButcherFactory.Tools/MainWindow.xaml b/ButcherFactory.Tools/MainWindow.xaml
index b2b1a33..57b6499 100644
--- a/ButcherFactory.Tools/MainWindow.xaml
+++ b/ButcherFactory.Tools/MainWindow.xaml
@@ -1,16 +1,18 @@
+ Title="BWP_Tools" Height="450" Width="525" ResizeMode="NoResize" >
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ButcherFactory.Tools/MainWindow.xaml.cs b/ButcherFactory.Tools/MainWindow.xaml.cs
index 6326adc..3bd7a3d 100644
--- a/ButcherFactory.Tools/MainWindow.xaml.cs
+++ b/ButcherFactory.Tools/MainWindow.xaml.cs
@@ -26,20 +26,27 @@ namespace ButcherFactory.Tools
InitializeComponent();
modeComboBox.Items.Add("MES");
modeComboBox.Items.Add("B3");
- modeComboBox.SelectedIndex = AppContext.ConnectInfo.ServerMode;
- var list = XmlUtil.DeserializeFromFile>("Config\\DbSelectList.xml");
- dbComboBox.SelectedValuePath = "Value";
- dbComboBox.DisplayMemberPath = "Name";
- dbComboBox.ItemsSource = list;
+ try
+ {
+ modeComboBox.SelectedIndex = AppContext.ConnectInfo.ServerMode;
+ var list = XmlUtil.DeserializeFromFile>("Config\\DbSelectList.xml");
+ dbComboBox.SelectedValuePath = "Value";
+ dbComboBox.DisplayMemberPath = "Name";
+ dbComboBox.ItemsSource = list;
- if (!string.IsNullOrEmpty(AppContext.ConnectInfo.SqlConnection))
+ if (!string.IsNullOrEmpty(AppContext.ConnectInfo.SqlConnection))
+ {
+ var idx = list.FindIndex(x => x.Value == AppContext.ConnectInfo.SqlConnection);
+ if (idx > -1)
+ dbComboBox.SelectedIndex = idx;
+ }
+ this.mesUrlBox.Text = AppContext.ConnectInfo.MESUrl;
+ this.b3UrlBox.Text = AppContext.ConnectInfo.B3Url;
+ }
+ catch (Exception ex)
{
- var idx = list.FindIndex(x => x.Value == AppContext.ConnectInfo.SqlConnection);
- if (idx > -1)
- dbComboBox.SelectedIndex = idx;
+ MessageBox.Show(ex.Message);
}
-
- this.serverUrlBox.Text = AppContext.ConnectInfo.ServerUrl;
}
private void Button_Click(object sender, RoutedEventArgs e)
@@ -54,10 +61,8 @@ namespace ButcherFactory.Tools
private void SaveBtnClick(object sender, RoutedEventArgs e)
{
- string uri = this.serverUrlBox.Text.Trim();
- if (string.IsNullOrEmpty(uri))
- throw new Exception("请先设置服务器地址");
- AppContext.ConnectInfo.ServerUrl = uri;
+ AppContext.ConnectInfo.MESUrl = this.mesUrlBox.Text.Trim();
+ AppContext.ConnectInfo.B3Url = this.b3UrlBox.Text.Trim();
AppContext.ConnectInfo.SqlConnection = (string)dbComboBox.SelectedValue;
AppContext.ConnectInfo.ServerMode = modeComboBox.SelectedIndex;
AppContext.ConnectInfo.Save();
@@ -70,12 +75,13 @@ namespace ButcherFactory.Tools
Application.Current.Shutdown();
}
- private void ServerUrlTextBoxClick(object sender, MouseButtonEventArgs e)
+ private void UrlTextBoxClick(object sender, MouseButtonEventArgs e)
{
- serverUrlBox.Focus();
+ var box = sender as TextBox;
+ box.Focus();
var keyBoard = new VirtualKeyPad();
if (keyBoard.ShowDialog() == true)
- serverUrlBox.Text = keyBoard.Result;
+ box.Text = keyBoard.Result;
}
}
diff --git a/ButcherFactorySolution/ButcherFactorySolution.vdproj b/ButcherFactorySolution/ButcherFactorySolution.vdproj
index 85a5704..60f395d 100644
--- a/ButcherFactorySolution/ButcherFactorySolution.vdproj
+++ b/ButcherFactorySolution/ButcherFactorySolution.vdproj
@@ -21,6 +21,24 @@
}
"Entry"
{
+ "MsmKey" = "8:_01E56548E879FA791BE1522C98562ED5"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_01E56548E879FA791BE1522C98562ED5"
+ "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
+ "MsmKey" = "8:_01E56548E879FA791BE1522C98562ED5"
+ "OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
+ "MsmSig" = "8:_UNDEFINED"
+ }
+ "Entry"
+ {
"MsmKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED"
@@ -52,73 +70,73 @@
"Entry"
{
"MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
- "OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
+ "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
- "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ "OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
+ "MsmKey" = "8:_42002CAFBC974A5E8927D0CB32BE755D"
+ "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
- "OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
+ "MsmKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
+ "OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
- "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ "MsmKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_42002CAFBC974A5E8927D0CB32BE755D"
- "OwnerKey" = "8:_UNDEFINED"
+ "MsmKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
+ "OwnerKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_522FFC69C80F4D5DA4C9B348F8590C61"
- "OwnerKey" = "8:_UNDEFINED"
+ "MsmKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
+ "OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
- "OwnerKey" = "8:_UNDEFINED"
+ "MsmKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_654AEDD527E14D5B8535CC81E96B8185"
+ "MsmKey" = "8:_522FFC69C80F4D5DA4C9B348F8590C61"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_6F0E808293504BA19048B340A88AEAA1"
+ "MsmKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
- "OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
+ "MsmKey" = "8:_654AEDD527E14D5B8535CC81E96B8185"
+ "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
+ "MsmKey" = "8:_6F0E808293504BA19048B340A88AEAA1"
+ "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -159,20 +177,20 @@
}
"Entry"
{
- "MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
- "OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
+ "MsmKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
+ "OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
- "OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
+ "MsmKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
+ "MsmKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
+ "OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -195,98 +213,86 @@
}
"Entry"
{
- "MsmKey" = "8:_9F705636DF3FC7591C089E51A914B437"
- "OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
+ "MsmKey" = "8:_9FC311468D3F37CF5966009732A129CC"
+ "OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_9F705636DF3FC7591C089E51A914B437"
+ "MsmKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_A47D1F2EDEB9445DAE5C62DE51CC8FAD"
+ "MsmKey" = "8:_B24BD1F54711439BA132ABC05EC82AF6"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
- "OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
- "MsmSig" = "8:_UNDEFINED"
- }
- "Entry"
- {
- "MsmKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
- "MsmSig" = "8:_UNDEFINED"
- }
- "Entry"
- {
- "MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
- "OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
+ "MsmKey" = "8:_C05D1B3E0BB241258C4AACD21FAB6E72"
+ "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
- "OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
+ "MsmKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
+ "OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
+ "MsmKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_B24BD1F54711439BA132ABC05EC82AF6"
+ "MsmKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_C05D1B3E0BB241258C4AACD21FAB6E72"
- "OwnerKey" = "8:_UNDEFINED"
+ "MsmKey" = "8:_D32656229814B10B3981022C6BAE7B85"
+ "OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
- "OwnerKey" = "8:_UNDEFINED"
+ "MsmKey" = "8:_D32656229814B10B3981022C6BAE7B85"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_D38B860E2FD246B790618B9B4FB991C5"
- "OwnerKey" = "8:_UNDEFINED"
+ "MsmKey" = "8:_D32656229814B10B3981022C6BAE7B85"
+ "OwnerKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
+ "MsmKey" = "8:_D38B860E2FD246B790618B9B4FB991C5"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
- "OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
+ "MsmKey" = "8:_D75F76D9C28EDCFD7454D52CBB18C6E9"
+ "OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
- "OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
+ "MsmKey" = "8:_D75F76D9C28EDCFD7454D52CBB18C6E9"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
- "MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
+ "MsmKey" = "8:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
+ "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -309,18 +315,6 @@
}
"Entry"
{
- "MsmKey" = "8:_FD82AF7F959387F3F4C23A0EB1AC0E35"
- "OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
- "MsmSig" = "8:_UNDEFINED"
- }
- "Entry"
- {
- "MsmKey" = "8:_FD82AF7F959387F3F4C23A0EB1AC0E35"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
- "MsmSig" = "8:_UNDEFINED"
- }
- "Entry"
- {
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmSig" = "8:_UNDEFINED"
@@ -328,79 +322,79 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_7D717FB201604CFA7400BFF79560F461"
+ "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
+ "OwnerKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
+ "OwnerKey" = "8:_9F09F8DA53F59713DB8BFCD6F53DB58A"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
+ "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
+ "OwnerKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
+ "OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_FD82AF7F959387F3F4C23A0EB1AC0E35"
+ "OwnerKey" = "8:_D75F76D9C28EDCFD7454D52CBB18C6E9"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
+ "OwnerKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
+ "OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
+ "OwnerKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_9F09F8DA53F59713DB8BFCD6F53DB58A"
+ "OwnerKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
+ "OwnerKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ "OwnerKey" = "8:_D32656229814B10B3981022C6BAE7B85"
"MsmSig" = "8:_UNDEFINED"
}
}
@@ -518,6 +512,37 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_01E56548E879FA791BE1522C98562ED5"
+ {
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:ButcherFactory.BO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_01E56548E879FA791BE1522C98562ED5"
+ {
+ "Name" = "8:ButcherFactory.BO.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:ButcherFactory.BO.dll"
+ "TargetName" = "8:"
+ "Tag" = "8:"
+ "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
+ "IsolateTo" = "8:"
+ }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_083AAEAE39990B76FE06389D076F1D2C"
{
"AssemblyRegister" = "3:1"
@@ -525,6 +550,11 @@
"AssemblyAsmDisplayName" = "8:BwpClientPrint, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_083AAEAE39990B76FE06389D076F1D2C"
+ {
+ "Name" = "8:BwpClientPrint.DLL"
+ "Attributes" = "3:512"
+ }
}
"SourcePath" = "8:BwpClientPrint.DLL"
"TargetName" = "8:"
@@ -611,6 +641,11 @@
"AssemblyAsmDisplayName" = "8:WinFormControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_3E728084E6413DC3E740199EBCA6CF15"
+ {
+ "Name" = "8:WinFormControl.dll"
+ "Attributes" = "3:512"
+ }
}
"SourcePath" = "8:WinFormControl.dll"
"TargetName" = "8:"
@@ -630,15 +665,40 @@
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_4083346C24A7D8470DB4B61D58809784"
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_42002CAFBC974A5E8927D0CB32BE755D"
+ {
+ "SourcePath" = "8:..\\..\\WinFormControl\\WinFormControl\\Sounds\\click.wav"
+ "TargetName" = "8:click.wav"
+ "Tag" = "8:"
+ "Folder" = "8:_6866532246094A308566729453EB35CA"
+ "Condition" = "8:"
+ "Transitive" = "11:FALSE"
+ "Vital" = "11:TRUE"
+ "ReadOnly" = "11:FALSE"
+ "Hidden" = "11:FALSE"
+ "System" = "11:FALSE"
+ "Permanent" = "11:FALSE"
+ "SharedLegacy" = "11:FALSE"
+ "PackageAs" = "3:1"
+ "Register" = "3:1"
+ "Exclude" = "11:FALSE"
+ "IsDependency" = "11:FALSE"
+ "IsolateTo" = "8:"
+ }
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_45A67B7D2502BF76FA9795FF8899DE9E"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:ButcherFactory.BO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "AssemblyAsmDisplayName" = "8:MongoDB.Bson, Version=1.4.0.4468, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_45A67B7D2502BF76FA9795FF8899DE9E"
+ {
+ "Name" = "8:MongoDB.Bson.dll"
+ "Attributes" = "3:512"
+ }
}
- "SourcePath" = "8:ButcherFactory.BO.dll"
+ "SourcePath" = "8:MongoDB.Bson.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@@ -652,16 +712,27 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
- "Exclude" = "11:FALSE"
+ "Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
- "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_42002CAFBC974A5E8927D0CB32BE755D"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_4D70C75DA5B25015E8DDBF829D234FE8"
{
- "SourcePath" = "8:..\\..\\WinFormControl\\WinFormControl\\Sounds\\click.wav"
- "TargetName" = "8:click.wav"
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Forks.JsonRpc.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_4D70C75DA5B25015E8DDBF829D234FE8"
+ {
+ "Name" = "8:Forks.JsonRpc.Client.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Forks.JsonRpc.Client.dll"
+ "TargetName" = "8:"
"Tag" = "8:"
- "Folder" = "8:_6866532246094A308566729453EB35CA"
+ "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -673,7 +744,7 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
- "IsDependency" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_522FFC69C80F4D5DA4C9B348F8590C61"
@@ -767,32 +838,6 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_70C18C0E0DFD66B15418411D1857F74B"
- {
- "AssemblyRegister" = "3:1"
- "AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:MongoDB.Driver, Version=1.4.0.4468, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL"
- "ScatterAssemblies"
- {
- }
- "SourcePath" = "8:MongoDB.Driver.dll"
- "TargetName" = "8:"
- "Tag" = "8:"
- "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
- "Condition" = "8:"
- "Transitive" = "11:FALSE"
- "Vital" = "11:TRUE"
- "ReadOnly" = "11:FALSE"
- "Hidden" = "11:FALSE"
- "System" = "11:FALSE"
- "Permanent" = "11:FALSE"
- "SharedLegacy" = "11:FALSE"
- "PackageAs" = "3:1"
- "Register" = "3:1"
- "Exclude" = "11:TRUE"
- "IsDependency" = "11:TRUE"
- "IsolateTo" = "8:"
- }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_748F78F338674C3884B702673BEDE665"
{
"SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Sounds\\l60.wav"
@@ -893,15 +938,20 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_7D717FB201604CFA7400BFF79560F461"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_8D58B6FD6249E85E930D55CCE736855E"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:Forks.Json, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
+ "AssemblyAsmDisplayName" = "8:Forks.Utils, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_8D58B6FD6249E85E930D55CCE736855E"
+ {
+ "Name" = "8:Forks.Utils.dll"
+ "Attributes" = "3:512"
+ }
}
- "SourcePath" = "8:Forks.Json.dll"
+ "SourcePath" = "8:Forks.Utils.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@@ -966,6 +1016,11 @@
"AssemblyAsmDisplayName" = "8:zxing, Version=0.11.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_9F09F8DA53F59713DB8BFCD6F53DB58A"
+ {
+ "Name" = "8:zxing.DLL"
+ "Attributes" = "3:512"
+ }
}
"SourcePath" = "8:zxing.DLL"
"TargetName" = "8:"
@@ -985,15 +1040,20 @@
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9F705636DF3FC7591C089E51A914B437"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9FC311468D3F37CF5966009732A129CC"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
+ "AssemblyAsmDisplayName" = "8:MongoDB.Driver, Version=1.4.0.4468, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_9FC311468D3F37CF5966009732A129CC"
+ {
+ "Name" = "8:MongoDB.Driver.dll"
+ "Attributes" = "3:512"
+ }
}
- "SourcePath" = "8:Forks.EnterpriseServices.dll"
+ "SourcePath" = "8:MongoDB.Driver.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@@ -1007,16 +1067,16 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
- "Exclude" = "11:FALSE"
+ "Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
- "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A47D1F2EDEB9445DAE5C62DE51CC8FAD"
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B24BD1F54711439BA132ABC05EC82AF6"
{
- "SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Config\\MESUrl.cfg"
- "TargetName" = "8:MESUrl.cfg"
+ "SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Sounds\\l55.wav"
+ "TargetName" = "8:l55.wav"
"Tag" = "8:"
- "Folder" = "8:_DDF0E5520C37445FBCDCE0D5082C076B"
+ "Folder" = "8:_6866532246094A308566729453EB35CA"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -1031,16 +1091,10 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_AED9467B5BDCD87EC2746DB4EF7A24D2"
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C05D1B3E0BB241258C4AACD21FAB6E72"
{
- "AssemblyRegister" = "3:1"
- "AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:Forks.JsonRpc.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
- "ScatterAssemblies"
- {
- }
- "SourcePath" = "8:Forks.JsonRpc.Client.dll"
- "TargetName" = "8:"
+ "SourcePath" = "8:C:\\360驱动大师目录\\app.ico"
+ "TargetName" = "8:app.ico"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:"
@@ -1054,18 +1108,23 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
- "IsDependency" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B027E23B6E431EA7A5006FCB5BB20236"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C1BAA40E3F5E065EA88D97DA96D5992D"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:MongoDB.Bson, Version=1.4.0.4468, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL"
+ "AssemblyAsmDisplayName" = "8:Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
+ "_C1BAA40E3F5E065EA88D97DA96D5992D"
+ {
+ "Name" = "8:Forks.EnterpriseServices.dll"
+ "Attributes" = "3:512"
+ }
}
- "SourcePath" = "8:MongoDB.Bson.dll"
+ "SourcePath" = "8:Forks.EnterpriseServices.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@@ -1079,34 +1138,25 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
- "Exclude" = "11:TRUE"
- "IsDependency" = "11:TRUE"
- "IsolateTo" = "8:"
- }
- "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B24BD1F54711439BA132ABC05EC82AF6"
- {
- "SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Sounds\\l55.wav"
- "TargetName" = "8:l55.wav"
- "Tag" = "8:"
- "Folder" = "8:_6866532246094A308566729453EB35CA"
- "Condition" = "8:"
- "Transitive" = "11:FALSE"
- "Vital" = "11:TRUE"
- "ReadOnly" = "11:FALSE"
- "Hidden" = "11:FALSE"
- "System" = "11:FALSE"
- "Permanent" = "11:FALSE"
- "SharedLegacy" = "11:FALSE"
- "PackageAs" = "3:1"
- "Register" = "3:1"
"Exclude" = "11:FALSE"
- "IsDependency" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
- "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C05D1B3E0BB241258C4AACD21FAB6E72"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_CDEF0D7FE4F14E5E84A3902D05B165EC"
{
- "SourcePath" = "8:C:\\360驱动大师目录\\app.ico"
- "TargetName" = "8:app.ico"
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:ButcherFactory.Form, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ {
+ "Name" = "8:ButcherFactory.Form.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:..\\ButcherFactory.Form\\bin\\Release\\ButcherFactory.Form.dll"
+ "TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:"
@@ -1123,20 +1173,20 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D32656229814B10B3981022C6BAE7B85"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:ButcherFactory.Form, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
+ "AssemblyAsmDisplayName" = "8:Forks.Json, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
"ScatterAssemblies"
{
- "_CDEF0D7FE4F14E5E84A3902D05B165EC"
+ "_D32656229814B10B3981022C6BAE7B85"
{
- "Name" = "8:ButcherFactory.Form.dll"
+ "Name" = "8:Forks.Json.dll"
"Attributes" = "3:512"
}
}
- "SourcePath" = "8:..\\ButcherFactory.Form\\bin\\Release\\ButcherFactory.Form.dll"
+ "SourcePath" = "8:Forks.Json.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@@ -1151,7 +1201,7 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
- "IsDependency" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D38B860E2FD246B790618B9B4FB991C5"
@@ -1174,12 +1224,23 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
+ "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D75F76D9C28EDCFD7454D52CBB18C6E9"
{
- "SourcePath" = "8:..\\..\\WinFormControl\\WinFormControl\\Sounds\\di.wav"
- "TargetName" = "8:di.wav"
+ "AssemblyRegister" = "3:1"
+ "AssemblyIsInGAC" = "11:FALSE"
+ "AssemblyAsmDisplayName" = "8:Newtonsoft.Json, Version=4.0.3.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"
+ "ScatterAssemblies"
+ {
+ "_D75F76D9C28EDCFD7454D52CBB18C6E9"
+ {
+ "Name" = "8:Newtonsoft.Json.dll"
+ "Attributes" = "3:512"
+ }
+ }
+ "SourcePath" = "8:Newtonsoft.Json.dll"
+ "TargetName" = "8:"
"Tag" = "8:"
- "Folder" = "8:_6866532246094A308566729453EB35CA"
+ "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -1191,21 +1252,15 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
- "IsDependency" = "11:FALSE"
+ "IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_DE32A8488C67365FC9BBB4CAF2E074E2"
+ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
{
- "AssemblyRegister" = "3:1"
- "AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:Forks.Utils, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"
- "ScatterAssemblies"
- {
- }
- "SourcePath" = "8:Forks.Utils.dll"
- "TargetName" = "8:"
+ "SourcePath" = "8:..\\..\\WinFormControl\\WinFormControl\\Sounds\\di.wav"
+ "TargetName" = "8:di.wav"
"Tag" = "8:"
- "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
+ "Folder" = "8:_6866532246094A308566729453EB35CA"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -1217,7 +1272,7 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
- "IsDependency" = "11:TRUE"
+ "IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F45F0EE0BF2446558F2C1F4F902125DB"
@@ -1280,32 +1335,6 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
- "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_FD82AF7F959387F3F4C23A0EB1AC0E35"
- {
- "AssemblyRegister" = "3:1"
- "AssemblyIsInGAC" = "11:FALSE"
- "AssemblyAsmDisplayName" = "8:Newtonsoft.Json, Version=4.0.3.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"
- "ScatterAssemblies"
- {
- }
- "SourcePath" = "8:Newtonsoft.Json.dll"
- "TargetName" = "8:"
- "Tag" = "8:"
- "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
- "Condition" = "8:"
- "Transitive" = "11:FALSE"
- "Vital" = "11:TRUE"
- "ReadOnly" = "11:FALSE"
- "Hidden" = "11:FALSE"
- "System" = "11:FALSE"
- "Permanent" = "11:FALSE"
- "SharedLegacy" = "11:FALSE"
- "PackageAs" = "3:1"
- "Register" = "3:1"
- "Exclude" = "11:FALSE"
- "IsDependency" = "11:TRUE"
- "IsolateTo" = "8:"
- }
}
"FileType"
{
diff --git a/SelfHelpClient/DialogForm.Designer.cs b/SelfHelpClient/DialogForm.Designer.cs
index e81879f..31cb334 100644
--- a/SelfHelpClient/DialogForm.Designer.cs
+++ b/SelfHelpClient/DialogForm.Designer.cs
@@ -57,20 +57,19 @@
this.backPanel.Name = "backPanel";
this.backPanel.Size = new System.Drawing.Size(158, 63);
this.backPanel.TabIndex = 2;
- this.backPanel.Click += new System.EventHandler(this.okBtn_Click);
//
// okBtn
//
- this.okBtn.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.okBtn.AutoSize = true;
this.okBtn.BackColor = System.Drawing.Color.Transparent;
- this.okBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.okBtn.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.okBtn.Font = new System.Drawing.Font("黑体", 18F, System.Drawing.FontStyle.Bold);
this.okBtn.ForeColor = System.Drawing.Color.White;
- this.okBtn.Location = new System.Drawing.Point(56, 23);
+ this.okBtn.Location = new System.Drawing.Point(0, 0);
this.okBtn.Name = "okBtn";
- this.okBtn.Size = new System.Drawing.Size(49, 20);
+ this.okBtn.Size = new System.Drawing.Size(158, 63);
this.okBtn.TabIndex = 0;
- this.okBtn.Text = "返货";
+ this.okBtn.Text = "返回";
+ this.okBtn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// DialogForm
@@ -85,7 +84,6 @@
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "DialogForm";
this.backPanel.ResumeLayout(false);
- this.backPanel.PerformLayout();
this.ResumeLayout(false);
}
diff --git a/SelfHelpClient/ItemSelect.Designer.cs b/SelfHelpClient/ItemSelect.Designer.cs
index 7891212..4c7e122 100644
--- a/SelfHelpClient/ItemSelect.Designer.cs
+++ b/SelfHelpClient/ItemSelect.Designer.cs
@@ -28,36 +28,72 @@
///
private void InitializeComponent()
{
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemSelect));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = 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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
this.uDataGridView1 = new WinFormControl.UDataGridView();
this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_CarNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Date = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.backBtn = new System.Windows.Forms.Panel();
- this.backBtnLbl = new System.Windows.Forms.Label();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
+ this.mainPanel.SuspendLayout();
this.backBtn.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.SuspendLayout();
//
+ // mainPanel
+ //
+ this.mainPanel.Controls.Add(this.uDataGridView1);
+ this.mainPanel.Controls.Add(this.backBtn);
+ //
+ // backBtn
+ //
+ this.backBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.backBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("backBtn.BackgroundImage")));
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(433, 420);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
+ this.backBtn.TabIndex = 7;
+ //
+ // backBtnLbl
+ //
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.backBtnLbl.Font = new System.Drawing.Font("黑体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(0, 0);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(121, 52);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
// uDataGridView1
//
this.uDataGridView1.AllowUserToAddRows = false;
this.uDataGridView1.AllowUserToDeleteRows = false;
this.uDataGridView1.AllowUserToResizeColumns = false;
this.uDataGridView1.AllowUserToResizeRows = false;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
- this.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
+ this.uDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.uDataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.uDataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.uDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(220)))), ((int)(((byte)(156)))));
- dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 20F);
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(170)))), ((int)(((byte)(37)))));
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
@@ -68,22 +104,30 @@
this.R_CarNumber,
this.R_Number,
this.R_Date});
- this.uDataGridView1.Dock = System.Windows.Forms.DockStyle.Top;
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.uDataGridView1.DefaultCellStyle = dataGridViewCellStyle4;
this.uDataGridView1.EnableHeadersVisualStyles = false;
- this.uDataGridView1.Location = new System.Drawing.Point(0, 0);
+ this.uDataGridView1.Location = new System.Drawing.Point(17, 22);
this.uDataGridView1.MultiSelect = false;
this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.RowHeadersVisible = false;
- dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(239)))), ((int)(((byte)(254)))));
- dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 18F);
- dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
- this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("黑体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(203)))), ((int)(((byte)(255)))));
+ this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5;
this.uDataGridView1.RowTemplate.Height = 80;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView1.Size = new System.Drawing.Size(730, 465);
- this.uDataGridView1.TabIndex = 0;
+ this.uDataGridView1.Size = new System.Drawing.Size(949, 353);
+ this.uDataGridView1.TabIndex = 8;
this.uDataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uDataGridView1_CellClick);
+ this.uDataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.uDataGridView1_RowPostPaint);
//
// R_ID
//
@@ -94,19 +138,21 @@
//
// R_CarNumber
//
+ this.R_CarNumber.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_CarNumber.DataPropertyName = "CarNumber";
+ this.R_CarNumber.FillWeight = 30F;
this.R_CarNumber.HeaderText = "车辆";
this.R_CarNumber.Name = "R_CarNumber";
this.R_CarNumber.ReadOnly = true;
- this.R_CarNumber.Width = 220;
//
// R_Number
//
+ this.R_Number.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_Number.DataPropertyName = "Number";
+ this.R_Number.FillWeight = 20F;
this.R_Number.HeaderText = "头数";
this.R_Number.Name = "R_Number";
this.R_Number.ReadOnly = true;
- this.R_Number.Width = 150;
//
// R_Date
//
@@ -114,61 +160,33 @@
this.R_Date.DataPropertyName = "Date";
dataGridViewCellStyle3.Format = "yyyy-MM-dd HH:mm:ss";
this.R_Date.DefaultCellStyle = dataGridViewCellStyle3;
+ this.R_Date.FillWeight = 50F;
this.R_Date.HeaderText = "时间";
this.R_Date.Name = "R_Date";
this.R_Date.ReadOnly = true;
//
- // backBtn
- //
- this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
- this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.backBtn.Controls.Add(this.backBtnLbl);
- this.backBtn.Location = new System.Drawing.Point(305, 497);
- this.backBtn.Name = "backBtn";
- this.backBtn.Size = new System.Drawing.Size(121, 52);
- this.backBtn.TabIndex = 2;
- this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
- //
- // backBtnLbl
- //
- this.backBtnLbl.AutoSize = true;
- this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
- this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
- this.backBtnLbl.ForeColor = System.Drawing.Color.White;
- this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
- this.backBtnLbl.Name = "backBtnLbl";
- this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
- this.backBtnLbl.TabIndex = 0;
- this.backBtnLbl.Text = "返回";
- this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
- //
// ItemSelect
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
- this.ClientSize = new System.Drawing.Size(730, 552);
- this.Controls.Add(this.backBtn);
- this.Controls.Add(this.uDataGridView1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.ClientSize = new System.Drawing.Size(1000, 600);
this.Name = "ItemSelect";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "ItemSelect";
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
+ this.mainPanel.ResumeLayout(false);
this.backBtn.ResumeLayout(false);
- this.backBtn.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
private WinFormControl.UDataGridView uDataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn R_CarNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Number;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Date;
- private System.Windows.Forms.Panel backBtn;
- private System.Windows.Forms.Label backBtnLbl;
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/ItemSelect.cs b/SelfHelpClient/ItemSelect.cs
index ca8954b..5822eff 100644
--- a/SelfHelpClient/ItemSelect.cs
+++ b/SelfHelpClient/ItemSelect.cs
@@ -11,7 +11,7 @@ using System.Windows.Forms;
namespace SelfHelpClient
{
- public partial class ItemSelect : Form
+ public partial class ItemSelect : Template
{
List list;
ReadCardForm form;
@@ -20,12 +20,14 @@ namespace SelfHelpClient
InitializeComponent();
form = mForm;
list = mlist;
+ this.WindowState = FormWindowState.Maximized;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
uDataGridView1.DataSource = list;
+ uDataGridView1.ClearSelection();
uDataGridView1.Refresh();
}
@@ -41,5 +43,22 @@ namespace SelfHelpClient
{
this.Close();
}
+
+ Pen penSelected = new Pen(Color.FromArgb(215, 218, 243));
+ private void uDataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
+ {
+ var rec = e.RowBounds;
+ Point pTopStart = new Point(rec.X, rec.Y + 1);
+ Point pTopEnd = new Point(rec.X + rec.Width, rec.Y + 1);
+ e.Graphics.DrawLine(penSelected, pTopStart, pTopEnd);
+
+ Point pLeftStart = new Point(rec.X + 1, rec.Y);
+ Point pLeftEnd = new Point(rec.X + 1, rec.Y + rec.Height);
+ e.Graphics.DrawLine(penSelected, pLeftStart, pLeftEnd);
+
+ Point pRightStart = new Point(rec.X + rec.Width - 1, rec.Y);
+ Point pRightEnd = new Point(rec.X + rec.Width - 1, rec.Y + rec.Height);
+ e.Graphics.DrawLine(penSelected, pRightStart, pRightEnd);
+ }
}
}
diff --git a/SelfHelpClient/ItemSelect.resx b/SelfHelpClient/ItemSelect.resx
index bae4ac0..164ba94 100644
--- a/SelfHelpClient/ItemSelect.resx
+++ b/SelfHelpClient/ItemSelect.resx
@@ -129,4 +129,39 @@
True
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAAKwAAABTCAYAAAAC9ewUAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+ dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAaTSURBVHhe7dnpb1RVGMfx84qEf4ClIiruUOMWg1uM
+ cYtGo8Qoxi1qcDeWlrZUNpF9KW1Ri1RccUFxwaIiSq0IqH8Bsf4fGum0M318fmfpnJneEtqZEU7ye/FN
+ 771z7umbT54eBiNfP26k92kj379k5GCTkUNtc6V/ZaccXjMgRzYMyrHNIr9t1dpFfu9w/dHJWOUFT7AF
+ Y7AGc4fX/GkNwqKIiTPy1aNGvnnKyLfPT5EDDd3yY0tB+paL/LJa5Nd1Ikc3uo1G0W5jrHrFWGEN5mAP
+ BmHxQEOP2pxaBLt3oU7Zx6ZI76I++e4FkR8aRX5aKvLzCo92rarXjY5ucpse28JYFQNUtQVjsAZzsAeD
+ sAiTvYv6rVELds8CoN2hD/CBLnjRo211yvtXiY5otxn0H1nPWPWCKdiCMViDOdizWNUiTMLm3oXdDuxH
+ d86TT+/Ny+cPiB4PRI8HoiNYdBTrSF4ickil9y1z6vtXMlb9YAvGYA3mYA8GYREmYRNG1aqR92/ukt13
+ iHxyt8hn94t8+bDIvidE9j/jhB942Wk/2KSbNTNW/WALxmAN5mAPBmERJmETRtWqkV3zB+TdG0U+uEVU
+ sMie+3T8Puhk73vSjeT9z6r455z6kvCMsYmW4QjGYA3mYA8GYREmYRNG1aqRHZfnpOdqvblW5L2bVPLt
+ TvSeBW4Uf/GQSn/EbYJwngjXjFVSbAnGYA3mYM9OVbUIk7AJo2rVyOuXiLw5Fzf68BqRd67H6HWLP75L
+ X7wH5wenHRuNhnvGJluZJRiDNZiDPRiERZiETRhVq2ak6yIZ2X6xvZHueSJvXSHyNuDe4HTjxQ9v1W4r
+ C88Ym2wZnmAN5mAPBmERJtUmjMKqGem4UEY6FK3eCOC+Abj1IjuvdLp3zdcNrnPax4TnjE20cSzBGszB
+ HgzCoodqjapVU2i/QArbgFbrBFxMW80eEy5zyrHBzqsYq2FqDNZgzv75B1QNJtUmjMKqKWxRsFs1vRkB
+ 3BgthONljGVsxFitgjFYg7kYq4dqjapVU9h8vl5oWWjD2TbAtWFjvzljk67MkYWq2SNAFlY1qlZNfpO7
+ GEULsDgv4AULNkJru5SxKuZdwRgmK8DCnhq0x4AIK6wq2Dn2wqINUzY+z2aiZayKeawl0xXn1jBdPVZY
+ NfmNADvHT1kPdsyxgGBZDcsCG44DMGnBqlO1WgZWKwHrv+oiWFbLSsCquxKw7q8/wbIzp4rA6pnBgo3/
+ M4FgWS0rBwt7AFvyDy6CZWdKBMuSimBZUhEsSyqCZUlFsCypCJYlFcGypCJYllQEy5KKYFlSESxLKoJl
+ SUWwLKkIliUVwbKkIliWVATLkopgWVIRLEsqgmVJRbAsqQiWJRXBsqQiWJZUBMuSimBZUhEsSyqCZUlF
+ sCypCJYlFcGypCJYllQEy5KKYFlSESxLKoJlSUWwLKkIliUVwbKkIliWVATLkopgWVIRLEuqCYPVCJad
+ tk4FrHdKsOz0Nxmw+U3ZYEcIltU6DxbWssDCZhHshgDWT1ksCmA7y8ASLat2wVUAC3NqDwatRUxXf36F
+ VQfWo3XHAl3UrlO2Q9Hi5S43qomWVb0IqzsOBLCKVQ1ai+E44J2a/PrzxIYH403ZErQRXMYqynsqwZox
+ XWHTOzXD6/QCjYs2TFoH1x4RGKtC7syK/GDEZB0PqxqFVTO89lwJWbgbtPLjQYCLiRumLmOVFjzBFqCW
+ HwMC1MioGX7tHBlereHnGq0Mrv32IOCFfISNbfgljE007yd4CkjDtwGwF6DCZGTUDL06W4ZW+XC9erbH
+ G03dcFzAZhZxnP9FjJ1SkZ3gKf6zHyGFxXKfZmjF2ZJbMUtyyzX9ifuhldoqLQYcIWasasGU91UE6g1m
+ 2DS5ZbNyuVfOklxbFO6XaViojSIOkIN4xioqcgWc3pu1l2ly1t8m11Y3MLi0TgZbZ8pgiw/XrfoMzzVd
+ U3wphE0Zm2yxJYuy6M3aK/foHB43+mGXfdg8Q04sKTaI9JktvBhnUTM2ybJMBW+RQ2sxGGyt2270ol4X
+ 5E806YeN08fWFFe6EWMVB1OxsUyDFnEeVs1g80yjL+6wHyxG0zLyn5VvxFg1Cr7Gs4c1alREjIKdYVT2
+ FH3YZxc0TLAxv4Cxk5Rl6GThncbp/TDqwLbohG1StI2KdvG0bl1UwMJ/o0o2YKxGZZgrqMketTkVWItg
+ l1iwRsev0UXztO3aX/riULwJY/9D/6i9495gfYDqEvMfW1TeVkH2n1YAAAAASUVORK5CYII=
+
+
\ No newline at end of file
diff --git a/SelfHelpClient/ItemSelect2.Designer.cs b/SelfHelpClient/ItemSelect2.Designer.cs
new file mode 100644
index 0000000..98a3e28
--- /dev/null
+++ b/SelfHelpClient/ItemSelect2.Designer.cs
@@ -0,0 +1,174 @@
+namespace SelfHelpClient
+{
+ partial class ItemSelect2
+ {
+ ///
+ /// 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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemSelect2));
+ this.uDataGridView1 = new WinFormControl.UDataGridView();
+ this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_CarNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_Date = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
+ this.backBtn.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // uDataGridView1
+ //
+ this.uDataGridView1.AllowUserToAddRows = false;
+ this.uDataGridView1.AllowUserToDeleteRows = false;
+ this.uDataGridView1.AllowUserToResizeColumns = false;
+ this.uDataGridView1.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
+ this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.uDataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.uDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(220)))), ((int)(((byte)(156)))));
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 20F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.uDataGridView1.ColumnHeadersHeight = 60;
+ this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.R_ID,
+ this.R_CarNumber,
+ this.R_Number,
+ this.R_Date});
+ this.uDataGridView1.EnableHeadersVisualStyles = false;
+ this.uDataGridView1.Location = new System.Drawing.Point(0, 69);
+ this.uDataGridView1.MultiSelect = false;
+ this.uDataGridView1.Name = "uDataGridView1";
+ this.uDataGridView1.ReadOnly = true;
+ this.uDataGridView1.RowHeadersVisible = false;
+ dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(239)))), ((int)(((byte)(254)))));
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 18F);
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222)))));
+ this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle4;
+ this.uDataGridView1.RowTemplate.Height = 80;
+ this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.uDataGridView1.Size = new System.Drawing.Size(730, 396);
+ this.uDataGridView1.TabIndex = 0;
+ this.uDataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uDataGridView1_CellClick);
+ //
+ // R_ID
+ //
+ this.R_ID.HeaderText = "ID";
+ this.R_ID.Name = "R_ID";
+ this.R_ID.ReadOnly = true;
+ this.R_ID.Visible = false;
+ //
+ // R_CarNumber
+ //
+ this.R_CarNumber.DataPropertyName = "CarNumber";
+ this.R_CarNumber.HeaderText = "车辆";
+ this.R_CarNumber.Name = "R_CarNumber";
+ this.R_CarNumber.ReadOnly = true;
+ this.R_CarNumber.Width = 220;
+ //
+ // R_Number
+ //
+ this.R_Number.DataPropertyName = "Number";
+ this.R_Number.HeaderText = "头数";
+ this.R_Number.Name = "R_Number";
+ this.R_Number.ReadOnly = true;
+ this.R_Number.Width = 150;
+ //
+ // R_Date
+ //
+ this.R_Date.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.R_Date.DataPropertyName = "Date";
+ dataGridViewCellStyle3.Format = "yyyy-MM-dd HH:mm:ss";
+ this.R_Date.DefaultCellStyle = dataGridViewCellStyle3;
+ this.R_Date.HeaderText = "时间";
+ this.R_Date.Name = "R_Date";
+ this.R_Date.ReadOnly = true;
+ //
+ // backBtn
+ //
+ this.backBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("backBtn.BackgroundImage")));
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(305, 497);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
+ this.backBtn.TabIndex = 2;
+ this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
+ //
+ // backBtnLbl
+ //
+ this.backBtnLbl.AutoSize = true;
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
+ // ItemSelect
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
+ this.ClientSize = new System.Drawing.Size(906, 552);
+ this.Controls.Add(this.backBtn);
+ this.Controls.Add(this.uDataGridView1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "ItemSelect";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "ItemSelect";
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
+ this.backBtn.ResumeLayout(false);
+ this.backBtn.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private WinFormControl.UDataGridView uDataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_CarNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_Date;
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
+ }
+}
\ No newline at end of file
diff --git a/SelfHelpClient/ItemSelect2.cs b/SelfHelpClient/ItemSelect2.cs
new file mode 100644
index 0000000..fbf9dac
--- /dev/null
+++ b/SelfHelpClient/ItemSelect2.cs
@@ -0,0 +1,45 @@
+using SelfHelpClient.BO;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace SelfHelpClient
+{
+ public partial class ItemSelect2 : Form
+ {
+ List list;
+ ReadCardForm form;
+ public ItemSelect2(List mlist, ReadCardForm mForm)
+ {
+ InitializeComponent();
+ form = mForm;
+ list = mlist;
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ uDataGridView1.DataSource = list;
+ uDataGridView1.Refresh();
+ }
+
+ private void uDataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex < 0)
+ return;
+ form.VEntity = uDataGridView1.CurrentRow.DataBoundItem as ViewEntity;
+ DialogResult = DialogResult.OK;
+ }
+
+ private void backBtn_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/SelfHelpClient/ItemSelect2.resx b/SelfHelpClient/ItemSelect2.resx
new file mode 100644
index 0000000..b3bca30
--- /dev/null
+++ b/SelfHelpClient/ItemSelect2.resx
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+ 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
+ TkSuQmCC
+
+
+
\ No newline at end of file
diff --git a/SelfHelpClient/MainForm.Designer.cs b/SelfHelpClient/MainForm.Designer.cs
index bfcb4fd..804c7b4 100644
--- a/SelfHelpClient/MainForm.Designer.cs
+++ b/SelfHelpClient/MainForm.Designer.cs
@@ -29,21 +29,21 @@
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
- this.weightBtn = new System.Windows.Forms.Panel();
- this.weightBtnLbl = new System.Windows.Forms.Label();
- this.selfBtn = new System.Windows.Forms.Panel();
- this.selfBtnLbl = new System.Windows.Forms.Label();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label2 = new System.Windows.Forms.Label();
this.titlePanel = new System.Windows.Forms.Panel();
this.closeBtn = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.logoPanel = new System.Windows.Forms.Panel();
- this.panel2 = new System.Windows.Forms.Panel();
- this.label2 = new System.Windows.Forms.Label();
+ this.weightBtn = new System.Windows.Forms.Panel();
+ this.weightBtnLbl = new System.Windows.Forms.Label();
+ this.selfBtn = new System.Windows.Forms.Panel();
+ this.selfBtnLbl = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.titlePanel.SuspendLayout();
this.weightBtn.SuspendLayout();
this.selfBtn.SuspendLayout();
- this.titlePanel.SuspendLayout();
- this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -51,58 +51,33 @@
this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.panel1.Controls.Add(this.weightBtn);
this.panel1.Controls.Add(this.selfBtn);
- this.panel1.Location = new System.Drawing.Point(136, 137);
+ this.panel1.Location = new System.Drawing.Point(137, 137);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(644, 271);
this.panel1.TabIndex = 0;
//
- // weightBtn
- //
- this.weightBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.guobang;
- this.weightBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.weightBtn.Controls.Add(this.weightBtnLbl);
- this.weightBtn.Location = new System.Drawing.Point(388, 64);
- this.weightBtn.Name = "weightBtn";
- this.weightBtn.Size = new System.Drawing.Size(235, 128);
- this.weightBtn.TabIndex = 3;
- this.weightBtn.Click += new System.EventHandler(this.weightBtn_Click);
- //
- // weightBtnLbl
- //
- this.weightBtnLbl.AutoSize = true;
- this.weightBtnLbl.BackColor = System.Drawing.Color.Transparent;
- this.weightBtnLbl.Font = new System.Drawing.Font("宋体", 23F);
- this.weightBtnLbl.ForeColor = System.Drawing.Color.White;
- this.weightBtnLbl.Location = new System.Drawing.Point(49, 47);
- this.weightBtnLbl.Name = "weightBtnLbl";
- this.weightBtnLbl.Size = new System.Drawing.Size(138, 31);
- this.weightBtnLbl.TabIndex = 0;
- this.weightBtnLbl.Text = "送猪过磅";
- this.weightBtnLbl.Click += new System.EventHandler(this.weightBtn_Click);
- //
- // selfBtn
+ // panel2
//
- this.selfBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.zizhufuwu;
- this.selfBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.selfBtn.Controls.Add(this.selfBtnLbl);
- this.selfBtn.Location = new System.Drawing.Point(20, 64);
- this.selfBtn.Name = "selfBtn";
- this.selfBtn.Size = new System.Drawing.Size(235, 128);
- this.selfBtn.TabIndex = 2;
- this.selfBtn.Click += new System.EventHandler(this.selfBtn_Click);
+ this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(60)))), ((int)(((byte)(203)))));
+ this.panel2.Controls.Add(this.label2);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.panel2.Location = new System.Drawing.Point(0, 478);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(928, 43);
+ this.panel2.TabIndex = 2;
//
- // selfBtnLbl
+ // label2
//
- this.selfBtnLbl.AutoSize = true;
- this.selfBtnLbl.BackColor = System.Drawing.Color.Transparent;
- this.selfBtnLbl.Font = new System.Drawing.Font("宋体", 23F);
- this.selfBtnLbl.ForeColor = System.Drawing.Color.White;
- this.selfBtnLbl.Location = new System.Drawing.Point(49, 47);
- this.selfBtnLbl.Name = "selfBtnLbl";
- this.selfBtnLbl.Size = new System.Drawing.Size(138, 31);
- this.selfBtnLbl.TabIndex = 0;
- this.selfBtnLbl.Text = "自助服务";
- this.selfBtnLbl.Click += new System.EventHandler(this.selfBtn_Click);
+ this.label2.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("宋体", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.White;
+ this.label2.Location = new System.Drawing.Point(391, 14);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(151, 15);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "欢迎使用自助服务机";
//
// titlePanel
//
@@ -133,7 +108,7 @@
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.Color.White;
- this.label1.Location = new System.Drawing.Point(70, 27);
+ this.label1.Location = new System.Drawing.Point(72, 28);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(210, 24);
this.label1.TabIndex = 1;
@@ -144,33 +119,58 @@
this.logoPanel.BackColor = System.Drawing.Color.Transparent;
this.logoPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.logo;
this.logoPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
- this.logoPanel.Location = new System.Drawing.Point(25, 22);
+ this.logoPanel.Location = new System.Drawing.Point(25, 20);
this.logoPanel.Name = "logoPanel";
- this.logoPanel.Size = new System.Drawing.Size(34, 34);
+ this.logoPanel.Size = new System.Drawing.Size(42, 42);
this.logoPanel.TabIndex = 0;
//
- // panel2
+ // weightBtn
//
- this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(60)))), ((int)(((byte)(203)))));
- this.panel2.Controls.Add(this.label2);
- this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.panel2.Location = new System.Drawing.Point(0, 478);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(928, 43);
- this.panel2.TabIndex = 2;
+ this.weightBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.guobang;
+ this.weightBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.weightBtn.Controls.Add(this.weightBtnLbl);
+ this.weightBtn.Location = new System.Drawing.Point(388, 64);
+ this.weightBtn.Name = "weightBtn";
+ this.weightBtn.Size = new System.Drawing.Size(235, 128);
+ this.weightBtn.TabIndex = 3;
//
- // label2
+ // weightBtnLbl
//
- this.label2.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.label2.AutoSize = true;
- this.label2.BackColor = System.Drawing.Color.Transparent;
- this.label2.Font = new System.Drawing.Font("宋体", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label2.ForeColor = System.Drawing.Color.White;
- this.label2.Location = new System.Drawing.Point(391, 14);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(151, 15);
- this.label2.TabIndex = 0;
- this.label2.Text = "欢迎使用自助服务机";
+ this.weightBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.weightBtnLbl.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.weightBtnLbl.Font = new System.Drawing.Font("黑体", 23.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.weightBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.weightBtnLbl.Location = new System.Drawing.Point(0, 0);
+ this.weightBtnLbl.Name = "weightBtnLbl";
+ this.weightBtnLbl.Size = new System.Drawing.Size(235, 128);
+ this.weightBtnLbl.TabIndex = 0;
+ this.weightBtnLbl.Text = "送猪过磅";
+ this.weightBtnLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.weightBtnLbl.Click += new System.EventHandler(this.weightBtn_Click);
+ //
+ // selfBtn
+ //
+ this.selfBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.zizhufuwu;
+ this.selfBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.selfBtn.Controls.Add(this.selfBtnLbl);
+ this.selfBtn.Location = new System.Drawing.Point(20, 64);
+ this.selfBtn.Name = "selfBtn";
+ this.selfBtn.Size = new System.Drawing.Size(235, 128);
+ this.selfBtn.TabIndex = 2;
+ //
+ // selfBtnLbl
+ //
+ this.selfBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.selfBtnLbl.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.selfBtnLbl.Font = new System.Drawing.Font("黑体", 23.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.selfBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.selfBtnLbl.Location = new System.Drawing.Point(0, 0);
+ this.selfBtnLbl.Name = "selfBtnLbl";
+ this.selfBtnLbl.Size = new System.Drawing.Size(235, 128);
+ this.selfBtnLbl.TabIndex = 0;
+ this.selfBtnLbl.Text = "自助服务";
+ this.selfBtnLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.selfBtnLbl.Click += new System.EventHandler(this.selfBtn_Click);
//
// MainForm
//
@@ -186,14 +186,12 @@
this.Text = "Form1";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false);
- this.weightBtn.ResumeLayout(false);
- this.weightBtn.PerformLayout();
- this.selfBtn.ResumeLayout(false);
- this.selfBtn.PerformLayout();
- this.titlePanel.ResumeLayout(false);
- this.titlePanel.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
+ this.titlePanel.ResumeLayout(false);
+ this.titlePanel.PerformLayout();
+ this.weightBtn.ResumeLayout(false);
+ this.selfBtn.ResumeLayout(false);
this.ResumeLayout(false);
}
diff --git a/SelfHelpClient/Properties/Resources.resx b/SelfHelpClient/Properties/Resources.resx
index 13aff6c..d611059 100644
--- a/SelfHelpClient/Properties/Resources.resx
+++ b/SelfHelpClient/Properties/Resources.resx
@@ -119,7 +119,7 @@
- ..\bin\Debug\fanhui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+ ..\Resources\fanhui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\bin\Debug\ganying.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -131,7 +131,7 @@
..\bin\Debug\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
- ..\bin\Debug\queren.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+ ..\Resources\queren.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\bin\Debug\shuaka.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
diff --git a/SelfHelpClient/ReadCardForm.Designer.cs b/SelfHelpClient/ReadCardForm.Designer.cs
index 05621e0..1a9d95b 100644
--- a/SelfHelpClient/ReadCardForm.Designer.cs
+++ b/SelfHelpClient/ReadCardForm.Designer.cs
@@ -28,123 +28,131 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ReadCardForm));
+ this.roundPanel1 = new System.Windows.Forms.Panel();
+ this.ganyingPanel = new System.Windows.Forms.Panel();
this.uLabel2 = new WinFormControl.ULabel();
this.uLabel1 = new WinFormControl.ULabel();
+ this.shuakaPanel = new System.Windows.Forms.Panel();
this.backBtn = new System.Windows.Forms.Panel();
this.backBtnLbl = new System.Windows.Forms.Label();
- this.ganyingPanel = new System.Windows.Forms.Panel();
- this.shuakaPanel = new System.Windows.Forms.Panel();
- this.panel1.SuspendLayout();
+ this.mainPanel.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
this.backBtn.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // mainPanel
+ //
+ this.mainPanel.Controls.Add(this.backBtn);
+ this.mainPanel.Controls.Add(this.roundPanel1);
+ this.mainPanel.Size = new System.Drawing.Size(988, 585);
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.roundPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(200)))), ((int)(((byte)(135)))));
+ this.roundPanel1.Controls.Add(this.ganyingPanel);
+ this.roundPanel1.Controls.Add(this.uLabel2);
+ this.roundPanel1.Controls.Add(this.uLabel1);
+ this.roundPanel1.Controls.Add(this.shuakaPanel);
+ this.roundPanel1.Location = new System.Drawing.Point(129, 3);
+ this.roundPanel1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(730, 433);
+ this.roundPanel1.TabIndex = 0;
+ //
+ // ganyingPanel
//
- this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(200)))), ((int)(((byte)(135)))));
- this.panel1.Controls.Add(this.ganyingPanel);
- this.panel1.Controls.Add(this.uLabel2);
- this.panel1.Controls.Add(this.uLabel1);
- this.panel1.Controls.Add(this.shuakaPanel);
- this.panel1.Location = new System.Drawing.Point(0, 0);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(730, 433);
- this.panel1.TabIndex = 0;
+ this.ganyingPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.ganying;
+ this.ganyingPanel.Location = new System.Drawing.Point(327, 31);
+ this.ganyingPanel.Name = "ganyingPanel";
+ this.ganyingPanel.Size = new System.Drawing.Size(221, 152);
+ this.ganyingPanel.TabIndex = 5;
//
// uLabel2
//
this.uLabel2.AutoSize = true;
this.uLabel2.BackColor = System.Drawing.Color.Transparent;
- this.uLabel2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.uLabel2.Font = new System.Drawing.Font("黑体", 14F, System.Drawing.FontStyle.Bold);
this.uLabel2.ForeColor = System.Drawing.Color.White;
- this.uLabel2.Location = new System.Drawing.Point(56, 87);
+ this.uLabel2.Location = new System.Drawing.Point(57, 88);
this.uLabel2.Name = "uLabel2";
- this.uLabel2.Size = new System.Drawing.Size(76, 16);
- this.uLabel2.TabIndex = 0;
+ this.uLabel2.Size = new System.Drawing.Size(93, 19);
+ this.uLabel2.TabIndex = 3;
this.uLabel2.Text = "进行操作";
//
// uLabel1
//
this.uLabel1.AutoSize = true;
this.uLabel1.BackColor = System.Drawing.Color.Transparent;
- this.uLabel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.uLabel1.Font = new System.Drawing.Font("黑体", 14F, System.Drawing.FontStyle.Bold);
this.uLabel1.ForeColor = System.Drawing.Color.White;
- this.uLabel1.Location = new System.Drawing.Point(56, 59);
+ this.uLabel1.Location = new System.Drawing.Point(57, 59);
this.uLabel1.Name = "uLabel1";
- this.uLabel1.Size = new System.Drawing.Size(178, 16);
- this.uLabel1.TabIndex = 0;
+ this.uLabel1.Size = new System.Drawing.Size(219, 19);
+ this.uLabel1.TabIndex = 4;
this.uLabel1.Text = "请把身份证放到感应区";
//
+ // shuakaPanel
+ //
+ this.shuakaPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.shuaka;
+ this.shuakaPanel.Location = new System.Drawing.Point(451, 175);
+ this.shuakaPanel.Name = "shuakaPanel";
+ this.shuakaPanel.Size = new System.Drawing.Size(279, 258);
+ this.shuakaPanel.TabIndex = 6;
+ //
// backBtn
//
- this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.backBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("backBtn.BackgroundImage")));
this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.backBtn.Controls.Add(this.backBtnLbl);
- this.backBtn.Location = new System.Drawing.Point(305, 497);
+ this.backBtn.Location = new System.Drawing.Point(434, 501);
this.backBtn.Name = "backBtn";
this.backBtn.Size = new System.Drawing.Size(121, 52);
- this.backBtn.TabIndex = 1;
- this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
+ this.backBtn.TabIndex = 4;
//
// backBtnLbl
//
- this.backBtnLbl.AutoSize = true;
this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
- this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.backBtnLbl.Font = new System.Drawing.Font("黑体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.backBtnLbl.ForeColor = System.Drawing.Color.White;
- this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Location = new System.Drawing.Point(0, 0);
this.backBtnLbl.Name = "backBtnLbl";
- this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.Size = new System.Drawing.Size(121, 52);
this.backBtnLbl.TabIndex = 0;
this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
//
- // ganyingPanel
- //
- this.ganyingPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.ganying;
- this.ganyingPanel.Location = new System.Drawing.Point(326, 31);
- this.ganyingPanel.Name = "ganyingPanel";
- this.ganyingPanel.Size = new System.Drawing.Size(221, 152);
- this.ganyingPanel.TabIndex = 1;
- //
- // shuakaPanel
- //
- this.shuakaPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.shuaka;
- this.shuakaPanel.Location = new System.Drawing.Point(450, 175);
- this.shuakaPanel.Name = "shuakaPanel";
- this.shuakaPanel.Size = new System.Drawing.Size(279, 258);
- this.shuakaPanel.TabIndex = 2;
- //
// ReadCardForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
- this.ClientSize = new System.Drawing.Size(730, 552);
- this.Controls.Add(this.backBtn);
- this.Controls.Add(this.panel1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.ClientSize = new System.Drawing.Size(1000, 671);
this.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.KeyPreview = true;
this.Name = "ReadCardForm";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
+ this.Text = "ReadCardForm";
+ this.mainPanel.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
this.backBtn.ResumeLayout(false);
- this.backBtn.PerformLayout();
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
- private WinFormControl.ULabel uLabel2;
- private WinFormControl.ULabel uLabel1;
+ //private ButcherFactory.Controls.RoundPanel roundPanel1;
+ private System.Windows.Forms.Panel roundPanel1;
private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
private System.Windows.Forms.Panel ganyingPanel;
+ private WinFormControl.ULabel uLabel2;
+ private WinFormControl.ULabel uLabel1;
private System.Windows.Forms.Panel shuakaPanel;
- private System.Windows.Forms.Label backBtnLbl;
}
}
\ No newline at end of file
diff --git a/SelfHelpClient/ReadCardForm.cs b/SelfHelpClient/ReadCardForm.cs
index 20d1e1b..f79c0cb 100644
--- a/SelfHelpClient/ReadCardForm.cs
+++ b/SelfHelpClient/ReadCardForm.cs
@@ -7,19 +7,19 @@ using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
-using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SelfHelpClient
{
- public partial class ReadCardForm : Form
+ public partial class ReadCardForm : Template
{
string _cardNumber = "";
public ViewEntity VEntity { get; set; }
public ReadCardForm()
{
- InitializeComponent();
+ InitializeComponent();
+ this.WindowState = FormWindowState.Maximized;
this.KeyPress += ReadCardForm_KeyPress;
}
diff --git a/SelfHelpClient/ReadCardForm.resx b/SelfHelpClient/ReadCardForm.resx
index 1af7de1..d34febd 100644
--- a/SelfHelpClient/ReadCardForm.resx
+++ b/SelfHelpClient/ReadCardForm.resx
@@ -117,4 +117,39 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ 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
+
+
\ No newline at end of file
diff --git a/SelfHelpClient/ReadCardForm2.Designer.cs b/SelfHelpClient/ReadCardForm2.Designer.cs
new file mode 100644
index 0000000..61d0bf0
--- /dev/null
+++ b/SelfHelpClient/ReadCardForm2.Designer.cs
@@ -0,0 +1,149 @@
+namespace SelfHelpClient
+{
+ partial class ReadCardForm2
+ {
+ ///
+ /// 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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ReadCardForm2));
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.ganyingPanel = new System.Windows.Forms.Panel();
+ this.uLabel2 = new WinFormControl.ULabel();
+ this.uLabel1 = new WinFormControl.ULabel();
+ this.shuakaPanel = new System.Windows.Forms.Panel();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
+ this.panel1.SuspendLayout();
+ this.backBtn.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(200)))), ((int)(((byte)(135)))));
+ this.panel1.Controls.Add(this.ganyingPanel);
+ this.panel1.Controls.Add(this.uLabel2);
+ this.panel1.Controls.Add(this.uLabel1);
+ this.panel1.Controls.Add(this.shuakaPanel);
+ this.panel1.Location = new System.Drawing.Point(127, 6);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(730, 433);
+ this.panel1.TabIndex = 2;
+ //
+ // ganyingPanel
+ //
+ this.ganyingPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.ganying;
+ this.ganyingPanel.Location = new System.Drawing.Point(326, 31);
+ this.ganyingPanel.Name = "ganyingPanel";
+ this.ganyingPanel.Size = new System.Drawing.Size(221, 152);
+ this.ganyingPanel.TabIndex = 1;
+ //
+ // uLabel2
+ //
+ this.uLabel2.AutoSize = true;
+ this.uLabel2.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.uLabel2.ForeColor = System.Drawing.Color.White;
+ this.uLabel2.Location = new System.Drawing.Point(56, 87);
+ this.uLabel2.Name = "uLabel2";
+ this.uLabel2.Size = new System.Drawing.Size(76, 16);
+ this.uLabel2.TabIndex = 0;
+ this.uLabel2.Text = "进行操作";
+ //
+ // uLabel1
+ //
+ this.uLabel1.AutoSize = true;
+ this.uLabel1.BackColor = System.Drawing.Color.Transparent;
+ this.uLabel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.uLabel1.ForeColor = System.Drawing.Color.White;
+ this.uLabel1.Location = new System.Drawing.Point(56, 59);
+ this.uLabel1.Name = "uLabel1";
+ this.uLabel1.Size = new System.Drawing.Size(178, 16);
+ this.uLabel1.TabIndex = 0;
+ this.uLabel1.Text = "请把身份证放到感应区";
+ //
+ // shuakaPanel
+ //
+ this.shuakaPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.shuaka;
+ this.shuakaPanel.Location = new System.Drawing.Point(450, 175);
+ this.shuakaPanel.Name = "shuakaPanel";
+ this.shuakaPanel.Size = new System.Drawing.Size(279, 258);
+ this.shuakaPanel.TabIndex = 2;
+ //
+ // backBtn
+ //
+ this.backBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("backBtn.BackgroundImage")));
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(432, 503);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
+ this.backBtn.TabIndex = 3;
+ //
+ // backBtnLbl
+ //
+ this.backBtnLbl.AutoSize = true;
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ //
+ // ReadCardForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.SystemColors.Control;
+ this.ClientSize = new System.Drawing.Size(984, 561);
+ this.Controls.Add(this.panel1);
+ this.Controls.Add(this.backBtn);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.ImeMode = System.Windows.Forms.ImeMode.Disable;
+ this.KeyPreview = true;
+ this.Name = "ReadCardForm";
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.backBtn.ResumeLayout(false);
+ this.backBtn.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel ganyingPanel;
+ private WinFormControl.ULabel uLabel2;
+ private WinFormControl.ULabel uLabel1;
+ private System.Windows.Forms.Panel shuakaPanel;
+ private System.Windows.Forms.Panel backBtn;
+ private System.Windows.Forms.Label backBtnLbl;
+
+
+ }
+}
\ No newline at end of file
diff --git a/SelfHelpClient/ReadCardForm2.cs b/SelfHelpClient/ReadCardForm2.cs
new file mode 100644
index 0000000..19c222d
--- /dev/null
+++ b/SelfHelpClient/ReadCardForm2.cs
@@ -0,0 +1,58 @@
+using SelfHelpClient.BL;
+using SelfHelpClient.BO;
+using System;
+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;
+
+namespace SelfHelpClient
+{
+ public partial class ReadCardForm2 : Form
+ {
+ string _cardNumber = "";
+ public ViewEntity VEntity { get; set; }
+ public ReadCardForm2()
+ {
+ InitializeComponent();
+ this.KeyPress += ReadCardForm_KeyPress;
+ }
+
+ void ReadCardForm_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (e.KeyChar == (char)Keys.Tab)
+ {
+ FillViewEntity(_cardNumber);
+ DialogResult = DialogResult.OK;
+ }
+ else
+ _cardNumber += e.KeyChar.ToString();
+ }
+
+ private void FillViewEntity(string idCard)
+ {
+ var list = WeightBillBL.GetViewEntity(idCard).OrderByDescending(x => x.Date).ToList();
+ if (list.Count == 0)
+ {
+ DialogForm.ShowDialog("没有待办理业务", 5);
+ this.Close();
+ }
+ else if (list.Count == 1)
+ VEntity = list.First();
+ else
+ {
+ //new ItemSelect(list, this).ShowDialog();
+ }
+ }
+
+ private void backBtn_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/SelfHelpClient/ReadCardForm2.resx b/SelfHelpClient/ReadCardForm2.resx
new file mode 100644
index 0000000..d34febd
--- /dev/null
+++ b/SelfHelpClient/ReadCardForm2.resx
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+ 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
+
+
+
\ No newline at end of file
diff --git a/SelfHelpClient/Resources/bgPanel.png b/SelfHelpClient/Resources/bgPanel.png
new file mode 100644
index 0000000..5aa6b2e
Binary files /dev/null and b/SelfHelpClient/Resources/bgPanel.png differ
diff --git a/SelfHelpClient/Resources/fanhui.png b/SelfHelpClient/Resources/fanhui.png
new file mode 100644
index 0000000..699e7fb
Binary files /dev/null and b/SelfHelpClient/Resources/fanhui.png differ
diff --git a/SelfHelpClient/Resources/queren.png b/SelfHelpClient/Resources/queren.png
new file mode 100644
index 0000000..6c03582
Binary files /dev/null and b/SelfHelpClient/Resources/queren.png differ
diff --git a/SelfHelpClient/SelfHelpClient.csproj b/SelfHelpClient/SelfHelpClient.csproj
index 5da7d44..582bab5 100644
--- a/SelfHelpClient/SelfHelpClient.csproj
+++ b/SelfHelpClient/SelfHelpClient.csproj
@@ -35,6 +35,7 @@
false
+
False
..\..\..\tsref\Debug\BwpClientPrint.dll
@@ -76,6 +77,12 @@
ItemSelect.cs
+
+ Form
+
+
+ ItemSelect2.cs
+
Form
@@ -84,18 +91,35 @@
+
+ True
+ True
+ Resources.resx
+
Form
ReadCardForm.cs
+
+ Form
+
+
+ ReadCardForm2.cs
+
Form
SelfHelpForm.cs
+
+ Form
+
+
+ Template.cs
+
@@ -113,25 +137,29 @@
ItemSelect.cs
+
+ ItemSelect2.cs
+
MainForm.cs
ResXFileCodeGenerator
- Resources.Designer.cs
Designer
+ Resources.Designer.cs
-
- True
- Resources.resx
- True
-
ReadCardForm.cs
+
+ ReadCardForm2.cs
+
SelfHelpForm.cs
+
+ Template.cs
+
WeightForm.cs
@@ -146,6 +174,9 @@
+
+
+
@@ -158,6 +189,12 @@
+
+
+ {2485631B-624C-43E0-9287-86FA1C8485FC}
+ ButcherFactory.Form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
\ No newline at end of file
diff --git a/SelfHelpClient/WeightForm.Designer.cs b/SelfHelpClient/WeightForm.Designer.cs
index 5677bfd..a66be7f 100644
--- a/SelfHelpClient/WeightForm.Designer.cs
+++ b/SelfHelpClient/WeightForm.Designer.cs
@@ -28,19 +28,22 @@
///
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = 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 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.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 dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = 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();
this.panel1 = new System.Windows.Forms.Panel();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.label3 = new System.Windows.Forms.Label();
+ this.backBtn = new System.Windows.Forms.Panel();
+ this.backBtnLbl = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.weightGrid = new WinFormControl.UDataGridView();
this.D_Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -58,23 +61,18 @@
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.panel5 = new System.Windows.Forms.Panel();
+ this.linePanel = new System.Windows.Forms.Panel();
this.titlePanel = new System.Windows.Forms.Panel();
- this.closeBtn = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.logoPanel = new System.Windows.Forms.Panel();
- this.backBtn = new System.Windows.Forms.Panel();
- this.backBtnLbl = new System.Windows.Forms.Label();
- this.panel5 = new System.Windows.Forms.Panel();
- this.linePanel = new System.Windows.Forms.Panel();
- this.panel4 = new System.Windows.Forms.Panel();
- this.label3 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
+ this.panel4.SuspendLayout();
+ this.backBtn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit();
- this.titlePanel.SuspendLayout();
- this.backBtn.SuspendLayout();
this.panel5.SuspendLayout();
- this.panel4.SuspendLayout();
+ this.titlePanel.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -87,6 +85,54 @@
this.panel1.Size = new System.Drawing.Size(614, 51);
this.panel1.TabIndex = 0;
//
+ // panel4
+ //
+ this.panel4.BackgroundImage = global::SelfHelpClient.Properties.Resources.queren;
+ this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.panel4.Controls.Add(this.label3);
+ this.panel4.Location = new System.Drawing.Point(122, -1);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(121, 52);
+ this.panel4.TabIndex = 4;
+ //
+ // label3
+ //
+ this.label3.BackColor = System.Drawing.Color.Transparent;
+ this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.label3.Font = new System.Drawing.Font("黑体", 15F, System.Drawing.FontStyle.Bold);
+ this.label3.ForeColor = System.Drawing.Color.White;
+ this.label3.Location = new System.Drawing.Point(0, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(121, 52);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "确认";
+ this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label3.Click += new System.EventHandler(this.okBtn_Click);
+ //
+ // backBtn
+ //
+ this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
+ this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.backBtn.Controls.Add(this.backBtnLbl);
+ this.backBtn.Location = new System.Drawing.Point(352, -1);
+ this.backBtn.Name = "backBtn";
+ this.backBtn.Size = new System.Drawing.Size(121, 52);
+ this.backBtn.TabIndex = 2;
+ //
+ // backBtnLbl
+ //
+ this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
+ this.backBtnLbl.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.backBtnLbl.Font = new System.Drawing.Font("黑体", 15F, System.Drawing.FontStyle.Bold);
+ this.backBtnLbl.ForeColor = System.Drawing.Color.White;
+ this.backBtnLbl.Location = new System.Drawing.Point(0, 0);
+ this.backBtnLbl.Name = "backBtnLbl";
+ this.backBtnLbl.Size = new System.Drawing.Size(121, 52);
+ this.backBtnLbl.TabIndex = 0;
+ this.backBtnLbl.Text = "返回";
+ this.backBtnLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
+ //
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -103,20 +149,19 @@
this.weightGrid.AllowUserToDeleteRows = false;
this.weightGrid.AllowUserToResizeColumns = false;
this.weightGrid.AllowUserToResizeRows = false;
- dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
- this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle12;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
+ this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.weightGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.weightGrid.BackgroundColor = System.Drawing.Color.White;
this.weightGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.weightGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.weightGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
- dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));
- dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(120)))), ((int)(((byte)(255)))));
- dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(120)))), ((int)(((byte)(255)))));
+ this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.weightGrid.ColumnHeadersHeight = 40;
this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -131,14 +176,16 @@
this.weightGrid.Name = "weightGrid";
this.weightGrid.ReadOnly = true;
this.weightGrid.RowHeadersVisible = false;
- dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
- 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.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle17;
- this.weightGrid.RowTemplate.Height = 30;
+ dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
+ 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)(255)))), ((int)(((byte)(146)))), ((int)(((byte)(40)))));
+ this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle6;
+ this.weightGrid.RowTemplate.Height = 40;
this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.weightGrid.Size = new System.Drawing.Size(893, 88);
+ this.weightGrid.Size = new System.Drawing.Size(893, 122);
this.weightGrid.TabIndex = 0;
+ this.weightGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.weightGrid_RowPostPaint);
//
// D_Index
//
@@ -159,8 +206,8 @@
//
this.D_MaoWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_MaoWeight.DataPropertyName = "MaoWeight";
- dataGridViewCellStyle14.Format = "#0.######";
- this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle14;
+ dataGridViewCellStyle3.Format = "#0.######";
+ this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle3;
this.D_MaoWeight.HeaderText = "毛重";
this.D_MaoWeight.Name = "D_MaoWeight";
this.D_MaoWeight.ReadOnly = true;
@@ -169,8 +216,8 @@
//
this.D_PiWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_PiWeight.DataPropertyName = "PiWeight";
- dataGridViewCellStyle15.Format = "#0.######";
- this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle15;
+ dataGridViewCellStyle4.Format = "#0.######";
+ this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle4;
this.D_PiWeight.HeaderText = "皮重";
this.D_PiWeight.Name = "D_PiWeight";
this.D_PiWeight.ReadOnly = true;
@@ -179,8 +226,8 @@
//
this.D_Weight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle16.Format = "#0.######";
- this.D_Weight.DefaultCellStyle = dataGridViewCellStyle16;
+ dataGridViewCellStyle5.Format = "#0.######";
+ this.D_Weight.DefaultCellStyle = dataGridViewCellStyle5;
this.D_Weight.HeaderText = "重量";
this.D_Weight.Name = "D_Weight";
this.D_Weight.ReadOnly = true;
@@ -191,20 +238,19 @@
this.farmerGrid.AllowUserToDeleteRows = false;
this.farmerGrid.AllowUserToResizeColumns = false;
this.farmerGrid.AllowUserToResizeRows = false;
- dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
- this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle18;
+ dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
+ this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
this.farmerGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.farmerGrid.BackgroundColor = System.Drawing.Color.White;
this.farmerGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.farmerGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.farmerGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
- dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));
- dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(129)))), ((int)(((byte)(255)))));
- dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19;
+ dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(129)))), ((int)(((byte)(255)))));
+ this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.farmerGrid.ColumnHeadersHeight = 40;
this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -223,14 +269,16 @@
this.farmerGrid.Name = "farmerGrid";
this.farmerGrid.ReadOnly = true;
this.farmerGrid.RowHeadersVisible = false;
- dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
- 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.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle22;
- this.farmerGrid.RowTemplate.Height = 30;
+ dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
+ 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)(16)))), ((int)(((byte)(218)))), ((int)(((byte)(16)))));
+ this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle11;
+ this.farmerGrid.RowTemplate.Height = 40;
this.farmerGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.farmerGrid.Size = new System.Drawing.Size(893, 107);
this.farmerGrid.TabIndex = 0;
+ this.farmerGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.farmerGrid_RowPostPaint);
//
// F_Index
//
@@ -261,8 +309,8 @@
// F_Weight
//
this.F_Weight.DataPropertyName = "Weight";
- dataGridViewCellStyle20.Format = "#0.######";
- this.F_Weight.DefaultCellStyle = dataGridViewCellStyle20;
+ dataGridViewCellStyle9.Format = "#0.######";
+ this.F_Weight.DefaultCellStyle = dataGridViewCellStyle9;
this.F_Weight.HeaderText = "重量";
this.F_Weight.Name = "F_Weight";
this.F_Weight.ReadOnly = true;
@@ -270,8 +318,8 @@
// F_Money
//
this.F_Money.DataPropertyName = "Money";
- dataGridViewCellStyle21.Format = "#0.######";
- this.F_Money.DefaultCellStyle = dataGridViewCellStyle21;
+ dataGridViewCellStyle10.Format = "#0.######";
+ this.F_Money.DefaultCellStyle = dataGridViewCellStyle10;
this.F_Money.HeaderText = "棚前金额";
this.F_Money.Name = "F_Money";
this.F_Money.ReadOnly = true;
@@ -316,11 +364,33 @@
this.F_Farmer_Address.Name = "F_Farmer_Address";
this.F_Farmer_Address.ReadOnly = true;
//
+ // panel5
+ //
+ this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel5.BackColor = System.Drawing.Color.White;
+ this.panel5.Controls.Add(this.linePanel);
+ this.panel5.Controls.Add(this.weightGrid);
+ this.panel5.Controls.Add(this.farmerGrid);
+ this.panel5.Location = new System.Drawing.Point(6, 194);
+ this.panel5.Name = "panel5";
+ this.panel5.Size = new System.Drawing.Size(914, 292);
+ this.panel5.TabIndex = 1;
+ //
+ // linePanel
+ //
+ this.linePanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.linePanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
+ this.linePanel.Location = new System.Drawing.Point(2, 138);
+ this.linePanel.Name = "linePanel";
+ this.linePanel.Size = new System.Drawing.Size(910, 1);
+ this.linePanel.TabIndex = 1;
+ //
// titlePanel
//
this.titlePanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.titleBg;
this.titlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.titlePanel.Controls.Add(this.closeBtn);
this.titlePanel.Controls.Add(this.label1);
this.titlePanel.Controls.Add(this.logoPanel);
this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top;
@@ -329,15 +399,6 @@
this.titlePanel.Size = new System.Drawing.Size(926, 80);
this.titlePanel.TabIndex = 2;
//
- // 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.Location = new System.Drawing.Point(878, 22);
- this.closeBtn.Name = "closeBtn";
- this.closeBtn.Size = new System.Drawing.Size(36, 33);
- this.closeBtn.TabIndex = 2;
- //
// label1
//
this.label1.AutoSize = true;
@@ -360,77 +421,6 @@
this.logoPanel.Size = new System.Drawing.Size(34, 34);
this.logoPanel.TabIndex = 0;
//
- // backBtn
- //
- this.backBtn.BackgroundImage = global::SelfHelpClient.Properties.Resources.fanhui;
- this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.backBtn.Controls.Add(this.backBtnLbl);
- this.backBtn.Location = new System.Drawing.Point(352, -3);
- this.backBtn.Name = "backBtn";
- this.backBtn.Size = new System.Drawing.Size(121, 52);
- this.backBtn.TabIndex = 2;
- this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
- //
- // backBtnLbl
- //
- this.backBtnLbl.AutoSize = true;
- this.backBtnLbl.BackColor = System.Drawing.Color.Transparent;
- this.backBtnLbl.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
- this.backBtnLbl.ForeColor = System.Drawing.Color.White;
- this.backBtnLbl.Location = new System.Drawing.Point(37, 17);
- this.backBtnLbl.Name = "backBtnLbl";
- this.backBtnLbl.Size = new System.Drawing.Size(49, 19);
- this.backBtnLbl.TabIndex = 0;
- this.backBtnLbl.Text = "返回";
- this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click);
- //
- // panel5
- //
- this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.panel5.BackColor = System.Drawing.Color.White;
- this.panel5.Controls.Add(this.linePanel);
- this.panel5.Controls.Add(this.weightGrid);
- this.panel5.Controls.Add(this.farmerGrid);
- this.panel5.Location = new System.Drawing.Point(6, 194);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(914, 253);
- this.panel5.TabIndex = 1;
- //
- // linePanel
- //
- this.linePanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.linePanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
- this.linePanel.Location = new System.Drawing.Point(2, 138);
- this.linePanel.Name = "linePanel";
- this.linePanel.Size = new System.Drawing.Size(910, 1);
- this.linePanel.TabIndex = 1;
- //
- // panel4
- //
- this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
- this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.panel4.Controls.Add(this.label3);
- this.panel4.Location = new System.Drawing.Point(122, -1);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(121, 52);
- this.panel4.TabIndex = 4;
- this.panel4.Click += new System.EventHandler(this.okBtn_Click);
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.BackColor = System.Drawing.Color.Transparent;
- this.label3.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
- this.label3.ForeColor = System.Drawing.Color.White;
- this.label3.Location = new System.Drawing.Point(37, 17);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(49, 19);
- this.label3.TabIndex = 0;
- this.label3.Text = "确认";
- this.label3.Click += new System.EventHandler(this.okBtn_Click);
- //
// WeightForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -446,15 +436,13 @@
this.Text = "WeightForm";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false);
+ this.panel4.ResumeLayout(false);
+ this.backBtn.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).EndInit();
+ this.panel5.ResumeLayout(false);
this.titlePanel.ResumeLayout(false);
this.titlePanel.PerformLayout();
- this.backBtn.ResumeLayout(false);
- this.backBtn.PerformLayout();
- this.panel5.ResumeLayout(false);
- this.panel4.ResumeLayout(false);
- this.panel4.PerformLayout();
this.ResumeLayout(false);
}
@@ -480,7 +468,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn D_PiWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn D_Weight;
private System.Windows.Forms.Panel titlePanel;
- private System.Windows.Forms.Panel closeBtn;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel logoPanel;
private System.Windows.Forms.Panel backBtn;
diff --git a/SelfHelpClient/WeightForm.cs b/SelfHelpClient/WeightForm.cs
index 1e00fa1..5bb0b47 100644
--- a/SelfHelpClient/WeightForm.cs
+++ b/SelfHelpClient/WeightForm.cs
@@ -175,7 +175,7 @@ namespace SelfHelpClient
{
Label label = new Label();
label.Text = content;
- label.Font = new System.Drawing.Font("宋体", 14);
+ label.Font = new System.Drawing.Font("黑体", 12);
label.Dock = DockStyle.Fill;
label.TextAlign = ContentAlignment.MiddleLeft;
return label;
@@ -193,6 +193,39 @@ namespace SelfHelpClient
MainForm.Form.Show();
this.Close();
}
+
+ Pen penSelected = new Pen(Color.FromArgb(215, 218, 243));
+ private void farmerGrid_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
+ {
+ var rec = e.RowBounds;
+ Point pTopStart = new Point(rec.X, rec.Y + 1);
+ Point pTopEnd = new Point(rec.X + rec.Width, rec.Y + 1);
+ e.Graphics.DrawLine(penSelected, pTopStart, pTopEnd);
+
+ Point pLeftStart = new Point(rec.X + 1, rec.Y);
+ Point pLeftEnd = new Point(rec.X + 1, rec.Y + rec.Height);
+ e.Graphics.DrawLine(penSelected, pLeftStart, pLeftEnd);
+
+ Point pRightStart = new Point(rec.X + rec.Width - 1, rec.Y);
+ Point pRightEnd = new Point(rec.X + rec.Width - 1, rec.Y + rec.Height);
+ e.Graphics.DrawLine(penSelected, pRightStart, pRightEnd);
+ }
+
+ private void weightGrid_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
+ {
+ var rec = e.RowBounds;
+ Point pTopStart = new Point(rec.X, rec.Y + 1);
+ Point pTopEnd = new Point(rec.X + rec.Width, rec.Y + 1);
+ e.Graphics.DrawLine(penSelected, pTopStart, pTopEnd);
+
+ Point pLeftStart = new Point(rec.X + 1, rec.Y);
+ Point pLeftEnd = new Point(rec.X + 1, rec.Y + rec.Height);
+ e.Graphics.DrawLine(penSelected, pLeftStart, pLeftEnd);
+
+ Point pRightStart = new Point(rec.X + rec.Width - 1, rec.Y);
+ Point pRightEnd = new Point(rec.X + rec.Width - 1, rec.Y + rec.Height);
+ e.Graphics.DrawLine(penSelected, pRightStart, pRightEnd);
+ }
}
struct TableSturct
diff --git a/SelfHelpClient/WeightForm.resx b/SelfHelpClient/WeightForm.resx
index cd6023a..f088455 100644
--- a/SelfHelpClient/WeightForm.resx
+++ b/SelfHelpClient/WeightForm.resx
@@ -117,40 +117,6 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- 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
- iGT/ArSen2rwTNYRAAAAAElFTkSuQmCC
-
-
True
diff --git a/SelfHelpClient/image/bgPanel.png b/SelfHelpClient/image/bgPanel.png
new file mode 100644
index 0000000..f03fd6a
Binary files /dev/null and b/SelfHelpClient/image/bgPanel.png differ