Example #1
0
 /// <summary>
 /// 修改送货单回单信息
 /// </summary>
 /// <param name="nId"></param>
 /// <param name="dtReturnTime"></param>
 /// <param name="strDamageInfo"></param>
 /// <param name="nOpStaffId"></param>
 /// <param name="strOpStaffName"></param>
 /// <param name="strErrText"></param>
 /// <returns></returns>
 public bool UpdateDeliverBillReceipt(long nId, DateTime dtReturnTime, string strDamageInfo, long nOpStaffId, string strOpStaffName, out string strErrText)
 {
     try
     {
         using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0)))
         {
             using (DeliverDAO dao = new DeliverDAO())
             {
                 if (!dao.UpdateDeliverBillReceipt(nId, dtReturnTime, strDamageInfo, nOpStaffId, strOpStaffName, out strErrText))
                 {
                     return(false);
                 }
             }
             transScope.Complete();
         }
         return(true);
     }
     catch (Exception e)
     {
         strErrText = e.Message;
         return(false);
     }
 }