Browse Source

一系列调整。

master
yibo 7 years ago
parent
commit
a790bb4cbf
55 changed files with 2690 additions and 840 deletions
  1. +4
    -0
      ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs
  2. +16
    -0
      ButcherFactory.BO/Bill/CarcassSaleOut_Delete.cs
  3. +4
    -1
      ButcherFactory.BO/Bill/CarcassSaleOut_Detail.cs
  4. +1
    -0
      ButcherFactory.BO/Bill/SegmentInStore.cs
  5. +26
    -0
      ButcherFactory.BO/Bill/SegmentProduction.cs
  6. +4
    -1
      ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs
  7. +1
    -0
      ButcherFactory.BO/ButcherFactory.BO.csproj
  8. +44
    -2
      ButcherFactory.BO/LocalBL/CarcassSaleOutBL.cs
  9. +2
    -0
      ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs
  10. +51
    -77
      ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs
  11. +59
    -4
      ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
  12. +9
    -1
      ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs
  13. +1
    -1
      ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs
  14. +10
    -1
      ButcherFactory.BO/Utils/AppContext.cs
  15. +4
    -8
      ButcherFactory.BO/Utils/ButcherFactoryUtil.cs
  16. +4
    -4
      ButcherFactory.BO/Utils/LoginUtil.cs
  17. +9
    -0
      ButcherFactory.Form/ButcherFactory.Form.csproj
  18. +7
    -2
      ButcherFactory.Form/CarcassSaleOut2_/CarcassSaleOutForm.cs
  19. +267
    -0
      ButcherFactory.Form/Dialogs/WeightDeleteRecord.Designer.cs
  20. +37
    -0
      ButcherFactory.Form/Dialogs/WeightDeleteRecord.cs
  21. +159
    -0
      ButcherFactory.Form/Dialogs/WeightDeleteRecord.resx
  22. +115
    -99
      ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs
  23. +7
    -0
      ButcherFactory.Form/Dialogs/WeightRecordDialog.cs
  24. +40
    -0
      ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs
  25. +3
    -1
      ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs
  26. +1
    -1
      ButcherFactory.Login/Login.xaml.cs
  27. +12
    -10
      ButcherFactory.Tools/MainWindow.xaml
  28. +24
    -18
      ButcherFactory.Tools/MainWindow.xaml.cs
  29. +246
    -217
      ButcherFactorySolution/ButcherFactorySolution.vdproj
  30. +6
    -8
      SelfHelpClient/DialogForm.Designer.cs
  31. +69
    -51
      SelfHelpClient/ItemSelect.Designer.cs
  32. +20
    -1
      SelfHelpClient/ItemSelect.cs
  33. +35
    -0
      SelfHelpClient/ItemSelect.resx
  34. +174
    -0
      SelfHelpClient/ItemSelect2.Designer.cs
  35. +45
    -0
      SelfHelpClient/ItemSelect2.cs
  36. +168
    -0
      SelfHelpClient/ItemSelect2.resx
  37. +79
    -81
      SelfHelpClient/MainForm.Designer.cs
  38. +2
    -2
      SelfHelpClient/Properties/Resources.resx
  39. +67
    -59
      SelfHelpClient/ReadCardForm.Designer.cs
  40. +3
    -3
      SelfHelpClient/ReadCardForm.cs
  41. +35
    -0
      SelfHelpClient/ReadCardForm.resx
  42. +149
    -0
      SelfHelpClient/ReadCardForm2.Designer.cs
  43. +58
    -0
      SelfHelpClient/ReadCardForm2.cs
  44. +155
    -0
      SelfHelpClient/ReadCardForm2.resx
  45. BIN
      SelfHelpClient/Resources/bgPanel.png
  46. BIN
      SelfHelpClient/Resources/fanhui.png
  47. BIN
      SelfHelpClient/Resources/queren.png
  48. +43
    -6
      SelfHelpClient/SelfHelpClient.csproj
  49. +108
    -0
      SelfHelpClient/Template.Designer.cs
  50. +20
    -0
      SelfHelpClient/Template.cs
  51. +120
    -0
      SelfHelpClient/Template.resx
  52. +133
    -146
      SelfHelpClient/WeightForm.Designer.cs
  53. +34
    -1
      SelfHelpClient/WeightForm.cs
  54. +0
    -34
      SelfHelpClient/WeightForm.resx
  55. BIN
      SelfHelpClient/image/bgPanel.png

+ 4
- 0
ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs View File

@ -39,6 +39,10 @@ namespace ButcherFactory.BO
[Join("Goods_ID", "ID")] [Join("Goods_ID", "ID")]
public string Goods_Spec { get; set; } 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? StandardWeight { get; set; }
public decimal? StandardWeightUp { get; set; } public decimal? StandardWeightUp { get; set; }


+ 16
- 0
ButcherFactory.BO/Bill/CarcassSaleOut_Delete.cs View File

@ -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; }
}
}

+ 4
- 1
ButcherFactory.BO/Bill/CarcassSaleOut_Detail.cs View File

@ -1,4 +1,5 @@
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DataDictionary;
using Forks.EnterpriseServices.DomainObjects2;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -9,6 +10,8 @@ namespace ButcherFactory.BO
{ {
[MapToTable("Butcher_CarcassSaleOut_Detail")] [MapToTable("Butcher_CarcassSaleOut_Detail")]
[KeyField("ID", KeyGenType.identity)] [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 class CarcassSaleOut_Detail
{ {
public CarcassSaleOut_Detail() public CarcassSaleOut_Detail()


+ 1
- 0
ButcherFactory.BO/Bill/SegmentInStore.cs View File

@ -47,6 +47,7 @@ namespace ButcherFactory.BO
public DateTime? BackStoreTime { get; set; } public DateTime? BackStoreTime { get; set; }
//-1 删除
//0 已入库 //0 已入库
//1 正在退库 //1 正在退库
//2 已退库 //2 已退库


+ 26
- 0
ButcherFactory.BO/Bill/SegmentProduction.cs View File

@ -44,6 +44,10 @@ namespace ButcherFactory.BO
[Join("Goods_ID", "ID")] [Join("Goods_ID", "ID")]
public string Goods_Spec { get; set; } 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 long? GroupID { get; set; }
public bool Submited { get; set; } public bool Submited { get; set; }
@ -52,5 +56,27 @@ namespace ButcherFactory.BO
//public bool TrunOut { get; set; } //public bool TrunOut { get; set; }
public long? TrunOutID { 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;
}
}
} }
} }

+ 4
- 1
ButcherFactory.BO/Bill/SegmentSaleOut_Detail.cs View File

