CustomerService.BLL.Customer.GetMaxID C# (CSharp) Method

GetMaxID() public method

获取最大ID
public GetMaxID ( ) : string
return string
        public string GetMaxID()
        {
            int i = dal.GetMaxID();
            return i.ToString("0000");
        }
	}

Usage Example

Esempio n. 1
0
        /// <summary>
        /// 获取新增客户编号
        /// </summary>
        private void GetCustomerNo()
        {
            BLL.Argument bllArgument = new BLL.Argument();
            DataTable    dt          = bllArgument.GetList("type = '客户编号'").Tables[0];

            string str = dt.Rows[0][1].ToString();

            BLL.Customer bllCustomer = new BLL.Customer();
            txtNO.Text = str + bllCustomer.GetMaxID();
        }
All Usage Examples Of CustomerService.BLL.Customer::GetMaxID