随笔分类 -  .net mvc

摘要:/// <summary> /// 有水印 /// </summary> /// <param name="pdfUrl">pdf文件路径</param> /// <param name="imagePath">输出图片路径</param> public static void SpirePdfTo 阅读全文
posted @ 2023-08-12 12:41 .net&new 阅读(229) 评论(0) 推荐(1) 编辑
摘要:string mp4URL = Server.MapPath("~/Upload/") + "33.mp4"; string OutURL = Server.MapPath("~/Upload/") + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".p 阅读全文
posted @ 2023-08-11 21:19 .net&new 阅读(232) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Microsoft.WindowsAPICodePack.Shell;using S 阅读全文
posted @ 2023-08-11 20:46 .net&new 阅读(90) 评论(0) 推荐(0) 编辑
摘要:using Service;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using wgh.model;namespace Wgh.stud 阅读全文
posted @ 2023-07-06 21:44 .net&new 阅读(9) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.ComponentModel.DataAnnotations.Schema;using System.Linq;using Dapper.Lite; namespace wgh.mo 阅读全文
posted @ 2023-07-06 21:41 .net&new 阅读(19) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using wgh.model.Models;using DBHelper;u 阅读全文
posted @ 2023-07-06 21:40 .net&new 阅读(2) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using wgh.model.Models;using DBHelper;n 阅读全文
posted @ 2023-07-06 21:39 .net&new 阅读(20) 评论(0) 推荐(0) 编辑
摘要:安装 autofac 安装 autofac.mvc 注册代码 var builder = new ContainerBuilder(); builder.RegisterControllers(typeof(MvcApplication).Assembly).PropertiesAutowired( 阅读全文
posted @ 2023-07-06 21:35 .net&new 阅读(20) 评论(0) 推荐(0) 编辑
摘要://选中checkbox事件种类 string IncidentType = dtMain.Rows.Count > 0 ? dtMain.Rows[0]["事件种类"].ToString() : ""; var IncidentTypeArray = IncidentType.Split(',') 阅读全文
posted @ 2023-07-04 20:10 .net&new 阅读(6) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 验证ip地址 /// </summary> /// <param name="ipAddress"></param> /// <returns></returns> public static bool ValidateIPAddress(string ipAdd 阅读全文
posted @ 2022-07-27 09:05 .net&new 阅读(45) 评论(0) 推荐(0) 编辑
摘要:@model StudentSys.Models.SysRole@{ ViewBag.Title = "更新角色"; Layout = null;}<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>更新角色</title> <meta 阅读全文
posted @ 2022-05-22 10:45 .net&new 阅读(144) 评论(0) 推荐(0) 编辑
摘要:@{ ViewBag.Title = "添加角色"; Layout = null;}<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>添加角色</title> <meta name="viewport" content="width= 阅读全文
posted @ 2022-05-22 10:43 .net&new 阅读(74) 评论(0) 推荐(0) 编辑
摘要:后台代码: using Newtonsoft.Json;using StudentSys.data;using StudentSys.Filter;using StudentSys.Models;using System;using System.Collections.Generic;using 阅读全文
posted @ 2022-05-22 10:33 .net&new 阅读(128) 评论(0) 推荐(0) 编辑
摘要:public string Delete() { int id = int.Parse(Request["idsStr"]); YuanGongDb dbcontext = new YuanGongDb(); var user = dbcontext.SysUser.FirstOrDefault(o 阅读全文
posted @ 2022-05-22 10:06 .net&new 阅读(63) 评论(0) 推荐(0) 编辑
摘要:@model StudentSys.Models.SysUser@{ ViewBag.Title = "更新用户"; Layout = null;} <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>更新用户</title> <met 阅读全文
posted @ 2022-05-22 10:05 .net&new 阅读(152) 评论(0) 推荐(0) 编辑
摘要:@{ ViewBag.Title = "添加用户"; Layout = null;} <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>添加用户</title> <meta name="viewport" content="width 阅读全文
posted @ 2022-05-22 10:04 .net&new 阅读(127) 评论(0) 推荐(0) 编辑
摘要:效果图片: @{ ViewBag.Title = "员工列表"; Layout = null;} <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>员工列表</title> <meta name="viewport" content= 阅读全文
posted @ 2022-05-22 10:01 .net&new 阅读(148) 评论(0) 推荐(0) 编辑
摘要:@{ Layout = null;}<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>员工管理系统</title> <meta name="viewport" content="width=device-width, initial- 阅读全文
posted @ 2022-05-22 09:59 .net&new 阅读(274) 评论(1) 推荐(0) 编辑
摘要:@{ ViewBag.Title = "员工登录"; Layout = null;} <!DOCTYPE html><html lang="en" class="page-fill"><head> <meta charset="UTF-8"> <title>员工登录</title> <meta na 阅读全文
posted @ 2022-05-22 09:57 .net&new 阅读(254) 评论(0) 推荐(0) 编辑
摘要:class User { public int Id { get; set; } public string Name { get; set; } public string Gender { get; set; } } class Phone { public int UserId { get; 阅读全文
posted @ 2022-05-21 11:16 .net&new 阅读(764) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示