From 6f34ab1ed6f8cb79a012a30a7b687e362c6f16c2 Mon Sep 17 00:00:00 2001 From: LR-20210131IOQH\Administrator <jackcold@163.com> Date: 星期四, 10 六月 2021 19:08:41 +0800 Subject: [PATCH] 打卡判断,增加前端浏览器mac获取,当mac获取为空时不判断 --- zhengcaioa/Model/zhengcaioaContext.cs | 72 +++++++++++++++++++++++++---------- 1 files changed, 51 insertions(+), 21 deletions(-) diff --git a/zhengcaioa/Model/zhengcaioaContext.cs b/zhengcaioa/Model/zhengcaioaContext.cs index ee8df02..5bd4626 100644 --- a/zhengcaioa/Model/zhengcaioaContext.cs +++ b/zhengcaioa/Model/zhengcaioaContext.cs @@ -210,9 +210,9 @@ modelBuilder.Entity<AdmAttendanceRule>(entity => { - entity.HasNoKey(); - entity.ToTable("ADM_AttendanceRules"); + + entity.Property(e => e.Id).HasMaxLength(50); entity.Property(e => e.Absenteeism) .HasColumnType("decimal(18, 2)") @@ -247,10 +247,6 @@ .IsRequired() .HasMaxLength(50) .HasColumnName("holiday"); - - entity.Property(e => e.Id) - .IsRequired() - .HasMaxLength(50); entity.Property(e => e.LatePayment1) .HasColumnType("decimal(18, 2)") @@ -340,21 +336,19 @@ entity.Property(e => e.Weekend1).HasColumnName("weekend"); entity.Property(e => e.WorkingEnd) - .IsRequired() .HasMaxLength(50) .HasColumnName("working_end"); entity.Property(e => e.WorkingStart) - .IsRequired() .HasMaxLength(50) .HasColumnName("working_start"); }); modelBuilder.Entity<AdmAttendanceRulesDtl>(entity => { - entity.HasNoKey(); - entity.ToTable("ADM_AttendanceRules_dtl"); + + entity.Property(e => e.Id).HasMaxLength(50); entity.Property(e => e.Creater) .IsRequired() @@ -366,10 +360,6 @@ .HasColumnType("datetime") .HasColumnName("createtime") .HasDefaultValueSql("(getdate())"); - - entity.Property(e => e.Id) - .IsRequired() - .HasMaxLength(50); entity.Property(e => e.Modifier) .IsRequired() @@ -385,7 +375,6 @@ entity.Property(e => e.Name).HasMaxLength(200); entity.Property(e => e.Pid) - .IsRequired() .HasMaxLength(50) .HasColumnName("pid"); @@ -396,14 +385,12 @@ .HasDefaultValueSql("('A')"); entity.Property(e => e.ValueEnd) - .HasColumnType("date") - .HasColumnName("value_end") - .HasDefaultValueSql("(getdate())"); + .HasMaxLength(50) + .HasColumnName("value_end"); entity.Property(e => e.ValueStart) - .HasColumnType("date") - .HasColumnName("value_start") - .HasDefaultValueSql("(getdate())"); + .HasMaxLength(50) + .HasColumnName("value_start"); }); modelBuilder.Entity<AdmBreakPrecedent>(entity => @@ -3132,6 +3119,24 @@ .HasDefaultValueSql("('')") .HasComment("鏄笟鍔$粡鐞�"); + entity.Property(e => e.Isxmenter) + .HasMaxLength(1) + .HasColumnName("is_xmenter") + .HasDefaultValueSql("('')") + .HasComment("鏄」鐩綍鍏�"); + + entity.Property(e => e.Iswdenter) + .HasMaxLength(1) + .HasColumnName("is_wdenter") + .HasDefaultValueSql("('')") + .HasComment("鏄棶绛斿綍鍏�"); + + entity.Property(e => e.Istravelsubsidy) + .HasMaxLength(1) + .HasColumnName("is_travelsubsidy") + .HasDefaultValueSql("('')") + .HasComment("鏈変氦閫氳ˉ璐�"); + entity.Property(e => e.Jg) .HasMaxLength(500) .HasColumnName("jg") @@ -4377,6 +4382,11 @@ .HasMaxLength(50) .HasColumnName("sex"); + entity.Property(e => e.ShenheStatus) + .HasMaxLength(1) + .HasColumnName("shenhe_status") + .HasDefaultValueSql("('D')"); + entity.Property(e => e.Sort) .HasMaxLength(50) .IsUnicode(false) @@ -4384,6 +4394,26 @@ entity.Property(e => e.TitileCerti).HasMaxLength(200); + entity.Property(e => e.TitileCerti1).HasMaxLength(200); + + entity.Property(e => e.TitileCerti10).HasMaxLength(200); + + entity.Property(e => e.TitileCerti2).HasMaxLength(200); + + entity.Property(e => e.TitileCerti3).HasMaxLength(200); + + entity.Property(e => e.TitileCerti4).HasMaxLength(200); + + entity.Property(e => e.TitileCerti5).HasMaxLength(200); + + entity.Property(e => e.TitileCerti6).HasMaxLength(200); + + entity.Property(e => e.TitileCerti7).HasMaxLength(200); + + entity.Property(e => e.TitileCerti8).HasMaxLength(200); + + entity.Property(e => e.TitileCerti9).HasMaxLength(200); + entity.Property(e => e.Wechat) .HasMaxLength(20) .HasColumnName("wechat"); -- Gitblit v1.9.1