public nietige StartTransaction ()
{
het gebruiken (var stockMovementCtx = nieuwe StockMovementCtxDataContext ())
het gebruiken (var werkingsgebied = nieuwe TransactionScope ())
{
var stockMovementItems = van s in stockMovementCtx.spStockMovementForTransaction (TicketID, ItemTypeNo, ItemID, TransactionType,
FromLocation, ToLocation, Qty, PersonelNo, cuser
)
selecteer s;
ReturnCode = stockMovementItems.First () .ReturnCode;
// MessageBox.Show (stockMovementItems.First () .ToString ());
ReturnMsg = stockMovementItems.First () .ReturnMessage;
TransactionType = stockMovementItems.First () .TransactionType;
TicketID = stockMovementItems.First () .TicketID; |