文章分类 - 原创
INsql10.0 sp1 安装
摘要:支持windows2008 R2 windows2008R2Enterprise+sqlserver2008 sp1 32bit可以安装insql10.0SP1
阅读全文
C# 计算某个日期所在的周是当年的第几周
摘要:引用:using System.Globalization;函数:public static int WeekOfYear(DateTime dt, CultureInfo ci) { return ci.Calendar.GetWeekOfYear(dt, ci.DateTimeFormat.CalendarWeekRule, ci.DateTimeFormat.FirstDayOfWeek); }调用:int a=WeekOfYear(this.dateTimePicker1.Value, new CultureInfo("zh-CN"));
阅读全文
将DataGridView中的数据导入Excel中,并显示Excel
摘要:#region 将DataGridView中的数据导入Excel中,并显示Excel //// /// 将DataGridView中的数据导入Excel中,并显示Excel中 /// DataGridView中绑定的是一个DataTable /// /// DataGridView /// Ex...
阅读全文
读写ini文件
摘要:using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Runtime.InteropServices;using System.IO; namespace WriteIni{ /// /// ErrorRe...
阅读全文
肝病饮食:脂肪肝饮食注意18条
摘要:肝病饮食:脂肪肝饮食注意18条在B超检查时,许多没有任何症状的中老年人,甚至一些年轻人,被告知患有“脂肪肝”。于是,这些病人焦急地问医生:“脂肪肝该如何治疗?” 治疗的关键是减轻体重,重点在控制饮食,同时要加强体育锻炼、经常进行户外话动。 下面介绍的18条措施,在脂肪肝的自疗自养中是非常重要的: 1、绝对禁酒。 2、选用去脂牛奶或酸奶。 3、每天吃的鸡蛋黄不超过2个。 ...
阅读全文
c#冒泡排序
摘要:/// /// 功能说明:c#冒泡排序 /// 作者:杨艳峰 /// /// /// public string sort(string DataList) { string[] b=DataList.Split(','); int[] a=new int[b.Length]; for(int n=0;na[j+1]) { temp=a[j...
阅读全文
Oracle 数据统计
摘要:Oracle 数据统计select tt.日期,a.shift_name 班次,c.equ_name 机台 ,b.product_name 牌号,tt.抽检次数,tt.圆度零分,tt.吸阻否决,tt.吸阻零分,tt.硬度否决 ,tt.硬度零分,tt.长度否决,tt.长度零分,tt.粘连线零分,tt.爆口否决,tt.外观零分 from pub.shift a,pub.prod_material b ...
阅读全文
数据表转置
摘要:/// /// 功能描述:数据表转置 /// 作者:杨艳峰 /// 创建日期:2006-4-6 /// /// /// public DataTable GetTable(DataSet ds) { DataTable dtNew = new DataTable(); dtNew.Columns.Add("ColumnName", typeof(string)); ...
阅读全文
随机数实例
摘要:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data; namespace MySelectNum{ /// /// Form1 的摘要说明。 /// public class Form...
阅读全文
36计速记
摘要:36计速记 金玉谭公册 借以擒劫贼 鱼蛇海间笑 羊虎桃桑隔 树暗走痴故 釜空苦远客 屋梁有美尸 击魏连伐虢 金(金蝉脱壳)玉(抛砖引玉)谭公册 借(借刀杀人)以(以逸待劳)擒(擒贼擒王)劫(趁火打劫)贼(关门捉贼) 鱼(混水摸鱼)蛇(打草惊蛇)海(瞒天过海)间(反 间 计)笑(笑里藏刀) 羊(顺手牵羊)虎(调虎离山)桃(李代桃僵)桑(指桑骂槐)隔(隔岸观火) 树(树上开花)暗(暗度陈仓...
阅读全文
Oracle 9i SQL 集锦
摘要:1. select a,b,c ,count(*) from tableName group by a,b,c having count(*)>1.2. select * from table1 a where (a.a1,a.a2,a.a3)in(select a1,a2,a3 from table2).
阅读全文
winform owc
摘要:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data; namespace QualityAnalisy{ /// /// Form1 的摘要说明。 /// public class F...
阅读全文
smart client
摘要:#region smart client public static int returnCode=0; private bool appUpdater1_OnCheckForUpdate(object sender, System.EventArgs e) { bool updateAvailable; string updateUrl; // Instantiate a w...
阅读全文
Oracle Job
摘要:Oracle Job//每天九点过一秒执行'dps.silo_history_recored一次 9/24 小时转化成天 1/86400 秒转begin sys.dbms_job.change(job => 141, --JobNum what => 'dps.silo_his...
阅读全文
C#生成不重复随机数
摘要:/// /// 功能描述:返回不重复随机数数组 /// 作者: 杨艳峰 /// 创建日期:2006-4-30 /// /// 随机数个数 /// 随机数下限 /// 随机数上限 /// public int[] GetRandomArray(int Number,int minNum,int maxNum) { int j; int[] b=new in...
阅读全文
浙公网安备 33010602011771号