@ -1,4 +1,5 @@
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DataDictionary;
using Forks.EnterpriseServices.DomainObjects2;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -9,6 +10,8 @@ namespace ButcherFactory.BO
{ {
[MapToTable("Butcher_SegmentSaleOut_Detail")] [MapToTable("Butcher_SegmentSaleOut_Detail")]
[KeyField("ID", KeyGenType.identity)] [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 class SegmentSaleOut_Detail
{ {
public SegmentSaleOut_Detail() public SegmentSaleOut_Detail()


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

@ -62,6 +62,7 @@
<Compile Include="Base\BaseInfo.cs" /> <Compile Include="Base\BaseInfo.cs" />
<Compile Include="BaseInfo\ProductBatch.cs" /> <Compile Include="BaseInfo\ProductBatch.cs" />
<Compile Include="Base\ExtensionObj.cs" /> <Compile Include="Base\ExtensionObj.cs" />
<Compile Include="Bill\CarcassSaleOut_Delete.cs" />
<Compile Include="Bill\CarcassSaleOut_Detail.cs" /> <Compile Include="Bill\CarcassSaleOut_Detail.cs" />
<Compile Include="Bill\CarcassTakeOut.cs" /> <Compile Include="Bill\CarcassTakeOut.cs" />
<Compile Include="Bill\CarcassTakeOutWeightTemp.cs" /> <Compile Include="Bill\CarcassTakeOutWeightTemp.cs" />


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

@ -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<CarcassSaleOut_Detail> GetUnSubmitWeightRecord() public static BindingList<CarcassSaleOut_Detail> GetUnSubmitWeightRecord()
{ {
var query = new DmoQuery(typeof(CarcassSaleOut_Detail)); var query = new DmoQuery(typeof(CarcassSaleOut_Detail));
@ -96,7 +104,7 @@ namespace ButcherFactory.BO.LocalBL
} }
else else
{ {
var json = ButcherFactoryUtil.SimpleMESCall<string>(MESPath + "CarcassSaleOutStoreRpc/GetCarcassInstoreInfo", barCode);
var json = ButcherFactoryUtil.SecondUrlCall<string>(MESPath + "CarcassSaleOutStoreRpc/GetCarcassInstoreInfo", barCode);
var mesInfo = JsonConvert.DeserializeObject<SaleOutCarcassObj>(json); var mesInfo = JsonConvert.DeserializeObject<SaleOutCarcassObj>(json);
if (!string.IsNullOrEmpty(mesInfo.Goods_Code)) if (!string.IsNullOrEmpty(mesInfo.Goods_Code))
{ {
@ -170,7 +178,7 @@ namespace ButcherFactory.BO.LocalBL
public static List<ProductBatch> GetBatchFromEMS() public static List<ProductBatch> GetBatchFromEMS()
{ {
var json = ButcherFactoryUtil.SimpleMESCall<string>(MESPath + "SyncBaseInfoRpc/GetProductBatch", 9);
var json = ButcherFactoryUtil.SecondUrlCall<string>(MESPath + "SyncBaseInfoRpc/GetProductBatch", 9);
return JsonConvert.DeserializeObject<List<ProductBatch>>(json); return JsonConvert.DeserializeObject<List<ProductBatch>>(json);
} }
@ -237,9 +245,28 @@ namespace ButcherFactory.BO.LocalBL
{ {
var json = JsonConvert.SerializeObject(new List<ExtensionObj>() { new ExtensionObj { LongExt1 = tag.DetailID, LongExt2 = tag.WeightRecord_ID, LongExt3 = tag.ScanRecord_ID } }); var json = JsonConvert.SerializeObject(new List<ExtensionObj>() { new ExtensionObj { LongExt1 = tag.DetailID, LongExt2 = tag.WeightRecord_ID, LongExt3 = tag.ScanRecord_ID } });
RpcFacade.Call<int>(RpcPath + "SaleOutStoreRpc/DeleteAndUpdate", json); RpcFacade.Call<int>(RpcPath + "SaleOutStoreRpc/DeleteAndUpdate", json);
SaveDeleteInfo(tag);
Delete(tag.ID); 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<CarcassSaleOut_Detail> backList) public static void RollBackDetails(List<CarcassSaleOut_Detail> backList)
{ {
var list = backList.Select(x => new ExtensionObj { LongExt1 = x.DetailID, LongExt2 = x.WeightRecord_ID, LongExt3 = x.ScanRecord_ID }); 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<bool>(RpcPath + "SaleOutStoreRpc/HasNoAssignDetail", billid); return RpcFacade.Call<bool>(RpcPath + "SaleOutStoreRpc/HasNoAssignDetail", billid);
} }
public static BindingList<CarcassSaleOut_Delete> 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<CarcassSaleOut_Delete>().ToList();
var idx = list.Count;
foreach (var item in list)
{
item.Idx = idx;
idx--;
}
return new BindingList<CarcassSaleOut_Delete>(list);
}
} }
class SaleOutCarcassObj class SaleOutCarcassObj


+ 2
- 0
ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs View File

@ -66,6 +66,7 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("StandardWeightUp", detail)); query.Columns.Add(DQSelectColumn.Field("StandardWeightUp", detail));
query.Columns.Add(DQSelectColumn.Field("StandardWeightLow", detail)); query.Columns.Add(DQSelectColumn.Field("StandardWeightLow", detail));
query.Columns.Add(DQSelectColumn.Field("Goods_Spec", 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(main, "ID"));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create(detail, "ID")); query.OrderBy.Expressions.Add(DQOrderByExpression.Create(detail, "ID"));
@ -85,6 +86,7 @@ namespace ButcherFactory.BO.LocalBL
entity.StandardWeightUp = (decimal?)reader[4]; entity.StandardWeightUp = (decimal?)reader[4];
entity.StandardWeightLow = (decimal?)reader[5]; entity.StandardWeightLow = (decimal?)reader[5];
entity.Goods_Spec = (string)reader[6]; entity.Goods_Spec = (string)reader[6];
entity.Goods_Code = (string)reader[7];
if (result.ContainsKey(key)) if (result.ContainsKey(key))
result[key].Add(entity); result[key].Add(entity);
else else


+ 51
- 77
ButcherFactory.BO/LocalBL/SegmentInStoreBL.cs View File

@ -35,8 +35,7 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("ProductTime")); query.Columns.Add(DQSelectColumn.Field("ProductTime"));
query.Where.Conditions.Add(DQCondition.EQ("State", state)); query.Where.Conditions.Add(DQCondition.EQ("State", state));
if (state == 0) 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)); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("RowIndex", true));
var list = new List<SegmentInStore>(); var list = new List<SegmentInStore>();
using (var session = DmoSession.New()) using (var session = DmoSession.New())
@ -103,7 +102,7 @@ namespace ButcherFactory.BO.LocalBL
{ {
var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore))); var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore)));
query.Columns.Add(DQSelectColumn.Field("BarCode")); 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()) using (var session = DmoSession.New())
{ {
return query.EExecuteList<string>(session); return query.EExecuteList<string>(session);
@ -132,6 +131,7 @@ namespace ButcherFactory.BO.LocalBL
entity.Goods_Spec = obj.Goods_Spec; entity.Goods_Spec = obj.Goods_Spec;
entity.ProductTime = obj.ProductTime; entity.ProductTime = obj.ProductTime;
entity.Weight = obj.Weight; entity.Weight = obj.Weight;
session.Insert(entity);
} }
catch catch
{ {
@ -142,14 +142,16 @@ namespace ButcherFactory.BO.LocalBL
} }
else 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<string, object>("Store_ID", entity.Store_ID),
new Tuple<string, object>("InStoreTime", entity.InStoreTime),
new Tuple<string, object>("RowIndex", rowIndex),
new Tuple<string, object>("State", 0)
);
} }
else else
{ {
@ -169,47 +171,20 @@ namespace ButcherFactory.BO.LocalBL
throw new Exception(string.Format("入库失败!当前条码{0}", msg)); throw new Exception(string.Format("入库失败!当前条码{0}", msg));
} }
} }
session.Insert(entity);
session.Commit(); session.Commit();
return entity; return entity;
} }
} }
static Tuple<long, int, bool> GetLocalData(IDmoSession session, string barCode)
static Tuple<long, int> GetLocalData(IDmoSession session, string barCode)
{ {
var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore))); var query = new DQueryDom(new JoinAlias(typeof(SegmentInStore)));
query.Columns.Add(DQSelectColumn.Field("ID")); query.Columns.Add(DQSelectColumn.Field("ID"));
query.Columns.Add(DQSelectColumn.Field("State")); query.Columns.Add(DQSelectColumn.Field("State"));
query.Columns.Add(DQSelectColumn.Field("Delete"));
query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode)); query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true)); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
query.Range = SelectRange.Top(1); query.Range = SelectRange.Top(1);
return query.EExecuteScalar<long, int, bool>(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<long, int>(session);
} }
public static void SetAsBacking(string barCode, int rowIndex) public static void SetAsBacking(string barCode, int rowIndex)
@ -219,61 +194,68 @@ namespace ButcherFactory.BO.LocalBL
var localData = GetLocalData(session, barCode); var localData = GetLocalData(session, barCode);
if (localData == null) if (localData == null)
throw new Exception("未入库,无法退库"); throw new Exception("未入库,无法退库");
if (localData.Item3)
throw new Exception("已删除,无法退库");
switch (localData.Item2) switch (localData.Item2)
{ {
case -1:
throw new Exception("已删除,无法退库");
case 1: case 1:
throw new Exception("已在退库中,等待提交"); throw new Exception("已在退库中,等待提交");
case 2: case 2:
throw new Exception("已退库,无法重复退库"); throw new Exception("已退库,无法重复退库");
default: default:
UpdateAsBacking(session, localData.Item1, rowIndex);
Update(session, localData.Item1,
new Tuple<string, object>("State", 1),
new Tuple<string, object>("RowIndex", rowIndex));
session.Commit(); session.Commit();
break; 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<string, object>("State", -1),
new Tuple<string, object>("InStoreTime", DQExpression.NULL),
new Tuple<string, object>("Store_ID", DQExpression.NULL));
session.Commit();
}
} }
public static void Delete(long id)
public static void SubmitBackStore(IEnumerable<long> 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()) using (var session = DmoSession.New())
{ {
session.ExecuteNonQuery(update);
BatchUpdate(session, ids, new Tuple<string, object>("State", 2), new Tuple<string, object>("BackStoreTime", DateTime.Now));
session.Commit(); session.Commit();
} }
} }
public static void SubmitBackStore(IEnumerable<long> ids)
static void Update(IDmoSession session, long id, params Tuple<string, object>[] tuple)
{ {
var update = new DQUpdateDom(typeof(SegmentInStore)); 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("Sync", false));
update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1)))); update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1))));
session.ExecuteNonQuery(update);
}
static void BatchUpdate(IDmoSession session, IEnumerable<long> ids, params Tuple<string, object>[] tuple)
{
var update = new DQUpdateDom(typeof(SegmentInStore));
update.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("ID"), ids.Select(x => DQExpression.Value(x)).ToArray())); 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) 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_Name"));
query.GroupBy.Expressions.Add(DQExpression.Field("Goods_Spec")); 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")); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("Goods_Code"));
var list = new BindingList<SegmentInStore>(); var list = new BindingList<SegmentInStore>();
@ -357,8 +339,6 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("BarCode")); query.Columns.Add(DQSelectColumn.Field("BarCode"));
query.Columns.Add(DQSelectColumn.Field("InStoreTime")); query.Columns.Add(DQSelectColumn.Field("InStoreTime"));
query.Columns.Add(DQSelectColumn.Field("Store_ID")); 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.Columns.Add(DQSelectColumn.Field("BackStoreTime"));
query.Where.Conditions.Add(DQCondition.And(DQCondition.InEQ("State", 1), DQCondition.EQ("Sync", false))); query.Where.Conditions.Add(DQCondition.And(DQCondition.InEQ("State", 1), DQCondition.EQ("Sync", false)));
query.Range = SelectRange.Top(10); query.Range = SelectRange.Top(10);
@ -375,9 +355,7 @@ namespace ButcherFactory.BO.LocalBL
obj.BarCode = (string)reader[2]; obj.BarCode = (string)reader[2];
obj.InStoreTime = (DateTime)reader[3]; obj.InStoreTime = (DateTime)reader[3];
obj.Store_ID = (long?)reader[4]; 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); upload.Add(obj);
} }
} }
@ -407,10 +385,6 @@ namespace ButcherFactory.BO.LocalBL
public long? Store_ID { get; set; } public long? Store_ID { get; set; }
public int State { get; set; }
public bool Delete { get; set; }
public DateTime? BackStoreTime { get; set; } public DateTime? BackStoreTime { get; set; }
} }


+ 59
- 4
ButcherFactory.BO/LocalBL/SegmentProductionBL.cs View File

@ -16,6 +16,7 @@ namespace ButcherFactory.BO.LocalBL
public static class SegmentProductionBL public static class SegmentProductionBL
{ {
const string RpcPath = @"/MainSystem/B3ClientService/Rpcs/SegmentProductionRpc/"; const string RpcPath = @"/MainSystem/B3ClientService/Rpcs/SegmentProductionRpc/";
const string ProductTaskRpc = @"/MainSystem/B3ButcherManage/Rpcs/ProductTaskRpc/GetProductTaskNumber";
public static BindingList<SegmentProduction> GetListByState(bool submited) public static BindingList<SegmentProduction> GetListByState(bool submited)
{ {
@ -28,10 +29,10 @@ namespace ButcherFactory.BO.LocalBL
query.Columns.Add(DQSelectColumn.Field("GroupID")); query.Columns.Add(DQSelectColumn.Field("GroupID"));
query.Columns.Add(DQSelectColumn.Field("TrunOutID")); query.Columns.Add(DQSelectColumn.Field("TrunOutID"));
query.Columns.Add(DQSelectColumn.Field("Goods_Spec")); 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)); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
if (submited) if (submited)
query.Range = SelectRange.Top(20);
query.Range = SelectRange.Top(50);
var list = new BindingList<SegmentProduction>(); var list = new BindingList<SegmentProduction>();
using (var session = DmoSession.New()) 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)); 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)); update.Columns.Add(new DQUpdateColumn("GroupID", id));
session.ExecuteNonQuery(update); session.ExecuteNonQuery(update);
} }
@ -158,6 +159,54 @@ namespace ButcherFactory.BO.LocalBL
delete.EExecute(); delete.EExecute();
} }
public static List<string> GetInStoreState(List<string> codeArr)
{
var json = RpcFacade.Call<string>(RpcPath + "CheckInStored", JsonConvert.SerializeObject(codeArr));
return JsonConvert.DeserializeObject<List<string>>(json);
}
public static void SetInStored(List<long> 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<ProductTask> GetProductTask(DateTime date, SegmentProduction detail)
{
var json = ButcherFactoryUtil.SecondUrlCall<string>(ProductTaskRpc, date, detail.Goods_Code);
var task = JsonConvert.DeserializeObject<TaskTemp>(json);
var local = GetLocalProducted(detail);
var list = new List<ProductTask>();
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() public static void UploadSegmentInfo()
{ {
try try
@ -245,4 +294,10 @@ namespace ButcherFactory.BO.LocalBL
public DateTime? InStoreTime { get; set; } public DateTime? InStoreTime { get; set; }
} }
class TaskTemp
{
public decimal? Weight { get; set; }
public decimal? Number { get; set; }
}
} }

