随笔分类 -  C# 帮助类

摘要: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 冫凌晨 阅读(1454) 评论(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 冫凌晨 阅读(2137) 评论(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 冫凌晨 阅读(336) 评论(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 冫凌晨 阅读(250) 评论(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 冫凌晨 阅读(133) 评论(0) 推荐(0)
摘要:/// <summary> /// 查询已开启的省 /// </summary> /// <returns></returns> public List<city_provcn> GetProvcnList() { using (eylivesEntities context = new eyliv 阅读全文
posted @ 2017-05-15 13:21 冫凌晨 阅读(142) 评论(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 冫凌晨 阅读(261) 评论(0) 推荐(0)
摘要:function uploadPropic(file) { $.ajaxFileUpload({ url: "/InFo/Uploadpropic", secureuri: false, datatype: 'JSON', fileElementId: file.id, ... 阅读全文
posted @ 2017-05-15 13:15 冫凌晨 阅读(253) 评论(0) 推荐(0)
摘要:#region 上传到服务器图片 [HttpPost] public JsonResult Uploadpropic() { string msg = string.Empty; string filePath = string.Empty; string succes... 阅读全文
posted @ 2017-05-15 13:14 冫凌晨 阅读(260) 评论(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 冫凌晨 阅读(348) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.ComponentModel.DataAnnotations; using System.IO; using System.Text; using System.Threading.Tasks; using System.Web; usi... 阅读全文
posted @ 2017-05-15 13:11 冫凌晨 阅读(277) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc.Html; using System.Web.Routing; using Water.Helper; using System.Web.Mvc.Ajax; namespace Sys... 阅读全文
posted @ 2017-05-13 10:17 冫凌晨 阅读(150) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using Water; namespace Water.Helper { public class PagedList : List { /// /// 页索引 /// pub... 阅读全文
posted @ 2017-05-13 10:16 冫凌晨 阅读(152) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Application.Common { public class CookieHelper { public enum TimeUtil { ... 阅读全文
posted @ 2017-05-13 10:11 冫凌晨 阅读(203) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.Web; namespace App 阅读全文
posted @ 2017-05-13 10:09 冫凌晨 阅读(459) 评论(0) 推荐(0)
摘要:#region 时间输出20161020123002 /// <summary> /// 输出20161020123002 /// </summary> /// <param name="number">输出数字时间例20161020123002</param> public static stri 阅读全文
posted @ 2017-05-13 10:05 冫凌晨 阅读(189) 评论(0) 推荐(0)