Ejemplo n.º 1
0
        public DataTable getApprovalProductList()
        {
            newproductionDAL newProductionDal = new newproductionDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                DataTable dt = newProductionDal.getApprovalProductList(db, this);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
 public DataTable getProductionDetailsbyProductionID(string productionID)
 {
     newproductionDAL NewproductionDAL = new newproductionDAL();
     try
     {
         LumexDBPlayer db = LumexDBPlayer.Start(true);
         DataTable dt = NewproductionDAL.getProductionDetailsById(db, productionID);
         db.Stop();
         return dt;
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         NewproductionDAL = null;
     }
 }
Ejemplo n.º 3
0
        public bool SaveProductionDetails(DataTable dtMetarial)
        {
            bool st = false;
            newproductionDAL NewproductionDAL = new newproductionDAL();
            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                st=NewproductionDAL.SaveProductionDetails(db,this,dtMetarial);
                db.Stop();

                return st;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                NewproductionDAL = null;
            }
        }
Ejemplo n.º 4
0
 public DataTable getRawmetarialsbyProductionID(string productionID)
 {
     newproductionDAL newProductionDll = new newproductionDAL();
     try
     {
         LumexDBPlayer db = LumexDBPlayer.Start(true);
         DataTable dt = newProductionDll.getRawmetarialsbyProductionID(db, productionID);
         db.Stop();
         return dt;
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         newProductionDll = null;
     }
 }
Ejemplo n.º 5
0
 public bool saveNewProcutToWarehouse(DataTable productTable)
 {
     bool status = false;
     
     newproductionDAL newproductionDal = new newproductionDAL();
     try
     {
         LumexDBPlayer db = LumexDBPlayer.Start(true);
         status = newproductionDal.saveNewProductInformation(this,db,productTable);
         db.Stop();
     }
     catch (Exception)
     {
         
         throw;
     }
     return status;
 }
Ejemplo n.º 6
0
 public DataTable getProductDetails(string productId,string WHid)
 {
     DataTable dt = new DataTable();
     newproductionDAL newproductionDal = new newproductionDAL();
     try
     {
         LumexDBPlayer db = LumexDBPlayer.Start();
         dt = newproductionDal.getProductDetails(db, productId,WHid);
         db.Stop();
     }
     catch (Exception)
     {
         
         throw;
     }
     return dt;
 }
Ejemplo n.º 7
0
 public bool approveNewProductionwithProductionId(string productionId)
 {
     bool status = false;
     newproductionDAL newProductiondal = new newproductionDAL();
     try
     {
         LumexDBPlayer db = LumexDBPlayer.Start(true);
         status = newProductiondal.approveProduction(db, productionId);
         db.Stop();
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         newProductiondal = null;
     }
     return status;
 }
Ejemplo n.º 8
0
 public bool rejectProduct(string ProductionID)
 {
     newproductionDAL newProductionDal = new newproductionDAL();
     bool status = false;
     try
     {
         LumexDBPlayer db = LumexDBPlayer.Start();
         status = newProductionDal.rejectProduction(db,ProductionID);
         db.Stop();
     }
     catch (Exception ex)
     {
         throw;
     }
     return status;
 }