- 博客(98)
- 资源 (7)
- 收藏
- 关注
原创 windows services 强制关闭方法
winservice 在 starting、stopping 阶段,无法手动关闭服务。解决思路:sc queryex [service name] 查找服务PIDtaskkill /PID [PID] /F /T 强制关闭进程
2020-01-08 16:47:21 1304 1
转载 rman完全备份
检查数据库模式:sqlplus /nologconn /as sysdbaarchive log list (查看数据库是否处于归档模式中)若为非归档,则修改数据库归档模式。startup mountalter database archivelogalter database open2.连接到target数据库命令: connect target / (connec...
2019-02-18 16:27:38 2179
转载 彻底清除TFS和VS中的缓存
一、删除下面目录文件夹下的内容:1、C:\Users\Administrator\AppData\Local\Microsoft\Team Foundation2、C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio3、C:\Users\Administrator\AppData\Local\Microsoft\VSCommo...
2019-01-15 09:22:22 1277
转载 Winform 将引用的dll文件集成到exe
第一步,将需要引用的dll文件复制到项目中您可以:1.复制到项目根目录;2.复制到某个文件夹中。此处以将dll复制到"lib"文件夹为例。第二步,引用复制到项目中的dll文件右键点击"引用"或项目名称,选择"添加引用()..."切换至在“添加引用”对话框中的“浏览”选项卡,选择项目目录中刚刚复制过来的dll文件。第三步,设置引用项的属性为“复制到输出目录”为“不复制”右键点击“引用”...
2018-12-17 11:36:38 1749
原创 winfrom 多线程+委托更新ui(进度读条为例)
//定义一个委托 private delegate void DelegateFunction(int ipos); private Thread multi = null; private void button1_Click(object sender, EventArgs e) { pro...
2018-11-29 13:55:59 1120
原创 webBrowser 实现滚动文字
webBrowser1.ScriptErrorsSuppressed = true; //禁用错误脚本提示 webBrowser1.IsWebBrowserContextMenuEnabled = false; // 禁用右键菜单 webBrowser1.WebBrowserShortcutsEnabled = false; /...
2018-11-27 15:47:40 372
转载 C#播放器控件的常用方法
URL:String; 指定媒体位置,本机或网络地址uiMode:String; 播放器界面模式,可为Full, Mini, None, Invisible(不计大小写)playState:integer; 播放状态。这个属性改变时同时引发PlayStateChange事件与StateChange事件。取值范围为枚举型:WMPLib.WMPPlayState,它的成员如下: wmppsU...
2018-11-27 15:46:26 1325
原创 当前日期的零点和
SELECT TRUNC(SYSDATE)+1-1/86400 FROM dual; —2018/8/3 23:59:59SELECT TRUNC(SYSDATE)+1/ 86400 FROM DUAL;—2018/8/3 0:00:01
2018-10-24 14:17:54 649
原创 正在执行的sql 、杀死
select a.program, b.spid, c.sql_text,c.SQL_ID,a.SID,a.SERIAL#from vsessiona,vsession a, vsessiona,vprocess b, v$sqlarea cwhere a.paddr = b.addrand a.sql_hash_value = c.hash_valueand a.username is ...
2018-10-24 14:17:18 1414
转载 oracle 序列
改变表中的数据对序列没有影响,只有在使用序列的下一个值时,序列才会递增,换句话说只有实行了 seq.nextval后才会改变序列的当前值oracle 新建序列:Create sequence seq_cdptIncrement by 1Start with 1Maxvalue 999999Minvalue 1Nocyclenocache说明:create sequence se...
2018-10-24 14:16:50 182
原创 DEV GridView嵌套
private void gridView1_MasterRowExpanded(object sender, DevExpress.XtraGrid.Views.Grid.CustomMasterRowEventArgs e) { DevExpress.XtraGrid.Views.Grid.GridView aView = gridView1.GetDe...
2018-10-24 14:16:05 553
原创 DevExpress中GridControl表头 重绘,表头全选、反选
public void Init() { this.gridView1.CustomDrawColumnHeader += new DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventHandler(gridView1_CustomDrawColumnHeader); ...
2018-10-24 14:15:17 2050 2
原创 C# ListT对于某个字段去重复
gradeSubjectItem teacher = teacherInfos.Where((x, i) => teacherInfos.FindIndex(z => z.guid == x.guid) == i).ToList();
2018-10-24 14:14:36 1763
原创 gridcontrol 表头CheckEditt全选
public void Init() { //gridView1.OptionsSelection.MultiSelect = true; //gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMo...
2018-09-18 09:47:54 1227
原创 SQLHelper(oracle)
using System;using System.Data.OleDb;using System.Data.Common;using System.Data;using System.Configuration;using System.Data.SqlClient;namespace DataConvert.Lib{ public static class SQLHel...
2018-06-01 09:59:11 803
原创 Log
using System;using System.Text;using Microsoft.Practices.EnterpriseLibrary.Logging;namespace Utility{ public static class LogHelper { private static LogWriter _logWriter; ...
2018-05-28 17:34:49 728
转载 操作实体工具类。
using System;using System.Collections.Generic;using System.Data;using System.Linq.Expressions;using System.Reflection;namespace Utility{ /// <summary> /// 操作实体工具类。 /// </s...
2018-05-28 17:32:14 242
转载 datatable +Excel数据操作
ExcelHelper public class ExcelHelper { private string fileName = null; //文件名 private IWorkbook workbook = null; public ExcelHelper(string fileName) { ...
2018-05-28 17:31:01 2238
原创 xml反序列化、序列化(实体、datatable)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Xml.Serialization;namespace HEMR.JHOODCommonLib.Utility{ public class XmlH...
2018-05-28 17:24:08 521
原创 读取本地xml进行DES加密、解密
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.IO;namespace JHEMR.JHOODCommonLib.Utility{ /// <summary...
2018-05-28 17:10:39 2629
转载 How to take a screenshot of a control with a scroll bar?
using System.Runtime.InteropServices;using System;using System.Drawing;using System.Windows.Forms;namespace JHEMR.JHOODCariesRecord{ public class ControlImage { #region API ...
2018-05-07 11:29:27 146
转载 convert Text To Image
public byte[] ChangeStringToImage(string pic) { try { //判断字符串不等于空和null if (pic == null || pic.Trim() == String.Empty) {...
2018-04-11 15:49:45 232
转载 rman完全恢复
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> shutdown immediate ORA-01507...
2018-02-08 14:47:21 1885
原创 oracle调优
一、sql调优过程 1.定位高频使用sql语句 2.添加索引 3.更改优化器的牧师 4.添加提示 5.将调优持久化 二、sql全盘扫描 1.字段不平衡索引分布 2.choose 或all_rows 3.带有like的条件查询,开始用% 4 内置函数使索引无效 to_char、substr、decode 5.oracle没有手
2018-02-06 17:04:08 134
原创 Resize + Compression + Rotate to Image
private void ImageOpenButton_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { foreach (string str in openFileD
2018-01-25 10:34:33 162
原创 webservice+无法与服务器建立信任链接
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(CheckValidationResult);//调用接口以前增加 public bool CheckValidationResult(object sende
2017-11-29 16:03:50 864
原创 dev GridControl 列表手动排序
private void btnOrderUp_Click(object sender, EventArgs e) { if (_templateInfoGridView.FocusedRowHandle <= 0)//最高层 { return; } int
2017-11-02 10:38:33 2343
原创 list 排序 不规则model字段排序
for (int i = 0; i < list.Count; i++) { foreach (JhoutpatCpNodeVsParent l in list) { if (list[i].ParentId == "" || list[i].ParentId == nul
2017-11-02 10:22:26 545
原创 获取汉字快拼(首字母),英文直接返回大写字母
public static string strWord(string name) { string str = string.Empty; for (int i = 0; i &lt; name.Length; i++) { str += GetCharSpellCode(name[i
2017-10-11 16:18:13 12355
转载 常用命令
1.用户管理 创建用户 create user “username” identified by “userpassword” ; 注:后面可带表空间 删除用户 drop user “username” cascade; 注:cascade 参数是级联删除该用户所有对象,经常遇到如用户有对象而未加此参数则用户删不了的问题,所以习惯性的加此参数 授权 grant connect,res
2017-08-16 16:44:03 238
转载 PLSQL 有效序列号
Product Code:4t46t6vydkvsxekkvf3fjnpzy5wbuhphqz serial Number:601769password:xs374ca
2017-08-16 16:39:19 3004
原创 oracle 导入导出表
--创建表空间 Testcreate tablespace TESTdatafile 'D:\app\liangzhuang\product\11.2.0\oradata\New.dbf'size 20Mreuseautoextend onnext 5Mmaxsize unlimitedLOGGING PERMANENT EXTENT MANAGEMENT LOCAL A
2017-08-16 16:37:45 182
原创 oracle存储过程
create or replace procedure sql_test(out_return out sys_refcursor) isbegin open out_return for 'select supplier_id,supplier_name from supplier';end;C:\Users\Liang>sqlplus system/123@TestDBSQL*Plus:
2017-08-03 16:36:12 271
原创 使用js数组拼接json并post到contoller
view:<script type="text/javascript"> var id = 0; var i = 1; var s = ["div1"]; function add() { i++; var id = "div" + i.toString(); s.push(id); var t = '<d
2017-07-10 20:45:12 859
转载 图表控件
不管是哪个领域的开发,都有机会用到图表来做统计分析,以更直观的表现形式来代替传统的文字。在以前,图表控件主要有使用程序代码生成的静态图片,或者是使用flash实现的图表控件。在HTML5非常流行的当下,现代浏览器提供越来越强大的功能,涌现出许多优秀的图表控件,它们基于Canvas/SVG技术来绘制图表(低版本IE使用VML技术),不再需要flash等额外的插件,提供丰富的表现形式以及交互方式,而且性
2017-06-29 10:35:06 895
原创 C#+ XML 增删改查
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Xml;namespace MvcApplication_Test{ public class CreateXmlFile { /// <summary>
2017-06-27 16:16:37 318
转载 SQL SERVER 2008插入某些生僻字时显示是问号
解决办法: 1.要保存多语言,字段类型应该用 nvarchar() 2.插入语句的时候才加N”[ 如:insert into test values(N’䓣’,N’䓣’)]
2017-06-21 16:11:21 3941
转载 SQL多表连接查询(详细实例)
表A: student 截图如下 表B: course 截图如下: 表C: student_course 截图如下: 一个学生可以选择多门课程,一门课程可以被多个学生选择,因此学生表student和课程表course之间是多对多的关系。 当两表为多对多关系的时候,我们需要建立一个中间表student_course,中间表至少要有两表的主键,当然还可以有别的内容。 SQL语句:se
2017-06-09 13:25:37 2065 1
转载 sql之left join、right join、inner join的区别
表A记录如下: aID aNum 1 a20050111 2 a20050112 3 a20050113 4 a20050114 5 a20050115表B记录如下: bID bName 1 2006032401 2 2006032402 3 2006032403 4 2006032404
2017-06-09 13:00:53 237
二维码条形码生成
2017-02-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人