コード例 #1
0
        public bool ValorizaciondanioelementoTieneReferenciaCpVenta(int idValorizacion, int idarticulodanio, int idarticuloelementodesgaste)
        {
            VwCpventadet vwCpventadet = VwCpventadetDao.Get(x => x.Idvalorizacion == idValorizacion &&
                                                            !x.Anulado &&
                                                            (x.Idarticulo == idarticulodanio ||
                                                             x.Idarticulo == idarticuloelementodesgaste));

            return(vwCpventadet != null);
        }
コード例 #2
0
 public long CountVwCpventadet()
 {
     return(VwCpventadetDao.Count());
 }
コード例 #3
0
 public VwCpventadet GetVwCpventadet(Expression <Func <VwCpventadet, bool> > criteria)
 {
     return(VwCpventadetDao.Get(criteria));
 }
コード例 #4
0
 public VwCpventadet GetVwCpventadet(int id)
 {
     return(VwCpventadetDao.Get(id));
 }
コード例 #5
0
 public List <VwCpventadet> GetAllVwCpventadet(string conditions, string orders)
 {
     return(VwCpventadetDao.GetAll(conditions, orders));
 }
コード例 #6
0
 public List <VwCpventadet> GetAllVwCpventadet(string orders)
 {
     return(VwCpventadetDao.GetAll(orders));
 }
コード例 #7
0
 public List <VwCpventadet> GetAllVwCpventadet(Expression <Func <VwCpventadet, bool> > criteria)
 {
     return(VwCpventadetDao.GetAll(criteria));
 }
コード例 #8
0
 public List <VwCpventadet> GetAllVwCpventadet()
 {
     return(VwCpventadetDao.GetAll());
 }
コード例 #9
0
 public long CountVwCpventadet(Expression <Func <VwCpventadet, bool> > criteria)
 {
     return(VwCpventadetDao.Count(criteria));
 }
コード例 #10
0
 public bool ValorizacionTieneReferenciaCpventa(int idValorizacion)
 {
     return(VwCpventadetDao.Count(x => x.Idvalorizacion == idValorizacion && !x.Anulado) > 0);
 }
コード例 #11
0
 public bool OrdenVentaTieneReferenciaCpventa(int idOrdenVenta)
 {
     return(VwCpventadetDao.Count(x => x.Idordendeventa == idOrdenVenta) > 0);
 }