示例#1
0
        public static string AutoMaLop()
        {
            string id = TreDAL.GetLastID().Trim();

            if (id == "")
            {
                return("MLOP000001");
            }
            int nextID = int.Parse(id.Remove(0, "MLOP".Length)) + 1;

            id = "00000" + nextID.ToString();
            id = id.Substring(id.Length - 6, 6);
            return("MLOP" + id);
        }