03 2012 档案

摘要:错误1“ConsoleApplication1.Test”不能从特殊类“System.MulticastDelegate”派生D:\xgc\0331\Solution1\ConsoleApplication1\Program.cs5211ConsoleApplication1不能从特殊类System.MuticastDelegate派生! 阅读全文
posted @ 2012-03-31 11:17 szjdw 阅读(192) 评论(0) 推荐(0) 编辑
摘要:///<summary>///根据查询条件生成SQL语句与SQL参数///</summary>protected System.String BuildConditionSql(Condition condition,IList outputParas){ if(condition==null) { return null; } else if(condition is SimpleCondition) { return BuildSimpleConditionSql(condition as SimpleCondition,outputParams); } else. 阅读全文
posted @ 2012-03-28 20:04 szjdw 阅读(314) 评论(0) 推荐(0) 编辑
摘要:///<summary>///根据查询条件集合生成Sql语句与Sql参数///<summary>protected System.String BuildConditionSetSql(ConditionSet conditionSet,IList outputParams){ List<System.String> conditions=new List<System.String>(); foreach(Condition subCondition in conditionSet.SubConditions) { System.String 阅读全文
posted @ 2012-03-28 19:28 szjdw 阅读(334) 评论(0) 推荐(0) 编辑
摘要:declare @storeid nvarchar(2) declare @prdtid nvarchar(10) declare @start nvarchar(20) declare @end nvarchar(20) declare @inno nvarchar(20) declare @strSql nvarchar(4000) declare @tempno nvarchar(4000) set @storeid='01' set @prdtid='0230157' set @start='2012-03-21 12:00' set @ 阅读全文
posted @ 2012-03-23 18:25 szjdw 阅读(152) 评论(0) 推荐(0) 编辑
摘要:declare @storeid nvarchar(2) declare @prdtid nvarchar(10) declare @start nvarchar(20) declare @end nvarchar(20) declare @outno nvarchar(20) declare @strSql nvarchar(4000) declare @tempstr nvarchar(4000) set @storeid='01' set @prdtid='0230157' set @start='2012-03-21' set @end= 阅读全文
posted @ 2012-03-23 17:43 szjdw 阅读(172) 评论(0) 推荐(0) 编辑
摘要:入库汇总: declare @storeid nvarchar(2) declare @prdtid nvarchar(10) declare @start nvarchar(20) declare @end nvarchar(20) declare @inno nvarchar(20) declare @strSql nvarchar(4000) set @storeid='01' set @prdtid='0230157' set @start='2012-03-21' set @end='2012-03-24' declar 阅读全文
posted @ 2012-03-23 17:18 szjdw 阅读(157) 评论(0) 推荐(0) 编辑
摘要:declare @storeid nvarchar(2) declare @prdtid nvarchar(10) declare @start nvarchar(20) declare @end nvarchar(20) declare @inno nvarchar(20) declare @strSql nvarchar(4000) set @storeid='01' set @prdtid='0230157' set @start='2012-03-15' set @end='2012-03-24' declare inno 阅读全文
posted @ 2012-03-23 15:27 szjdw 阅读(171) 评论(0) 推荐(0) 编辑
摘要:看C#代码:internal class Program{ // Fields private string _isSuper; // Methods private static void Main(string[] args) { Program program = new Program(); if (program._isSuper == "qwe") { Console.WriteLine("There is a1 Exception!"); } Console.Read(); }}msil看看:.class private auto ansi 阅读全文
posted @ 2012-03-22 17:50 szjdw 阅读(271) 评论(0) 推荐(0) 编辑
摘要:MSDN:It is an error to use both new and override on the same member because the two modifiers have mutually exclusive meanings.The new modifiers creates a new member with the same name and causes the original menber to become hidden.The override modifier extends the implementation for an inherited m 阅读全文
posted @ 2012-03-19 21:22 szjdw 阅读(355) 评论(0) 推荐(0) 编辑
摘要:<li><input type="button" id="ts" value="测试" /> <script type="text/javascript"> $("#ts").click(function () { var item = $("input[name='MenuImageAjax']:checked").val(); alert(item); console.log(item); }); </script 阅读全文
posted @ 2012-03-14 18:03 szjdw 阅读(117) 评论(0) 推荐(0) 编辑
摘要:今天工作中遇到的问题总结:一,javascript中把字符串转为数字的函数是什么?parseInt(str)parseFloat(str)二,Ajax的Post请求: function DisplayIcons(page_index) { var page_size; page_size = 250; $.ajax({ type: 'POST', url: "/Normal/Service.aspx?Module=IconsReader&Action=GetResult", data: { "pageIndex": page_in 阅读全文
posted @ 2012-03-12 20:35 szjdw 阅读(109) 评论(0) 推荐(0) 编辑
摘要:function DisplayIcons(page_index) { var page_size; page_size = 250; $.ajax({ type: 'POST', url: "/Normal/Service.aspx?Module=IconsReader&Action=GetResult", data: { "pageIndex": page_index, "pageSize": page_size }, dataType: "json", success: functio 阅读全文
posted @ 2012-03-12 19:44 szjdw 阅读(1166) 评论(0) 推荐(0) 编辑
摘要:1,从System.String[]转到List<System.String>System.String[] str={"str","string","abc"};List<System.String> listS=new List<System.String>(str);2, 从List<System.String>转到System.String[]List<System.String> listS=new List<System.String>();listS 阅读全文
posted @ 2012-03-09 16:52 szjdw 阅读(3615) 评论(0) 推荐(0) 编辑
摘要:前几天,我才知道有一种简化的数据交换格式,叫做yaml。我翻了一遍它的文档,看懂的地方不多,但是有一句话令我茅塞顿开。它说,从结构上看,所有的数据(data)最终都可以分解成三种类型。第一种类型是标量(scalar),也就是一个单独的字符串(string)或数字(numbers),比如“北京”这个单独的词。第二种类型是序列(sequence),也就是若干个相关的数据按照一定的顺序并列在一起,又叫做数组(array)或列表(List),比如“北京,上海”第三种类型是映射(Mapping),也就是一个名/值对(Name/Value),即数据有一个名称,还有一个与之对应的值,这又称做散列(hash) 阅读全文
posted @ 2012-03-08 11:19 szjdw 阅读(165) 评论(0) 推荐(0) 编辑
摘要:1,IServiceWrapperusing System;using System.Collections.Generic;namespace Project.Web.Service{ public interface IServiceWrapper { void GenerateInnerParameters(ref object[] parameters); void GenerateOuterParameters(ref object[] parameters); object GetParameterValue(System.String name); v... 阅读全文
posted @ 2012-03-07 15:51 szjdw 阅读(294) 评论(0) 推荐(0) 编辑
摘要:1,服务using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.ServiceModel;using System.ServiceModel.Activation;/// <summary>/// Summary description for HelloService/// </summary>[ServiceContract][AspNetCompatibilityRequirements( RequirementsMode = Asp 阅读全文
posted @ 2012-03-03 19:20 szjdw 阅读(110) 评论(0) 推荐(0) 编辑
摘要:在C#中可以对整型运算对象按位进行逻辑运算。按位进行逻辑运算的意义是:依次取被运算对象的每个位,进行逻辑运算,每个位的逻辑运算结果是结果值的每个位。C#支持的位逻辑运算如表:运算符号 意义 运算对象类型 运算结果类型 对象数 实例 ~ 位逻辑非运算 1 ~a & 位逻辑与运算 2 a&b I 位逻辑或运算 2 a|b ^ 位逻辑异或运算 整型,字符型 整型 2 a^b << 位左移运算 2 a<<4 >> ... 阅读全文
posted @ 2012-03-02 11:25 szjdw 阅读(221) 评论(0) 推荐(0) 编辑
摘要:找到两个在线格式化JavaScript代码的网站, 很好很强大, 分享下:1. http://jsbeautifier.org/, 速度很快, 很好很强大!2. http://tools.jb51.net/tools/js_geshihua.asp, 稍慢一点儿, 有关键字着色功能.站长之家本文系原创,转载请注明:来自 Freeway —— cnBlogs 阅读全文
posted @ 2012-03-01 20:24 szjdw 阅读(197) 评论(0) 推荐(0) 编辑