摘要: #region 设置单元格内容的显示格式 private void dataGridView_main_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { #region 判断 int requestType_col... 阅读全文
posted @ 2018-10-08 10:22 蒙蒙浮霁月 阅读(827) 评论(0) 推荐(0) 编辑
摘要: int index = dataGridView_main.CurrentRow.Index; //取得选中行的索引 int pe_batch_id = Convert.ToInt32(dataGridView_main.Rows[index].Cells["pe_batch_id"].Value); //获取单元格列名为‘pe_batch_id’的值 阅读全文
posted @ 2018-10-08 10:20 蒙蒙浮霁月 阅读(2277) 评论(0) 推荐(0) 编辑
摘要: #region 单击单元格 private void dataGridView_main_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (dataGridView_main.Colu... 阅读全文
posted @ 2018-10-08 10:18 蒙蒙浮霁月 阅读(5963) 评论(0) 推荐(0) 编辑
摘要: #region 绘制 private void dataGridView_main_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { int status_column_index = 14;//会诊状态所在列 DataGridView... 阅读全文
posted @ 2018-10-08 10:14 蒙蒙浮霁月 阅读(465) 评论(0) 推荐(0) 编辑
摘要: //bool bResult = true; //for (int irow = 0; irow row = standardcells[irow]; // for (int icol = 0; icol < row.Count(); icol++) // { // ... 阅读全文
posted @ 2018-10-08 10:13 蒙蒙浮霁月 阅读(481) 评论(0) 推荐(0) 编辑
摘要: /// /// List转xml /// /// /// private void button1_Click(object sender, EventArgs e) { try { List std = ne... 阅读全文
posted @ 2018-10-08 10:12 蒙蒙浮霁月 阅读(1085) 评论(0) 推荐(0) 编辑
摘要: /// /// 数据校验 /// /// /// /// public bool Coparedata(List standardlist, List comparelist) { if (standardlist.Count != comp... 阅读全文
posted @ 2018-10-08 10:11 蒙蒙浮霁月 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #region 获取DataTable前几条数据 /// /// 获取DataTable前几条数据 /// /// 前N条数据 /// 源DataTable /// public static DataTable DtSelectTop(int TopItem, Da... 阅读全文
posted @ 2018-10-08 10:09 蒙蒙浮霁月 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Checked:当ShowSelectBox为true时确定是否选中复选框,指示用户选择了某个值。 ShowCheckBox:当此属性设置为true时,该控件中的选定日期旁边将显示一个复选框。当选中该复选框时,选定的日期值可以更新。当复选框为空时,值显示为不可用。 ShowUPDown:此属性指示是 阅读全文
posted @ 2018-10-08 10:08 蒙蒙浮霁月 阅读(2089) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/smartsmile2012/article/details/53383716 阅读全文
posted @ 2018-10-08 10:05 蒙蒙浮霁月 阅读(1745) 评论(0) 推荐(0) 编辑
摘要: 子窗体 主窗体 阅读全文
posted @ 2018-10-08 10:01 蒙蒙浮霁月 阅读(194) 评论(0) 推荐(0) 编辑
摘要: if (resultCaseInfo != null && resultCaseInfo.data != null && resultCaseInfo.data.documents != null && resultCaseInfo.data.documents.Count() > 0) { ... 阅读全文
posted @ 2018-10-08 09:55 蒙蒙浮霁月 阅读(192) 评论(0) 推荐(0) 编辑