yibo 8 years ago
parent
commit
36f9112768
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      WeighAndGrading/DataConfirm.cs

+ 3
- 3
WeighAndGrading/DataConfirm.cs View File

@ -163,19 +163,19 @@ namespace WeighAndGrading
return;
select = weightGrid.CurrentRow.DataBoundItem as GradeAndWeight_Detail;
old = new GradeAndWeight_Detail { Order = select.Order, OrderDetail_ID = select.OrderDetail_ID, Technics = select.Technics };
if (e.ColumnIndex==1||e.ColumnIndex == 2 || e.ColumnIndex == 5)
if (e.ColumnIndex==3||e.ColumnIndex == 4 || e.ColumnIndex == 7)
{
var keyBoard = new NumberPad();
if (keyBoard.ShowDialog() == true)
{
var num = keyBoard.Result;
if (e.ColumnIndex == 1)
if (e.ColumnIndex == 3)
{
if (string.IsNullOrEmpty(num))
throw new Exception("请输入序号");
select.Index = int.Parse(num);
}
else if (e.ColumnIndex == 2)
else if (e.ColumnIndex == 4)
select.Order = string.IsNullOrEmpty(num) ? 0 : int.Parse(num);
else
select.Weight = string.IsNullOrEmpty(num) ? 0 : decimal.Parse(num);


Loading…
Cancel
Save