随笔分类 -  SQL大小写金额转换 密码加密

摘要:privatestring_PasswordFormat;publicSecurity(stringPasswordFormat){////TODO:在此处添加构造函数逻辑//PasswordFormatthis._PasswordFormat=PasswordFormat;}publicstringEncryptPassword(stringPasswordString){if(_PasswordFormat=="SHA1"){returnSystem.Web.Security.FormsAuthentication.HashPasswordForStoringInCon 阅读全文
posted @ 2013-12-13 17:02 简单就好。。。 阅读(576) 评论(0) 推荐(0)
摘要://////汉字转换为Unicode编码//////要编码的汉字字符串///Unicode编码的的字符串publicstaticstringToUnicode(stringstr){byte[]bts=Encoding.Unicode.GetBytes(str);stringr="";for(inti=0;i///将Unicode编码转换为汉字字符串//////Unicode编码字符串///汉字字符串publicstaticstringToGB2312(stringstr){stringr="";MatchCollectionmc=Regex.Match 阅读全文
posted @ 2013-12-13 17:00 简单就好。。。 阅读(596) 评论(0) 推荐(0)
摘要://SQL函数大小写金额转换ALTER Function AmountToWord2 (@dblAmount DECIMAL(18,2))RETURNS VARCHAR(100)ASBEGINDECLARE @x varchar(100) ,@y varchar(100)DECLARE @temp varchar(100),@zimu varchar(100),@letter varchar(100),@upcase varchar(100)DECLARE @i int SET @temp = CONVERT(VARCHAR(100),@dblAmount) SET @zimu = ' 阅读全文
posted @ 2013-12-06 13:21 简单就好。。。 阅读(489) 评论(0) 推荐(0)