public void StartTransaction()
{
using (var stockMovementCtx = new StockMovementCtxDataContext())
using (var scope = new TransactionScope())
{
var stockMovementItems = from s in stockMovementCtx.spStockMovementForTransaction(TicketID, ItemTypeNo, ItemID, TransactionType,
FromLocation, ToLocation, Qty, PersonelNo, cuser
)
select s;
ReturnCode = s.ReturnCode;
// MessageBox.Show(stockMovementItems.First().ToString());
ReturnMsg = s.ReturnMessage;
TransactionType = s.TransactionType;
TicketID = s.TicketID;
|