+ 9
- 1
ButcherFactory.BO/LocalBL/SegmentSaleOutBL.cs View File

@ -136,7 +136,7 @@ namespace ButcherFactory.BO.LocalBL
public static void InsertByCode(SaleOutStore_Detail orderDetail, SegmentSaleOut_Detail detail) public static void InsertByCode(SaleOutStore_Detail orderDetail, SegmentSaleOut_Detail detail)
{ {
var json = ButcherFactoryUtil.SimpleMESCall<string>(MESPath + "SegmentSaleOutStoreRpc/GetSegmentInfo", detail.BarCode);
var json = ButcherFactoryUtil.SecondUrlCall<string>(MESPath + "SegmentSaleOutStoreRpc/GetSegmentInfo", detail.BarCode);
var scanInfo = JsonConvert.DeserializeObject<ExtensionObj>(json); var scanInfo = JsonConvert.DeserializeObject<ExtensionObj>(json);
if (scanInfo.StringExt1 != orderDetail.Goods_Code) if (scanInfo.StringExt1 != orderDetail.Goods_Code)
throw new Exception("扫码明细与发货明细 存货不一致!"); throw new Exception("扫码明细与发货明细 存货不一致!");
@ -176,5 +176,13 @@ namespace ButcherFactory.BO.LocalBL
SubmitDetails(new SegmentSaleOut_Detail[] { detail }, orderDetail, 2); 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;
}
} }
} }

+ 1
- 1
ButcherFactory.BO/LocalBL/SegmentStockUpBL.cs View File

@ -22,7 +22,7 @@ namespace ButcherFactory.BO.LocalBL
/// <returns>GoodsCode:StringExt1,Weight:DecimalExt1</returns> /// <returns>GoodsCode:StringExt1,Weight:DecimalExt1</returns>
public static ExtensionObj StockUpScan(string code) public static ExtensionObj StockUpScan(string code)
{ {
var json = ButcherFactoryUtil.SimpleMESCall<string>(MESPath + "SegmentInStoreRpc/StockUpScan", code);
var json = ButcherFactoryUtil.SecondUrlCall<string>(MESPath + "SegmentInStoreRpc/StockUpScan", code);
return JsonConvert.DeserializeObject<ExtensionObj>(json); return JsonConvert.DeserializeObject<ExtensionObj>(json);
} }


+ 10
- 1
ButcherFactory.BO/Utils/AppContext.cs View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml.Serialization;
namespace ButcherFactory.BO.Utils namespace ButcherFactory.BO.Utils
{ {
@ -33,7 +34,15 @@ namespace ButcherFactory.BO.Utils
public int ServerMode { get; set; } 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; } public string SqlConnection { get; set; }


+ 4
- 8
ButcherFactory.BO/Utils/ButcherFactoryUtil.cs View File

@ -32,7 +32,7 @@ namespace ButcherFactory.BO.Utils
static ClientRpc clientRpc; static ClientRpc clientRpc;
public static T SimpleMESCall<T>(string method, params object[] args)
public static T SecondUrlCall<T>(string method, params object[] args)
{ {
InitClientRpc(); InitClientRpc();
return clientRpc.Call<T>(method, args); return clientRpc.Call<T>(method, args);
@ -42,13 +42,9 @@ namespace ButcherFactory.BO.Utils
{ {
if (clientRpc != null) if (clientRpc != null)
return; 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);
} }
} }
} }

+ 4
- 4
ButcherFactory.BO/Utils/LoginUtil.cs View File

@ -30,11 +30,11 @@ namespace ButcherFactory.BO.Utils
public static void InitRpcFacade() public static void InitRpcFacade()
{ {
if (string.IsNullOrEmpty(AppContext.ConnectInfo.ServerUrl))
if (string.IsNullOrEmpty(AppContext.ConnectInfo.MainUrl))
throw new Exception("请先设置服务器地址"); throw new Exception("请先设置服务器地址");
if (!AppContext.RpcFacadeInited) if (!AppContext.RpcFacadeInited)
{ {
RpcFacade.Init(AppContext.ConnectInfo.ServerUrl, "ButcherFactorySolution");
RpcFacade.Init(AppContext.ConnectInfo.MainUrl, "ButcherFactorySolution");
AppContext.RpcFacadeInited = true; AppContext.RpcFacadeInited = true;
} }
} }
@ -42,7 +42,7 @@ namespace ButcherFactory.BO.Utils
public static void ReInitRpcFacade() public static void ReInitRpcFacade()
{ {
if (AppContext.RpcFacadeInited) if (AppContext.RpcFacadeInited)
RpcFacade.ReInit(AppContext.ConnectInfo.ServerUrl);
RpcFacade.ReInit(AppContext.ConnectInfo.MainUrl);
} }
public static string GetWorkerNameByCode(string code) public static string GetWorkerNameByCode(string code)
@ -112,7 +112,7 @@ namespace ButcherFactory.BO.Utils
public static bool TestConnection(int? millisecondsTimeout = null) public static bool TestConnection(int? millisecondsTimeout = null)
{ {
var url = AppContext.ConnectInfo.ServerUrl;
var url = AppContext.ConnectInfo.MainUrl;
if (string.IsNullOrEmpty(url)) if (string.IsNullOrEmpty(url))
return false; return false;
var uri = new Uri(url); var uri = new Uri(url);


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

@ -152,6 +152,12 @@
<Compile Include="Dialogs\SelectStoreDialog.Designer.cs"> <Compile Include="Dialogs\SelectStoreDialog.Designer.cs">
<DependentUpon>SelectStoreDialog.cs</DependentUpon> <DependentUpon>SelectStoreDialog.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Dialogs\WeightDeleteRecord.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Dialogs\WeightDeleteRecord.Designer.cs">
<DependentUpon>WeightDeleteRecord.cs</DependentUpon>
</Compile>
<Compile Include="Dialogs\WeightRecordDialog.cs"> <Compile Include="Dialogs\WeightRecordDialog.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -285,6 +291,9 @@
<EmbeddedResource Include="Dialogs\SelectStoreDialog.resx"> <EmbeddedResource Include="Dialogs\SelectStoreDialog.resx">
<DependentUpon>SelectStoreDialog.cs</DependentUpon> <DependentUpon>SelectStoreDialog.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Dialogs\WeightDeleteRecord.resx">
<DependentUpon>WeightDeleteRecord.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\WeightRecordDialog.resx"> <EmbeddedResource Include="Dialogs\WeightRecordDialog.resx">
<DependentUpon>WeightRecordDialog.cs</DependentUpon> <DependentUpon>WeightRecordDialog.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>


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

@ -157,8 +157,13 @@ namespace ButcherFactory.CarcassSaleOut2_
void uScanPanel1_AfterScan() void uScanPanel1_AfterScan()
{ {
var barCode = uScanPanel1.TextBox.Text.Trim(); 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); AfterScan(barCode);
} }


+ 267
- 0
ButcherFactory.Form/Dialogs/WeightDeleteRecord.Designer.cs View File

@ -0,0 +1,267 @@
namespace ButcherFactory.Dialogs
{
partial class WeightDeleteRecord
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle 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;
}
}

+ 37
- 0
ButcherFactory.Form/Dialogs/WeightDeleteRecord.cs View File

@ -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<CarcassSaleOut_Delete> 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();
}
}
}

+ 159
- 0
ButcherFactory.Form/Dialogs/WeightDeleteRecord.resx View File

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

+ 115
- 99
ButcherFactory.Form/Dialogs/WeightRecordDialog.Designer.cs View File

@ -28,19 +28,14 @@
/// </summary> /// </summary>
private void InitializeComponent() 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.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_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Selected = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.R_Selected = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Image = new System.Windows.Forms.DataGridViewImageColumn(); this.R_Image = new System.Windows.Forms.DataGridViewImageColumn();
@ -54,6 +49,12 @@
this.R_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.R_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Time = 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(); ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -64,18 +65,18 @@
this.uDataGridView1.AllowUserToDeleteRows = false; this.uDataGridView1.AllowUserToDeleteRows = false;
this.uDataGridView1.AllowUserToResizeColumns = false; this.uDataGridView1.AllowUserToResizeColumns = false;
this.uDataGridView1.AllowUserToResizeRows = 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) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.uDataGridView1.BackgroundColor = System.Drawing.Color.White; this.uDataGridView1.BackgroundColor = System.Drawing.Color.White;
this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; 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.ColumnHeadersHeight = 40;
this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -97,9 +98,9 @@
this.uDataGridView1.Name = "uDataGridView1"; this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true; this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.RowHeadersVisible = false; 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.RowTemplate.Height = 40;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uDataGridView1.Size = new System.Drawing.Size(1045, 434); 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.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uDataGridView1_CellClick);
this.uDataGridView1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.uDataGridView1_CellFormatting); 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 // R_ID
// //
this.R_ID.DataPropertyName = "ID"; this.R_ID.DataPropertyName = "ID";
@ -236,8 +168,8 @@
// R_Number // R_Number
// //
this.R_Number.DataPropertyName = "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.HeaderText = "数量";
this.R_Number.Name = "R_Number"; this.R_Number.Name = "R_Number";
this.R_Number.ReadOnly = true; this.R_Number.ReadOnly = true;
@ -245,8 +177,8 @@
// R_InStoreWeight // R_InStoreWeight
// //
this.R_InStoreWeight.DataPropertyName = "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.HeaderText = "入库重量";
this.R_InStoreWeight.Name = "R_InStoreWeight"; this.R_InStoreWeight.Name = "R_InStoreWeight";
this.R_InStoreWeight.ReadOnly = true; this.R_InStoreWeight.ReadOnly = true;
@ -254,8 +186,8 @@
// R_Weight // R_Weight
// //
this.R_Weight.DataPropertyName = "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.HeaderText = "重量";
this.R_Weight.Name = "R_Weight"; this.R_Weight.Name = "R_Weight";
this.R_Weight.ReadOnly = true; this.R_Weight.ReadOnly = true;
@ -263,8 +195,8 @@
// R_DiffWeight // R_DiffWeight
// //
this.R_DiffWeight.DataPropertyName = "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.HeaderText = "差异";
this.R_DiffWeight.Name = "R_DiffWeight"; this.R_DiffWeight.Name = "R_DiffWeight";
this.R_DiffWeight.ReadOnly = true; this.R_DiffWeight.ReadOnly = true;
@ -285,6 +217,89 @@
this.R_Time.Name = "R_Time"; this.R_Time.Name = "R_Time";
this.R_Time.ReadOnly = true; 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 // WeightRecordDialog
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 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_DiffWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator; private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Time; private System.Windows.Forms.DataGridViewTextBoxColumn R_Time;
private Controls.ColorButton deleteLogBtn;
} }
} }

+ 7
- 0
ButcherFactory.Form/Dialogs/WeightRecordDialog.cs View File

