摘要: 返回单个字符串 static void Main(string[] args) { string xmlStr = xmlStr = "<ArrayOfString xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://w 阅读全文
posted @ 2022-02-17 11:53 岁末年初 阅读(95) 评论(0) 推荐(0)
摘要: /// <summary> /// 字符串截取 /// </summary> /// <param name="sourse">源数据字符串</param> /// <param name="startstr">开始字符串</param> /// <param name="endstr">结束字符串 阅读全文
posted @ 2022-02-17 11:38 岁末年初 阅读(25) 评论(0) 推荐(0)
摘要: 将连续多个空格替换为\n str = Regex.Replace(str.Trim(), @"[ ]{2,}", "\n"); 阅读全文
posted @ 2022-02-17 10:55 岁末年初 阅读(191) 评论(0) 推荐(0)
摘要: 氚云平台SQL查询关联多选 select 字段 from i_表单编码_关联字段编码 阅读全文
posted @ 2022-02-16 16:26 岁末年初 阅读(281) 评论(0) 推荐(0)
摘要: DataRow[] dr = this.dtSource.Select("name = '小明'"); 返回一个datarow集合 获取列数据 string str = dr["name"].ToString(); 阅读全文
posted @ 2022-02-16 13:39 岁末年初 阅读(599) 评论(0) 推荐(0)
摘要: 转载NPOI 两种方式导出Excel,浏览器和指定路径导出 web MVC程序实现 思路和流程如下 新建web MVC程序 ,我就命名WebApplication1好了 程序NuGet引入NPOI类库,两种引入方法:第一种,程序包管理控制台输入Install-Package NPOI;第二种在管理解 阅读全文
posted @ 2022-02-15 10:47 岁末年初 阅读(284) 评论(0) 推荐(0)
摘要: C#路径中获取文件全路径、目录、扩展名、文件名称 常用函数 需要引用System.IO 直接可以调用Path的静态方法 class Program { static void Main(string[] args) { //获取当前运行程序的目录 string fileDir = Environme 阅读全文
posted @ 2022-02-15 10:42 岁末年初 阅读(1086) 评论(0) 推荐(0)
摘要: 问题:氚云表单名命名不能以D加6位数字开头命名,否则无法用SQL查询数据。 如果已经用D加6位数字开头命名,用SQL查询时不需要添加前缀。 示例: 阅读全文
posted @ 2022-01-25 17:46 岁末年初 阅读(93) 评论(0) 推荐(0)
摘要: 问题原因:有时候安装mysql或者python时候,有遇到过应用程序无法正常启动(oxc000007b)的错误,之所以导致这种问题是因为系统本身缺少了mysql或者是mysql依赖的vc语言环境 解决方案: 1.下载DirectX增强版修复 2.下载C组件安装链接: https://pan.baid 阅读全文
posted @ 2022-01-25 13:12 岁末年初 阅读(533) 评论(0) 推荐(0)
摘要: ####示例:??表示是否为null。如果str不为null,返回str,否则返回0 string str = null; int execSeconds = Convert.ToInt32(str ?? "0"); Console.WriteLine(execSeconds); 阅读全文
posted @ 2022-01-13 12:10 岁末年初 阅读(119) 评论(0) 推荐(0)