2021年3月18日
摘要: 前提需要先把对应列绑定一个值 List<PubType> settleTypeList = null; IPSettleService ipSettleService = new IPSettleService(); settleTypeList = ipSettleService.GetSettl 阅读全文
posted @ 2021-03-18 09:59 Smile向前 阅读(767) 评论(0) 推荐(0) 编辑
  2020年6月19日
摘要: 字符串转utf-8 UTF8Encoding utf8 = new UTF8Encoding(); byte[] encodedBytes = utf8.GetBytes(json); utf-8转字符串 string inputString = System.Text.Encoding.UTF8. 阅读全文
posted @ 2020-06-19 15:20 Smile向前 阅读(3175) 评论(0) 推荐(0) 编辑
  2019年12月11日
摘要: //list获取某一列的和 decimal total = detailList.Sum(n => n.Amount); 可空类型转换int? int int? test = null; //定义一个int?赋值空 int a = test ?? 0; //test??0 当test不为空时,直接返 阅读全文
posted @ 2019-12-11 10:27 Smile向前 阅读(72) 评论(0) 推荐(0) 编辑
摘要: gridView.Columns[0].OptionsColumn.AllowEdit = false;//第一列不可编辑 阅读全文
posted @ 2019-12-11 10:26 Smile向前 阅读(329) 评论(0) 推荐(0) 编辑
  2019年9月11日
摘要: private void BtnReset_Click(object sender, EventArgs e) { this.FindButton(this); } private void FindButton(Control c) { if (c.Controls != null) { fore 阅读全文
posted @ 2019-09-11 10:41 Smile向前 阅读(459) 评论(0) 推荐(0) 编辑
  2019年8月15日
摘要: /// <summary> /// 定义lable超过第一页是否隐藏 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void LablePrintOnPage(object sender, 阅读全文
posted @ 2019-08-15 15:17 Smile向前 阅读(507) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 设置默认打印机 /// </summary> public class Externs { [DllImport("winspool.drv")] public static extern bool SetDefaultPrinter(String Name); 阅读全文
posted @ 2019-08-15 10:45 Smile向前 阅读(592) 评论(0) 推荐(0) 编辑
  2019年6月5日
摘要: item.value??0 阅读全文
posted @ 2019-06-05 14:38 Smile向前 阅读(1373) 评论(0) 推荐(0) 编辑
  2019年1月11日
摘要: function fun_date(a){ var date1 = new Date(), time1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate(); var date2 = new Date(date1); dat 阅读全文
posted @ 2019-01-11 13:16 Smile向前 阅读(2210) 评论(0) 推荐(0) 编辑
  2018年11月30日
摘要: UPDATE dbo.PingDingItem SET PinYin=REPLACE(PinYin,'熏','X') WHERE id IN(213) 替换函数 select distinct stuff((SELECT ',' + TypeName+'('+DoctorName+')' FROM 阅读全文
posted @ 2018-11-30 17:02 Smile向前 阅读(204) 评论(0) 推荐(0) 编辑