上一页 1 ··· 8 9 10 11 12
摘要: #region 微支付退款查询string Nonce = CreateRandomCode(15).ToLower(); //生成15个随机字符string sign1 = "appid=" + PayHandle.AppID.ToString() + //微信公众号的APPID "&mch... 阅读全文
posted @ 2014-12-09 11:03 @睦 阅读(439) 评论(0) 推荐(0) 编辑
摘要: /// /// 微支付退款申请/// /// /// /// public bool Refund(HttpContext context, ref string returnMsg) { int UID = 0; string WXO_Remark = "";//退款说明 if (string.I... 阅读全文
posted @ 2014-12-09 10:50 @睦 阅读(2246) 评论(0) 推荐(1) 编辑
摘要: //使用微信共享收货地址在跳转到当前页面的路径上必须要包含Code和state这两个获取用户信息的参数//例如 &SID=&code=&state=1&showwxpaytitle=1" //class="right" >安全支付/// /// 共享收货地址/// /// /// /// priva... 阅读全文
posted @ 2014-12-05 17:18 @睦 阅读(548) 评论(0) 推荐(0) 编辑
摘要: #region 使用微支付统一接口,返回预支付ID/// /// 使用微支付统一接口,返回预支付ID/// /// /// /// private bool PayAccount(HttpContext context,ref string returnMsg){ int UID = 0; int ... 阅读全文
posted @ 2014-12-05 15:35 @睦 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: //添加引用NPOI.dll//添加using NPOI.HSSF.UserModel;/// /// 导出数据到Excel /// /// /// public bool ExportOrderToExcel(ref string returnMsg) ... 阅读全文
posted @ 2014-11-21 11:01 @睦 阅读(1459) 评论(0) 推荐(0) 编辑
摘要: /// /// 创建TXT文本并往里面写入数据/// /// 要创建的文件名,不要后缀名protected void WriteTxt(string FileName) { Encoding code = Encoding.GetEncoding("gb2312"); //编码格式 strin... 阅读全文
posted @ 2014-11-18 17:15 @睦 阅读(3896) 评论(0) 推荐(0) 编辑
摘要: /// /// 将Excel表里的数据填充到DataSet中 /// /// Excel文件的路径(包含文件名) /// Excel的文件名 /// public static DataSet ExecleDs... 阅读全文
posted @ 2014-11-18 16:02 @睦 阅读(740) 评论(0) 推荐(0) 编辑
摘要: //需要在bin里面添加Interop.Microsoft.Office.Interop.Excel.dll 的引用//添加引用using System.Data;/// /// 导出数据到Excel /// /// 查询条件 /// /// public... 阅读全文
posted @ 2014-11-18 15:45 @睦 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: //在web.config添加发送邮件的几个重要属性 方便更改//发件人的用户名 //发件人的密码 //SMTP服务器 //收件人地址 如果有多个用","隔开//添加引用using System.Net.Mail; /// /// 使用邮箱发送邮... 阅读全文
posted @ 2014-11-18 14:57 @睦 阅读(278) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12