público StartTransaction vacío ()
{
el usar (stockMovementCtx del var = nuevo StockMovementCtxDataContext ())
el usar (alcance del var = nuevo TransactionScope ())
{
stockMovementItems del var = de s en stockMovementCtx.spStockMovementForTransaction (TicketID, ItemTypeNo, ItemID, TransactionType,
FromLocation, ToLocation, Qty, PersonelNo, cuser
)
seleccionar s;
ReturnCode = s.ReturnCode;
// MessageBox.Show (stockMovementItems.First () .ToString ());
ReturnMsg = s.ReturnMessage;
TransactionType = s.TransactionType;
TicketID = s.TicketID;
|