Esempio n. 1
0
        public void xoact(string id)
        {
            pthuct ct = (from c in db.pthucts select c).Single(x => x.id == id);

            db.pthucts.DeleteOnSubmit(ct);
            db.SubmitChanges();
        }
Esempio n. 2
0
        public void moict(string diengiai, string idcv, string idmuccp, double thanhtien, string idthu, string id, string tiente, double tygia, double nguyente)/* string tk)*/
        {
            pthuct ct = new pthuct();

            ct.diengiai = diengiai;

            ct.idcv    = idcv;
            ct.idmuccp = idmuccp;

            ct.thanhtien = thanhtien;
            ct.idthu     = idthu;
            ct.id        = id;
            ct.tiente    = tiente;
            ct.tygia     = tygia;
            ct.nguyente  = nguyente;
            //ct.tkco = tk;
            db.pthucts.InsertOnSubmit(ct);
            db.SubmitChanges();
        }