摘要: 一日一记防老年痴呆之———— 在窗口程序中desigener设计器中重写。 using System.Windows.Forms; protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; c 阅读全文
posted @ 2021-03-08 11:09 它的眼角开过光 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 很简单的东西,但是经常忘记,记在这儿吧,下次要用直接过来复制粘贴。 DialogResult dr = MessageBox.Show("连打工单" + list[j].SO + "尚未到达补料时间!补料时间为:" + sdtcrefill, "标题", MessageBoxButtons.OKCa 阅读全文
posted @ 2021-03-04 15:16 它的眼角开过光 阅读(560) 评论(0) 推荐(0) 编辑
摘要: //HashSet检查数组是否重复 HashSet<string> hs = new HashSet<string>(); for (int j = 1; j <= SN.Count; j++) { if (hs.Contains(SN[j-1])) { MessageBox.Show("条码标签" 阅读全文
posted @ 2021-03-02 11:19 它的眼角开过光 阅读(264) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2021-03-02 11:17 它的眼角开过光 阅读(955) 评论(0) 推荐(0) 编辑
摘要: for (int i = 0; i < dtd.Rows.Count; i++) { //生成字符串 ItemModel dt = new ItemModel(); dt.action = "绑定"; dt.facility = list[j].Facility; dt.hSerial = dtID 阅读全文
posted @ 2021-02-22 11:24 它的眼角开过光 阅读(61) 评论(0) 推荐(1) 编辑
摘要: 恢复内容开始 USE [***]--数据库 GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER [dbo].[triTable1Update] ON [dbo].[Table1] AFTER UPDATE AS --if 阅读全文
posted @ 2020-12-23 11:16 它的眼角开过光 阅读(62) 评论(0) 推荐(0) 编辑
摘要: USE [***]--数据库更新 GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TRIGGER [dbo].[triTable1Update] ON [dbo].[Table1] AFTER UPDATE AS --if @@r 阅读全文
posted @ 2020-11-24 13:36 它的眼角开过光 阅读(71) 评论(0) 推荐(0) 编辑
摘要: select t1.id from table1 t1 where tbl1.id not in (select t2.id from table2 t2); t1有9万条数据,t2有3万条数据 使用not exists 代替 not in select t1.id from table1 t1 w 阅读全文
posted @ 2020-10-27 08:55 它的眼角开过光 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 1 .net 2 private void txtIDFromPrint_KeyPress(object sender, KeyPressEventArgs e) 3 { 4 if (e.KeyChar == '\r') 5 { 6 txtIDToPrint.Focus(); 7 } 8 } 9 V 阅读全文
posted @ 2020-10-24 15:59 它的眼角开过光 阅读(663) 评论(0) 推荐(0) 编辑
摘要: Dim A() As StringPrivate Sub Command1_Click()A() = Split(Text1.Text, "-", -1, vbTextCompare)'以“-”将字符串分割后存到一个以下标为0开始的数组里Dim i As IntegerFor i = 0 To UB 阅读全文
posted @ 2020-10-23 13:53 它的眼角开过光 阅读(833) 评论(0) 推荐(0) 编辑