Exemplo n.º 1
0
        public static void UpdateSupplier(Supplier S)
        {
            erp_dataEntities2 db = new erp_dataEntities2();

            db.Entry(S).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Exemplo n.º 2
0
        public static void UpdateAdministrator(User us)
        {
            erp_dataEntities2 db = new erp_dataEntities2();

            db.Entry(us).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Exemplo n.º 3
0
        public static void UpdateClient(Client C)
        {
            erp_dataEntities2 db = new erp_dataEntities2();

            db.Entry(C).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Exemplo n.º 4
0
        public static void Update(Product P)
        {
            P.LastUpdateDate = DateTime.Now;
            erp_dataEntities2 db = new erp_dataEntities2();

            db.Entry(P).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Exemplo n.º 5
0
        public static void UpdateSupplier_state(int Id, int state)
        {
            erp_dataEntities2 db = new erp_dataEntities2();
            Supplier          S  = db.Suppliers.Where(x => x.Id == Id).FirstOrDefault();

            S.State           = state;
            db.Entry(S).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Exemplo n.º 6
0
        public static void UpdateClient_state(int Id, int state)
        {
            erp_dataEntities2 db = new erp_dataEntities2();
            Client            C  = db.Clients.Where(x => x.Id == Id).FirstOrDefault();

            C.state           = state;
            db.Entry(C).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }