|
|
|
@ -100,9 +100,10 @@ namespace ButcherFactory.SegmentProductionAuto_ |
|
|
|
BaseInfoSyncRpc.SyncBaseInfo<WorkUnit>(); |
|
|
|
BaseInfoSyncRpc.SyncProductBatch(1); |
|
|
|
} |
|
|
|
productBatchSelect.EBindComboBox<ProductBatch>(x => x.Date == DateTime.Today, 6, "Date"); |
|
|
|
productBatchSelect.EBindComboBox<ProductBatch>(null, 6, "Date"); |
|
|
|
config = XmlUtil.DeserializeFromFile<NotAuto.SegmentProductionFormConfig>(); |
|
|
|
workUnitSelect.EBindComboBox<WorkUnit>(x => x.ID == config.WorkUnitID, top: 100); |
|
|
|
var m = config.WorkUnitID; |
|
|
|
workUnitSelect.EBindComboBox<WorkUnit>(x => x.ID == m, top: 100); |
|
|
|
|
|
|
|
BindGoods(); |
|
|
|
BindGrid(); |
|
|
|
@ -279,7 +280,7 @@ namespace ButcherFactory.SegmentProductionAuto_ |
|
|
|
{ |
|
|
|
if (historyDataGrid.CurrentRow == null) |
|
|
|
return; |
|
|
|
if (MessageBox.Show( "确定删除选中记录?","删除确认", MessageBoxButtons.OKCancel) != DialogResult.OK) |
|
|
|
if (MessageBox.Show("确定删除选中记录?", "删除确认", MessageBoxButtons.OKCancel) != DialogResult.OK) |
|
|
|
return; |
|
|
|
var item = historyDataGrid.CurrentRow.DataBoundItem as SegmentProduction; |
|
|
|
SegmentProductionBL.SetAsDelete(item.ID, item.BarCode); |
|
|
|
|