Exemple #1
0
 public List <AgingBatch> AgingBatcInfo(AgingBatch agingBatch)
 {
     try
     {
         ISelectingCommon iDataAccessSelect = new DALGetCommonSelecting();
         return(iDataAccessSelect.AgingBatcInfo(agingBatch));
     }
     catch (Exception ex) { throw ex; }
 }
Exemple #2
0
 public bool InsertAgingBatchStatus(AgingBatch batchesult)
 {
     try
     {
         _entity.AgingBatch.Add(batchesult);
         _entity.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }
Exemple #3
0
        public List <AgingBatch> AgingBatcInfo(AgingBatch agingBatch)
        {
            var agingBatchList = new List <AgingBatch>();

            try
            {
                agingBatchList = _CommonManager.AgingBatcInfo(agingBatch);
            }
            catch (Exception ex)
            {
            }

            return(agingBatchList);
        }
Exemple #4
0
        public Result InsertAgingBatchStatus(AgingBatch batchesult)
        {
            IProduction iProductionSelect = new WCMS_DAL_Production();
            var         result            = new Result();

            try
            {
                result.IsSuccess = iProductionSelect.InsertAgingBatchStatus(batchesult);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }
Exemple #5
0
 public Result InsertAgingBatchStatus(AgingBatch batchesult)
 {
     try
     {
         return(productionManager.InsertAgingBatchStatus(batchesult));
     }
     catch (Exception ex)
     {
         //if (log.IsErrorEnabled)
         //    log.Error("Insert Sales Order : " + ex.Message);
         return(new Result {
             IsSuccess = false, Message = ex.Message
         });
     }
 }
        public List <AgingBatch> AgingBatcInfo(AgingBatch agingBatch)
        {
            List <AgingBatch> list;

            try
            {
                list = _wcmsEntities.AgingBatch

                       .WhereIf(agingBatch.Passed != null, x => x.Passed == agingBatch.Passed)
                       .WhereIf(agingBatch.BatchNumber != null, x => x.BatchNumber == agingBatch.BatchNumber)

                       .AsNoTracking().ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(list);
        }