摘要: RT源码下载:WebTest.zip 阅读全文
posted @ 2012-12-13 11:52 黑冰.org 阅读(240) 评论(0) 推荐(0) 编辑
摘要: /* 生成流水号后面几位数字字符的相关函数 不足位数在左边用0填充 */ CREATE FUNCTION dbo.FillNumberZero ( --数值 @num int, --总位数 @len int ) RETURNS varchar(50) AS BEGIN --如果传入的流水号大于总的长度,那么直接返回流水号字符串格式 if(len(Convert(varchar(50),@num))>@len) return Convert(varchar(50),@num) ELSE BEGIN --需要填充0的位数 declare @NeedFillLen int set @... 阅读全文
posted @ 2012-12-13 10:24 黑冰.org 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Response.Write的字节必须大于256 private void Write(string content) { content = content.Length <= 256 ? content.PadRight(300 - content.Length,'F') : content; Response.Write(content + "\r\n"); Response.Flush(); Response.Clear(); } 阅读全文
posted @ 2012-12-06 17:18 黑冰.org 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: NumericUpDown使用常用属性DecimalPlaces 指示要显示的小数位数Increment 每单击一下按钮时增减的数量Maximum 最大值Minimum 最小值 阅读全文
posted @ 2012-11-12 15:35 黑冰.org 阅读(186) 评论(0) 推荐(0) 编辑
摘要: ([\w\S\s]+) 阅读全文
posted @ 2012-10-26 09:52 黑冰.org 阅读(635) 评论(0) 推荐(1) 编辑
摘要: class Program { public enum ProjectStatus { Received = 256, Checked = 128, Exam = 64, Null = 32, ReChecked = 16, MasterChecked = 8, ReportChecked = 4, ReportPrinted = 2, Finished =... 阅读全文
posted @ 2012-08-31 12:14 黑冰.org 阅读(671) 评论(0) 推荐(0) 编辑
摘要: CREATE FUNCTION BinaryToDec (@BinaryChar char(10)) RETURNS int AS BEGIN DECLARE @stringLength int,@ReturnValue int,@Index int DECLARE @CurrentChar char(1) SET @Index = 0 SET @ReturnValue = 0 SET @stringLength = LEN(@BinaryChar) While @Index<@stringLength BEGIN ... 阅读全文
posted @ 2012-08-31 12:04 黑冰.org 阅读(4054) 评论(0) 推荐(0) 编辑
摘要: //十进制转二进制 Console.WriteLine(Convert.ToString(69, 2)); //十进制转八进制 Console.WriteLine(Convert.ToString(69, 8)); //十进制转十六进制 Console.WriteLine(Convert.ToString(69, 16)); //二进制转十进制 Console.WriteLine(Convert.ToInt32(”100111101″, 2)); //八进制转十进制 Console.WriteLine(Convert.ToInt32(”76″, 8)); //十六进制转十进制 Cons... 阅读全文
posted @ 2012-08-31 11:29 黑冰.org 阅读(298) 评论(0) 推荐(0) 编辑
摘要: private Expression<Func<Model.Current.Project, bool>> GetExpressionWhereCurrent(Model.Project obj) { var where = PredicateExtensionses.True<Model.Current.Project>(); //单位名称 @where = (!string.IsNullOrEmpty(obj.vcsgmc)) ? @where.And(p => p.vcsgmc.Contain... 阅读全文
posted @ 2012-08-30 17:42 黑冰.org 阅读(2460) 评论(4) 推荐(0) 编辑
摘要: <dx:ASPxSpinEdit ID="txtHourStart" ClientInstanceName="txtHourStart" runat="server" Width="60px" MinValue="0" MaxValue="23" NullText="8" AutoPostBack="False"> <ClientSideEvents ValueChanged="function(s, e) 阅读全文
posted @ 2012-08-28 22:11 黑冰.org 阅读(820) 评论(0) 推荐(0) 编辑