12 2012 档案

摘要:1. 自定义的declare @watch datetime;set @watch=getdate();select * from table;select datediff(ms,watch,getdate()) as elapsedTime;2. 系统提供的set statistics time onselect * from tableset statistics time off结果输出在消息窗口里,如:SQL Server Execution Times: CPU time = 0 ms, elapsed time = 17 ms. 阅读全文
posted @ 2012-12-12 22:36 Yu 阅读(840) 评论(0) 推荐(0)
摘要:<ResourceDictiontory Source="css/stlye.xaml"></ResourceDictiontory>等同于<link rel="stylesheet" href="css/style.css" />代码加载xaml styleResourceDictionary resources = null; using (FileStream fs = new FileStream(文件路径+@"style.xaml", FileMode.Open, Fi 阅读全文
posted @ 2012-12-10 14:10 Yu 阅读(865) 评论(0) 推荐(0)
摘要:ManualResetEvent _handle = new ManualResetEvent(true);//设置为true时,则为开,flase反之; void _timer_Elapsed(object sender, ElapsedEventArgs e) { try{ // WaitOne 阅读全文
posted @ 2012-12-06 15:17 Yu 阅读(158) 评论(0) 推荐(0)
摘要:由window.open 打开的子页面,可以通过JQuery 修改父页面的值:var table = $("#tbRepeater", opener.document); //获取父页面的tabletable.find("td #name").val("被子页面修改的值"); 阅读全文
posted @ 2012-12-06 14:46 Yu 阅读(347) 评论(0) 推荐(0)
摘要:<html><head><script type="text/javascript">function WaitFor() { var x = screen.width / 2 - 120; var y = screen.height / 2 - 100; var waitfor = document.getElementById("waitfor"); var innerText = '<div id="sub_waitfor" style=" Filter:Alpha(O 阅读全文
posted @ 2012-12-01 17:30 Yu 阅读(286) 评论(2) 推荐(0)
摘要:function statusJSON(tp) { //从TABKE获取数据 varbatchArray = null; var table = $("#tbRepeater"); table.find("tr").each(function (index) { if (lst == null) {batchArray = '{Id:"' + table.find("tr").eq(index).find("td #batchId").text() + '"}'; 阅读全文
posted @ 2012-12-01 17:18 Yu 阅读(286) 评论(0) 推荐(0)