随笔分类 - C# 帮助类
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wdj { /// /// 操作返回结果,使用时建议判断State状态 /// public class Result : ResultHandler { ...
阅读全文
摘要:using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace Wdj { /// /// 自定义处理结果抽象类 /// /// 返回数据类型 ...
阅读全文
摘要:function jsonDateFormat(jsonDate) { try { var date = new Date(parseInt(jsonDate.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? ...
阅读全文
摘要:jQuery.extend({ createUploadIframe: function(id, uri) { var frameId = 'jUploadFrame' + id; var io = document.createElement('iframe'); io.id = frameId; io.nam...
阅读全文
摘要:function SetCookieFun(name, value)//两个参数,一个是cookie的名子,一个是值! 存入cookie { var exp = new Date(); //new Date("December 31, 9998"); 保存30分钟 exp.setTime(exp.getTime() + 30 * 60 * 1000); docum...
阅读全文
摘要:/// <summary> /// 查询已开启的省 /// </summary> /// <returns></returns> public List<city_provcn> GetProvcnList() { using (eylivesEntities context = new eyliv
阅读全文
摘要:function ShengList() { //alert("准备展示省份并调用市"); $.ajax({ url: '/City/GetProvcnList', dataType: 'json', contentType: 'application/json;charset=utf-8', success: fu...
阅读全文
摘要:function uploadPropic(file) { $.ajaxFileUpload({ url: "/InFo/Uploadpropic", secureuri: false, datatype: 'JSON', fileElementId: file.id, ...
阅读全文
摘要:#region 上传到服务器图片 [HttpPost] public JsonResult Uploadpropic() { string msg = string.Empty; string filePath = string.Empty; string succes...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using Water; namespace Water.Helper { public class PagedList : List { /// /// 页索引 /// pub...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Application.Common { public class CookieHelper { public enum TimeUtil { ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.Web; namespace App
阅读全文
摘要:#region 时间输出20161020123002 /// <summary> /// 输出20161020123002 /// </summary> /// <param name="number">输出数字时间例20161020123002</param> public static stri
阅读全文

浙公网安备 33010602011771号