admin 管理员组

文章数量: 887006

产生合同编号

//产生合同编号
        public string ContractNumber()
        {
            //throw new Exception("The method or operation is not implemented.");
            string str = "HT" + System.DateTime.Now.ToString("yyyyMMdd");
            string sql = "select max(right(ContractNumber,6)) from Contract where ContractNumber like'" + str + "%'";
            int Code = DBHelper.GetScalar(sql);
            int temp = Code + 1;
            return str + temp.ToString("000000");
        }

转载于:.html

本文标签: 产生合同编号