Esempio n. 1
0
 /// <summary>
 ///  回复扫码推事件且弹出“消息接收中”提示框消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-13 16:09:53
 public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
 {
     string value = model.ReadKey("ScanCodeInfo");
     switch (value)
     {
         case "1":
             string content = string.Format("项目编号:{0};\n验收状态:{1};\n验收结果:{2};\n报表查看:<a href='{3}'>点击查看</a>", value.Substring(6), "完成", "通过", "http://www.sxajj.gov.cn/1.jpg");
             ProduceText(model, content);
             break;
         case "2":
             List<ArticlesModel> articles = new List<ArticlesModel>();
             ArticlesModel article = new ArticlesModel();
             article.Title = string.Format("一号项目\n项目编号:CX2501;验收状态:完成;验收结果:通过;");
             article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
             article.Url = "http://www.sxajj.gov.cn/1.jpg";
             articles.Add(article);
             article = new ArticlesModel();
             article.Title = string.Format("二号项目\n项目编号:CX2502;验收状态:完成;验收结果:通过;");
             article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
             article.Url = "http://www.sxajj.gov.cn/1.jpg";
             articles.Add(article);
             ProduceNews(model, articles);
             break;
         case "3":
             //生成图片
             string mediaId = "IBH9UW7Ptrvbs9rQHAnu2zonxeq5Jh0uL6WwuYauIEWNF0UlyVMecLV3ploxRc5X";
             ProduceImage(model, mediaId);
             break;
     }
 }
Esempio n. 2
0
 /// <summary>
 ///  回复关注事件的消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-24 14:10:31
 public static void ReplaySubscribeText(Dictionary<string, string> model)
 {
     List<ArticlesModel> articles = new List<ArticlesModel>();
     ArticlesModel article = new ArticlesModel();
     article.Title = "欢迎关注绍兴标点电子公司";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "【公司介绍】";
     article.Description = "开发、销售:电子产品、工控设备;开发:电脑软件;销售:电脑及耗材;计算机软硬件的技术咨询、技术服务、技术转让。";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "【公司地址】";
     article.Description = "中国浙江省绍兴市越城区舜江路683号科创大厦705室";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "欢迎关注绍兴标点电子公司";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "欢迎关注绍兴标点电子公司";
     articles.Add(article);
     StringBuilder sb = new StringBuilder();
     sb.Append("<B>欢迎关注绍兴标点电子公司<B>\n");
     sb.Append("<br/>");
     sb.Append("【公司介绍】\n");
     sb.Append("开发、销售:电子产品、工控设备;开发:电脑软件;销售:电脑及耗材;计算机软硬件的技术咨询、技术服务、技术转让。");
     sb.Append("<br/>");
     sb.Append("【公司地址】\n");
     sb.Append("中国浙江省绍兴市越城区舜江路683号科创大厦705室");
     sb.Append("<br/>");
     sb.Append("【公司微信】\n");
     sb.Append("SxBdDzKjYxGs");
     sb.Append("<br/>");
     ProduceText(model, sb.ToString());
 }
Esempio n. 3
0
 /// <summary>
 ///  回复扫码推事件且弹出“消息接收中”提示框消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-13 16:09:53
 public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
 {
     string value = model.ReadKey("ScanCodeInfo");
     switch (value)
     {
         case "1":
             string content = string.Format("项目编号:{0};\n验收状态:{1};\n验收结果:{2};\n报表查看:<a href='{3}'>点击查看</a>", value.Substring(6), "完成", "通过", "http://www.sxajj.gov.cn/1.jpg");
             ProduceText(model, content);
             break;
         case "2":
             List<ArticlesModel> articles = new List<ArticlesModel>();
             ArticlesModel article = new ArticlesModel();
             article.Title = string.Format("一号项目\n项目编号:CX2501;验收状态:完成;验收结果:通过;");
             article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
             article.Url = "http://www.sxajj.gov.cn/1.jpg";
             articles.Add(article);
             article = new ArticlesModel();
             article.Title = string.Format("二号项目\n项目编号:CX2502;验收状态:完成;验收结果:通过;");
             article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
             article.Url = "http://www.sxajj.gov.cn/1.jpg";
             articles.Add(article);
             ProduceNews(model, articles);
             break;
     }
 }
