上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
  2021年8月19日
摘要: 截取横杠之前的数据 SUBSTRING(ep_SalesOrder.ep_otherrequire, 1, CHARINDEX('-', ep_SalesOrder.ep_otherrequire) - 1) 横杠之后: SUBSTRING( voucher.ep_fontno, CHARINDEX 阅读全文
posted @ 2021-08-19 16:48 RookieBoy666 阅读(48) 评论(0) 推荐(0)
  2021年5月20日
摘要: gridViewmachinerepair.Columns["machine"].Group(); #region 自定义计算 double dateCount = 0; gridViewmachinerepair.CustomSummaryCalculate += (sender, e) => { 阅读全文
posted @ 2021-05-20 16:10 RookieBoy666 阅读(350) 评论(0) 推荐(0)
摘要: 小写转大写: private string DaXie(decimal money) { string s = money.ToString("#L#E#D#C#K#E#D#C#J#E#D#C#I#E#D#C#H#E#D#C#G#E#D#C#F#E#D#C#.0B0A"); string d = R 阅读全文
posted @ 2021-05-20 09:12 RookieBoy666 阅读(131) 评论(0) 推荐(0)
  2021年5月19日
摘要: Print("preview"); 查询页面: private void Print(string printOrpreview) { DevExpress.XtraGrid.Views.Grid.GridView gridview = this.HwInInvGridView; int[] row 阅读全文
posted @ 2021-05-19 14:17 RookieBoy666 阅读(50) 评论(0) 推荐(0)
  2021年5月11日
摘要: LINQ(Language Intergrated Query):集成查询语言 string[] array = { "1", "5", "6", "7" }; var query = from s in array select s; foreach(var aaa in query) { Con 阅读全文
posted @ 2021-05-11 17:02 RookieBoy666 阅读(73) 评论(0) 推荐(0)
  2021年4月24日
摘要: private void simpleButton1_Click(object sender, EventArgs e) { Process[] process = Process.GetProcesses(); //Process[] pro = Process.GetProcessesByNam 阅读全文
posted @ 2021-04-24 10:47 RookieBoy666 阅读(196) 评论(0) 推荐(0)
  2021年3月12日
摘要: DECLARE Sub_CURSOU_MS CURSOR FOR SELECT FInkqty, FPrjsht, FMatno FROM #subworktimeink OPEN Sub_CURSOU_MS; FETCH NEXT FROM Sub_CURSOU_MS INTO @finkqty, 阅读全文
posted @ 2021-03-12 16:54 RookieBoy666 阅读(64) 评论(0) 推荐(0)
  2021年3月1日
摘要: 查看: --查询死锁 select request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' 阅读全文
posted @ 2021-03-01 13:07 RookieBoy666 阅读(103) 评论(0) 推荐(0)
  2021年2月25日
摘要: 按指定字段排序、分页 --取第5页的30条数据 DECLARE @Page INT = 5 DECLARE @PageSize INT = 30 SELECT ep_survivalstatus, ep_CardNo FROM dbo.ep_CardBase ORDER BY CASE WHEN e 阅读全文
posted @ 2021-02-25 14:03 RookieBoy666 阅读(115) 评论(0) 推荐(0)
摘要: 压缩: /// <summary> /// 把datatable数据转换成字节数组,然后压缩字节数组。 /// </summary> /// <param name="data">查询得到的数据表</param> /// <returns>返回被压缩的字节数组</returns> public st 阅读全文
posted @ 2021-02-25 13:15 RookieBoy666 阅读(112) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页