已检构件控件是获取的这次需要写入的表的数据列,获取的最大值,在窗口第几根构件显示的是在已检构件数的基础上增加1的数值,在每次增加明细行的时候我希望锁定当前显示的第几根构件框内的数值,不管增加多少明细行,填入列表内的数据都是锁定的这个数值,结束的时候再解锁,但是现在每次增加明细的时候都会增加1,并不会锁定这个数值,这个需要怎么写
Dim yjgj As WinForm.TextBox = e.Form.Controls("已检构件")
Dim zc As WinForm.TextBox = e.Form.Controls("构件数暂存")
Dim djg As WinForm.NumericComboBox = e.Form.Controls("第几根构件")
Dim xzh As Row = Tables("无损_构件清单.无损_检测明细").AddNew
If yjgj.Value Is Nothing Then
xzh("构件数") = 1
Else
zc.Value = djg.Value
zc.ReadOnly = BooleanEnum.True '锁定内容
xzh("构件数") = zc.Value
End If