Esempio n. 4
0
 /// <summary>
 ///  回复扫码推事件且弹出“消息接收中”提示框消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-13 16:09:53
 public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
 {
     string value = model.ReadKey("ScanCodeInfo");
     /*string content = string.Format("项目编号:{0};\n验收状态:{1};\n验收结果:{2};\n报表查看:<a href='{3}'>点击查看</a>", value.Substring(6), "完成", "通过", "http://www.sxajj.gov.cn/1.jpg");
     ProduceText(model, content);*/
     List<ArticlesModel> articles = new List<ArticlesModel>();
     for (int i = 0; i < 2; i++)
     {
         ArticlesModel model = new ArticlesModel();
     }
 }
Esempio n. 5
0
 /// <summary>
 ///  回复扫码推事件且弹出“消息接收中”提示框消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-13 16:09:53
 public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
 {
     string value = model.ReadKey("ScanCodeInfo");
     /*string content = string.Format("项目编号:{0};\n验收状态:{1};\n验收结果:{2};\n报表查看:<a href='{3}'>点击查看</a>", value.Substring(6), "完成", "通过", "http://www.sxajj.gov.cn/1.jpg");
     ProduceText(model, content);*/
     List<ArticlesModel> articles = new List<ArticlesModel>();
     for (int i = 1; i < 3; i++)
     {
         ArticlesModel article = new ArticlesModel();
         article.Title = string.Format("{0}号项目", i == 1 ? "一" : "二");
         article.Description = string.Format("项目编号:{0};\n验收状态:完成;\n验收结果:通过;\n", i == 1 ? "CX2501" : "CX2502");
         article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
         articles.Add(article);
     }
 }
Esempio n. 6
0
 /// <summary>
 ///  回复关注事件的消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-24 14:10:31
 public static void ReplaySubscribeText(Dictionary<string, string> model)
 {
     List<ArticlesModel> articles = new List<ArticlesModel>();
     ArticlesModel article = new ArticlesModel();
     article.Title = "欢迎关注绍兴标点电子公司";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "【公司介绍】\n开发、销售:电子产品、工控设备;开发:电脑软件;销售:电脑及耗材;计算机软硬件的技术咨询、技术服务、技术转让。";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "【公司地址】\n中国浙江省绍兴市越城区舜江路683号科创大厦705室";
     articles.Add(article);
     article = new ArticlesModel();
     article.Title = "【公司微信】\nShaoXinBiaoDian";
     articles.Add(article);
     ProduceNews(model, articles);
 }
Esempio n. 7
0
 /// <summary>
 ///  回复扫码推事件且弹出“消息接收中”提示框消息
 /// </summary>
 /// <param name="model">The model.</param>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-13 16:09:53
 public static void ReplyScanCodeWaitmsg(Dictionary<string, string> model)
 {
     /*string value = model.ReadKey("ScanCodeInfo");
     string content = string.Format("项目编号:{0};\n验收状态:{1};\n验收结果:{2};\n报表查看:<a href='{3}'>点击查看</a>", value.Substring(6), "完成", "通过", "http://www.sxajj.gov.cn/1.jpg");
     ProduceText(model, content);*/
     List<ArticlesModel> articles = new List<ArticlesModel>();
     ArticlesModel article = new ArticlesModel();
     article.Title = string.Format("{0}号项目", i == 1 ? "一" : "二");
     article.Description = string.Format("项目编号:{0};验收状态:完成;验收结果:通过;k", i == 1 ? "CX2501" : "CX2502");
     article.PicUrl = "http://www.sxajj.gov.cn/1.jpg";
     article.Url = "http://www.sxajj.gov.cn/1.jpg";
     articles.Add(article);
     ProduceNews(model, articles);
     //生成图片
     /*string mediaId = "IBH9UW7Ptrvbs9rQHAnu2zonxeq5Jh0uL6WwuYauIEWNF0UlyVMecLV3ploxRc5X";
     ProduceImage(model, mediaId);*/
 }