- 博客(22)
- 资源 (4)
- 收藏
- 关注
原创 Reflection
class Program { static void Main(string[] args) { Person person = Activator.CreateInstance<Person>(); System.Reflection.PropertyInfo[] propertyInfos = person.GetType().GetProperties(); ...
2021-12-24 17:37:04
248
原创 WCF configuration error
异常信息如下Operation 'GetContractList' of contract 'Ixxx' specifies multiple request body parameters to be serialized without any wrapper elements.At most one body parameter can be serialized without wrapper elements.Either remove the extra body parameter
2021-04-23 09:46:34
191
1
转载 备份数据库
USE [msdb]GO/****** Object: Job [定时备份] Script Date: 01/29/2019 11:52:49 ******/IF EXISTS (SELECT job_id FROM msdb.dbo.sysjobs_view WHERE name = N'定时备份')EXEC msdb.dbo.sp_delete_job @job_id=N'b155492a-4e2e-4137-9a2e-e942216e18b6', @delete_unused_s.
2020-11-21 16:30:37
147
原创 添加日志文件
public static class LogPostDataHelper { private static string fileName = string.Empty; private static string filePath = string.Empty; private static string fileFullPath = string.Empty; private static string fileS...
2020-10-24 17:38:53
435
原创 随手笔记
and t.ID_NUMB not like '%[吖-座]%' and t.ID_NUMB like '%[!@#$%^&*()_+-=<>,./\|`~;:{}"]%'
2020-10-07 13:27:37
75
原创 SSL TLS版本问题
.net框架的默认协议:NET Framework 4.5 and 4.5.1: SSLv3 and TLSv1 NET Framework 4.5.2: SSLv3, TLSv1, and TLSv1.1 NET Framework 4.6 and higher: TLSv1, TLSv1.1, and TLS1.2如果服务器协议有限制或者升级,需要修改代码中的协议。System.Net.ServicePointManager.SecurityProtocol = SecurityProt
2020-09-26 10:41:42
1100
原创 将数据库所有表转为执行脚本
select t.category, t.type, t.xtype from sys.sysobjects t group by t.category, t.type, t.xtype;/*category type xtype0 F F foreign key0 FN FN Function0 K PK primary key0 K UQ 0 P P stored procedures0 SN SN synonyms0 TF TF0 TR TR trigger0 ...
2020-09-09 16:27:14
187
原创 Timer 定时任务
public class OnlinePay { private static double dayEndStartTime = 0; private static double dayEndStopTime = 0; private static int retransmitInterval = 0; private static System.Timers.Timer timer = null;//添加静态定时任务变量, .
2020-08-31 12:01:52
231
原创 添加Win10文件夹详细信息------统一显示内容
Win10文件夹中详细信息(名称、修改日期、类型、大小)首先,在文件夹中将你会用到的详细信息添加上去,如备注、文件版本、创建日期等。添加方式为,在标题行右键单击,选择你所要的列(可从其他之中选择)。其次,若要应用到同类型的所有文件夹,需选择菜单项查看-选项。再次,切换到文件夹选项的查看选项卡,选择应用到文件夹(L)按钮。此时同类型文件夹都会以相同列显示。...
2020-05-29 11:43:48
9007
2
原创 Dev设置行数据不可编辑
/// <summary> /// 设置行数据,不可修改 /// </summary> private void Gv_West_ShowingEditor(object sender, CancelEventArgs e) { DataRow dr = gv_Wes...
2019-06-15 11:43:40
877
原创 委托方法防止重复刷新
public delegate void PatientChangedDelegate(); public partial class FrmPatientList : UserControl { public static PatientChangedDelegate PatientChanged; /// <summary&...
2019-05-24 10:29:04
301
原创 Dock属性值为Fill时,直接撑满全部区域问题
解决步骤:1.将Dock为Fill的控件设置为none,然后剪切出来2.重新设置左上右下四个区域的控件的Dock属性3.将Dock为Fill的控件粘贴上去,设置其Dock属性为Fill...
2019-05-21 08:53:09
3235
原创 Dev中GridView、RepositoryItemGridLookUpEdit、LookUpEdit等扩展方法
/// <summary> /// GridView列属性设置类 /// </summary> public class BaseColumnSet { /// <summary> /// 列名(可不设置) /// </summary> pub...
2019-05-21 08:40:06
3626
原创 右下角扩展区域也会执行MouseEnter事件
<Grid x:Name="gridMain" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="100"
2018-09-03 17:03:48
183
1
原创 WPF提示框
<Popup x:Name="popup" IsOpen="False" Placement="Mouse" Focusable="True" AllowsTransparency="True" PopupAnimation="Slide" MinHeight="35" MaxHeight="350">
2018-08-13 11:08:55
1427
1
原创 TextBox 数字,范围限制
直接上代码 /// <summary> /// 文本框文本输入事件 /// </summary> private void txt_PreviewTextInput(object sender, TextCompositionEventArgs e) { Regex reg...
2018-07-13 11:24:00
1993
1
原创 WPF TextBox 只能输入数字,并限制输入大小
/// <summary> /// 文本框文本输入事件 /// </summary> private void txt_PreviewTextInput(object sender, TextCompositionEventArgs e) { Regex regex = ...
2018-07-10 12:25:36
9301
2
原创 DataGrid扩展
ExtendDataGridHelper.SetCellEnableFalse<ComboBox>(dtgShow, "cbxCellEditEQ"); /// <summary> /// 设置Datagrid某列不可编辑 /// </summary> /// <...
2018-07-02 12:29:44
275
1
WPF测试用例
2018-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人