публика пустое StartTransaction ()
{
использование (stockMovementCtx var = новое StockMovementCtxDataContext ())
использование (объем var = новое TransactionScope ())
{
stockMovementItems var = от s в stockMovementCtx.spStockMovementForTransaction (TicketID, ItemTypeNo, ItemID, TransactionType,
FromLocation, ToLocation, Qty, PersonelNo, cuser
)
выберите s;
ReturnCode = s.ReturnCode;
// MessageBox.Show (stockMovementItems.First () .ToString ());
ReturnMsg = s.ReturnMessage;
TransactionType = s.TransactionType;
TicketID = s.TicketID;
|