随笔分类 -  代码收藏

平时工作中或业余时编写的一些代码
摘要:例: Install-Package CefSharp.Wpf -Version 73.1.130 Install-Package CefSharp.Common -Version 73.1.130 Install-Package CefSharp.Wpf -Source C:\Users\suxi 阅读全文
posted @ 2019-05-30 17:48 0611163 阅读(5254) 评论(0) 推荐(0)
摘要:注意权限问题 1.查看是否有被锁的表: select b.owner,b.object_name,a.session_id,a.locked_modefrom v$locked_object a,dba_objects b where b.object_id = a.object_id 2.查看是哪 阅读全文
posted @ 2019-05-30 15:06 0611163 阅读(10326) 评论(1) 推荐(0)
摘要:代码: public static void DoEvents(Dispatcher dispatcher) { DispatcherFrame frame = new DispatcherFrame(); dispatcher.BeginInvoke(new Action<object>((obj 阅读全文
posted @ 2019-05-27 15:53 0611163 阅读(462) 评论(0) 推荐(0)
摘要:代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataSync.Utils { /// 阅读全文
posted @ 2019-05-20 16:48 0611163 阅读(3943) 评论(0) 推荐(0)
摘要:WebServiceHelper代码: using Microsoft.CSharp; using System; using System.CodeDom; using System.CodeDom.Compiler; using System.Collections.Generic; using 阅读全文
posted @ 2018-12-10 15:27 0611163 阅读(476) 评论(0) 推荐(0)
摘要:SQL代码: SELECT t.* FROM pt_org_info t START WITH t.id = 1 CONNECT BY t.par_id = PRIOR t.id ORDER SIBLINGS BY t.id; 效果图: 阅读全文
posted @ 2018-11-21 14:40 0611163 阅读(2800) 评论(0) 推荐(0)
摘要:代码: private static ImageCodecInfo GetImageCodecInfo(ImageFormat imageFormat) { ImageCodecInfo[] imageCodecInfoArr = ImageCodecInfo.GetImageDecoders(); 阅读全文
posted @ 2018-08-24 14:03 0611163 阅读(636) 评论(0) 推荐(0)
摘要:项目属性-->生成-->允许不安全代码勾上。 代码: /// <summary> /// 反色处理 /// </summary> private Bitmap Inverse(Bitmap bmp) { BitmapData srcdat = bmp.LockBits(new Rectangle(P 阅读全文
posted @ 2018-08-22 14:57 0611163 阅读(1103) 评论(0) 推荐(0)
摘要:(地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 对谷歌瓦片地图进行纠偏,有两种方法:一是对拼接大图进行纠偏,然后重新切片;二是直接对瓦片图进行纠偏。这里我用的是第二种方法,即直接对瓦片地图进行纠偏。 App.confi 阅读全文
posted @ 2018-08-17 10:27 0611163 阅读(1623) 评论(2) 推荐(0)
摘要:// 设置为受保护的操作系统文件,并隐藏attrib d:\n.txt +s +h // 取消设置为受保护的操作系统文件,并取消隐藏attrib d:\n.txt -s -h 阅读全文
posted @ 2018-03-09 12:39 0611163 阅读(940) 评论(0) 推荐(0)
摘要:只导某些表: 阅读全文
posted @ 2016-04-27 11:09 0611163 阅读(366) 评论(0) 推荐(0)
摘要:代码: 阅读全文
posted @ 2016-04-27 10:45 0611163 阅读(678) 评论(0) 推荐(0)
摘要:代码: #region 解压 /// <summary> /// 解压 /// </summary> public void UnZip(string zipPath, string targetPath) { using (FileStream fsZip = new FileStream(zip 阅读全文
posted @ 2016-04-19 12:36 0611163 阅读(572) 评论(0) 推荐(1)
摘要:思路:取表单值以及printkey属性标记的html内容,批量替换模板中的内容。模板设置页面代码:@{ ViewBag.Title = "PrintSet"; Layout = "~/Views/Shared/_Layout.cshtml"; Suya.Auth.Contract.... 阅读全文
posted @ 2015-10-16 17:31 0611163 阅读(5801) 评论(12) 推荐(2)
摘要:代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Microsoft.Office.Interop.Excel;using Sy... 阅读全文
posted @ 2015-08-03 17:47 0611163 阅读(4537) 评论(4) 推荐(2)
摘要:MachineJP类: 第1部分:串口初始化,串口数据读写 using System; using System.Collections.Generic; using System.IO.Ports; using System.Linq; using System.Text; using Syste 阅读全文
posted @ 2015-07-28 16:39 0611163 阅读(1693) 评论(4) 推荐(0)
摘要:说明:支持跨线程访问控件。定义代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;... 阅读全文
posted @ 2015-06-29 16:14 0611163 阅读(537) 评论(5) 推荐(0)
摘要:CSS代码:-moz-border-radius: 15px; /* Gecko browsers */-webkit-border-radius: 15px; /* Webkit browsers */border-radius:15px; /* W3C syn... 阅读全文
posted @ 2015-06-27 13:13 0611163 阅读(286) 评论(0) 推荐(0)
摘要:一、HTML: 明细 删除 确认 添加 View Code二、JS:View Code三、完整示例页面:@{ Layout = "~/Views/Shared/_Layout.cshtm... 阅读全文
posted @ 2015-06-11 17:54 0611163 阅读(1016) 评论(0) 推荐(0)
摘要:一、引用CSS和JS:View Code二、HTML: View Code三、创建编辑器对象:var ue;$(function () { $(function () { ue = UE.getEditor('ueditor', { maximumWords... 阅读全文
posted @ 2015-06-08 13:05 0611163 阅读(552) 评论(0) 推荐(0)