1.销售订单下推发货出库单带出对应的配件
2.发货通知单中主体物料与配件物料的联动
This commit is contained in:
@@ -44,7 +44,6 @@ namespace Pilot_KD_Parino.SAL_DELIVERYNOTICE.ConvertServicePlugIn
|
||||
|
||||
var qty = entry["Qty"].Convert<decimal>();
|
||||
var guid = Guid.NewGuid().ToString("N");
|
||||
//entry["FGroup"] = guid;
|
||||
|
||||
sqlL.Add($"SELECT {idx} 'Idx',{materialId} MaterialId,{qty} MaterialQty,'{guid}' GroupId");
|
||||
idx++;
|
||||
@@ -92,18 +91,16 @@ namespace Pilot_KD_Parino.SAL_DELIVERYNOTICE.ConvertServicePlugIn
|
||||
//单位
|
||||
billView.Model.SetItemValueByID("FUnitID", item["FCHILDUNITID"].Long2Int(), rowIndex);
|
||||
billView.InvokeFieldUpdateService("FUnitID", rowIndex);
|
||||
//仓库
|
||||
billView.Model.SetItemValueByID("FStockID", item["FSTOCKID"].Long2Int(), rowIndex);
|
||||
billView.InvokeFieldUpdateService("FStockID", rowIndex);
|
||||
|
||||
billView.Model.SetValue("F_GroupItem", Guid.NewGuid().ToString("N"), rowIndex);
|
||||
//表体备注
|
||||
billView.Model.SetValue("FNoteEntry", item["FNOTE"], rowIndex);
|
||||
|
||||
//billView.Model.SetValue("F_GroupItem", Guid.NewGuid().ToString("N"), rowIndex);
|
||||
billView.Model.SetValue("F_IsGroupItem", true, rowIndex);
|
||||
|
||||
//billView.GetFieldEditor("FMaterialID", rowIndex).Enabled = false;
|
||||
//billView.GetFieldEditor("FUnitID", rowIndex).Enabled = false;
|
||||
//billView.GetFieldEditor("FQty", rowIndex).Enabled = false;
|
||||
//billView.GetFieldEditor("FIsFree", rowIndex).Enabled = false;
|
||||
//billView.GetFieldEditor("FDeliveryDate", rowIndex).Enabled = false;
|
||||
////billView.GetFieldEditor("FStockID", rowIndex).Enabled = false;
|
||||
////billView.GetFieldEditor("FStockLocID", rowIndex).Enabled = false;
|
||||
//billView.GetFieldEditor("FTaxPrice", rowIndex).Enabled = false;
|
||||
//billView.GetFieldEditor("FEntryTaxRate", rowIndex).Enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user