CustomerService.BLL.Customer.GetMaxID C# (CSharp) 메소드

GetMaxID() 공개 메소드

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

Usage Example

예제 #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