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;