摘要:
1 View Code@{ ViewBag.Title = "获取焦点图"; Layout = null; List focusList = ViewData["FocusPic"] as List; string AccountUrl = CommonFun.GetAppSettigs("Acc... 阅读全文
摘要:
工作流表W_WokFlowWf_IdintWf_Namevarchar(50)Wf_Remarkvarchar(50)Wf_IsDelbitWf_AddTimedatetime2 财务报销流程 财务报销流程 False 2013-06-10 00:00:00.0005 请假流程 请假流程 False... 阅读全文
摘要:
如何在视图中利用 viewData参数和model参数,示例如下 这是Index视图 @Html.Partial("TestPartial", new Course.Models.Employee{ ID=1, Name="sam"}, new ViewDataD... 阅读全文
摘要:
public string CreateAdvExcel(IList lt) { StringBuilder builder = new StringBuilder(); Random rn = new Random(); ... 阅读全文
摘要:
var date = new Date(parseInt(str.replace(/\/Date\((-?\d+)\)\//, '$1'))); var d= date.getFullYear() + "-" + date.getMonth() + ... 阅读全文
摘要:
List listGroup = sysGroupBll.Where(o => o.IsSb == true, o => o.Id).ToList(); List items = new List(); foreach (var group in listGroup) { items.Add(new... 阅读全文
摘要:
/// /// 根据 User Agent 获取操作系统名称 /// private static string GetOsName(string userAgent) { string osVersion = "Unknown"; if (string.IsNullOrEmpty(userA... 阅读全文
摘要:
using System;using System.ComponentModel.DataAnnotations;public class LoginModel { [Display(Name = "用户名")] public string UserName { get; set; } publi... 阅读全文
摘要:
#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)... 阅读全文
摘要:
/// /// 去除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. 阅读全文