摘要:
使用分析函数row_number() over (partiion by ... order by ...)来进行分组编号,然后取分组标号值为1的记录即可。目前主流的数据库都有支持分析函数,很好用。 其中,partition by 是指定按哪些字段进行分组,这些字段值相同的记录将在一起编号;orde
阅读全文
posted @ 2017-03-13 14:32
zishen
阅读(3396)
推荐(0)
摘要:
USE AMS_3 --跳转到指定的数据库 --判断 AmsWorkBill_WoInfo 表中是否已存在字段(TargetOwnerCode) if(Not Exists(Select * from Sys.Columns c inner join Sys.Objects o on c.Object_Id=o.Object_Id where c.Name='TargetOwnerCo...
阅读全文
posted @ 2017-03-06 10:50
zishen
阅读(1322)
推荐(0)
摘要:
//在用户控件中写的方法() private void GoToSelectedTab() { var m = Page.GetType().GetMethod("SetPageTab"); if (m != null) { m.Invoke(Page, new...
阅读全文
posted @ 2017-03-02 11:14
zishen
阅读(2681)
推荐(0)
posted @ 2017-02-07 16:30
zishen
阅读(785)
推荐(0)
摘要:
DataTable table; int currentIndex = 0; int max = 10000; private void button1_Click(object sender, EventArgs e) { buttonOK.Enabled = false; ...
阅读全文
posted @ 2016-11-16 17:33
zishen
阅读(3453)
推荐(0)
摘要:
/// <summary> /// 调用BarTender打印,模板的变量为:barcode0,barcode1,barcode2.......,barcode7 (内循环打印集合列表) /// </summary> /// <param name="pPrinter">打印机名称,必填</para
阅读全文
posted @ 2016-09-22 14:51
zishen
阅读(11476)
推荐(0)
摘要:
private void button1_Click(object sender, EventArgs e) { textBox2.Text = ConvertNumberToChinese(Convert.ToDouble(textBox1.Text)); } /// <summary> ///
阅读全文
posted @ 2016-09-22 14:50
zishen
阅读(845)
推荐(0)
摘要:
System.Text.Encoding.Default.GetByteCount("博客").ToString();
阅读全文
posted @ 2016-09-22 14:49
zishen
阅读(4892)
推荐(0)
摘要:
private void button2_Click(object sender, EventArgs e) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("FilePath.xml"); XmlNodeList xn = xmlDoc.
阅读全文
posted @ 2016-09-22 14:48
zishen
阅读(1334)
推荐(0)
摘要:
private void button1_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(textBox1.Text)) { string newDate; ConvertDate(textBox1.Text, out ne
阅读全文
posted @ 2016-09-22 14:47
zishen
阅读(1957)
推荐(0)