- 博客(22)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 数据库误删数据回到删除时间
●误删数据闪回select first_page_submit_user_id from PAT_VISIT as of timestamp(systimestamp - interval '30' minute ) WHERE PATIENT_ID='00003460';drop table后找回数据select * from user_recyclebin where DROPTIME >'2018-11-20 15:00:00';flashback Table "BIN$exRnNvh6nmz
2022-07-07 09:52:17
343
原创 本地日志建立文档LOG
using System;using System.IO;using System.Text;public static void Writelog(string msg) { StreamWriter stream; //写入日志内容 string path = AppDomain.CurrentDomain.BaseDirectory+"\\log\\" + DateTime.Now.ToInvariantStri...
2022-02-17 09:39:42
151
原创 c#电话效验正则表达式
public bool IsPhoneNo(string str_handset) { return Regex.IsMatch(str_handset, "^(0\\d{2,3}-?\\d{7,8}(-\\d{3,5}){0,1})|(((13[0-9])|(15([0-3]|[5-9]))|(18[0-9])|(17[0-9])|(14[0-9])|(19[0-9]))\\d{8})$"); }...
2021-08-24 17:24:07
191
原创 MediGriview控件无数据源列绑定数据
注册Medigridview的CustomUnboundColumnData事件 事件写如下代码if (e.Column.FieldName == "gridColumn6") { if (e.IsGetData) { e.Value = "我是非数据源列"; } }3.非绑定列属性UnboundType选择对应数据类型(不能...
2021-08-12 11:48:33
253
原创 MediGridview控件单元格添加按钮控件
1、通过设计器添加Column2、把列的ColumnEdit属性设置为RepositoryItemButtonEdit3、 把TextEditStyle属性设置为HideTextEditor;4、把Buttons的Kind属性设置为Glyph;5、设置Buttons的ShowButtonMode=ShowAlways。6、设置Buttons的ButtonsStyle =simple7、设置Buttons的Image8、在GridControl的设计器中Repository页...
2021-08-12 11:41:47
274
原创 2021-02-24
c#数据类型,类型转换,变量,常量,转义符数据类型可以分为两大类:基本数据类型和引用类型。基本数据类型按功能又分为“值类型”,“布尔型”,“字符型”。引用类型分为“字符串”,“时间日期”。橙色圈起来的是常用的类型字符串类型 string 可以定义任意数据,几乎没有长度限制。赋值使必须带引号 string a =“”; string aa= null;只有字符串类型可以定义空值。整形类型int只可以定义整数或者负整数。长度为10位数...
2021-02-24 15:51:24
104
原创 动态调用Webserver传xml参数
string[] args = new string[1];StringBuilder xml = new StringBuilder(); xml.Append("<Request><MessageHeader><Sender>MNIS</Sender>"); xml.Append("<...
2019-11-07 15:09:35
460
原创 HTML渲染数据
function renderFormValue(e) { $("#date").val(sDateFormat(e.CREATE_DATE, "yyyy-MM-dd")); $("#txtTime").val(sDateFormat(e.CREATE_DATE, "HH:mm")); $("input[type='che...
2019-09-13 10:01:22
1488
原创 获取界面上所有的控件的数据
function GetPageData() { var result = {}; $("input[type='text'][name],input[type='number'][name],textarea[id][name],input[type='checkbox'][name],input[type='radio'][name],inpu...
2019-09-13 09:15:19
544
原创 c#判断浮点类型
public static bool IsDecimalSign(string inputData) { Regex RegDecimalSign = new Regex("^[+-]?[0-9]+[.]?[0-9]+$"); Match m = RegDecimalSign.Match(inputData); ...
2019-01-03 16:17:49
1380
原创 c# 正则判断字符串是否数字
Regex regExp = new Regex(" ^[0 - 9] * $"); regExp.IsMatch(Character);
2018-08-07 08:19:47
5759
原创 c# 正则判断是否存在非法字符串
Regex regExp = new Regex("[ \\[ \\] \\^ \\-_*×――(^)$%~!@#$…&%¥—+=<>《》!!???::•`·、。,;,.;\"‘’“”-]"); regExp.IsMatch(Character);
2018-08-07 08:18:12
4056
原创 c# 存储过程的调用
try { Hashtable item = HttpContext.Current.Application["hbm"] as Hashtable; string sr = string.Concat(item["hibernate.connection.connection_waterString"]);...
2018-07-04 16:30:55
174
原创 NPOI导出生成Excel文档
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.IO;using NPOI.SS.UserModel;using NPOI.HSSF.UserModel; /// /// 导出数据 ///
2018-01-10 19:12:08
245
原创 $.ajax()方法详解
jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。3.timeout: 要求为Number类型的参数,设置请求超
2018-01-09 15:17:07
187
原创 用SQL合并列中的两行
SELECT p. NAME, p.office, p.manager, GROUP_CONCAT( c.ListPrice), p.managerName, p.assignedTime, p.assignedNameFROM own_project pLEFT JOIN own_contract c ON p
2018-01-09 11:12:05
491
原创 根据两个日期,判断相差天数
var days = daysBetween('2016-11-01','2016-11-02');/*** 根据两个日期,判断相差天数* @param sDate1 开始日期 如:2016-11-01* @param sDate2 结束日期 如:2016-11-02* @returns {number} 返回相差天数*/function daysBetween(sDa
2017-12-28 13:23:45
459
原创 Jq根据身份证号提取信息
//获取输入身份证号码 var UUserCard = $("#UUserCard").val(); //获取出生日期 //UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(12, 14);//获取性别 if (parseInt(UUserCa
2017-12-28 09:49:32
951
原创 根据身份证算年龄
public static int GetAge(string idcard) { if (string.IsNullOrEmpty(idcard) || idcard.Length != 18) return 0; int x = Convert.ToInt32(idcard.Substrin
2017-12-08 17:05:42
235
原创 浏览器放大缩小事件
$(window).resize(function() { var heights = $(window).height(); var widths = $(window).width();})
2017-11-02 09:55:26
5962
原创 c#txt文件存到string数组中报错
string Text="C:\Users\Administrator\Desktop\MRN_list_2016-10-07.txt"string[] textfile = Directory.GetFiles(Text);//目录名称无效
2016-10-13 12:40:01
287
c#多屏截图。遮蔽画不上去,截取第二屏没法截图
2017-08-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人