@ -126,6 +126,8 @@ namespace ButcherFactory.Dialogs
var id = (long)uDataGridView1.CurrentRow.Cells[0].Value; var id = (long)uDataGridView1.CurrentRow.Cells[0].Value;
if (id == 0) if (id == 0)
return; return;
if (MessageBox.Show("确定删除该明细?", "删除确认", MessageBoxButtons.OKCancel) != DialogResult.OK)
return;
var tag = list.First(x => x.ID == id); var tag = list.First(x => x.ID == id);
CarcassSaleOutBL.DeleteAndUpdate(tag); CarcassSaleOutBL.DeleteAndUpdate(tag);
BindGrid(); BindGrid();
@ -174,5 +176,10 @@ namespace ButcherFactory.Dialogs
Changed = true; Changed = true;
rolBack = true; rolBack = true;
} }
private void deleteLogBtn_Click(object sender, EventArgs e)
{
new WeightDeleteRecord(mDetail.ID).ShowDialog();
}
} }
} }

+ 40
- 0
ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs View File

@ -33,6 +33,7 @@ namespace ButcherFactory.SegmentProductionAuto_
} }
Thread uploadData; Thread uploadData;
Thread checkInStoreState;
BindingList<SegmentProduction> historyList; BindingList<SegmentProduction> historyList;
Dictionary<string, List<ClientGoodsSet_Detail>> goodsSetDic; Dictionary<string, List<ClientGoodsSet_Detail>> goodsSetDic;
long? workUnitID; long? workUnitID;
@ -47,6 +48,8 @@ namespace ButcherFactory.SegmentProductionAuto_
{ {
if (uploadData != null && uploadData.IsAlive) if (uploadData != null && uploadData.IsAlive)
uploadData.Abort(); uploadData.Abort();
if (checkInStoreState != null && checkInStoreState.IsAlive)
checkInStoreState.Abort();
}; };
workUnitSelect.SelectedIndexChanged += delegate workUnitSelect.SelectedIndexChanged += delegate
{ {
@ -78,6 +81,9 @@ namespace ButcherFactory.SegmentProductionAuto_
var initTask = new Thread(LoadBind); var initTask = new Thread(LoadBind);
initTask.Start(); initTask.Start();
checkInStoreState = new Thread(CheckInStored);
checkInStoreState.Start();
uploadData = new Thread(UpLoadLocalData); uploadData = new Thread(UpLoadLocalData);
uploadData.Start(); uploadData.Start();
} }
@ -144,6 +150,7 @@ namespace ButcherFactory.SegmentProductionAuto_
weight = detail.StandardWeight.Value; weight = detail.StandardWeight.Value;
} }
var entity = SegmentProductionBL.InsertAndSetGroupID(detail.Goods_ID, weight, workUnitID, batchID.Value, batchDate.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_Name = detail.Goods_Name;
entity.Goods_Spec = detail.Goods_Spec; entity.Goods_Spec = detail.Goods_Spec;
GoodsLabel.Text = entity.Goods_Name; GoodsLabel.Text = entity.Goods_Name;
@ -154,6 +161,9 @@ namespace ButcherFactory.SegmentProductionAuto_
historyDataGrid.Refresh(); historyDataGrid.Refresh();
if (barPrintCheck.Checked) if (barPrintCheck.Checked)
NotAuto.SegmentProductionPrint.Print(entity, batchDate); NotAuto.SegmentProductionPrint.Print(entity, batchDate);
taskDataGrid.DataSource= SegmentProductionBL.GetProductTask(batchDate ?? DateTime.Today, entity);
taskDataGrid.Refresh();
} }
void BindGrid() 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) private void closeBtn_Click(object sender, EventArgs e)
{ {
Close(); Close();
@ -191,6 +230,7 @@ namespace ButcherFactory.SegmentProductionAuto_
private void goodsSetBtn_Click(object sender, EventArgs e) private void goodsSetBtn_Click(object sender, EventArgs e)
{ {
new ClientGoodsSetDialog().ShowDialog(); new ClientGoodsSetDialog().ShowDialog();
BindGoods();
} }
private void rePrintBtn_Click(object sender, EventArgs e) private void rePrintBtn_Click(object sender, EventArgs e)


+ 3
- 1
ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs View File

@ -98,7 +98,9 @@ namespace ButcherFactory.SegmentSaleOut_
if (detailGridView.CurrentRow == null) if (detailGridView.CurrentRow == null)
throw new Exception("没有订货明细"); throw new Exception("没有订货明细");
if (weightRecord.Any(x => x.BarCode == barCode)) if (weightRecord.Any(x => x.BarCode == barCode))
return;
throw new Exception("扫码重复");
if (SegmentSaleOutBL.BarCodeUsed(barCode))
throw new Exception("扫码重复");
InsertDetailByScan(barCode); InsertDetailByScan(barCode);


+ 1
- 1
ButcherFactory.Login/Login.xaml.cs View File

@ -16,7 +16,7 @@ namespace ButcherFactory.Login
{ {
InitializeComponent(); InitializeComponent();
#if DEBUG #if DEBUG
pwdInput.Password = AppContext.ConnectInfo.ServerMode == 0 ? "123" : "bwp2017";
pwdInput.Password = AppContext.ConnectInfo.ServerMode == 0 ? "123" : "";
#endif #endif
try try


+ 12
- 10
ButcherFactory.Tools/MainWindow.xaml View File

@ -1,16 +1,18 @@
<Window x:Class="ButcherFactory.Tools.MainWindow" <Window x:Class="ButcherFactory.Tools.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="BWP_Tools" Height="380" Width="525" ResizeMode="NoResize" >
Title="BWP_Tools" Height="450" Width="525" ResizeMode="NoResize" >
<Grid Margin="0,0,2,0"> <Grid Margin="0,0,2,0">
<Label Content="服务器:" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="84,30,0,0" VerticalAlignment="Top" Height="47"/>
<TextBox Name="serverUrlBox" HorizontalAlignment="Left" Height="80" Margin="179,34,0,0" TextWrapping="Wrap" FontSize="15px" Text="" VerticalAlignment="Top" Width="229" PreviewMouseLeftButtonDown="ServerUrlTextBoxClick"/>
<Label Content="服务模式:" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="69,123,0,0" VerticalAlignment="Top" Height="47"/>
<ComboBox Name="modeComboBox" HorizontalAlignment="Left" Margin="179,127,0,0" FontSize="18px" VerticalContentAlignment="Center" VerticalAlignment="Top" Width="229" Height="37"/>
<Label Content="数据库:" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="84,173,0,0" VerticalAlignment="Top" Height="47"/>
<ComboBox Name="dbComboBox" HorizontalAlignment="Left" Margin="179,179,0,0" FontSize="18px" VerticalContentAlignment="Center" VerticalAlignment="Top" Width="229" Height="37"/>
<Button Content="保存" FontSize="18px" Margin="72,254,0,0" Height="50" Width="94" HorizontalAlignment="Left" VerticalAlignment="Top" Click="SaveBtnClick"/>
<Button Content="升级" FontSize="18px" Margin="197,254,0,0" Height="50" Width="94" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Button_Click"/>
<Button Content="关闭" FontSize="18px" Margin="320,254,0,0" Height="50" Width="94" HorizontalAlignment="Left" VerticalAlignment="Top" Click="CloseBtnClick"/>
<Label Content="MES地址" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="84,30,0,0" VerticalAlignment="Top" Height="47"/>
<TextBox Name="mesUrlBox" HorizontalAlignment="Left" Height="65" Margin="179,34,0,0" TextWrapping="Wrap" FontSize="15px" Text="" VerticalAlignment="Top" Width="229" PreviewMouseLeftButtonDown="UrlTextBoxClick"/>
<Label Content="B3地址" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="84,118,0,0" VerticalAlignment="Top" Height="47"/>
<TextBox Name="b3UrlBox" HorizontalAlignment="Left" Height="65" Margin="179,122,0,0" TextWrapping="Wrap" FontSize="15px" Text="" VerticalAlignment="Top" Width="229" PreviewMouseLeftButtonDown="UrlTextBoxClick"/>
<Label Content="服务模式" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="69,206,0,0" VerticalAlignment="Top" Height="47"/>
<ComboBox Name="modeComboBox" HorizontalAlignment="Left" Margin="179,210,0,0" FontSize="18px" VerticalContentAlignment="Center" VerticalAlignment="Top" Width="229" Height="37"/>
<Label Content="数据库" HorizontalAlignment="Left" VerticalContentAlignment="Center" FontSize="18px" Margin="84,256,0,0" VerticalAlignment="Top" Height="47"/>
<ComboBox Name="dbComboBox" HorizontalAlignment="Left" Margin="179,262,0,0" FontSize="18px" VerticalContentAlignment="Center" VerticalAlignment="Top" Width="229" Height="37"/>
<Button Content="保存" FontSize="18px" Margin="72,337,0,0" Height="50" Width="94" HorizontalAlignment="Left" VerticalAlignment="Top" Click="SaveBtnClick"/>
<Button Content="升级" FontSize="18px" Margin="197,337,0,0" Height="50" Width="94" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Button_Click"/>
<Button Content="关闭" FontSize="18px" Margin="320,337,0,0" Height="50" Width="94" HorizontalAlignment="Left" VerticalAlignment="Top" Click="CloseBtnClick"/>
</Grid> </Grid>
</Window> </Window>

+ 24
- 18
ButcherFactory.Tools/MainWindow.xaml.cs View File

@ -26,20 +26,27 @@ namespace ButcherFactory.Tools
InitializeComponent(); InitializeComponent();
modeComboBox.Items.Add("MES"); modeComboBox.Items.Add("MES");
modeComboBox.Items.Add("B3"); modeComboBox.Items.Add("B3");
modeComboBox.SelectedIndex = AppContext.ConnectInfo.ServerMode;
var list = XmlUtil.DeserializeFromFile<List<DbSelectEntity>>("Config\\DbSelectList.xml");
dbComboBox.SelectedValuePath = "Value";
dbComboBox.DisplayMemberPath = "Name";
dbComboBox.ItemsSource = list;
try
{
modeComboBox.SelectedIndex = AppContext.ConnectInfo.ServerMode;
var list = XmlUtil.DeserializeFromFile<List<DbSelectEntity>>("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) private void Button_Click(object sender, RoutedEventArgs e)
@ -54,10 +61,8 @@ namespace ButcherFactory.Tools
private void SaveBtnClick(object sender, RoutedEventArgs e) 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.SqlConnection = (string)dbComboBox.SelectedValue;
AppContext.ConnectInfo.ServerMode = modeComboBox.SelectedIndex; AppContext.ConnectInfo.ServerMode = modeComboBox.SelectedIndex;
AppContext.ConnectInfo.Save(); AppContext.ConnectInfo.Save();
@ -70,12 +75,13 @@ namespace ButcherFactory.Tools
Application.Current.Shutdown(); 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(); var keyBoard = new VirtualKeyPad();
if (keyBoard.ShowDialog() == true) if (keyBoard.ShowDialog() == true)
serverUrlBox.Text = keyBoard.Result;
box.Text = keyBoard.Result;
} }
} }


+ 246
- 217
ButcherFactorySolution/ButcherFactorySolution.vdproj View File

@ -21,6 +21,24 @@
} }
"Entry" "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" "MsmKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC" "OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
@ -52,73 +70,73 @@
"Entry" "Entry"
{ {
"MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15" "MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15" "MsmKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmKey" = "8:_42002CAFBC974A5E8927D0CB32BE755D"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
"OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_42002CAFBC974A5E8927D0CB32BE755D"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
"OwnerKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_522FFC69C80F4D5DA4C9B348F8590C61"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
"OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_654AEDD527E14D5B8535CC81E96B8185"
"MsmKey" = "8:_522FFC69C80F4D5DA4C9B348F8590C61"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_6F0E808293504BA19048B340A88AEAA1"
"MsmKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"MsmKey" = "8:_654AEDD527E14D5B8535CC81E96B8185"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmKey" = "8:_6F0E808293504BA19048B340A88AEAA1"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
@ -159,20 +177,20 @@
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"MsmKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
"OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
"MsmKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
"OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
@ -195,98 +213,86 @@
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"MsmKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"MsmKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430" "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_A47D1F2EDEB9445DAE5C62DE51CC8FAD"
"MsmKey" = "8:_B24BD1F54711439BA132ABC05EC82AF6"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "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" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"MsmKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"MsmKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430" "OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_B24BD1F54711439BA132ABC05EC82AF6"
"MsmKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_C05D1B3E0BB241258C4AACD21FAB6E72"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_D32656229814B10B3981022C6BAE7B85"
"OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_D32656229814B10B3981022C6BAE7B85"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_D38B860E2FD246B790618B9B4FB991C5"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_D32656229814B10B3981022C6BAE7B85"
"OwnerKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
"MsmKey" = "8:_D38B860E2FD246B790618B9B4FB991C5"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"MsmKey" = "8:_D75F76D9C28EDCFD7454D52CBB18C6E9"
"OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"MsmKey" = "8:_D75F76D9C28EDCFD7454D52CBB18C6E9"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmKey" = "8:_DD91DACD7A0B48CE8926B0CA4EAB5E50"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
@ -309,18 +315,6 @@
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_FD82AF7F959387F3F4C23A0EB1AC0E35"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_FD82AF7F959387F3F4C23A0EB1AC0E35"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3" "OwnerKey" = "8:_60407C93181F42DFB15499FA85D78DE3"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
@ -328,79 +322,79 @@
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_7D717FB201604CFA7400BFF79560F461"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_DE32A8488C67365FC9BBB4CAF2E074E2"
"OwnerKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_B027E23B6E431EA7A5006FCB5BB20236"
"OwnerKey" = "8:_9F09F8DA53F59713DB8BFCD6F53DB58A"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_70C18C0E0DFD66B15418411D1857F74B"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_9F705636DF3FC7591C089E51A914B437"
"OwnerKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_AED9467B5BDCD87EC2746DB4EF7A24D2"
"OwnerKey" = "8:_01E56548E879FA791BE1522C98562ED5"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_FD82AF7F959387F3F4C23A0EB1AC0E35"
"OwnerKey" = "8:_D75F76D9C28EDCFD7454D52CBB18C6E9"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_4083346C24A7D8470DB4B61D58809784"
"OwnerKey" = "8:_4D70C75DA5B25015E8DDBF829D234FE8"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_3E728084E6413DC3E740199EBCA6CF15"
"OwnerKey" = "8:_C1BAA40E3F5E065EA88D97DA96D5992D"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_7BC73039AAAE423AB1ADC71EDB603430"
"OwnerKey" = "8:_9FC311468D3F37CF5966009732A129CC"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_9F09F8DA53F59713DB8BFCD6F53DB58A"
"OwnerKey" = "8:_45A67B7D2502BF76FA9795FF8899DE9E"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_083AAEAE39990B76FE06389D076F1D2C"
"OwnerKey" = "8:_8D58B6FD6249E85E930D55CCE736855E"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"OwnerKey" = "8:_D32656229814B10B3981022C6BAE7B85"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
} }
@ -518,6 +512,37 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "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" "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_083AAEAE39990B76FE06389D076F1D2C"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
@ -525,6 +550,11 @@
"AssemblyAsmDisplayName" = "8:BwpClientPrint, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" "AssemblyAsmDisplayName" = "8:BwpClientPrint, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies" "ScatterAssemblies"
{ {
"_083AAEAE39990B76FE06389D076F1D2C"
{
"Name" = "8:BwpClientPrint.DLL"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:BwpClientPrint.DLL" "SourcePath" = "8:BwpClientPrint.DLL"
"TargetName" = "8:" "TargetName" = "8:"
@ -611,6 +641,11 @@
"AssemblyAsmDisplayName" = "8:WinFormControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" "AssemblyAsmDisplayName" = "8:WinFormControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies" "ScatterAssemblies"
{ {
"_3E728084E6413DC3E740199EBCA6CF15"
{
"Name" = "8:WinFormControl.dll"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:WinFormControl.dll" "SourcePath" = "8:WinFormControl.dll"
"TargetName" = "8:" "TargetName" = "8:"
@ -630,15 +665,40 @@
"IsDependency" = "11:TRUE" "IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "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" "AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE" "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" "ScatterAssemblies"
{ {
"_45A67B7D2502BF76FA9795FF8899DE9E"
{
"Name" = "8:MongoDB.Bson.dll"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:ButcherFactory.BO.dll"
"SourcePath" = "8:MongoDB.Bson.dll"
"TargetName" = "8:" "TargetName" = "8:"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@ -652,16 +712,27 @@
"SharedLegacy" = "11:FALSE" "SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE" "IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "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:" "Tag" = "8:"
"Folder" = "8:_6866532246094A308566729453EB35CA"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
@ -673,7 +744,7 @@
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_522FFC69C80F4D5DA4C9B348F8590C61" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_522FFC69C80F4D5DA4C9B348F8590C61"
@ -767,32 +838,6 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "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" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_748F78F338674C3884B702673BEDE665"
{ {
"SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Sounds\\l60.wav" "SourcePath" = "8:..\\ButcherFactory.Login\\bin\\Debug\\Sounds\\l60.wav"
@ -893,15 +938,20 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_7D717FB201604CFA7400BFF79560F461"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_8D58B6FD6249E85E930D55CCE736855E"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE" "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" "ScatterAssemblies"
{ {
"_8D58B6FD6249E85E930D55CCE736855E"
{
"Name" = "8:Forks.Utils.dll"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:Forks.Json.dll"
"SourcePath" = "8:Forks.Utils.dll"
"TargetName" = "8:" "TargetName" = "8:"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@ -966,6 +1016,11 @@
"AssemblyAsmDisplayName" = "8:zxing, Version=0.11.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL" "AssemblyAsmDisplayName" = "8:zxing, Version=0.11.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL"
"ScatterAssemblies" "ScatterAssemblies"
{ {
"_9F09F8DA53F59713DB8BFCD6F53DB58A"
{
"Name" = "8:zxing.DLL"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:zxing.DLL" "SourcePath" = "8:zxing.DLL"
"TargetName" = "8:" "TargetName" = "8:"
@ -985,15 +1040,20 @@
"IsDependency" = "11:TRUE" "IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9F705636DF3FC7591C089E51A914B437"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9FC311468D3F37CF5966009732A129CC"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE" "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" "ScatterAssemblies"
{ {
"_9FC311468D3F37CF5966009732A129CC"
{
"Name" = "8:MongoDB.Driver.dll"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:Forks.EnterpriseServices.dll"
"SourcePath" = "8:MongoDB.Driver.dll"
"TargetName" = "8:" "TargetName" = "8:"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@ -1007,16 +1067,16 @@
"SharedLegacy" = "11:FALSE" "SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE" "IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "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:" "Tag" = "8:"
"Folder" = "8:_DDF0E5520C37445FBCDCE0D5082C076B"
"Folder" = "8:_6866532246094A308566729453EB35CA"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
@ -1031,16 +1091,10 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "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:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:" "Condition" = "8:"
@ -1054,18 +1108,23 @@
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B027E23B6E431EA7A5006FCB5BB20236"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C1BAA40E3F5E065EA88D97DA96D5992D"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE" "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" "ScatterAssemblies"
{ {
"_C1BAA40E3F5E065EA88D97DA96D5992D"
{
"Name" = "8:Forks.EnterpriseServices.dll"
"Attributes" = "3:512"
}
} }
"SourcePath" = "8:MongoDB.Bson.dll"
"SourcePath" = "8:Forks.EnterpriseServices.dll"
"TargetName" = "8:" "TargetName" = "8:"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@ -1079,34 +1138,25 @@
"SharedLegacy" = "11:FALSE" "SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "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" "Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "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:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:" "Condition" = "8:"
@ -1123,20 +1173,20 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_CDEF0D7FE4F14E5E84A3902D05B165EC"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D32656229814B10B3981022C6BAE7B85"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE" "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" "ScatterAssemblies"
{ {
"_CDEF0D7FE4F14E5E84A3902D05B165EC"
"_D32656229814B10B3981022C6BAE7B85"
{ {
"Name" = "8:ButcherFactory.Form.dll"
"Name" = "8:Forks.Json.dll"
"Attributes" = "3:512" "Attributes" = "3:512"
} }
} }
"SourcePath" = "8:..\\ButcherFactory.Form\\bin\\Release\\ButcherFactory.Form.dll"
"SourcePath" = "8:Forks.Json.dll"
"TargetName" = "8:" "TargetName" = "8:"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88" "Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
@ -1151,7 +1201,7 @@
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D38B860E2FD246B790618B9B4FB991C5" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D38B860E2FD246B790618B9B4FB991C5"
@ -1174,12 +1224,23 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "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:" "Tag" = "8:"
"Folder" = "8:_6866532246094A308566729453EB35CA"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
@ -1191,21 +1252,15 @@
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "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:" "Tag" = "8:"
"Folder" = "8:_A4535DAA71C54DC088A3FA09FCED8C88"
"Folder" = "8:_6866532246094A308566729453EB35CA"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
@ -1217,7 +1272,7 @@
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F45F0EE0BF2446558F2C1F4F902125DB" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F45F0EE0BF2446558F2C1F4F902125DB"
@ -1280,32 +1335,6 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "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" "FileType"
{ {


+ 6
- 8
SelfHelpClient/DialogForm.Designer.cs View File

@ -57,20 +57,19 @@
this.backPanel.Name = "backPanel"; this.backPanel.Name = "backPanel";
this.backPanel.Size = new System.Drawing.Size(158, 63); this.backPanel.Size = new System.Drawing.Size(158, 63);
this.backPanel.TabIndex = 2; this.backPanel.TabIndex = 2;
this.backPanel.Click += new System.EventHandler(this.okBtn_Click);
// //
// okBtn // okBtn
// //
this.okBtn.Anchor = System.Windows.Forms.AnchorStyles.None;
this.okBtn.AutoSize = true;
this.okBtn.BackColor = System.Drawing.Color.Transparent; 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.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.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.TabIndex = 0;
this.okBtn.Text = "返货";
this.okBtn.Text = "返回";
this.okBtn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click); this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
// //
// DialogForm // DialogForm
@ -85,7 +84,6 @@
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "DialogForm"; this.Text = "DialogForm";
this.backPanel.ResumeLayout(false); this.backPanel.ResumeLayout(false);
this.backPanel.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }


+ 69
- 51
SelfHelpClient/ItemSelect.Designer.cs View File

@ -28,36 +28,72 @@
/// </summary> /// </summary>
private void InitializeComponent() 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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = 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 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(); 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.uDataGridView1 = new WinFormControl.UDataGridView();
this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_CarNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.R_CarNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.R_Date = 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(); this.backBtn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
this.SuspendLayout(); 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 // uDataGridView1
// //
this.uDataGridView1.AllowUserToAddRows = false; this.uDataGridView1.AllowUserToAddRows = false;
this.uDataGridView1.AllowUserToDeleteRows = false; this.uDataGridView1.AllowUserToDeleteRows = false;
this.uDataGridView1.AllowUserToResizeColumns = false; this.uDataGridView1.AllowUserToResizeColumns = false;
this.uDataGridView1.AllowUserToResizeRows = 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.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.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.uDataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.uDataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.uDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; this.uDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 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.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
@ -68,22 +104,30 @@
this.R_CarNumber, this.R_CarNumber,
this.R_Number, this.R_Number,
this.R_Date}); 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.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.MultiSelect = false;
this.uDataGridView1.Name = "uDataGridView1"; this.uDataGridView1.Name = "uDataGridView1";
this.uDataGridView1.ReadOnly = true; this.uDataGridView1.ReadOnly = true;
this.uDataGridView1.RowHeadersVisible = false; 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.RowTemplate.Height = 80;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; 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.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uDataGridView1_CellClick);
this.uDataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.uDataGridView1_RowPostPaint);
// //
// R_ID // R_ID
// //
@ -94,19 +138,21 @@
// //
// R_CarNumber // R_CarNumber
// //
this.R_CarNumber.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_CarNumber.DataPropertyName = "CarNumber"; this.R_CarNumber.DataPropertyName = "CarNumber";
this.R_CarNumber.FillWeight = 30F;
this.R_CarNumber.HeaderText = "车辆"; this.R_CarNumber.HeaderText = "车辆";
this.R_CarNumber.Name = "R_CarNumber"; this.R_CarNumber.Name = "R_CarNumber";
this.R_CarNumber.ReadOnly = true; this.R_CarNumber.ReadOnly = true;
this.R_CarNumber.Width = 220;
// //
// R_Number // R_Number
// //
this.R_Number.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.R_Number.DataPropertyName = "Number"; this.R_Number.DataPropertyName = "Number";
this.R_Number.FillWeight = 20F;
this.R_Number.HeaderText = "头数"; this.R_Number.HeaderText = "头数";
this.R_Number.Name = "R_Number"; this.R_Number.Name = "R_Number";
this.R_Number.ReadOnly = true; this.R_Number.ReadOnly = true;
this.R_Number.Width = 150;
// //
// R_Date // R_Date
// //
@ -114,61 +160,33 @@
this.R_Date.DataPropertyName = "Date"; this.R_Date.DataPropertyName = "Date";
dataGridViewCellStyle3.Format = "yyyy-MM-dd HH:mm:ss"; dataGridViewCellStyle3.Format = "yyyy-MM-dd HH:mm:ss";
this.R_Date.DefaultCellStyle = dataGridViewCellStyle3; this.R_Date.DefaultCellStyle = dataGridViewCellStyle3;
this.R_Date.FillWeight = 50F;
this.R_Date.HeaderText = "时间"; this.R_Date.HeaderText = "时间";
this.R_Date.Name = "R_Date"; this.R_Date.Name = "R_Date";
this.R_Date.ReadOnly = true; 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 // ItemSelect
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 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.Name = "ItemSelect";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "ItemSelect"; this.Text = "ItemSelect";
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.mainPanel.ResumeLayout(false);
this.backBtn.ResumeLayout(false); this.backBtn.ResumeLayout(false);
this.backBtn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private System.Windows.Forms.Panel backBtn;
private System.Windows.Forms.Label backBtnLbl;
private WinFormControl.UDataGridView uDataGridView1; private WinFormControl.UDataGridView uDataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn R_ID; private System.Windows.Forms.DataGridViewTextBoxColumn R_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn R_CarNumber; private System.Windows.Forms.DataGridViewTextBoxColumn R_CarNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Number; private System.Windows.Forms.DataGridViewTextBoxColumn R_Number;
private System.Windows.Forms.DataGridViewTextBoxColumn R_Date; private System.Windows.Forms.DataGridViewTextBoxColumn R_Date;
private System.Windows.Forms.Panel backBtn;
private System.Windows.Forms.Label backBtnLbl;
} }
} }

+ 20
- 1
SelfHelpClient/ItemSelect.cs View File

@ -11,7 +11,7 @@ using System.Windows.Forms;
namespace SelfHelpClient namespace SelfHelpClient
{ {
public partial class ItemSelect : Form
public partial class ItemSelect : Template
{ {
List<ViewEntity> list; List<ViewEntity> list;
ReadCardForm form; ReadCardForm form;
@ -20,12 +20,14 @@ namespace SelfHelpClient
InitializeComponent(); InitializeComponent();
form = mForm; form = mForm;
list = mlist; list = mlist;
this.WindowState = FormWindowState.Maximized;
} }
protected override void OnLoad(EventArgs e) protected override void OnLoad(EventArgs e)
{ {
base.OnLoad(e); base.OnLoad(e);
uDataGridView1.DataSource = list; uDataGridView1.DataSource = list;
uDataGridView1.ClearSelection();
uDataGridView1.Refresh(); uDataGridView1.Refresh();
} }
@ -41,5 +43,22 @@ namespace SelfHelpClient
{ {
this.Close(); 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);
}
} }
} }

+ 35
- 0
SelfHelpClient/ItemSelect.resx View File

@ -129,4 +129,39 @@
<metadata name="R_Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="R_Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="backBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
</root> </root>

+ 174
- 0
SelfHelpClient/ItemSelect2.Designer.cs View File

@ -0,0 +1,174 @@
namespace SelfHelpClient
{
partial class ItemSelect2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle 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;
}
}

+ 45
- 0
SelfHelpClient/ItemSelect2.cs View File

@ -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<ViewEntity> list;
ReadCardForm form;
public ItemSelect2(List<ViewEntity> 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();
}
}
}

+ 168
- 0
SelfHelpClient/ItemSelect2.resx View File

@ -0,0 +1,168 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="R_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_CarNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="R_Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="backBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAKwAAABTCAYAAAAC9ewUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAGk0lEQVR4Xu3Z6W9UVRjH8fOK
hH+ApSIq7lDjFoNbjHGLRqPEKMYtanA3lpa2VDaRfSltUYtUXHFBccGiIkqtCKh/AbH+HxrptDN9fH5n
6ZyZ3hLamRFO8nvxTe+9c+7pm0+eHgYjXz9upPdpI9+/ZORgk5FDbXOlf2WnHF4zIEc2DMqxzSK/bdXa
RX7vcP3RyVjlBU+wBWOwBnOH1/xpDcKiiIkz8tWjRr55ysi3z0+RAw3d8mNLQfqWi/yyWuTXdSJHN7qN
RtFuY6x6xVhhDeZgDwZh8UBDj9qcWgS7d6FO2cemSO+iPvnuBZEfGkV+Wiry8wqPdq2q142ObnKbHtvC
WBUDVLUFY7AGc7AHg7AIk72L+q1RC3bPAqDdoQ/wgS540aNtdcr7V4mOaLcZ9B9Zz1j1ginYgjFYgznY
s1jVIkzC5t6F3Q7sR3fOk0/vzcvnD4geD0SPB6IjWHQU60heInJIpfctc+r7VzJW/WALxmAN5mAPBmER
JmETRtWqkfdv7pLdd4h8crfIZ/eLfPmwyL4nRPY/44QfeNlpP9ikmzUzVv1gC8ZgDeZgDwZhESZhE0bV
qpFd8wfk3RtFPrhFVLDInvt0/D7oZO970o3k/c+q+Oec+pLwjLGJluEIxmAN5mAPBmERJmETRtWqkR2X
56Tnar25VuS9m1Ty7U70ngVuFH/xkEp/xG2CcJ4I14xVUmwJxmAN5mDPTlW1CJOwCaNq1cjrl4i8ORc3
+vAakXeux+h1iz++S1+8B+cHpx0bjYZ7xiZbmSUYgzWYgz0YhEWYhE0YVatmpOsiGdl+sb2R7nkib10h
8jbg3uB048UPb9VuKwvPGJtsGZ5gDeZgDwZhESbVJozCqhnpuFBGOhSt3gjgvgG49SI7r3S6d83XDa5z
2seE54xNtHEswRrMwR4MwqKHao2qVVNov0AK24BW6wRcTFvNHhMuc8qxwc6rGKthagzWYM7++QdUDSbV
JozCqilsUbBbNb0ZAdwYLYTjZYxlbMRYrYIxWIO5GKuHao2qVVPYfL5eaFlow9k2wLVhY785Y5OuzJGF
qtkjQBZWNapWTX6TuxhFC7A4L+AFCzZCa7uUsSrmXcEYJivAwp4atMeACCusKtg59sKiDVM2Ps9momWs
inmsJdMV59YwXT1WWDX5jQA7x09ZD3bMsYBgWQ3LAhuOAzBpwapTtVoGVisB67/qIlhWy0rAqrsSsO6v
P8GyM6eKwOqZwYKN/zOBYFktKwcLewBb8g8ugmVnSgTLkopgWVIRLEsqgmVJRbAsqQiWJRXBsqQiWJZU
BMuSimBZUhEsSyqCZUlFsCypCJYlFcGypCJYllQEy5KKYFlSESxLKoJlSUWwLKkIliUVwbKkIliWVATL
kopgWVIRLEsqgmVJRbAsqQiWJRXBsqQiWJZUBMuSimBZUhEsSyqCZUlFsCypCJYlFcGypCJYllQEy5KK
YFlSESxLqgmD1QiWnbZOBax3SrDs9DcZsPlN2WBHCJbVOg8W1rLAwmYR7IYA1k9ZLApgO8vAEi2rdsFV
AAtzag8GrUVMV39+hVUH1qN1xwJd1K5TtkPR4uUuN6qJllW9CKs7DgSwilUNWovhOOCdmvz688SGB+NN
2RK0EVzGKsp7KsGaMV1h0zs1w+v0Ao2LNkxaB9ceERirQu7MivxgxGQdD6sahVUzvPZcCVm4G7Ty40GA
i4kbpi5jlRY8wRaglh8DAtTIqBl+7RwZXq3h5xqtDK799iDghXyEjW34JYxNNO8neApIw7cBsBegwmRk
1Ay9OluGVvlwvXq2xxtN3XBcwGYWcZz/RYydUpGd4Cn+sx8hhcVyn2ZoxdmSWzFLcss1/Yn7oZXaKi0G
HCFmrGrBlPdVBOoNZtg0uWWzcrlXzpJcWxTul2lYqI0iDpCDeMYqKnIFnN6btZdpctbfJtdWNzC4tE4G
W2fKYIsP1636DM81XVN8KYRNGZtssSWLsujN2iv36BweN/phl33YPENOLCk2iPSZLbwYZ1EzNsmyTAVv
kUNrMRhsrdtu9KJeF+RPNOmHjdPH1hRXuhFjFQdTsbFMgxZxHlbNYPNMoy/usB8sRtMy8p+Vb8RYNQq+
xrOHNWpURIyCnWFU9hR92GcXNEywMb+AsZOUZehk4Z3G6f0w6sC26IRtUrSNinbxtG5dVMDCf6NKNmCs
RmWYK6jJHrU5FViLYJdYsEbHr9FF87Tt2l/64lC8CWP/Q/+ovePeYH2A6hLzH1tU3lZB9p9WAAAAAElF
TkSuQmCC
</value>
</data>
</root>

+ 79
- 81
SelfHelpClient/MainForm.Designer.cs View File

@ -29,21 +29,21 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.panel1 = new System.Windows.Forms.Panel(); 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.titlePanel = new System.Windows.Forms.Panel();
this.closeBtn = new System.Windows.Forms.Panel(); this.closeBtn = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.logoPanel = new System.Windows.Forms.Panel(); 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.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.titlePanel.SuspendLayout();
this.weightBtn.SuspendLayout(); this.weightBtn.SuspendLayout();
this.selfBtn.SuspendLayout(); this.selfBtn.SuspendLayout();
this.titlePanel.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// panel1 // panel1
@ -51,58 +51,33 @@
this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None; this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.panel1.Controls.Add(this.weightBtn); this.panel1.Controls.Add(this.weightBtn);
this.panel1.Controls.Add(this.selfBtn); 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.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(644, 271); this.panel1.Size = new System.Drawing.Size(644, 271);
this.panel1.TabIndex = 0; 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 // titlePanel
// //
@ -133,7 +108,7 @@
this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.Color.White; 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.Name = "label1";
this.label1.Size = new System.Drawing.Size(210, 24); this.label1.Size = new System.Drawing.Size(210, 24);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
@ -144,33 +119,58 @@
this.logoPanel.BackColor = System.Drawing.Color.Transparent; this.logoPanel.BackColor = System.Drawing.Color.Transparent;
this.logoPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.logo; this.logoPanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.logo;
this.logoPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; 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.Name = "logoPanel";
this.logoPanel.Size = new System.Drawing.Size(34, 34);
this.logoPanel.Size = new System.Drawing.Size(42, 42);
this.logoPanel.TabIndex = 0; 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 // MainForm
// //
@ -186,14 +186,12 @@
this.Text = "Form1"; this.Text = "Form1";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false); 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.ResumeLayout(false);
this.panel2.PerformLayout(); this.panel2.PerformLayout();
this.titlePanel.ResumeLayout(false);
this.titlePanel.PerformLayout();
this.weightBtn.ResumeLayout(false);
this.selfBtn.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }


+ 2
- 2
SelfHelpClient/Properties/Resources.resx View File

@ -119,7 +119,7 @@
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="fanhui" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="fanhui" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Debug\fanhui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\fanhui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="ganying" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="ganying" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Debug\ganying.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\bin\Debug\ganying.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@ -131,7 +131,7 @@
<value>..\bin\Debug\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\bin\Debug\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="queren" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="queren" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Debug\queren.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\queren.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="shuaka" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="shuaka" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Debug\shuaka.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\bin\Debug\shuaka.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>


+ 67
- 59
SelfHelpClient/ReadCardForm.Designer.cs View File

@ -28,123 +28,131 @@
/// </summary> /// </summary>
private void InitializeComponent() 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.uLabel2 = new WinFormControl.ULabel();
this.uLabel1 = new WinFormControl.ULabel(); this.uLabel1 = new WinFormControl.ULabel();
this.shuakaPanel = new System.Windows.Forms.Panel();
this.backBtn = new System.Windows.Forms.Panel(); this.backBtn = new System.Windows.Forms.Panel();
this.backBtnLbl = new System.Windows.Forms.Label(); 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.backBtn.SuspendLayout();
this.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 // uLabel2
// //
this.uLabel2.AutoSize = true; this.uLabel2.AutoSize = true;
this.uLabel2.BackColor = System.Drawing.Color.Transparent; 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.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.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 = "进行操作"; this.uLabel2.Text = "进行操作";
// //
// uLabel1 // uLabel1
// //
this.uLabel1.AutoSize = true; this.uLabel1.AutoSize = true;
this.uLabel1.BackColor = System.Drawing.Color.Transparent; 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.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.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 = "请把身份证放到感应区"; 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 // 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.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.backBtn.Controls.Add(this.backBtnLbl); 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.Name = "backBtn";
this.backBtn.Size = new System.Drawing.Size(121, 52); 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 // backBtnLbl
// //
this.backBtnLbl.AutoSize = true;
this.backBtnLbl.BackColor = System.Drawing.Color.Transparent; 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.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.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.TabIndex = 0;
this.backBtnLbl.Text = "返回"; this.backBtnLbl.Text = "返回";
this.backBtnLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.backBtnLbl.Click += new System.EventHandler(this.backBtn_Click); 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 // ReadCardForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 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.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.KeyPreview = true; this.KeyPreview = true;
this.Name = "ReadCardForm"; 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.ResumeLayout(false);
this.backBtn.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #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.Panel backBtn;
private System.Windows.Forms.Label backBtnLbl;
private System.Windows.Forms.Panel ganyingPanel; 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 shuakaPanel;
private System.Windows.Forms.Label backBtnLbl;
} }
} }

+ 3
- 3
SelfHelpClient/ReadCardForm.cs View File

@ -7,19 +7,19 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace SelfHelpClient namespace SelfHelpClient
{ {
public partial class ReadCardForm : Form
public partial class ReadCardForm : Template
{ {
string _cardNumber = ""; string _cardNumber = "";
public ViewEntity VEntity { get; set; } public ViewEntity VEntity { get; set; }
public ReadCardForm() public ReadCardForm()
{ {
InitializeComponent();
InitializeComponent();
this.WindowState = FormWindowState.Maximized;
this.KeyPress += ReadCardForm_KeyPress; this.KeyPress += ReadCardForm_KeyPress;
} }


+ 35
- 0
SelfHelpClient/ReadCardForm.resx View File

@ -117,4 +117,39 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="backBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
</root> </root>

+ 149
- 0
SelfHelpClient/ReadCardForm2.Designer.cs View File

@ -0,0 +1,149 @@
namespace SelfHelpClient
{
partial class ReadCardForm2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.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;
}
}

+ 58
- 0
SelfHelpClient/ReadCardForm2.cs View File

@ -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();
}
}
}

+ 155
- 0
SelfHelpClient/ReadCardForm2.resx View File

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

BIN
SelfHelpClient/Resources/bgPanel.png View File

Before After
Width: 73  |  Height: 84  |  Size: 1.6 KiB

BIN
SelfHelpClient/Resources/fanhui.png View File

Before After
Width: 172  |  Height: 83  |  Size: 2.2 KiB

BIN
SelfHelpClient/Resources/queren.png View File

Before After
Width: 172  |  Height: 83  |  Size: 2.2 KiB

+ 43
- 6
SelfHelpClient/SelfHelpClient.csproj View File

@ -35,6 +35,7 @@
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="ButcherFactory.BO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="BwpClientPrint, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="BwpClientPrint, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\BwpClientPrint.dll</HintPath> <HintPath>..\..\..\tsref\Debug\BwpClientPrint.dll</HintPath>
@ -76,6 +77,12 @@
<Compile Include="ItemSelect.Designer.cs"> <Compile Include="ItemSelect.Designer.cs">
<DependentUpon>ItemSelect.cs</DependentUpon> <DependentUpon>ItemSelect.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="ItemSelect2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ItemSelect2.Designer.cs">
<DependentUpon>ItemSelect2.cs</DependentUpon>
</Compile>
<Compile Include="MainForm.cs"> <Compile Include="MainForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -84,18 +91,35 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="ReadCardForm.cs"> <Compile Include="ReadCardForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="ReadCardForm.Designer.cs"> <Compile Include="ReadCardForm.Designer.cs">
<DependentUpon>ReadCardForm.cs</DependentUpon> <DependentUpon>ReadCardForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="ReadCardForm2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ReadCardForm2.Designer.cs">
<DependentUpon>ReadCardForm2.cs</DependentUpon>
</Compile>
<Compile Include="SelfHelpForm.cs"> <Compile Include="SelfHelpForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="SelfHelpForm.Designer.cs"> <Compile Include="SelfHelpForm.Designer.cs">
<DependentUpon>SelfHelpForm.cs</DependentUpon> <DependentUpon>SelfHelpForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Template.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Template.Designer.cs">
<DependentUpon>Template.cs</DependentUpon>
</Compile>
<Compile Include="Utils\ClientRpc.cs" /> <Compile Include="Utils\ClientRpc.cs" />
<Compile Include="BO\WeightBill.cs" /> <Compile Include="BO\WeightBill.cs" />
<Compile Include="BO\WeightBill_FarmerDetail.cs" /> <Compile Include="BO\WeightBill_FarmerDetail.cs" />
@ -113,25 +137,29 @@
<EmbeddedResource Include="ItemSelect.resx"> <EmbeddedResource Include="ItemSelect.resx">
<DependentUpon>ItemSelect.cs</DependentUpon> <DependentUpon>ItemSelect.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ItemSelect2.resx">
<DependentUpon>ItemSelect2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.resx"> <EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon> <DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType> <SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="ReadCardForm.resx"> <EmbeddedResource Include="ReadCardForm.resx">
<DependentUpon>ReadCardForm.cs</DependentUpon> <DependentUpon>ReadCardForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ReadCardForm2.resx">
<DependentUpon>ReadCardForm2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SelfHelpForm.resx"> <EmbeddedResource Include="SelfHelpForm.resx">
<DependentUpon>SelfHelpForm.cs</DependentUpon> <DependentUpon>SelfHelpForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Template.resx">
<DependentUpon>Template.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="WeightForm.resx"> <EmbeddedResource Include="WeightForm.resx">
<DependentUpon>WeightForm.cs</DependentUpon> <DependentUpon>WeightForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@ -146,6 +174,9 @@
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Resources\bgPanel.png" />
<None Include="Resources\queren.png" />
<None Include="Resources\fanhui.png" />
<None Include="bin\Debug\ganying.png" /> <None Include="bin\Debug\ganying.png" />
<None Include="bin\Debug\shuaka.png" /> <None Include="bin\Debug\shuaka.png" />
<None Include="bin\Debug\fanhui.png" /> <None Include="bin\Debug\fanhui.png" />
@ -158,6 +189,12 @@
<None Include="bin\Debug\weightPrintBtn.png" /> <None Include="bin\Debug\weightPrintBtn.png" />
<Content Include="CarPaperPrint.html" /> <Content Include="CarPaperPrint.html" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ButcherFactory.Form\ButcherFactory.Form.csproj">
<Project>{2485631B-624C-43E0-9287-86FA1C8485FC}</Project>
<Name>ButcherFactory.Form</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.


+ 108
- 0
SelfHelpClient/Template.Designer.cs View File

@ -0,0 +1,108 @@
namespace SelfHelpClient
{
partial class Template
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.titlePanel = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.logoPanel = new System.Windows.Forms.Panel();
this.mainPanel = new System.Windows.Forms.Panel();
this.titlePanel.SuspendLayout();
this.SuspendLayout();
//
// titlePanel
//
this.titlePanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.titleBg;
this.titlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.titlePanel.Controls.Add(this.label1);
this.titlePanel.Controls.Add(this.logoPanel);
this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top;
this.titlePanel.Location = new System.Drawing.Point(0, 0);
this.titlePanel.Name = "titlePanel";
this.titlePanel.Size = new System.Drawing.Size(1000, 80);
this.titlePanel.TabIndex = 4;
//
// label1
//
this.label1.AutoSize = true;
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(72, 28);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(210, 24);
this.label1.TabIndex = 1;
this.label1.Text = "屠宰自助服务系统";
//
// logoPanel
//
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, 20);
this.logoPanel.Name = "logoPanel";
this.logoPanel.Size = new System.Drawing.Size(42, 42);
this.logoPanel.TabIndex = 0;
//
// mainPanel
//
this.mainPanel.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.mainPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.mainPanel.Location = new System.Drawing.Point(6, 80);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(988, 514);
this.mainPanel.TabIndex = 5;
//
// Template
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(60)))), ((int)(((byte)(203)))));
this.ClientSize = new System.Drawing.Size(1000, 600);
this.Controls.Add(this.mainPanel);
this.Controls.Add(this.titlePanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Template";
this.Text = "Template";
this.titlePanel.ResumeLayout(false);
this.titlePanel.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel logoPanel;
private System.Windows.Forms.Panel titlePanel;
public System.Windows.Forms.Panel mainPanel;
}
}

