GetMaxID() public method

获取最大ID
public GetMaxID ( ) : string
return string
示例#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();
        }
示例#2
0
文件: frmCustomer.cs 项目: NanQi/demo
        /// <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();
        }