From f93b5685187ef24568b4c6d12d4cda246cf6494c Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Fri, 19 Jan 2018 13:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.138390=20?= =?UTF-8?q?=E5=B1=A0=E5=AE=B0=E5=9C=BA=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=E2=80=9C=E6=94=B6=E8=B4=AD=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E2=80=9D=20=E6=8A=8A=E5=8E=9F=E6=9C=89=E7=9A=84NamedValue?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8D=A2=E6=88=90=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/BO/Bill/WeightBill/WeightBill.cs | 2 +- ButcherWeight/WeightForm.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BO/BO/Bill/WeightBill/WeightBill.cs b/BO/BO/Bill/WeightBill/WeightBill.cs index 72572fe..b1f4f32 100644 --- a/BO/BO/Bill/WeightBill/WeightBill.cs +++ b/BO/BO/Bill/WeightBill/WeightBill.cs @@ -39,7 +39,7 @@ namespace BO.BO public string Zone_Name { get; set; } - public short? PurchaseType_ID { get; set; } + public long? PurchaseType_ID { get; set; } public string PurchaseType_Name { get; set; } diff --git a/ButcherWeight/WeightForm.cs b/ButcherWeight/WeightForm.cs index d124f18..eb62842 100644 --- a/ButcherWeight/WeightForm.cs +++ b/ButcherWeight/WeightForm.cs @@ -256,9 +256,7 @@ namespace ButcherWeight Dmo.BankAccount = bankAccountLabel.Text; Dmo.Zone_ID = zoneSelect.LongValue; Dmo.Zone_Name = zoneSelect.DisplayValue; - Dmo.PurchaseType_ID = null; - if (!purchaseTypeSelect.IsEmpty) - Dmo.PurchaseType_ID = short.Parse(purchaseTypeSelect.Value); + Dmo.PurchaseType_ID = purchaseTypeSelect.LongValue; Dmo.PurchaseType_Name = purchaseTypeSelect.DisplayValue; Dmo.Car_ID = carSelect.LongValue; Dmo.Car_Name = carSelect.DisplayValue;