Esempio n. 1
0
        public static string themhoadon(DTO_hoadon hd)
        {
            try
            {
                hd.Mahd = (Convert.ToInt32(DAO_hoadon.laymaHDlonnhat()) + 1).ToString("000");
            }
            catch (Exception e)
            {
                hd.Mahd = "001";
            }

            if (DAO_hoadon.themhoadon(hd))
            {
                return(hd.Mahd);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
 public static DTO_hoadon loadhoadon(string tentk)
 {
     return(DAO_hoadon.loaddonhang(tentk));
 }