摘要: 开发软件为VS2010 免去了安装插件之类的麻烦。最终效果图: 饼状图:前台设置:设置参数为:1:Titles, 添加一个序列,在Text中设置名字.2:Series ,添加一个序列,选择ChartType 选择Pie后台代码如下: private void BindData() { DataView dv = new DataView(ChartMng.GetDs().Tables[0]); //Chart1.Series["Series1"].Label = "#PERCENT{P}"; //百分比 Char... 阅读全文
posted @ 2013-11-26 09:35 xw2cc 阅读(522) 评论(0) 推荐(0) 编辑
摘要: DBUtility项目中的DbHelperSQL.cs (找自己对应的数据库类型)修改前20行中的数据库连接字符串获取方式为://数据库连接字符串(web.config来配置),多数据库可使用DbHelperSQLP来实现. // public static string connectionString = PubConstant.ConnectionString; //配置winform的获取方法 public static string connectionString = System.Configuration.Configu... 阅读全文
posted @ 2013-11-15 09:02 xw2cc 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: 解决的办法,是将其修改为:01./// 02. /// 更新一条数据 03. /// 04. public void Update(Maticsoft.Model.payment model) 05. { 06. StringBuilder strSql=new StringBuilder(); 07. strSql.Append("update payment set "); 08. strSql.Append("fj_id=ISNULL(@fj_... 阅读全文
posted @ 2013-11-15 08:59 xw2cc 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 錯誤:無法載入檔案或組件 'Maticsoft.Web' 或其相依性的其中之一。 試圖載入格式錯誤的程式。解決:新增應用程序池——高級設置——啟用32位應用程式——True 阅读全文
posted @ 2013-11-04 09:44 xw2cc 阅读(258) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Collections;using System.Text;using System.Configuration;using System.Web;using System.Data;using System.Data.SqlClient;using System.Timers;using System.Threading;namespace MailApplication{ class Program { public static bool IsS... 阅读全文
posted @ 2013-09-03 15:59 xw2cc 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #region 导出Excel方法 //导出到Excel按钮 protected void btnExport_Click(object sender, EventArgs e) { Export("application/ms-excel", "字段数据.xls"); } private void Export(string FileType, string FileName) { //清楚分页 gridView.AllowPag... 阅读全文
posted @ 2013-08-26 16:34 xw2cc 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #region //'Revision: 1.00 Created Date: 2013/08/02 Created ID: Una [#1300071]增加多選框 /// /// Session獲取多選框值 /// private void RememberOldValues() { ArrayList categoryIDList = new ArrayList(); string index = ""; foreach (GridViewRow ro... 阅读全文
posted @ 2013-08-21 13:47 xw2cc 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /// /// 根據gridview導出excel /// /// public void DGToExcel(System.Web.UI.Control ctl) { HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=Excel.xls"); HttpContext.Current.Response.Charset = "UTF-8"; ... 阅读全文
posted @ 2013-08-19 08:46 xw2cc 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 是指模拟IIS身份验证 導入錯誤時可刪除protected void btnImport_Click(object sender, EventArgs e) { if (FileUpload1.HasFile == false)//HasFile用来检查FileUpload是否有指定文件 { Response.Write(" "); return;//当无文件时,返回 } string IsXls = System.IO.Path.GetExtension(FileUpload1.Fi... 阅读全文
posted @ 2013-08-19 08:44 xw2cc 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Create TRIGGER [dbo].[trigInstructionsDelete]ON dbo.Instructions instead OF DELETEAS BEGIN DECLARE @InsId INT SELECT @InsId=InstructionsID FROM deleted --删除 DELETE dbo.Transfer WHERE InstructionsID=@InsId DELETE dbo.Instructions WHERE InstructionsID=@InsIdEND 阅读全文
posted @ 2013-08-16 10:47 xw2cc 阅读(182) 评论(0) 推荐(0) 编辑