摘要: 整表模式比逐行插入要快得多,通常数数十万的数据几秒就导入完成,需要配置数据库local_infile=1,用整表模式,DataTable的名字需与数据库中表名对应 DataTable dt_appointment_time_config_day.TableName = "appointment_ti 阅读全文
posted @ 2021-01-21 10:44 be--yourself 阅读(280) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取上级文件夹路径 /// </summary> /// <param name="path">路径</param> /// <param name="degree">级数</param> /// <returns></returns> private strin 阅读全文
posted @ 2020-10-13 14:28 be--yourself 阅读(2112) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// string[]-->buffer[] /// </summary> /// <param name="msg"></param> internal static Byte[] StringArrayToBufferArray(string[] array) { 阅读全文
posted @ 2020-10-13 14:26 be--yourself 阅读(244) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 创建bat脚本 /// </summary> /// <param name="batName">文件名</param> /// <param name="fileContent">文件内容</param> /// <param name="u"></param> 阅读全文
posted @ 2020-10-13 14:19 be--yourself 阅读(362) 评论(1) 推荐(0) 编辑
摘要: /// <summary> /// 生成条形码 /// </summary> /// <param name="height">图片高度设置(px单位)</param> /// <param name="width">图片宽度设置(px单位)</param> /// <param name="typ 阅读全文
posted @ 2020-10-13 11:22 be--yourself 阅读(326) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 出生月份 /// 出生日期 /// </summary> /// <returns>星座</returns> public static Func<int, int, string> GetConstellation() { return (x, y) => { 阅读全文
posted @ 2020-10-13 11:16 be--yourself 阅读(458) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取某一字符串第N到第N+1空格的字符 /// </summary> /// <returns></returns> public static Func<int, int, string, string, string> GetStrOfStringInBlan 阅读全文
posted @ 2020-09-30 10:48 be--yourself 阅读(494) 评论(0) 推荐(1) 编辑
摘要: 效果 xaml <DataGridTemplateColumn > <DataGridTemplateColumn.HeaderTemplate> <DataTemplate > <StackPanel HorizontalAlignment="Stretch" VerticalAlignment= 阅读全文
posted @ 2020-08-10 19:00 be--yourself 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: <Grid Grid.Column="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="80"/> <ColumnDefinition/> <ColumnDefinition Width="10"/> <ColumnDefinition/> 阅读全文
posted @ 2020-08-06 12:07 be--yourself 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 布局 Canvas:子控件提供其自己的布局。 DockPanel:子控件与面板的边缘对齐。 Grid:子控件由行和列定位。 StackPanel:子控件垂直或水平堆叠。 VirtualizingStackPanel:子控件在水平或垂直的行上虚拟化并排列。 WrapPanel:子控件按从左到右的顺序定 阅读全文
posted @ 2020-07-28 20:13 be--yourself 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Popup的 PlacementTarget属性为绑定某个控件 Placement为上下左右方位,效果如下 TextBox <TextBox x:Name="txt_Code" Grid.Column="1" Width="200" Height="28" FontSize="18" Horizon 阅读全文
posted @ 2020-07-10 18:18 be--yourself 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 只能输入数字和并保留两位小数点 private void txt_PreviewTextInput(object sender, TextCompositionEventArgs e) { Regex re = new Regex("[^0-9.-]+"); e.Handled = re.IsMat 阅读全文
posted @ 2020-07-10 18:09 be--yourself 阅读(437) 评论(0) 推荐(0) 编辑
摘要: <Path Data="M 0,100 Q 35,140 54,190 Q 100,45 168,0 S 90,40 50,150 Q 40,136 0,100 Z " Fill="GreenYellow" Stretch="Fill" Margin="50,0,0,0" VerticalAlign 阅读全文
posted @ 2020-07-10 15:11 be--yourself 阅读(996) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 提取英文 /// </summary> /// <param name="str"></param> /// <returns></returns> public string GetSubString(string str) { Regex regex = ne 阅读全文
posted @ 2020-07-09 20:36 be--yourself 阅读(996) 评论(0) 推荐(0) 编辑
摘要: 工具下载地址:https://download.csdn.net/download/m0_37137902/12589801 1WPF页面xaml代码 <Window x:Class="CellPhoneNumberAttribution.MainWindow" xmlns="http://sche 阅读全文
posted @ 2020-07-08 17:59 be--yourself 阅读(323) 评论(0) 推荐(0) 编辑