/// <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(); }