嘴强王者

导航

2024年3月1日 #

wpf中treeview和ICollectionView接口实现数据过滤

摘要: private ICollectionView _collectionView; private void binddata(List<obj> list) { // 创建CollectionViewSource并绑定到TreeView CollectionViewSource collection 阅读全文

posted @ 2024-03-01 13:48 嘴强王者 阅读(24) 评论(0) 推荐(0) 编辑

2020年7月15日 #

sqlserver导出表查询

摘要: use SITMesDB --库名 SELECT表名 = Case When A.colorder=1 Then D.name Else '' End,表说明 = Case When A.colorder=1 Then isnull(F.value,'') Else '' End,字段名 = A.n 阅读全文

posted @ 2020-07-15 10:41 嘴强王者 阅读(126) 评论(0) 推荐(0) 编辑

2020年7月10日 #

传入xml数据导入至表

摘要: DECLARE @ItemMessage XML;--DECLARE @ItemTable TABLE(ItemNumber INT PRIMARY KEY,ItemDescription NVARCHAR(300))SET @ItemMessage = N'<root xmlns="http:// 阅读全文

posted @ 2020-07-10 10:11 嘴强王者 阅读(173) 评论(0) 推荐(0) 编辑

2020年6月10日 #

sqlserver表结构导出excel格式

摘要: use ReportServer --库名 SELECT 表名 = Case When A.colorder=1 Then D.name Else '' End, 表说明 = Case When A.colorder=1 Then isnull(F.value,'') Else '' End, 字段 阅读全文

posted @ 2020-06-10 09:03 嘴强王者 阅读(345) 评论(0) 推荐(0) 编辑

2019年11月25日 #

winform窗口一些使用demo(下派工单)

该文被密码保护。 阅读全文

posted @ 2019-11-25 10:27 嘴强王者 阅读(1) 评论(0) 推荐(0) 编辑

2019年11月22日 #

c#对象深复制demo

摘要: public class Person : ICloneable { public string Name; object ICloneable.Clone() { return this.Clone(); } public Person Clone() { return (Person)this. 阅读全文

posted @ 2019-11-22 15:29 嘴强王者 阅读(153) 评论(0) 推荐(0) 编辑

2019年11月19日 #

aspose.cells导出Demo

摘要: /// <summary> /// 导出excel /// </summary> /// <param name="list"></param> private void ExportExcel(IList<CV_SaaS_POM_ProductionOrder> list) { try { Sav 阅读全文

posted @ 2019-11-19 13:38 嘴强王者 阅读(631) 评论(0) 推荐(0) 编辑

2019年11月5日 #

复制表结构数据至另一数据库

摘要: SQL Server中,如果目标表存在: insert into 目标表 select * from 原表; SQL Server中,,如果目标表不存在: select * into 目标表 from 原表; Oracle中,如果目标表存在: insert into 目标表 select * fro 阅读全文

posted @ 2019-11-05 09:47 嘴强王者 阅读(335) 评论(0) 推荐(0) 编辑

2019年11月4日 #

C#安全类型转换基于convert

摘要: using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Globalization; namespace xxxx { public static class SafeConvert { /// /// 判断对像是否是空对象,例数据表中... 阅读全文

posted @ 2019-11-04 16:37 嘴强王者 阅读(929) 评论(0) 推荐(0) 编辑

2019年10月10日 #

c# winform devexpress TreeList过滤和绑定

摘要: /// /// 模糊查询 /// /// /// /// private IList onFindKeyWord(string str, IList list) { List m_list = new List(); ... 阅读全文

posted @ 2019-10-10 11:27 嘴强王者 阅读(648) 评论(0) 推荐(0) 编辑