Exemplo n.º 1
0
 /// <summary>
 /// 提交指定的待打印出仓单数据
 /// </summary>
 /// <param name="nId"></param>
 /// <param name="nOutWarehouseBillId"></param>
 /// <param name="nEnterWarehouseBillId"></param>
 /// <param name="nOpStaffId"></param>
 /// <param name="strOpStaffName"></param>
 /// <param name="strErrText"></param>
 /// <returns></returns>
 public bool SubmitPrintShipmentBill(long nId, out long nOutWarehouseBillId, out long nEnterWarehouseBillId, 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.SubmitPrintShipmentBill(nId, out nOutWarehouseBillId, out nEnterWarehouseBillId, nOpStaffId, strOpStaffName, out strErrText))
                 {
                     return(false);
                 }
             }
             transScope.Complete();
         }
         return(true);
     }
     catch (Exception e)
     {
         nOutWarehouseBillId   = 0;
         nEnterWarehouseBillId = 0;
         strErrText            = e.Message;
         return(false);
     }
 }