摘要: 1.按照V3文档来开发的话----预支付id所有的sign都是如出一辙,把package的值按顺序拼接好加个key在MD5。传参数给package是要得到预支付id,也就是调用统一支付接口,按文档里面的说法,就是把sign生成后,和package参数一起在调用packageReqHandler.Ge... 阅读全文
posted @ 2014-09-30 17:40 周正明 阅读(613) 评论(1) 推荐(0) 编辑
摘要: public class PrintInvoice { #region 01.获得打印机1获得吧台打印机2获得后厨打印机 /// /// 获得打印机1获得吧台打印机2获得后厨打印机 /// public TcpClient GetPrint(int n = 1) { var clie... 阅读全文
posted @ 2014-06-06 13:59 周正明 阅读(6126) 评论(2) 推荐(2) 编辑
摘要: $(document).ready(function(){var SysSecond = parseInt($('#sec_left').text());var InterValObj = window.setInterval(SetRemainTime, 1000);function SetRemainTime(){if (SysSecond > 0) {SysSecond = SysSecond - 1;var second = Math.floor(SysSecond % 60);var minite = Math.floor((SysSecond / 60) % 阅读全文
posted @ 2012-04-23 18:37 周正明 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 在step2这个页面确定你用的是哪种支付方式,然后导向不同的页面去处理请求。string Pay1 = @"<div class=""selectpayway""> <div class=""payway""> <h2> 网银支付</h2> <ul> <li><a href=""/shop/pay/CheckOrderBank-"+OrderID+ @".html"" 阅读全文
posted @ 2012-04-13 17:28 周正明 阅读(683) 评论(0) 推荐(0) 编辑
摘要: public static string GetRelatedDateTime(object dateTime) { TimeSpan timeSpan = DateTime.Now - Convert.ToDateTime(dateTime); if (timeSpan.Days > 0) { return timeSpan.Days + "天以前"; } if (timeSpan.Hours > 0) { return timeSpan.Hours + "小时以前"; } return timeSpan.Minutes + "分 阅读全文
posted @ 2012-02-24 11:09 周正明 阅读(413) 评论(0) 推荐(0) 编辑
摘要: .producttext p {width:290px;height:280px;font-size:12px;line-height:24px;color:#323232;overflow-x:hidden;overflow-y:auto;}overflow-x:hidden;overflow-y:auto;可以浮动 阅读全文
posted @ 2012-02-22 15:06 周正明 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 二级域名如何写cookie主站:www.zzm.com子站:shop.zzm.com<appSettings> <add key="EJJJCookieDomainName" value="zzm.com"/></appSettings>两个项目下的web.config都写入这个节点写cookie的时候读取此节点的value,把cookie写在此域名下。二级域名也就写进cookie了。#region 写登录Cookie public static int WriteCookie(string UserID, strin 阅读全文
posted @ 2012-02-16 15:50 周正明 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 配置host文件 路径用记事本打开host文件127.0.0.1 www.dmt1.com前面的127.0.0.1 Ip地址是本机后面必须有空格,后面网址就是你的网站的域名。打开iis服务器新建网站点下一步后出现描述,描述的内容是host配置的网站域名。www.dmt1.com前面两个不用填。主机头还是添host域名主目录路径是项目的文件夹路径,只能打到DMT_Web那一层,就是输出页面的那一层。他的里面就是各个文件夹了。选中运行脚本在iis的左边新建的项目右键点属性—选择ASP.NET选项卡,版本选择选择主目录选项卡,点配置选中第一个点编辑进入下面窗口复制可执行文件可执行文件必须是 2.0的 阅读全文
posted @ 2012-02-16 10:06 周正明 阅读(533) 评论(0) 推荐(0) 编辑
摘要: public class Common { public static int WriteCookie(string UserID,string UserName,string UserSort) { HttpCookie userCookie = new HttpCookie("Coop"); userCookie.Domain = "e-jjj.com"; userCookie.HttpOnly = true; userCookie["CoopUName"] = UserName; userCookie["CoopUID 阅读全文
posted @ 2012-02-16 10:02 周正明 阅读(259) 评论(0) 推荐(0) 编辑
摘要: public static bool IsGUID( string expression ){if ( expression != null ){Regex guidRegEx = new Regex ( @"^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$" );return guidRegEx.IsMatch ( expression );}return false;}public static string Ge 阅读全文
posted @ 2012-02-16 09:49 周正明 阅读(422) 评论(0) 推荐(0) 编辑