public string MaTuDong() { string kq = ""; if (ncc.getMANCCLast() == "") { kq = "NCC0001"; } else { int so = int.Parse(ncc.getMANCCLast().Remove(0, 3)); so = so + 1; if (so < 10) { kq = "NCC" + "000"; } else if (so < 100) { kq = "NCC" + "00"; } else if (so < 1000) { kq = "NCC" + "0"; } kq = kq + so.ToString(); } return(kq); }