摘要: 1 [HttpGet] 2 public virtual ActionResult ExportExcel(string guid) 3 { 4 //1.取出緩存 5 DataTable dtTemp = (DataTable)Cache.GetCache(guid); 6 //2. 取得實際數據 阅读全文
posted @ 2020-05-27 16:27 Yookee 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 简易JSON字符串转换 1 /// <summary> 2 /// Json 字符串 To DataTable数据集合 3 /// </summary> 4 /// <param name="json"></param> 5 /// <returns></returns> 6 public stat 阅读全文
posted @ 2020-05-21 15:46 Yookee 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 之前写过一次批量写入的功能,但是,这次还是踩坑了,记录一下: Oracle.DataAccess 本地调试的时候,目标平台要调整为x86,才可顺利执行,放到服务器上的时候要改为x64位。 public static bool BulkCopyToOraDB(DataTable dt,string c 阅读全文
posted @ 2020-05-20 18:33 Yookee 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Http请求 讀取,解析 1 [AcceptVerbs(HttpVerbs.Post)] 2 public ActionResult importExcel() 3 { 4 try 5 { 6 HttpFileCollectionBase files = HttpContext.Request.Fi 阅读全文
posted @ 2020-05-20 16:55 Yookee 阅读(386) 评论(1) 推荐(0) 编辑
摘要: // 点击打印按钮 private void butPrint_MouseUp(object sender, RoutedEventArgs e) //打印 { try { if (RemoveDG.Items.Count == 0) { MessageBox.Show("請先進行資料查詢!"); 阅读全文
posted @ 2020-05-20 14:19 Yookee 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 最近工作需求,需求将SQLServer 中的表及数据移转到Oracle数据库 简述一下遇到的问题及解决方案,问题很多,整理一下,后续可能会慢慢更新 1. 时间类型不同,转到Oracle 中后会显示为 TIMESTAMP(6),需改为date 类型 Oracle select a.table_name 阅读全文
posted @ 2020-05-13 18:47 Yookee 阅读(270) 评论(0) 推荐(0) 编辑
摘要: private void imgSearchMpID_MouseUp(object sender, MouseButtonEventArgs e) { try { Module.Forms.FrmSearchMp lo_FrmSearchMp = new Module.Forms.FrmSearch 阅读全文
posted @ 2020-05-12 10:05 Yookee 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 因功能需求,需要在页面显示实时时间 1 private void OnTimerCallback(Object obj) 2 { 3 po_SvrTime = po_SvrTime.AddSeconds(1); 4 5 this.Dispatcher.BeginInvoke(System.Windo 阅读全文
posted @ 2020-05-11 17:56 Yookee 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 获取DataGrid 的表头 public string[] getCellsDetail(DataGrid dgDetail) { try { string[] strPath=new string[dgDetail.Columns.Count]; string path = string.Emp 阅读全文
posted @ 2020-05-11 17:55 Yookee 阅读(416) 评论(0) 推荐(0) 编辑
摘要: public class PagingHelper { public static DataTable _dt; //每页显示多少条 public static int pageNum = 20; //当前是第几页 public static int pIndex = 1; //对象 //priva 阅读全文
posted @ 2020-05-09 16:56 Yookee 阅读(157) 评论(0) 推荐(0) 编辑