예제 #1
0
        //是否可以存空箱
        public int canSaveEnptycarton(string customerid, string custorderno, string cartonNum, string action, string currStep)
        {
            try
            {
                dbInstance.BeginTransaction();
                AssyBoxDal dal = new AssyBoxDal(dbInstance);
                int re = dal.canSaveEnptycarton(customerid, custorderno, cartonNum, action, currStep);
                dbInstance.Commit();
                return re;

            }
            catch (Exception ex)
            {
                dbInstance.Rollback();
                return -1;
                throw ex;
            }
            finally
            {
                dbInstance.CloseConnection();
            }
        }
예제 #2
0
 public AssyBoxBll(ContextInfo contextInfo)
     : base(contextInfo)
 {
     localDal = new AssyBoxDal(dbInstance);
     baseDal = localDal;
 }