摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wdj { /// /// 操作返回结果,使用时建议判断State状态 /// public class Result : ResultHandler { ... 阅读全文
posted @ 2017-05-24 08:40 冫凌晨 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace Wdj { /// /// 自定义处理结果抽象类 /// /// 返回数据类型 ... 阅读全文
posted @ 2017-05-24 08:38 冫凌晨 阅读(2086) 评论(0) 推荐(0) 编辑
摘要: function jsonDateFormat(jsonDate) { try { var date = new Date(parseInt(jsonDate.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? ... 阅读全文
posted @ 2017-05-16 11:44 冫凌晨 阅读(298) 评论(0) 推荐(0) 编辑
摘要: jQuery.extend({ createUploadIframe: function(id, uri) { var frameId = 'jUploadFrame' + id; var io = document.createElement('iframe'); io.id = frameId; io.nam... 阅读全文
posted @ 2017-05-15 13:25 冫凌晨 阅读(237) 评论(0) 推荐(0) 编辑
摘要: function SetCookieFun(name, value)//两个参数,一个是cookie的名子,一个是值! 存入cookie { var exp = new Date(); //new Date("December 31, 9998"); 保存30分钟 exp.setTime(exp.getTime() + 30 * 60 * 1000); docum... 阅读全文
posted @ 2017-05-15 13:23 冫凌晨 阅读(127) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 查询已开启的省 /// </summary> /// <returns></returns> public List<city_provcn> GetProvcnList() { using (eylivesEntities context = new eyliv 阅读全文
posted @ 2017-05-15 13:21 冫凌晨 阅读(118) 评论(0) 推荐(0) 编辑
摘要: function ShengList() { //alert("准备展示省份并调用市"); $.ajax({ url: '/City/GetProvcnList', dataType: 'json', contentType: 'application/json;charset=utf-8', success: fu... 阅读全文
posted @ 2017-05-15 13:17 冫凌晨 阅读(254) 评论(0) 推荐(0) 编辑
摘要: function uploadPropic(file) { $.ajaxFileUpload({ url: "/InFo/Uploadpropic", secureuri: false, datatype: 'JSON', fileElementId: file.id, ... 阅读全文
posted @ 2017-05-15 13:15 冫凌晨 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #region 上传到服务器图片 [HttpPost] public JsonResult Uploadpropic() { string msg = string.Empty; string filePath = string.Empty; string succes... 阅读全文
posted @ 2017-05-15 13:14 冫凌晨 阅读(253) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Draw... 阅读全文
posted @ 2017-05-15 13:11 冫凌晨 阅读(326) 评论(0) 推荐(0) 编辑