|
|
|
@ -439,8 +439,8 @@ namespace QualityAndOrder |
|
|
|
} |
|
|
|
if (string.IsNullOrEmpty(numberBox.Text)) |
|
|
|
throw new Exception("数量不能为空"); |
|
|
|
if (currentBtn == null) |
|
|
|
throw new Exception("请选等级"); |
|
|
|
//if (currentBtn == null)
|
|
|
|
//throw new Exception("请选等级");
|
|
|
|
if (houseSelectedBtn.Count == 0) |
|
|
|
throw new Exception("请选择圈舍"); |
|
|
|
foreach (var btn in houseSelectedBtn) |
|
|
|
@ -450,9 +450,12 @@ namespace QualityAndOrder |
|
|
|
Dmo.HouseDetails.Add(houseDetail); |
|
|
|
houseDetail.Index = Dmo.HouseDetails.Max(x => x.Index) + 1; |
|
|
|
} |
|
|
|
var gradeTag = currentBtn.Tag as Tuple<string, string>; |
|
|
|
Dmo.HogGrade_ID = long.Parse(gradeTag.Item1); |
|
|
|
Dmo.HogGrade_Name = gradeTag.Item2; |
|
|
|
if (currentBtn != null) |
|
|
|
{ |
|
|
|
var gradeTag = currentBtn.Tag as Tuple<string, string>; |
|
|
|
Dmo.HogGrade_ID = long.Parse(gradeTag.Item1); |
|
|
|
Dmo.HogGrade_Name = gradeTag.Item2; |
|
|
|
} |
|
|
|
Dmo.Number = int.Parse(numberBox.Text); |
|
|
|
foreach (DataGridViewRow row in sanctionGrid.Rows) |
|
|
|
{ |
|
|
|
|