随笔分类 - ASP.NET MVC
MVC 框架
摘要:唯一性ID生成器: using System; using System.Collections.Generic; using System.Text; namespace Test.Core { /// <summary> /// 唯一性ID生成器 /// </summary> public cl
阅读全文
摘要:demo 条件:两个数据库的数据不能重复 try { int warehouseId = request.Model.WarehouseID; using (var dbSession = dbConnection.GetConnection(warehouseId)) { string click
阅读全文
摘要:DataModel.tt <#@ template debug="false" hostspecific="true" language="C#" #> <#@ import namespace="System" #> <#@ import namespace="System.Linq" #> <#
阅读全文
摘要:string CountDates = string.Join(",", listinsData.Select(_ => _.CountDate.ToString("yyyy-MM-dd")).Distinct().ToArray()); CountDates = string.Format("'{
阅读全文
摘要:public class MemberInventoryDailyReportPOComparer : IEqualityComparer<MemberInventoryDailyReportPO> { public bool Equals(MemberInventoryDailyReportPO
阅读全文
摘要://memberInventoryDataList:list集合 request.Model.PageNumber:当前页 request.Model.PageSize:多少条/页 var memberInventoryDataPageList = memberInventoryDataList.S
阅读全文
摘要:常规操作 Npoi.Mapper的主题内容包括两大块,一个是针对导入,一个是针对导出。接下来我们先来简单演示一下最基础的导入导出。首先我们新建一个Student类作为数据承载的载体,简单定义大致如下 public class Student { [Column("学号")] public int I
阅读全文
摘要:var data = from b in body join m in member on b.MemberID equals m.MemberID into um from m in um.DefaultIfEmpty() join w in warehouse on b.WarehouseID
阅读全文
摘要:C#-图片上传: controller: 1 public JsonResult ExpressDeliverySign(ExpressDeliverySign_LO_IP model) 2 { 3 HttpFileCollectionBase files = Request.Files; 4 if
阅读全文
摘要:C#查询:数据查询层 public List<PackageBox> GetPackageBoxList(int memberID) { using (var wmsconn = DapperConnection.GetConnection(DatabaseEnum.WMS_Main_Read.To
阅读全文
摘要://定义显示的数据 var _datas = { chart4: { xAxisData: [], series: { data1: [] } } }; //模型折线图 var chart4 = echarts.init(document.getElementById('pie2')); funct
阅读全文
摘要:1 //定义显示的数据 2 3 var _datas = { 4 chart1: { 5 xAxisData: [], 6 series: { 7 data1: [], 8 data2: [] 9 } 10 } 11 }; 12 13 14 15 //模型柱状图 16 var chart1 = ec
阅读全文