摘要: 添加明细按钮DataRow dRow = DtDetail.NewRow(); dRow["PriceId"] = ConvertUtil.GetIntFromObject(dr.Cells["PriceId"].Value); dRow["Flower... 阅读全文
posted @ 2014-05-12 13:53 ChineseMoonGod 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Microsoft.Office.Interop.Excel.Range range = null; string saveFileName = ""; bool fileSaved = false; SaveFileDialog ... 阅读全文
posted @ 2014-05-12 13:34 ChineseMoonGod 阅读(284) 评论(0) 推荐(0) 编辑
摘要: OpenFileDialog ofd = new OpenFileDialog(); ofd.Title = "选择导入的文件"; ofd.FilterIndex = 1; ofd.InitialDirect... 阅读全文
posted @ 2014-05-12 13:26 ChineseMoonGod 阅读(601) 评论(0) 推荐(0) 编辑
摘要: Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbo... 阅读全文
posted @ 2014-05-12 13:24 ChineseMoonGod 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 先开启exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure 然后调用INSERT INTO SoyErpBasic... 阅读全文
posted @ 2014-05-06 10:12 ChineseMoonGod 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 一。获取文本 textBox1.Text = Clipboard.GetData("Text").ToString();二。获取图像 pictureBox1.Image = Clipboard.GetImage();三。GetData()的参数解释名称 说明 Bitmap ... 阅读全文
posted @ 2014-05-05 11:26 ChineseMoonGod 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: StreamWriter SW; SW = File.CreateText(@"C:\Documents and Settings\Administrator\桌面\MyTextFile.txt"); SW.WriteLine("File Created ... 阅读全文
posted @ 2014-04-30 15:57 ChineseMoonGod 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 保存image到databasepublic bool SaveImage(string filePath) { bool isSuccess = false; string FilePath = filePath; s... 阅读全文
posted @ 2014-04-30 15:56 ChineseMoonGod 阅读(343) 评论(0) 推荐(0) 编辑
摘要: FilePath.Substring(FilePath.LastIndexOf("\\") + 1) 阅读全文
posted @ 2014-04-30 15:54 ChineseMoonGod 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.this.dsConfig = new DataSet();//使用指定的文件将 XML 架构和数据读入 System.Data.DataSet。 this.dsConfig.ReadXml(System.Windows.Forms.Application.StartupP... 阅读全文
posted @ 2014-04-30 11:20 ChineseMoonGod 阅读(194) 评论(0) 推荐(0) 编辑