Exemple #1
0
 /// <summary>
 /// Thêm bệnh vào database
 /// </summary>
 /// <param name="MABENH"></param>
 /// <param name="MANHOMBENH"></param>
 /// <param name="TENBENHTA"></param>
 /// <param name="TENBENHTV"></param>
 /// <param name="MOTA"></param>
 /// <param name="NGAYTAO"></param>
 /// <param name="TRANGTHAI"></param>
 public static void InsertBenh(string MABENH, string MANHOMBENH1, string TENBENHTA, string TENBENHTV, string MOTA1, DateTime NGAYTAO1, Boolean TRANGTHAI1)
 {
     using (DB_HMS_Entities ds = new DB_HMS_Entities())
     {
         tbBENH pk = new tbBENH();
         pk.MABENH     = MABENH;
         pk.MANHOMBENH = MANHOMBENH1;
         pk.TENBENHTA  = TENBENHTA;
         pk.TENBENHTV  = TENBENHTV;
         pk.MOTA       = MOTA1;
         pk.NGAYTAO    = NGAYTAO1;
         pk.TRANGTHAI  = TRANGTHAI1;
         ds.AddTotbBENHs(pk);
         ds.SaveChanges();
     }
 }