public string LayMaCTDDNTiepTheo() { ChiTietDDHDAO Dao = new ChiTietDDHDAO(); string MADDH = Dao.MaCTCTDDHLonNhat(); if (string.IsNullOrEmpty(MADDH)) { return("DDH001"); } else { int ChuyenSo = int.Parse(MADDH.Replace("DDH", "")); return("DDH" + (ChuyenSo + 1).ToString("000")); } }
public bool ThemCTDDH(ChiTietDDHDTO DTO) { ChiTietDDHDAO DAO = new ChiTietDDHDAO(); return(DAO.ThemCTDDH(DTO)); }
public List <ChiTietDDHDTO> LOADCTDHH(string ma) { ChiTietDDHDAO DAO = new ChiTietDDHDAO(); return(DAO.LOADCTHDDH(ma)); }