+ 20
- 0
SelfHelpClient/Template.cs View File

@ -0,0 +1,20 @@
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 Template : Form
{
public Template()
{
InitializeComponent();
}
}
}

+ 120
- 0
SelfHelpClient/Template.resx View File

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

+ 133
- 146
SelfHelpClient/WeightForm.Designer.cs View File

@ -28,19 +28,22 @@
/// </summary> /// </summary>
private void InitializeComponent() 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.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.panel2 = new System.Windows.Forms.Panel();
this.weightGrid = new WinFormControl.UDataGridView(); this.weightGrid = new WinFormControl.UDataGridView();
this.D_Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.D_Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -58,23 +61,18 @@
this.F_Farmer_BankAccount = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.F_Farmer_BankAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.F_Farmer_Tel = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.F_Farmer_Tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.F_Farmer_Address = 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.titlePanel = new System.Windows.Forms.Panel();
this.closeBtn = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.logoPanel = new System.Windows.Forms.Panel(); 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.panel1.SuspendLayout();
this.panel4.SuspendLayout();
this.backBtn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).BeginInit();
this.titlePanel.SuspendLayout();
this.backBtn.SuspendLayout();
this.panel5.SuspendLayout(); this.panel5.SuspendLayout();
this.panel4.SuspendLayout();
this.titlePanel.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// panel1 // panel1
@ -87,6 +85,54 @@
this.panel1.Size = new System.Drawing.Size(614, 51); this.panel1.Size = new System.Drawing.Size(614, 51);
this.panel1.TabIndex = 0; 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 // panel2
// //
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 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.AllowUserToDeleteRows = false;
this.weightGrid.AllowUserToResizeColumns = false; this.weightGrid.AllowUserToResizeColumns = false;
this.weightGrid.AllowUserToResizeRows = 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) this.weightGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.weightGrid.BackgroundColor = System.Drawing.Color.White; this.weightGrid.BackgroundColor = System.Drawing.Color.White;
this.weightGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.weightGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.weightGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.weightGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.weightGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.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.ColumnHeadersHeight = 40;
this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -131,14 +176,16 @@
this.weightGrid.Name = "weightGrid"; this.weightGrid.Name = "weightGrid";
this.weightGrid.ReadOnly = true; this.weightGrid.ReadOnly = true;
this.weightGrid.RowHeadersVisible = false; 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.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.TabIndex = 0;
this.weightGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.weightGrid_RowPostPaint);
// //
// D_Index // D_Index
// //
@ -159,8 +206,8 @@
// //
this.D_MaoWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.D_MaoWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_MaoWeight.DataPropertyName = "MaoWeight"; 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.HeaderText = "毛重";
this.D_MaoWeight.Name = "D_MaoWeight"; this.D_MaoWeight.Name = "D_MaoWeight";
this.D_MaoWeight.ReadOnly = true; this.D_MaoWeight.ReadOnly = true;
@ -169,8 +216,8 @@
// //
this.D_PiWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.D_PiWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_PiWeight.DataPropertyName = "PiWeight"; 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.HeaderText = "皮重";
this.D_PiWeight.Name = "D_PiWeight"; this.D_PiWeight.Name = "D_PiWeight";
this.D_PiWeight.ReadOnly = true; this.D_PiWeight.ReadOnly = true;
@ -179,8 +226,8 @@
// //
this.D_Weight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.D_Weight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.D_Weight.DataPropertyName = "Weight"; 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.HeaderText = "重量";
this.D_Weight.Name = "D_Weight"; this.D_Weight.Name = "D_Weight";
this.D_Weight.ReadOnly = true; this.D_Weight.ReadOnly = true;
@ -191,20 +238,19 @@
this.farmerGrid.AllowUserToDeleteRows = false; this.farmerGrid.AllowUserToDeleteRows = false;
this.farmerGrid.AllowUserToResizeColumns = false; this.farmerGrid.AllowUserToResizeColumns = false;
this.farmerGrid.AllowUserToResizeRows = 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) this.farmerGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.farmerGrid.BackgroundColor = System.Drawing.Color.White; this.farmerGrid.BackgroundColor = System.Drawing.Color.White;
this.farmerGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.farmerGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.farmerGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.farmerGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.farmerGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.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.ColumnHeadersHeight = 40;
this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -223,14 +269,16 @@
this.farmerGrid.Name = "farmerGrid"; this.farmerGrid.Name = "farmerGrid";
this.farmerGrid.ReadOnly = true; this.farmerGrid.ReadOnly = true;
this.farmerGrid.RowHeadersVisible = false; 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.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.farmerGrid.Size = new System.Drawing.Size(893, 107); this.farmerGrid.Size = new System.Drawing.Size(893, 107);
this.farmerGrid.TabIndex = 0; this.farmerGrid.TabIndex = 0;
this.farmerGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.farmerGrid_RowPostPaint);
// //
// F_Index // F_Index
// //
@ -261,8 +309,8 @@
// F_Weight // F_Weight
// //
this.F_Weight.DataPropertyName = "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.HeaderText = "重量";
this.F_Weight.Name = "F_Weight"; this.F_Weight.Name = "F_Weight";
this.F_Weight.ReadOnly = true; this.F_Weight.ReadOnly = true;
@ -270,8 +318,8 @@
// F_Money // F_Money
// //
this.F_Money.DataPropertyName = "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.HeaderText = "棚前金额";
this.F_Money.Name = "F_Money"; this.F_Money.Name = "F_Money";
this.F_Money.ReadOnly = true; this.F_Money.ReadOnly = true;
@ -316,11 +364,33 @@
this.F_Farmer_Address.Name = "F_Farmer_Address"; this.F_Farmer_Address.Name = "F_Farmer_Address";
this.F_Farmer_Address.ReadOnly = true; 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 // titlePanel
// //
this.titlePanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.titleBg; this.titlePanel.BackgroundImage = global::SelfHelpClient.Properties.Resources.titleBg;
this.titlePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; 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.label1);
this.titlePanel.Controls.Add(this.logoPanel); this.titlePanel.Controls.Add(this.logoPanel);
this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top; this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top;
@ -329,15 +399,6 @@
this.titlePanel.Size = new System.Drawing.Size(926, 80); this.titlePanel.Size = new System.Drawing.Size(926, 80);
this.titlePanel.TabIndex = 2; 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 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
@ -360,77 +421,6 @@
this.logoPanel.Size = new System.Drawing.Size(34, 34); this.logoPanel.Size = new System.Drawing.Size(34, 34);
this.logoPanel.TabIndex = 0; 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 // WeightForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -446,15 +436,13 @@
this.Text = "WeightForm"; this.Text = "WeightForm";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.backBtn.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.farmerGrid)).EndInit();
this.panel5.ResumeLayout(false);
this.titlePanel.ResumeLayout(false); this.titlePanel.ResumeLayout(false);
this.titlePanel.PerformLayout(); this.titlePanel.PerformLayout();
this.backBtn.ResumeLayout(false);
this.backBtn.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@ -480,7 +468,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn D_PiWeight; private System.Windows.Forms.DataGridViewTextBoxColumn D_PiWeight;
private System.Windows.Forms.DataGridViewTextBoxColumn D_Weight; private System.Windows.Forms.DataGridViewTextBoxColumn D_Weight;
private System.Windows.Forms.Panel titlePanel; private System.Windows.Forms.Panel titlePanel;
private System.Windows.Forms.Panel closeBtn;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel logoPanel; private System.Windows.Forms.Panel logoPanel;
private System.Windows.Forms.Panel backBtn; private System.Windows.Forms.Panel backBtn;


+ 34
- 1
SelfHelpClient/WeightForm.cs View File

@ -175,7 +175,7 @@ namespace SelfHelpClient
{ {
Label label = new Label(); Label label = new Label();
label.Text = content; label.Text = content;
label.Font = new System.Drawing.Font("宋体", 14);
label.Font = new System.Drawing.Font("黑体", 12);
label.Dock = DockStyle.Fill; label.Dock = DockStyle.Fill;
label.TextAlign = ContentAlignment.MiddleLeft; label.TextAlign = ContentAlignment.MiddleLeft;
return label; return label;
@ -193,6 +193,39 @@ namespace SelfHelpClient
MainForm.Form.Show(); MainForm.Form.Show();
this.Close(); 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 struct TableSturct


+ 0
- 34
SelfHelpClient/WeightForm.resx View File

@ -117,40 +117,6 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="panel4.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
iGT/ArSen2rwTNYRAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="D_Index.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="D_Index.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>


BIN
SelfHelpClient/image/bgPanel.png View File

Before After
Width: 1215  |  Height: 73  |  Size: 4.5 KiB

Loading…
Cancel
Save