摘要: 1 View Code@{ ViewBag.Title = "获取焦点图"; Layout = null; List focusList = ViewData["FocusPic"] as List; string AccountUrl = CommonFun.GetAppSettigs("Acc... 阅读全文
posted @ 2014-11-19 17:47 混世小郎君 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 工作流表W_WokFlowWf_IdintWf_Namevarchar(50)Wf_Remarkvarchar(50)Wf_IsDelbitWf_AddTimedatetime2 财务报销流程 财务报销流程 False 2013-06-10 00:00:00.0005 请假流程 请假流程 False... 阅读全文
posted @ 2014-05-28 16:25 混世小郎君 阅读(10115) 评论(0) 推荐(2) 编辑
摘要: 如何在视图中利用 viewData参数和model参数,示例如下 这是Index视图 @Html.Partial("TestPartial", new Course.Models.Employee{ ID=1, Name="sam"}, new ViewDataD... 阅读全文
posted @ 2014-05-27 16:24 混世小郎君 阅读(1668) 评论(0) 推荐(0) 编辑
摘要: public string CreateAdvExcel(IList lt) { StringBuilder builder = new StringBuilder(); Random rn = new Random(); ... 阅读全文
posted @ 2014-05-22 12:21 混世小郎君 阅读(665) 评论(0) 推荐(0) 编辑
摘要: var date = new Date(parseInt(str.replace(/\/Date\((-?\d+)\)\//, '$1'))); var d= date.getFullYear() + "-" + date.getMonth() + ... 阅读全文
posted @ 2014-05-19 14:14 混世小郎君 阅读(607) 评论(0) 推荐(0) 编辑
摘要: List listGroup = sysGroupBll.Where(o => o.IsSb == true, o => o.Id).ToList(); List items = new List(); foreach (var group in listGroup) { items.Add(new... 阅读全文
posted @ 2014-05-15 11:50 混世小郎君 阅读(183) 评论(0) 推荐(0) 编辑
摘要: /// /// 根据 User Agent 获取操作系统名称 /// private static string GetOsName(string userAgent) { string osVersion = "Unknown"; if (string.IsNullOrEmpty(userA... 阅读全文
posted @ 2014-04-15 13:43 混世小郎君 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: using System;using System.ComponentModel.DataAnnotations;public class LoginModel { [Display(Name = "用户名")] public string UserName { get; set; } publi... 阅读全文
posted @ 2014-04-14 15:04 混世小郎君 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #region 验证身份证是否有效 /// /// 验证身份证是否有效 /// /// /// public static bool IsIDCard(string Id) { if (Id.Length == 18) { bool check = IsIDCard18(Id); return check; } else if (Id.Length == 15) { bool check = IsIDCard15(Id); return check; } else { return false; } } public static bool IsIDCard18(string Id)... 阅读全文
posted @ 2014-04-10 16:37 混世小郎君 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: /// /// 去除html标签 /// public static string ClearHtmlTag(string strText) { try { string html = strText; html = Regex.Replace(html, @"]+/?>|]+>", "", RegexOptions.IgnoreCase); html = Regex.Replace(html, @"-->", "", RegexOptions.IgnoreCase); html = Regex. 阅读全文
posted @ 2014-04-10 16:16 混世小郎君 阅读(555) 评论(0) 推荐(0) 编辑