| | |
| | | |
| | | CreateMap<AdmAttendance, AdmAttendanceDTO>(); |
| | | CreateMap<AdmAttendanceDTO, AdmAttendance>(); |
| | | |
| | | CreateMap<HrJibengongzi, HrJibengongziDTO>(); |
| | | CreateMap<HrJibengongziDTO, HrJibengongzi>(); |
| | | |
| | | CreateMap<HrJixiaoticheng, HrJixiaotichengDTO>(); |
| | | CreateMap<HrJixiaotichengDTO, HrJixiaoticheng>(); |
| | | |
| | | CreateMap<HrSalary, HrSalaryDTO>(); |
| | | CreateMap<HrSalaryDTO, HrSalary>(); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | public string Pieceratetype { get; set; } |
| | | public string Project { get; set; } |
| | | |
| | | public string Standard { get; set; } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace DTO |
| | | { |
| | | public class HrJibengongziDTO |
| | | { |
| | | public string Id { get; set; } |
| | | public string PostId { get; set; } |
| | | public string PostName { get; set; } |
| | | public decimal? Jibengongzi { get; set; } |
| | | public string JibengongziName { get; set; } |
| | | public decimal? Baomifei { get; set; } |
| | | public string BaomifeiName { get; set; } |
| | | public decimal? Shebaodanwei { get; set; } |
| | | public string ShebaodanweiName { get; set; } |
| | | public decimal? Shebaogeren { get; set; } |
| | | public string ShebaogerenName { get; set; } |
| | | public string Dianhuabutie { get; set; } |
| | | public string DianhuabutieName { get; set; } |
| | | public decimal? Quanqingjiang { get; set; } |
| | | public string QuanqingjiangName { get; set; } |
| | | public decimal? Jiaotongbutie { get; set; } |
| | | public string JiaotongbutieName { get; set; } |
| | | public string RecStatus { get; set; } |
| | | public string Creater { get; set; } |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | |
| | | public DateTime? Effecttime { get; set; } |
| | | |
| | | public string EffecttimeName { get; set; } |
| | | } |
| | | |
| | | public class HrJibengongziDTOSearch : SearchEntity |
| | | { |
| | | public string PostId { get; set; } |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace DTO |
| | | { |
| | | public class HrJixiaotichengDTO |
| | | { |
| | | public string Id { get; set; } |
| | | public string PostId { get; set; } |
| | | public string PostName { get; set; } |
| | | public string PiecerateId { get; set; } |
| | | public string PiecerateName { get; set; } |
| | | public string Tichengstandard { get; set; } |
| | | public string TichengstandardName { get; set; } |
| | | public string Renwustandard { get; set; } |
| | | public string RenwustandardName { get; set; } |
| | | public decimal? Ticheng { get; set; } |
| | | public string TichengName { get; set; } |
| | | public decimal? Renwu { get; set; } |
| | | public string RenwuName { get; set; } |
| | | public DateTime? Effecttime { get; set; } |
| | | public string EffecttimeName { get; set; } |
| | | public string RecStatus { get; set; } |
| | | public string Creater { get; set; } |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | } |
| | | |
| | | |
| | | public class HrJixiaotichengDTOSearch : SearchEntity |
| | | { |
| | | public string PostId { get; set; } |
| | | |
| | | public string PiecerateId { get; set; } |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace DTO |
| | | { |
| | | public class HrSalaryDTO |
| | | { |
| | | public string Id { get; set; } |
| | | public string Userid { get; set; } |
| | | public int Year { get; set; } |
| | | public int Month { get; set; } |
| | | public string Usernumber { get; set; } |
| | | public string UserName { get; set; } |
| | | public string DeptName { get; set; } |
| | | public decimal? Jibengongzi { get; set; } |
| | | public decimal? Baomifei { get; set; } |
| | | public decimal? Gongzuobutie { get; set; } |
| | | public decimal? Jiabangongzi { get; set; } |
| | | public decimal? Shebao { get; set; } |
| | | public decimal? Dianhuabutie { get; set; } |
| | | public decimal? Quanqinjiang { get; set; } |
| | | public decimal? Jiaotngbutie { get; set; } |
| | | public decimal? Jixiaoticheng { get; set; } |
| | | public decimal? Jiangjin { get; set; } |
| | | public decimal? Bufagongzi { get; set; } |
| | | public decimal? Shebaokou { get; set; } |
| | | public decimal? Geshui { get; set; } |
| | | public decimal? Dianhuafei { get; set; } |
| | | public decimal? Queqin { get; set; } |
| | | public decimal? Fakuan { get; set; } |
| | | public decimal? Peichang { get; set; } |
| | | public decimal? Jiucuo { get; set; } |
| | | public decimal? Daozhanggongzi { get; set; } |
| | | public decimal? Yufagongzi { get; set; } |
| | | public decimal? Yufagongziheji { get; set; } |
| | | |
| | | |
| | | public string JibengongziName { get; set; } |
| | | public string BaomifeiName { get; set; } |
| | | public string GongzuobutieName { get; set; } |
| | | public string JiabangongziName { get; set; } |
| | | public string ShebaoName { get; set; } |
| | | public string DianhuabutieName { get; set; } |
| | | public string QuanqinjiangName { get; set; } |
| | | public string JiaotngbutieName { get; set; } |
| | | public string JixiaotichengName { get; set; } |
| | | public string JiangjinName { get; set; } |
| | | public string BufagongziName { get; set; } |
| | | public string ShebaokouName { get; set; } |
| | | public string GeshuiName { get; set; } |
| | | public string DianhuafeiName { get; set; } |
| | | public string QueqinName { get; set; } |
| | | public string FakuanName { get; set; } |
| | | public string PeichangName { get; set; } |
| | | public string JiucuoName { get; set; } |
| | | public string DaozhanggongziName { get; set; } |
| | | public string YufagongziName { get; set; } |
| | | public string YufagongzihejiName { get; set; } |
| | | |
| | | |
| | | public string Islock { get; set; } |
| | | public string RecStatus { get; set; } |
| | | public string Creater { get; set; } |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | } |
| | | |
| | | public partial class HrSalaryDTOSearch : SearchEntity |
| | | { |
| | | public string YearMonth { get; set; } |
| | | public string Usernumber { get; set; } |
| | | public string DeptId { get; set; } |
| | | public string UserName { get; set; } |
| | | |
| | | } |
| | | } |
| | |
| | | /// é¢åå·¥èµ |
| | | /// </summary> |
| | | public decimal? advancewages { get; set; } |
| | | public string advancewagesName { get; set; } |
| | | /// <summary> |
| | | /// ä¿åºå¹´èª |
| | | /// </summary> |
| | | public decimal? miniyearsalary { get; set; } |
| | | public string miniyearsalaryName { get; set; } |
| | | /// <summary> |
| | | /// å·¥é¾å·¥èµ |
| | | /// </summary> |
| | | public decimal? senioritywages { get; set; } |
| | | public string senioritywagesName { get; set; } |
| | | /// <summary> |
| | | /// æ¯å¦äº¤é补贴 |
| | | /// </summary> |
| | | public string Istravelsubsidy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦äº¤é补贴 |
| | | /// </summary> |
| | | public string IstravelsubsidyName { get; set; } |
| | | |
| | | public string Beizhu { get; set; } |
| | | |
| | | |
| | | public decimal? baomisalary { get; set; } |
| | | public string baomisalaryName { get; set; } |
| | | public decimal? jibensalary { get; set; } |
| | | public string jibensalaryName { get; set; } |
| | | public decimal? jintiesalary { get; set; } |
| | | public string jintiesalaryName { get; set; } |
| | | |
| | | public decimal? geshuiqizheng { get; set; } |
| | | public string geshuiqizhengName { get; set; } |
| | | |
| | | |
| | | public string[] JiatingchengyuanId { get; set; } |
| | |
| | | public string UserSn { get; set; } |
| | | |
| | | public string Zhiwustatus { get; set; } |
| | | |
| | | public string Usernumber { get; set; } |
| | | } |
| | | } |
| | |
| | | ResultEntity ModifyStatus(string id, string userid); |
| | | |
| | | List<FiPiecerateDTO> GetList(); |
| | | List<FiPiecerateDTO> GetListAll(); |
| | | } |
| | | } |
New file |
| | |
| | | using DTO; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | |
| | | namespace IServices |
| | | { |
| | | public interface IHrJibengongziService |
| | | { |
| | | |
| | | ResultEntity save(HrJibengongziDTO dto); |
| | | |
| | | HrJibengongziDTO Get(string id); |
| | | |
| | | ResultDataEntity<HrJibengongziDTO> SearchByPaging(HrJibengongziDTOSearch searchEntity); |
| | | |
| | | ResultEntity ModifyStatus(string id, string userid); |
| | | |
| | | List<HrJibengongziDTO> GetList(); |
| | | } |
| | | } |
New file |
| | |
| | | using DTO; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | |
| | | namespace IServices |
| | | { |
| | | public interface IHrJixiaotichengService |
| | | { |
| | | ResultEntity save(HrJixiaotichengDTO dto); |
| | | |
| | | HrJixiaotichengDTO Get(string id); |
| | | |
| | | ResultDataEntity<HrJixiaotichengDTO> SearchByPaging(HrJixiaotichengDTOSearch searchEntity); |
| | | |
| | | ResultEntity ModifyStatus(string id, string userid); |
| | | |
| | | List<HrJixiaotichengDTO> GetList(); |
| | | } |
| | | } |
New file |
| | |
| | | using DTO; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | |
| | | namespace IServices |
| | | { |
| | | public interface IHrSalaryService |
| | | { |
| | | |
| | | ResultEntity save(HrSalaryDTO dto); |
| | | |
| | | HrSalaryDTO Get(string id); |
| | | |
| | | ResultDataEntity<HrSalaryDTO> SearchByPaging(HrSalaryDTOSearch searchEntity); |
| | | |
| | | ResultEntity ModifyStatus(string id, string userid); |
| | | |
| | | List<HrSalaryDTO> GetList(); |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | |
| | | #nullable disable |
| | | |
| | | namespace zhengcaioa.Models |
| | | { |
| | | public partial class HrJibengongzi |
| | | { |
| | | public string Id { get; set; } |
| | | public string PostId { get; set; } |
| | | public decimal? Jibengongzi { get; set; } |
| | | public decimal? Baomifei { get; set; } |
| | | public decimal? Shebaodanwei { get; set; } |
| | | public decimal? Shebaogeren { get; set; } |
| | | public string Dianhuabutie { get; set; } |
| | | public decimal? Quanqingjiang { get; set; } |
| | | public decimal? Jiaotongbutie { get; set; } |
| | | public DateTime? Effecttime { get; set; } |
| | | public string RecStatus { get; set; } |
| | | public string Creater { get; set; } |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | |
| | | #nullable disable |
| | | |
| | | namespace zhengcaioa.Models |
| | | { |
| | | public partial class HrJixiaoticheng |
| | | { |
| | | public string Id { get; set; } |
| | | public string PostId { get; set; } |
| | | public string PiecerateId { get; set; } |
| | | public string Tichengstandard { get; set; } |
| | | public string Renwustandard { get; set; } |
| | | public decimal? Ticheng { get; set; } |
| | | public decimal? Renwu { get; set; } |
| | | public DateTime? Effecttime { get; set; } |
| | | public string RecStatus { get; set; } |
| | | public string Creater { get; set; } |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | |
| | | #nullable disable |
| | | |
| | | namespace zhengcaioa.Models |
| | | { |
| | | public partial class HrSalary |
| | | { |
| | | public string Id { get; set; } |
| | | public string Userid { get; set; } |
| | | public int Year { get; set; } |
| | | public int Month { get; set; } |
| | | public decimal? Jibengongzi { get; set; } |
| | | public decimal? Baomifei { get; set; } |
| | | public decimal? Gongzuobutie { get; set; } |
| | | public decimal? Jiabangongzi { get; set; } |
| | | public decimal? Shebao { get; set; } |
| | | public decimal? Dianhuabutie { get; set; } |
| | | public decimal? Quanqinjiang { get; set; } |
| | | public decimal? Jiaotngbutie { get; set; } |
| | | public decimal? Jixiaoticheng { get; set; } |
| | | public decimal? Jiangjin { get; set; } |
| | | public decimal? Bufagongzi { get; set; } |
| | | public decimal? Shebaokou { get; set; } |
| | | public decimal? Geshui { get; set; } |
| | | public decimal? Dianhuafei { get; set; } |
| | | public decimal? Queqin { get; set; } |
| | | public decimal? Fakuan { get; set; } |
| | | public decimal? Peichang { get; set; } |
| | | public decimal? Jiucuo { get; set; } |
| | | public decimal? Daozhanggongzi { get; set; } |
| | | public decimal? Yufagongzi { get; set; } |
| | | public decimal? Yufagongziheji { get; set; } |
| | | public string Islock { get; set; } |
| | | public string RecStatus { get; set; } |
| | | public string Creater { get; set; } |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | } |
| | | } |
| | |
| | | public string JinjiPhone { get; set; } |
| | | public string JzYoubian { get; set; } |
| | | public string HjYoubian { get; set; } |
| | | |
| | | public string IpMac { get; set; } |
| | | public string Usernumber { get; set; } |
| | | public string Isxmenter { get; set; } |
| | |
| | | public decimal? miniyearsalary { get; set; } |
| | | public decimal? senioritywages { get; set; } |
| | | public string Istravelsubsidy { get; set; } |
| | | |
| | | public string Beizhu { get; set; } |
| | | public decimal? baomisalary { get; set; } |
| | | public decimal? jibensalary { get; set; } |
| | | public decimal? jintiesalary { get; set; } |
| | | public decimal? geshuiqizheng { get; set; } |
| | | } |
| | | } |
| | |
| | | public virtual DbSet<GroupTopic> GroupTopics { get; set; } |
| | | public virtual DbSet<GroupTuiguang> GroupTuiguangs { get; set; } |
| | | public virtual DbSet<HrDept> HrDepts { get; set; } |
| | | public virtual DbSet<HrJibengongzi> HrJibengongzis { get; set; } |
| | | public virtual DbSet<HrJixiaoticheng> HrJixiaotichengs { get; set; } |
| | | public virtual DbSet<HrPosition> HrPositions { get; set; } |
| | | public virtual DbSet<HrSalary> HrSalaries { get; set; } |
| | | public virtual DbSet<IntentionCustomer> IntentionCustomers { get; set; } |
| | | public virtual DbSet<IntentionOrder> IntentionOrders { get; set; } |
| | | public virtual DbSet<IntentionVisit> IntentionVisits { get; set; } |
| | |
| | | entity.Property(e => e.Id).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Chidao) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("chidao"); |
| | | |
| | | entity.Property(e => e.Creater) |
| | |
| | | .HasDefaultValueSql("('D')"); |
| | | |
| | | entity.Property(e => e.Jiaban) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jiaban"); |
| | | |
| | | entity.Property(e => e.Kuanggong) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("kuanggong"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | |
| | | entity.Property(e => e.Month).HasColumnName("month"); |
| | | |
| | | entity.Property(e => e.Offdays) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("offdays"); |
| | | |
| | | entity.Property(e => e.Qingjia) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("qingjia"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | |
| | | .HasDefaultValueSql("('A')"); |
| | | |
| | | entity.Property(e => e.Shijichuqin) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("shijichuqin"); |
| | | |
| | | entity.Property(e => e.Userid) |
| | |
| | | .HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Xiaojia) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("xiaojia"); |
| | | |
| | | entity.Property(e => e.Year).HasColumnName("year"); |
| | | |
| | | entity.Property(e => e.Yingchuqin) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("yingchuqin"); |
| | | |
| | | entity.Property(e => e.Zaotui) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("zaotui"); |
| | | }); |
| | | |
| | |
| | | .HasMaxLength(50) |
| | | .HasColumnName("attendance_id"); |
| | | |
| | | entity.Property(e => e.Chidaofenzhong) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("chidaofenzhong"); |
| | | |
| | | entity.Property(e => e.Creater) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("createtime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.Kuanggongtianshu) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("kuanggongtianshu"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | |
| | | entity.Property(e => e.OvertimeOut).HasColumnType("datetime"); |
| | | |
| | | entity.Property(e => e.Qingjia) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("qingjia"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.Xiaojia) |
| | | .HasColumnType("decimal(18, 2)") |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("xiaojia"); |
| | | |
| | | entity.Property(e => e.Zaotuifenzhong) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("zaotuifenzhong"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<AdmAttendanceRule>(entity => |
| | |
| | | .HasColumnName("superior_top"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<HrJibengongzi>(entity => |
| | | { |
| | | entity.ToTable("hr_jibengongzi"); |
| | | |
| | | entity.Property(e => e.Id).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Baomifei) |
| | | .HasColumnType("money") |
| | | .HasColumnName("baomifei"); |
| | | |
| | | entity.Property(e => e.Creater) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("creater") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Createtime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("createtime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.Dianhuabutie) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("dianhuabutie"); |
| | | |
| | | entity.Property(e => e.Effecttime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("effecttime"); |
| | | |
| | | entity.Property(e => e.Jiaotongbutie) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jiaotongbutie"); |
| | | |
| | | entity.Property(e => e.Jibengongzi) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jibengongzi"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("modifier") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Modifytime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("modifytime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.PostId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("post_id"); |
| | | |
| | | entity.Property(e => e.Quanqingjiang) |
| | | .HasColumnType("money") |
| | | .HasColumnName("quanqingjiang"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | | .IsRequired() |
| | | .HasMaxLength(1) |
| | | .HasColumnName("rec_status") |
| | | .HasDefaultValueSql("('A')"); |
| | | |
| | | entity.Property(e => e.Shebaodanwei) |
| | | .HasColumnType("money") |
| | | .HasColumnName("shebaodanwei"); |
| | | |
| | | entity.Property(e => e.Shebaogeren) |
| | | .HasColumnType("money") |
| | | .HasColumnName("shebaogeren"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<HrJixiaoticheng>(entity => |
| | | { |
| | | entity.ToTable("hr_jixiaoticheng"); |
| | | |
| | | entity.Property(e => e.Id).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Creater) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("creater") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Createtime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("createtime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.Effecttime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("effecttime"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("modifier") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Modifytime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("modifytime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.PiecerateId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("piecerate_id"); |
| | | |
| | | entity.Property(e => e.PostId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("post_id"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | | .IsRequired() |
| | | .HasMaxLength(1) |
| | | .HasColumnName("rec_status") |
| | | .HasDefaultValueSql("('A')"); |
| | | |
| | | entity.Property(e => e.Renwu) |
| | | .HasColumnType("money") |
| | | .HasColumnName("renwu"); |
| | | |
| | | entity.Property(e => e.Renwustandard) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("renwustandard"); |
| | | |
| | | entity.Property(e => e.Ticheng) |
| | | .HasColumnType("money") |
| | | .HasColumnName("ticheng"); |
| | | |
| | | entity.Property(e => e.Tichengstandard) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("tichengstandard"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<HrPosition>(entity => |
| | | { |
| | | entity.ToTable("hr_position"); |
| | |
| | | .HasMaxLength(1) |
| | | .HasColumnName("rec_status") |
| | | .HasDefaultValueSql("('A')"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<HrSalary>(entity => |
| | | { |
| | | entity.ToTable("hr_salary"); |
| | | |
| | | entity.Property(e => e.Id).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Baomifei) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("baomifei"); |
| | | |
| | | entity.Property(e => e.Bufagongzi) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("bufagongzi"); |
| | | |
| | | entity.Property(e => e.Creater) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("creater") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Createtime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("createtime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.Daozhanggongzi) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("daozhanggongzi"); |
| | | |
| | | entity.Property(e => e.Dianhuabutie) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("dianhuabutie"); |
| | | |
| | | entity.Property(e => e.Dianhuafei) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("dianhuafei"); |
| | | |
| | | entity.Property(e => e.Fakuan) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("fakuan"); |
| | | |
| | | entity.Property(e => e.Geshui) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("geshui"); |
| | | |
| | | entity.Property(e => e.Gongzuobutie) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("gongzuobutie"); |
| | | |
| | | entity.Property(e => e.Islock) |
| | | .IsRequired() |
| | | .HasMaxLength(1) |
| | | .HasColumnName("islock") |
| | | .HasDefaultValueSql("('D')"); |
| | | |
| | | entity.Property(e => e.Jiabangongzi) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jiabangongzi"); |
| | | |
| | | entity.Property(e => e.Jiangjin) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jiangjin"); |
| | | |
| | | entity.Property(e => e.Jiaotngbutie) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jiaotngbutie"); |
| | | |
| | | entity.Property(e => e.Jibengongzi) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jibengongzi"); |
| | | |
| | | entity.Property(e => e.Jiucuo) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jiucuo"); |
| | | |
| | | entity.Property(e => e.Jixiaoticheng) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("jixiaoticheng"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("modifier") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Modifytime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("modifytime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.Month).HasColumnName("month"); |
| | | |
| | | entity.Property(e => e.Peichang) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("peichang"); |
| | | |
| | | entity.Property(e => e.Quanqinjiang) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("quanqinjiang"); |
| | | |
| | | entity.Property(e => e.Queqin) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("queqin"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | | .IsRequired() |
| | | .HasMaxLength(1) |
| | | .HasColumnName("rec_status") |
| | | .HasDefaultValueSql("('A')"); |
| | | |
| | | entity.Property(e => e.Shebao) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("shebao"); |
| | | |
| | | entity.Property(e => e.Shebaokou) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("shebaokou"); |
| | | |
| | | entity.Property(e => e.Userid) |
| | | .IsRequired() |
| | | .HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Year).HasColumnName("year"); |
| | | |
| | | entity.Property(e => e.Yufagongzi) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("yufagongzi"); |
| | | |
| | | entity.Property(e => e.Yufagongziheji) |
| | | .HasColumnType("decimal(18, 4)") |
| | | .HasColumnName("yufagongziheji"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<IntentionCustomer>(entity => |
| | |
| | | |
| | | entity.Property(e => e.Id).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.advancewages) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("advancewages"); |
| | | |
| | | entity.Property(e => e.BasicPrice) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("basic_price") |
| | | .HasDefaultValueSql("('')") |
| | | .HasComment("èªèµå¾
é"); |
| | | |
| | | entity.Property(e => e.baomisalary) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("baomisalary"); |
| | | |
| | | entity.Property(e => e.Beizhu) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("beizhu"); |
| | | |
| | | entity.Property(e => e.Birthday) |
| | | .HasColumnType("datetime") |
| | |
| | | .HasMaxLength(50) |
| | | .HasColumnName("email"); |
| | | |
| | | entity.Property(e => e.geshuiqizheng) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("geshuiqizheng"); |
| | | |
| | | entity.Property(e => e.HjAddress) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("hj_address") |
| | |
| | | .HasDefaultValueSql("(getdate())") |
| | | .HasComment("å¯ç¨æ¶é´"); |
| | | |
| | | entity.Property(e => e.IpMac) |
| | | .HasMaxLength(30) |
| | | .HasColumnName("ipmac"); |
| | | |
| | | entity.Property(e => e.IsGmsb) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_gmsb") |
| | |
| | | .HasDefaultValueSql("('')") |
| | | .HasComment("å·²ç¾è®¢åå"); |
| | | |
| | | entity.Property(e => e.Istravelsubsidy) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_travelsubsidy"); |
| | | |
| | | entity.Property(e => e.Iswdenter) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_wdenter"); |
| | | |
| | | entity.Property(e => e.Isxmenter) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_xmenter"); |
| | | |
| | | entity.Property(e => e.IsYwjl) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_ywjl") |
| | | .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) |
| | |
| | | .HasDefaultValueSql("('')") |
| | | .HasComment("ç±è´¯"); |
| | | |
| | | entity.Property(e => e.jibensalary) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("jibensalary"); |
| | | |
| | | entity.Property(e => e.Jinji).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.JinjiPhone).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.jintiesalary) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("jintiesalary"); |
| | | |
| | | entity.Property(e => e.JzAddress) |
| | | .HasMaxLength(500) |
| | |
| | | .HasColumnName("length_price") |
| | | .HasDefaultValueSql("('')") |
| | | .HasComment("å·¥é¾å·¥èµï¼å
¥è满ä¸å¹´çä¸ä¸ä¸ªæå¯äº«å"); |
| | | |
| | | entity.Property(e => e.miniyearsalary) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("miniyearsalary"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | |
| | | |
| | | entity.Property(e => e.School).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.senioritywages) |
| | | .HasColumnType("decimal(10, 2)") |
| | | .HasColumnName("senioritywages"); |
| | | |
| | | entity.Property(e => e.Sex) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("sex") |
| | |
| | | .HasMaxLength(2) |
| | | .HasColumnName("user_type"); |
| | | |
| | | entity.Property(e => e.Usernumber) |
| | | .HasMaxLength(30) |
| | | .HasColumnName("usernumber"); |
| | | |
| | | entity.Property(e => e.Weixin).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Zhengzhi).HasMaxLength(50); |
| | |
| | | |
| | | |
| | | var query = (from a in _context.FiPiecerates |
| | | |
| | | |
| | | join c in listCode.Where(x => x.CodeTable == "CooperVisit" && x.CodeField == "jtype") |
| | | on a.Pieceratetype equals c.CodeSn |
| | | |
| | | join d in listCode.Where(x => x.CodeTable == "fi_piecerate" && x.CodeField == "Standard") |
| | | on a.Standard equals d.CodeSn |
| | | join c in listCode.Where(x => x.CodeTable == "system" && x.CodeField == "shifou") |
| | | on a.Standard equals c.CodeSn |
| | | |
| | | //join d in listCode.Where(x => x.CodeTable == "fi_piecerate" && x.CodeField == "Standard") |
| | | //on a.Standard equals d.CodeSn |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Pieceratetype) || a.Pieceratetype == searchEntity.Pieceratetype.Trim()) |
| | | |
| | | |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Standard) || a.Standard == searchEntity.Standard.Trim()) |
| | | |
| | | select new FiPiecerateDTO |
| | | { |
| | | Id = a.Id, |
| | | CreatedAtTime = a.CreatedAtTime, |
| | | |
| | | Pieceratetype = a.Pieceratetype, |
| | | PieceratetypeName = c.Comments, |
| | | PieceratetypeName = "",//c.Comments, |
| | | Project = a.Project, |
| | | Amount = a.Amount, |
| | | Standard = a.Standard, |
| | | |
| | | StandardName = d.Comments, |
| | | StandardName = c.Comments, |
| | | Percent = a.Percent, |
| | | |
| | | |
| | |
| | | { |
| | | |
| | | |
| | | var listPosition = _context.FiPiecerates.Where(r => r.RecStatus == "A").ToList(); |
| | | var listPosition = _context.FiPiecerates.Where(r => r.RecStatus == "A").OrderBy(x=>x.Createtime).ToList(); |
| | | |
| | | var list = _mapper.Map<List<FiPiecerateDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åææè®¡ä»¶é¡¹ç® |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<FiPiecerateDTO> GetListAll() |
| | | { |
| | | |
| | | var listPosition = _context.FiPiecerates.OrderBy(x => x.Createtime).ToList(); |
| | | |
| | | var list = _mapper.Map<List<FiPiecerateDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using AutoMapper; |
| | | using DTO; |
| | | using IServices; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using zhengcaioa.Models; |
| | | |
| | | |
| | | namespace Services |
| | | { |
| | | public class HrJibengongziService: IHrJibengongziService |
| | | { |
| | | private readonly zhengcaioaContext _context; |
| | | private readonly IMapper _mapper; |
| | | public HrJibengongziService(zhengcaioaContext context, IMapper mapper) |
| | | { |
| | | _context = context; |
| | | _mapper = mapper; |
| | | } |
| | | |
| | | public ResultEntity save(HrJibengongziDTO dto) |
| | | { |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | try |
| | | { |
| | | var model = _mapper.Map<HrJibengongzi>(dto); |
| | | if (String.IsNullOrEmpty(model.Id)) |
| | | { |
| | | model.Id = Guid.NewGuid().ToString(); |
| | | |
| | | |
| | | _context.HrJibengongzis.Add(model); |
| | | } |
| | | else |
| | | { |
| | | var updatepltRole = _context.HrJibengongzis.Find(model.Id); |
| | | updatepltRole.PostId = model.PostId; |
| | | updatepltRole.Jibengongzi = model.Jibengongzi; |
| | | updatepltRole.Baomifei = model.Baomifei; |
| | | updatepltRole.Shebaodanwei = model.Shebaodanwei; |
| | | updatepltRole.Shebaogeren = model.Shebaogeren; |
| | | updatepltRole.Quanqingjiang = model.Quanqingjiang; |
| | | updatepltRole.Dianhuabutie = model.Dianhuabutie; |
| | | |
| | | updatepltRole.Jiaotongbutie = model.Jiaotongbutie; |
| | | |
| | | |
| | | updatepltRole.Effecttime = model.Effecttime; |
| | | |
| | | updatepltRole.RecStatus = model.RecStatus; |
| | | // updatepltRole.Creater = pltRole.Creater; |
| | | //updatepltRole.Createtime = pltRole.Createtime; |
| | | updatepltRole.Modifier = model.Modifier; |
| | | updatepltRole.Modifytime = model.Modifytime; |
| | | |
| | | } |
| | | |
| | | _context.SaveChanges(); |
| | | resultEntity.ReturnID = model.Id; |
| | | resultEntity.Result = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "ä¿å失败ï¼è¯·è系管çå"; |
| | | |
| | | } |
| | | return resultEntity; |
| | | } |
| | | |
| | | public HrJibengongziDTO Get(string id) |
| | | { |
| | | var entity = _context.HrJibengongzis.Find(id); |
| | | |
| | | if (entity.RecStatus != "A") |
| | | { |
| | | entity = new HrJibengongzi(); |
| | | } |
| | | var HrJibengongziDTO = _mapper.Map<HrJibengongziDTO>(entity); |
| | | return HrJibengongziDTO; |
| | | } |
| | | |
| | | public ResultDataEntity<HrJibengongziDTO> SearchByPaging(HrJibengongziDTOSearch searchEntity) |
| | | { |
| | | ResultDataEntity<HrJibengongziDTO> data = new ResultDataEntity<HrJibengongziDTO>(); |
| | | |
| | | var listCode = (from a in _context.SysCodeDtls |
| | | join b in _context.SysCodes |
| | | on a.CodeId equals b.Id |
| | | where a.RecStatus == "A" |
| | | && b.RecStatus == "A" |
| | | select new CodeDataEntity() |
| | | { |
| | | CodeId = b.Id, |
| | | CodeTable = b.CodeTable, |
| | | CodeField = b.CodeField, |
| | | CodeSn = a.CodeSn, |
| | | Comments = a.Comments, |
| | | Contents = a.Contents, |
| | | RecStatus = a.RecStatus, |
| | | Sort = a.Sort |
| | | } |
| | | ); |
| | | |
| | | var query = (from a in _context.HrJibengongzis//.Where(x => x.RecStatus == "A") |
| | | join b in listCode.Where(x => x.CodeTable == "hr_jibengongzi" && x.CodeField == "dianhuabutie") |
| | | on a.Dianhuabutie equals b.CodeSn |
| | | into bsssss |
| | | from bbb in bsssss.DefaultIfEmpty() |
| | | |
| | | join f in _context.HrPositions |
| | | on a.PostId equals f.Id |
| | | into fsssss |
| | | from fff in fsssss.DefaultIfEmpty() |
| | | |
| | | where a.RecStatus == "A" |
| | | && (string.IsNullOrWhiteSpace(searchEntity.PostId) || a.PostId == searchEntity.PostId.Trim()) |
| | | select new HrJibengongziDTO |
| | | { |
| | | Id = a.Id, |
| | | PostId = a.PostId, |
| | | PostName = fff.PostName, |
| | | Jibengongzi = a.Jibengongzi, |
| | | Baomifei = a.Baomifei, |
| | | Shebaodanwei = a.Shebaodanwei, |
| | | Shebaogeren = a.Shebaogeren, |
| | | Dianhuabutie = a.Dianhuabutie, |
| | | Quanqingjiang = a.Quanqingjiang, |
| | | Jiaotongbutie = a.Jiaotongbutie, |
| | | |
| | | JibengongziName = a.Jibengongzi.HasValue? a.Jibengongzi.Value.ToString("F2"):"", |
| | | BaomifeiName = a.Baomifei.HasValue ? a.Baomifei.Value.ToString("F2") : "", |
| | | ShebaodanweiName = a.Shebaodanwei.HasValue ? a.Shebaodanwei.Value.ToString("F2") : "", |
| | | ShebaogerenName = a.Shebaogeren.HasValue ? a.Shebaogeren.Value.ToString("F2") : "", |
| | | DianhuabutieName = bbb.Comments, |
| | | QuanqingjiangName = a.Quanqingjiang.HasValue ? a.Quanqingjiang.Value.ToString("F2") : "", |
| | | JiaotongbutieName = a.Jiaotongbutie.HasValue ? a.Jiaotongbutie.Value.ToString("F2") : "", |
| | | Effecttime = a.Effecttime, |
| | | EffecttimeName = a.Effecttime.HasValue ? a.Effecttime.Value.ToString("yyyy-MM-dd") : "", |
| | | |
| | | |
| | | |
| | | |
| | | RecStatus = a.RecStatus, |
| | | Creater = a.Creater, |
| | | Createtime = a.Createtime, |
| | | Modifier = a.Modifier, |
| | | Modifytime = a.Modifytime, |
| | | |
| | | }).OrderByDescending(x => x.Modifytime).ToList(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (searchEntity.totalrows == 0) |
| | | searchEntity.totalrows = query.Count(); |
| | | var rolelist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | |
| | | data.LoadData(searchEntity, rolelist); |
| | | return data; |
| | | } |
| | | |
| | | public ResultEntity ModifyStatus(string id, string userid) |
| | | { |
| | | |
| | | ResultEntity result = new ResultEntity(); |
| | | result.Result = true; |
| | | |
| | | var model = _context.HrJibengongzis.Find(id); |
| | | if (model != null) |
| | | { |
| | | model.RecStatus = "D"; |
| | | model.Modifier = userid; |
| | | model.Modifytime = DateTime.Now; |
| | | _context.SaveChanges(); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åææææè§è² |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<HrJibengongziDTO> GetList() |
| | | { |
| | | |
| | | |
| | | var listPosition = _context.HrJibengongzis.Where(r => r.RecStatus == "A" ).ToList(); |
| | | |
| | | var list = _mapper.Map<List<HrJibengongziDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | using AutoMapper; |
| | | using DTO; |
| | | using IServices; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using zhengcaioa.Models; |
| | | |
| | | |
| | | namespace Services |
| | | { |
| | | public class HrJixiaotichengService : IHrJixiaotichengService |
| | | { |
| | | private readonly zhengcaioaContext _context; |
| | | private readonly IMapper _mapper; |
| | | public HrJixiaotichengService(zhengcaioaContext context, IMapper mapper) |
| | | { |
| | | _context = context; |
| | | _mapper = mapper; |
| | | } |
| | | |
| | | public ResultEntity save(HrJixiaotichengDTO dto) |
| | | { |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | try |
| | | { |
| | | var model = _mapper.Map<HrJixiaoticheng>(dto); |
| | | if (String.IsNullOrEmpty(model.Id)) |
| | | { |
| | | model.Id = Guid.NewGuid().ToString(); |
| | | |
| | | |
| | | _context.HrJixiaotichengs.Add(model); |
| | | } |
| | | else |
| | | { |
| | | var updatepltRole = _context.HrJixiaotichengs.Find(model.Id); |
| | | updatepltRole.PostId = model.PostId; |
| | | updatepltRole.PiecerateId = model.PiecerateId; |
| | | updatepltRole.Tichengstandard = model.Tichengstandard; |
| | | updatepltRole.Renwustandard = model.Renwustandard; |
| | | updatepltRole.Ticheng = model.Ticheng; |
| | | updatepltRole.Renwu = model.Renwu; |
| | | |
| | | |
| | | updatepltRole.Effecttime = model.Effecttime; |
| | | |
| | | updatepltRole.RecStatus = model.RecStatus; |
| | | // updatepltRole.Creater = pltRole.Creater; |
| | | //updatepltRole.Createtime = pltRole.Createtime; |
| | | updatepltRole.Modifier = model.Modifier; |
| | | updatepltRole.Modifytime = model.Modifytime; |
| | | |
| | | } |
| | | |
| | | _context.SaveChanges(); |
| | | resultEntity.ReturnID = model.Id; |
| | | resultEntity.Result = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "ä¿å失败ï¼è¯·è系管çå"; |
| | | |
| | | } |
| | | return resultEntity; |
| | | } |
| | | |
| | | public HrJixiaotichengDTO Get(string id) |
| | | { |
| | | var entity = _context.HrJixiaotichengs.Find(id); |
| | | |
| | | if (entity.RecStatus != "A") |
| | | { |
| | | entity = new HrJixiaoticheng(); |
| | | } |
| | | var HrJixiaotichengDTO = _mapper.Map<HrJixiaotichengDTO>(entity); |
| | | return HrJixiaotichengDTO; |
| | | } |
| | | |
| | | public ResultDataEntity<HrJixiaotichengDTO> SearchByPaging(HrJixiaotichengDTOSearch searchEntity) |
| | | { |
| | | ResultDataEntity<HrJixiaotichengDTO> data = new ResultDataEntity<HrJixiaotichengDTO>(); |
| | | |
| | | var listCode = (from a in _context.SysCodeDtls |
| | | join b in _context.SysCodes |
| | | on a.CodeId equals b.Id |
| | | where a.RecStatus == "A" |
| | | && b.RecStatus == "A" |
| | | select new CodeDataEntity() |
| | | { |
| | | CodeId = b.Id, |
| | | CodeTable = b.CodeTable, |
| | | CodeField = b.CodeField, |
| | | CodeSn = a.CodeSn, |
| | | Comments = a.Comments, |
| | | Contents = a.Contents, |
| | | RecStatus = a.RecStatus, |
| | | Sort = a.Sort |
| | | } |
| | | ); |
| | | |
| | | var query = (from a in _context.HrJixiaotichengs//.Where(x => x.RecStatus == "A") |
| | | join b in listCode.Where(x => x.CodeTable == "fi_piecerate" && x.CodeField == "standard") |
| | | on a.Tichengstandard equals b.CodeSn |
| | | into bsssss |
| | | from bbb in bsssss.DefaultIfEmpty() |
| | | |
| | | join c in listCode.Where(x => x.CodeTable == "hr_jixiaoticheng" && x.CodeField == "renwustandard") |
| | | on a.Renwustandard equals c.CodeSn |
| | | into csssss |
| | | from ccc in csssss.DefaultIfEmpty() |
| | | |
| | | join f in _context.HrPositions |
| | | on a.PostId equals f.Id |
| | | into fsssss |
| | | from fff in fsssss.DefaultIfEmpty() |
| | | |
| | | join g in _context.FiPiecerates |
| | | on a.PiecerateId equals g.Id |
| | | into gsssss |
| | | from ggg in gsssss.DefaultIfEmpty() |
| | | |
| | | where a.RecStatus == "A" |
| | | && (string.IsNullOrWhiteSpace(searchEntity.PostId) || a.PostId == searchEntity.PostId.Trim()) |
| | | select new HrJixiaotichengDTO |
| | | { |
| | | Id = a.Id, |
| | | PostId = a.PostId, |
| | | PostName = fff.PostName, |
| | | PiecerateId = a.PiecerateId, |
| | | PiecerateName = ggg.Project, |
| | | Renwustandard = a.Renwustandard, |
| | | RenwustandardName = ccc.Comments, |
| | | Tichengstandard = a.Tichengstandard, |
| | | TichengstandardName = bbb.Comments, |
| | | Ticheng = a.Ticheng, |
| | | Renwu = a.Renwu, |
| | | |
| | | |
| | | TichengName = a.Ticheng.HasValue ? a.Ticheng.Value.ToString("F2") : "", |
| | | RenwuName = a.Renwu.HasValue ? a.Renwu.Value.ToString("F2") : "", |
| | | |
| | | Effecttime = a.Effecttime, |
| | | EffecttimeName = a.Effecttime.HasValue ? a.Effecttime.Value.ToString("yyyy-MM-dd") : "", |
| | | |
| | | |
| | | |
| | | |
| | | RecStatus = a.RecStatus, |
| | | Creater = a.Creater, |
| | | Createtime = a.Createtime, |
| | | Modifier = a.Modifier, |
| | | Modifytime = a.Modifytime, |
| | | |
| | | }).OrderByDescending(x => x.Modifytime).ToList(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (searchEntity.totalrows == 0) |
| | | searchEntity.totalrows = query.Count(); |
| | | var rolelist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | |
| | | data.LoadData(searchEntity, rolelist); |
| | | return data; |
| | | } |
| | | |
| | | public ResultEntity ModifyStatus(string id, string userid) |
| | | { |
| | | |
| | | ResultEntity result = new ResultEntity(); |
| | | result.Result = true; |
| | | |
| | | var model = _context.HrJixiaotichengs.Find(id); |
| | | if (model != null) |
| | | { |
| | | model.RecStatus = "D"; |
| | | model.Modifier = userid; |
| | | model.Modifytime = DateTime.Now; |
| | | _context.SaveChanges(); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åææææè§è² |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<HrJixiaotichengDTO> GetList() |
| | | { |
| | | |
| | | |
| | | var listPosition = _context.HrJixiaotichengs.Where(r => r.RecStatus == "A").ToList(); |
| | | |
| | | var list = _mapper.Map<List<HrJixiaotichengDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | using AutoMapper; |
| | | using DTO; |
| | | using IServices; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using zhengcaioa.Models; |
| | | |
| | | |
| | | namespace Services |
| | | { |
| | | public class HrSalaryService: IHrSalaryService |
| | | { |
| | | private readonly zhengcaioaContext _context; |
| | | private readonly IMapper _mapper; |
| | | public HrSalaryService(zhengcaioaContext context, IMapper mapper) |
| | | { |
| | | _context = context; |
| | | _mapper = mapper; |
| | | } |
| | | |
| | | public ResultEntity save(HrSalaryDTO dto) |
| | | { |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | try |
| | | { |
| | | var model = _mapper.Map<HrSalary>(dto); |
| | | if (String.IsNullOrEmpty(model.Id)) |
| | | { |
| | | model.Id = Guid.NewGuid().ToString(); |
| | | |
| | | |
| | | _context.HrSalaries.Add(model); |
| | | } |
| | | else |
| | | { |
| | | var updatepltRole = _context.HrSalaries.Find(model.Id); |
| | | updatepltRole.Userid = model.Userid; |
| | | updatepltRole.Year = model.Year; |
| | | updatepltRole.Month = model.Month; |
| | | updatepltRole.Jibengongzi = model.Jibengongzi; |
| | | updatepltRole.Baomifei = model.Baomifei; |
| | | updatepltRole.Gongzuobutie = model.Gongzuobutie; |
| | | updatepltRole.Jiabangongzi = model.Jiabangongzi; |
| | | |
| | | updatepltRole.Shebao = model.Shebao; |
| | | |
| | | |
| | | updatepltRole.Dianhuabutie = model.Dianhuabutie; |
| | | |
| | | updatepltRole.Quanqinjiang = model.Quanqinjiang; |
| | | updatepltRole.Jiaotngbutie = model.Jiaotngbutie; |
| | | updatepltRole.Jixiaoticheng = model.Jixiaoticheng; |
| | | updatepltRole.Jiangjin = model.Jiangjin; |
| | | updatepltRole.Bufagongzi = model.Bufagongzi; |
| | | updatepltRole.Shebaokou = model.Shebaokou; |
| | | updatepltRole.Geshui = model.Geshui; |
| | | updatepltRole.Dianhuafei = model.Dianhuafei; |
| | | updatepltRole.Queqin = model.Queqin; |
| | | updatepltRole.Fakuan = model.Fakuan; |
| | | updatepltRole.Peichang = model.Peichang; |
| | | updatepltRole.Jiucuo = model.Jiucuo; |
| | | updatepltRole.Daozhanggongzi = model.Daozhanggongzi; |
| | | updatepltRole.Yufagongzi = model.Yufagongzi; |
| | | updatepltRole.Yufagongziheji = model.Yufagongziheji; |
| | | |
| | | updatepltRole.Islock = model.Islock; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | updatepltRole.RecStatus = model.RecStatus; |
| | | // updatepltRole.Creater = pltRole.Creater; |
| | | //updatepltRole.Createtime = pltRole.Createtime; |
| | | updatepltRole.Modifier = model.Modifier; |
| | | updatepltRole.Modifytime = model.Modifytime; |
| | | |
| | | } |
| | | |
| | | _context.SaveChanges(); |
| | | resultEntity.ReturnID = model.Id; |
| | | resultEntity.Result = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "ä¿å失败ï¼è¯·è系管çå"; |
| | | |
| | | } |
| | | return resultEntity; |
| | | } |
| | | |
| | | public HrSalaryDTO Get(string id) |
| | | { |
| | | var entity = _context.HrSalaries.Find(id); |
| | | |
| | | if (entity.RecStatus != "A") |
| | | { |
| | | entity = new HrSalary(); |
| | | } |
| | | var HrSalaryDTO = _mapper.Map<HrSalaryDTO>(entity); |
| | | return HrSalaryDTO; |
| | | } |
| | | |
| | | public ResultDataEntity<HrSalaryDTO> SearchByPaging(HrSalaryDTOSearch searchEntity) |
| | | { |
| | | ResultDataEntity<HrSalaryDTO> data = new ResultDataEntity<HrSalaryDTO>(); |
| | | |
| | | //var listCode = (from a in _context.SysCodeDtls |
| | | // join b in _context.SysCodes |
| | | // on a.CodeId equals b.Id |
| | | // where a.RecStatus == "A" |
| | | // && b.RecStatus == "A" |
| | | // select new CodeDataEntity() |
| | | // { |
| | | // CodeId = b.Id, |
| | | // CodeTable = b.CodeTable, |
| | | // CodeField = b.CodeField, |
| | | // CodeSn = a.CodeSn, |
| | | // Comments = a.Comments, |
| | | // Contents = a.Contents, |
| | | // RecStatus = a.RecStatus, |
| | | // Sort = a.Sort |
| | | // } |
| | | // ); |
| | | |
| | | int year = 0; |
| | | int month = 0; |
| | | if (string.IsNullOrWhiteSpace(searchEntity.YearMonth)) |
| | | { |
| | | DateTime yearMonth = DateTime.Parse(searchEntity.YearMonth + "-01"); |
| | | year = yearMonth.Year; |
| | | month = yearMonth.Month; |
| | | } |
| | | var query = (from a in _context.HrSalaries//.Where(x => x.RecStatus == "A") |
| | | // join b in listCode.Where(x => x.CodeTable == "hr_jibengongzi" && x.CodeField == "dianhuabutie") |
| | | //on a.Dianhuabutie equals b.CodeSn |
| | | // into bsssss |
| | | // from bbb in bsssss.DefaultIfEmpty() |
| | | |
| | | join f in _context.PltUsers |
| | | on a.Userid equals f.Id |
| | | // into fsssss |
| | | //from fff in fsssss.DefaultIfEmpty() |
| | | |
| | | join g in _context.HrDepts |
| | | on f.DeptId equals g.Id |
| | | // into gsssss |
| | | //from ggg in gsssss.DefaultIfEmpty() |
| | | |
| | | where a.RecStatus == "A" |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Usernumber) || f.Usernumber == searchEntity.Usernumber.Trim()) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.DeptId) || f.DeptId == searchEntity.DeptId.Trim()) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.UserName) || f.UserName.Contains(searchEntity.UserName.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.YearMonth) || ( a.Year == year && a.Month == month )) |
| | | select new HrSalaryDTO |
| | | { |
| | | Id = a.Id, |
| | | |
| | | Userid = a.Userid, |
| | | Usernumber = f.Usernumber, |
| | | UserName = f.UserName, |
| | | DeptName = g.DeptName, |
| | | Year = a.Year, |
| | | Month = a.Month, |
| | | Jibengongzi = a.Jibengongzi, |
| | | Baomifei = a.Baomifei, |
| | | Gongzuobutie = a.Gongzuobutie, |
| | | Jiabangongzi = a.Jiabangongzi, |
| | | |
| | | Shebao = a.Shebao, |
| | | |
| | | |
| | | Dianhuabutie = a.Dianhuabutie, |
| | | |
| | | Quanqinjiang = a.Quanqinjiang, |
| | | Jiaotngbutie = a.Jiaotngbutie, |
| | | Jixiaoticheng = a.Jixiaoticheng, |
| | | Jiangjin = a.Jiangjin, |
| | | Bufagongzi = a.Bufagongzi, |
| | | Shebaokou = a.Shebaokou, |
| | | Geshui = a.Geshui, |
| | | Dianhuafei = a.Dianhuafei, |
| | | Queqin = a.Queqin, |
| | | Fakuan = a.Fakuan, |
| | | Peichang = a.Peichang, |
| | | Jiucuo = a.Jiucuo, |
| | | Daozhanggongzi = a.Daozhanggongzi, |
| | | Yufagongzi = a.Yufagongzi, |
| | | Yufagongziheji = a.Yufagongziheji, |
| | | |
| | | |
| | | JibengongziName = a.Jibengongzi.HasValue ? a.Jibengongzi.Value.ToString("F2") : "", |
| | | BaomifeiName = a.Baomifei.HasValue ? a.Baomifei.Value.ToString("F2") : "", |
| | | GongzuobutieName = a.Gongzuobutie.HasValue ? a.Gongzuobutie.Value.ToString("F2") : "", |
| | | JiabangongziName = a.Jiabangongzi.HasValue ? a.Jiabangongzi.Value.ToString("F2") : "", |
| | | ShebaoName = a.Shebao.HasValue ? a.Shebao.Value.ToString("F2") : "", |
| | | |
| | | DianhuabutieName = a.Dianhuabutie.HasValue ? a.Dianhuabutie.Value.ToString("F2") : "", |
| | | QuanqinjiangName = a.Quanqinjiang.HasValue ? a.Quanqinjiang.Value.ToString("F2") : "", |
| | | JiaotngbutieName = a.Jiaotngbutie.HasValue ? a.Jiaotngbutie.Value.ToString("F2") : "", |
| | | JixiaotichengName = a.Jixiaoticheng.HasValue ? a.Jixiaoticheng.Value.ToString("F2") : "", |
| | | JiangjinName = a.Jiangjin.HasValue ? a.Jiangjin.Value.ToString("F2") : "", |
| | | BufagongziName = a.Bufagongzi.HasValue ? a.Bufagongzi.Value.ToString("F2") : "", |
| | | ShebaokouName = a.Shebaokou.HasValue ? a.Shebaokou.Value.ToString("F2") : "", |
| | | GeshuiName = a.Geshui.HasValue ? a.Geshui.Value.ToString("F2") : "", |
| | | DianhuafeiName = a.Dianhuafei.HasValue ? a.Dianhuafei.Value.ToString("F2") : "", |
| | | QueqinName = a.Queqin.HasValue ? a.Queqin.Value.ToString("F2") : "", |
| | | FakuanName = a.Fakuan.HasValue ? a.Fakuan.Value.ToString("F2") : "", |
| | | PeichangName = a.Peichang.HasValue ? a.Peichang.Value.ToString("F2") : "", |
| | | JiucuoName = a.Jiucuo.HasValue ? a.Jiucuo.Value.ToString("F2") : "", |
| | | DaozhanggongziName = a.Daozhanggongzi.HasValue ? a.Daozhanggongzi.Value.ToString("F2") : "", |
| | | YufagongziName = a.Yufagongzi.HasValue ? a.Yufagongzi.Value.ToString("F2") : "", |
| | | YufagongzihejiName = a.Yufagongziheji.HasValue ? a.Yufagongziheji.Value.ToString("F2") : "", |
| | | |
| | | |
| | | |
| | | Islock =a.Islock, |
| | | RecStatus = a.RecStatus, |
| | | Creater = a.Creater, |
| | | Createtime = a.Createtime, |
| | | Modifier = a.Modifier, |
| | | Modifytime = a.Modifytime, |
| | | |
| | | }).OrderByDescending(x => x.Modifytime).ToList(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (searchEntity.totalrows == 0) |
| | | searchEntity.totalrows = query.Count(); |
| | | var rolelist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | |
| | | data.LoadData(searchEntity, rolelist); |
| | | return data; |
| | | } |
| | | |
| | | public ResultEntity ModifyStatus(string id, string userid) |
| | | { |
| | | |
| | | ResultEntity result = new ResultEntity(); |
| | | result.Result = true; |
| | | |
| | | var model = _context.HrSalaries.Find(id); |
| | | if (model != null) |
| | | { |
| | | model.RecStatus = "D"; |
| | | model.Modifier = userid; |
| | | model.Modifytime = DateTime.Now; |
| | | _context.SaveChanges(); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åææææè§è² |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<HrSalaryDTO> GetList() |
| | | { |
| | | |
| | | |
| | | var listPosition = _context.HrSalaries.Where(r => r.RecStatus == "A").ToList(); |
| | | |
| | | var list = _mapper.Map<List<HrSalaryDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | } |
| | | } |
| | |
| | | PageID = page.Id, |
| | | SystemID = page.SystemId, |
| | | PageName = page.PageName, |
| | | PageShortcut = page.PageShortcut, |
| | | DisplaySeq = page.DisplaySeq ?? 0, |
| | | PagePath = page.PagePath, |
| | | PageType = page.PageType, |
| | |
| | | updatepltUser.miniyearsalary = pltUser.miniyearsalary; |
| | | updatepltUser.senioritywages = pltUser.senioritywages; |
| | | updatepltUser.Istravelsubsidy = pltUser.Istravelsubsidy; |
| | | updatepltUser.Beizhu = pltUser.Beizhu; |
| | | updatepltUser.baomisalary = pltUser.baomisalary; |
| | | updatepltUser.jibensalary = pltUser.jibensalary; |
| | | updatepltUser.jintiesalary = pltUser.jintiesalary; |
| | | updatepltUser.geshuiqizheng = pltUser.geshuiqizheng; |
| | | } |
| | | |
| | | _context.SaveChanges(); |
| | |
| | | into fsssss |
| | | from fff in fsssss.DefaultIfEmpty() |
| | | |
| | | |
| | | join h in listCode.Where(x => x.CodeTable == "system" && x.CodeField == "shifou") |
| | | on a.Istravelsubsidy equals h.CodeSn |
| | | into hsssss |
| | | from hhh in hsssss.DefaultIfEmpty() |
| | | |
| | | |
| | | where a.RecStatus == "A" |
| | |
| | | |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Phone) || a.Phone.Contains(searchEntity.Phone.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Zhiwustatus) || a.Zhiwustatus == searchEntity.Zhiwustatus.Trim()) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Usernumber) || a.Usernumber == searchEntity.Usernumber.Trim()) |
| | | //select a |
| | | select new PltUserDTO |
| | | { |
| | |
| | | Modifier = a.Modifier, |
| | | Modifytime = a.Modifytime, |
| | | UserSn = a.UserSn, |
| | | Coler = (a.IsQdht!="A"?"red":((!a.Shebaodate.HasValue) && (a.IsGmsb != "D")? "Darkorange" : "")) |
| | | Coler = (a.IsQdht!="A"?"red":((!a.Shebaodate.HasValue) && (a.IsGmsb != "D")? "Darkorange" : "")), |
| | | IpMac = a.IpMac, |
| | | Iswdenter = a.Iswdenter, |
| | | Isxmenter = a.Isxmenter, |
| | | Usernumber = a.Usernumber, |
| | | advancewages = a.advancewages, |
| | | miniyearsalary = a.miniyearsalary, |
| | | senioritywages = a.senioritywages, |
| | | Istravelsubsidy = a.Istravelsubsidy, |
| | | Beizhu = a.Beizhu, |
| | | IstravelsubsidyName = hhh.Comments, |
| | | advancewagesName = a.advancewages.HasValue ? a.advancewages.Value.ToString("F2") : "", |
| | | miniyearsalaryName = a.miniyearsalary.HasValue ? a.miniyearsalary.Value.ToString("F2") : "", |
| | | senioritywagesName = a.senioritywages.HasValue ? a.senioritywages.Value.ToString("F2") : "", |
| | | jibensalary = a.jibensalary, |
| | | baomisalary = a.baomisalary, |
| | | jintiesalary = a.jintiesalary, |
| | | jibensalaryName = a.jibensalary.HasValue ? a.jibensalary.Value.ToString("F2") : "", |
| | | baomisalaryName = a.baomisalary.HasValue ? a.baomisalary.Value.ToString("F2") : "", |
| | | jintiesalaryName = a.jintiesalary.HasValue ? a.jintiesalary.Value.ToString("F2") : "", |
| | | geshuiqizheng = a.geshuiqizheng, |
| | | geshuiqizhengName = a.geshuiqizheng.HasValue ? a.geshuiqizheng.Value.ToString("F2") : "", |
| | | |
| | | } |
| | | ).OrderBy(x => x.UserSn).ToList(); |
| | | ).OrderBy(x => x.Usernumber).ToList(); |
| | | |
| | | |
| | | |
| | |
| | | ViewData["curentuser"] = curentuser; |
| | | using (TransactionScope scope = new TransactionScope()) |
| | | { |
| | | dto.FullAttendance = 0; |
| | | dto.AbsenteeismPayment2 = 0; |
| | | dto.RecStatus = "A"; |
| | | if (String.IsNullOrEmpty(dto.Id)) |
| | | { |
| | |
| | | |
| | | ViewBag.Pieceratetype = _liaotianService.GetSYScode("CooperVisit", "jtype").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | |
| | | ViewBag.Standard = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return View(); |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ViewData["Pieceratetype"] = _liaotianService.GetSYScode("CooperVisit", "jtype"); |
| | | |
| | | ViewData["Standard"] = _liaotianService.GetSYScode("fi_piecerate", "standard"); |
| | | //ViewData["Pieceratetype"] = _liaotianService.GetSYScode("CooperVisit", "jtype"); |
| | | |
| | | //ViewData["Standard"] = _liaotianService.GetSYScode("fi_piecerate", "standard"); |
| | | ViewData["Standard"] = _liaotianService.GetSYScode("system", "shifou"); |
| | | ViewData.Model = dto; |
| | | return View(); |
| | | } |
| | |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | data.RecStatus = "A"; |
| | | //data.Standard = "01"; |
| | | data.CreatedAtTime = DateTime.Now; |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |
| | | data.Creater = curentuser.Id; |
New file |
| | |
| | | using DTO; |
| | | using IServices; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.Extensions.Logging; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using zhengcaioa.IService; |
| | | using zhengcaioa.Models; |
| | | |
| | | namespace zhengcaioa.Controllers.HR |
| | | { |
| | | [CheckLogin] |
| | | public class HrJibengongziController : Controller |
| | | { |
| | | private readonly ILogger<HrJibengongziController> _logger; |
| | | private readonly IHrJibengongziService _hrJibengongziService; |
| | | private readonly ILiaotianService _liaotianService; |
| | | private readonly IHrPositionService _hrPositionService; |
| | | |
| | | |
| | | |
| | | public HrJibengongziController(ILogger<HrJibengongziController> logger, IHrJibengongziService hrJibengongziService, ILiaotianService liaotianService, IHrPositionService hrPositionService) |
| | | { |
| | | _logger = logger; |
| | | _hrJibengongziService = hrJibengongziService; |
| | | _liaotianService = liaotianService; |
| | | _hrPositionService = hrPositionService; |
| | | } |
| | | |
| | | |
| | | public IActionResult Index() |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "æ¥è¯¢"; |
| | | actionlist.Add(actionEntity); |
| | | ActionEntity actionEntity1 = new ActionEntity(); |
| | | actionEntity1.OpenType = 0; |
| | | actionEntity1.ActionUrl = ""; |
| | | actionEntity1.ActionFun = "Add"; |
| | | actionEntity1.PageIco = "fa fa-plus"; |
| | | actionEntity1.ActionName = "æ°å¢"; |
| | | actionlist.Add(actionEntity1); |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | ViewBag.post = _hrPositionService.GetList().Select(x => new { code = x.Id, label = x.PostName }).ToList(); |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | public IActionResult GetList(HrJibengongziDTOSearch search) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver()); |
| | | return new JsonResult(_hrJibengongziService.SearchByPaging(search)); |
| | | } |
| | | |
| | | |
| | | #region ç¼è¾ |
| | | |
| | | public ActionResult Edit(string id = null) |
| | | { |
| | | |
| | | |
| | | |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | HrJibengongziDTO dto = new HrJibengongziDTO(); |
| | | if (!String.IsNullOrEmpty(id)) |
| | | { |
| | | dto = _hrJibengongziService.Get(id); |
| | | |
| | | } |
| | | dto.JibengongziName = dto.Jibengongzi.HasValue ? dto.Jibengongzi.Value.ToString("F2") : ""; |
| | | dto.BaomifeiName = dto.Baomifei.HasValue ? dto.Baomifei.Value.ToString("F2") : ""; |
| | | dto.ShebaodanweiName = dto.Shebaodanwei.HasValue ? dto.Shebaodanwei.Value.ToString("F2") : ""; |
| | | dto.ShebaogerenName = dto.Shebaogeren.HasValue ? dto.Shebaogeren.Value.ToString("F2") : ""; |
| | | dto.QuanqingjiangName = dto.Quanqingjiang.HasValue ? dto.Quanqingjiang.Value.ToString("F2") : ""; |
| | | dto.JiaotongbutieName = dto.Jiaotongbutie.HasValue ? dto.Jiaotongbutie.Value.ToString("F2") : ""; |
| | | dto.EffecttimeName = dto.Effecttime.HasValue ? dto.Effecttime.Value.ToString("yyyy-MM-dd") : DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | |
| | | |
| | | |
| | | ViewBag.dianhuabutie = _liaotianService.GetSYScode("hr_jibengongzi", "dianhuabutie"); |
| | | ViewBag.post = _hrPositionService.GetList(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ViewData.Model = dto; |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¿å |
| | | /// </summary> |
| | | /// <param name="data">å²ä½å®ä½ç±»å¯¹è±¡</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | |
| | | public IActionResult Save(HrJibengongziDTO data) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | data.RecStatus = "A"; |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |
| | | data.Creater = curentuser.Id; |
| | | data.Createtime = DateTime.Now; |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | |
| | | ResultEntity resultEntity = _hrJibengongziService.save(data); |
| | | |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// å é¤ä¸»ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="info">å®ä½</param> |
| | | /// <returns></returns> |
| | | /// |
| | | |
| | | public IActionResult Nullify(string Id = "") |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | return new JsonResult(_hrJibengongziService.ModifyStatus(Id, curentuser.Id)); |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | using DTO; |
| | | using IServices; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.Extensions.Logging; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using zhengcaioa.IService; |
| | | using zhengcaioa.Models; |
| | | |
| | | namespace zhengcaioa.Controllers.HR |
| | | { |
| | | [CheckLogin] |
| | | public class HrJixiaotichengController : Controller |
| | | { |
| | | private readonly ILogger<HrJixiaotichengController> _logger; |
| | | private readonly IHrJixiaotichengService _hrJixiaotichengService; |
| | | private readonly ILiaotianService _liaotianService; |
| | | private readonly IHrPositionService _hrPositionService; |
| | | private readonly IFiPiecerateService _fiPiecerateService; |
| | | |
| | | |
| | | |
| | | public HrJixiaotichengController(ILogger<HrJixiaotichengController> logger, IHrJixiaotichengService hrJixiaotichengService, ILiaotianService liaotianService, IHrPositionService hrPositionService |
| | | , IFiPiecerateService fiPiecerateService) |
| | | { |
| | | _logger = logger; |
| | | _hrJixiaotichengService = hrJixiaotichengService; |
| | | _liaotianService = liaotianService; |
| | | _hrPositionService = hrPositionService; |
| | | _fiPiecerateService = fiPiecerateService; |
| | | } |
| | | |
| | | public IActionResult Index() |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "æ¥è¯¢"; |
| | | actionlist.Add(actionEntity); |
| | | ActionEntity actionEntity1 = new ActionEntity(); |
| | | actionEntity1.OpenType = 0; |
| | | actionEntity1.ActionUrl = ""; |
| | | actionEntity1.ActionFun = "Add"; |
| | | actionEntity1.PageIco = "fa fa-plus"; |
| | | actionEntity1.ActionName = "æ°å¢"; |
| | | actionlist.Add(actionEntity1); |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | ViewBag.post = _hrPositionService.GetList().Select(x => new { code = x.Id, label = x.PostName }).ToList(); |
| | | ViewBag.Project = _fiPiecerateService.GetList().Select(x => new { code = x.Id, label = x.Project }).ToList(); |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | public IActionResult GetList(HrJixiaotichengDTOSearch search) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver()); |
| | | return new JsonResult(_hrJixiaotichengService.SearchByPaging(search)); |
| | | } |
| | | |
| | | |
| | | #region ç¼è¾ |
| | | |
| | | public ActionResult Edit(string id = null) |
| | | { |
| | | |
| | | |
| | | |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | HrJixiaotichengDTO dto = new HrJixiaotichengDTO(); |
| | | if (!String.IsNullOrEmpty(id)) |
| | | { |
| | | dto = _hrJixiaotichengService.Get(id); |
| | | |
| | | } |
| | | dto.RenwuName = dto.Renwu.HasValue ? dto.Renwu.Value.ToString("F2") : ""; |
| | | dto.TichengName = dto.Ticheng.HasValue ? dto.Ticheng.Value.ToString("F2") : ""; |
| | | |
| | | dto.EffecttimeName = dto.Effecttime.HasValue ? dto.Effecttime.Value.ToString("yyyy-MM-dd") : DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | |
| | | ViewBag.Project = _fiPiecerateService.GetList(); |
| | | ViewBag.post = _hrPositionService.GetList(); |
| | | |
| | | ViewBag.Tichengstandard = _liaotianService.GetSYScode("fi_piecerate", "standard"); |
| | | |
| | | ViewBag.Renwustandard = _liaotianService.GetSYScode("hr_jixiaoticheng", "renwustandard"); |
| | | |
| | | |
| | | |
| | | |
| | | ViewData.Model = dto; |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¿å |
| | | /// </summary> |
| | | /// <param name="data">å²ä½å®ä½ç±»å¯¹è±¡</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | |
| | | public IActionResult Save(HrJixiaotichengDTO data) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | data.RecStatus = "A"; |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |
| | | data.Creater = curentuser.Id; |
| | | data.Createtime = DateTime.Now; |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | |
| | | ResultEntity resultEntity = _hrJixiaotichengService.save(data); |
| | | |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// å é¤ä¸»ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="info">å®ä½</param> |
| | | /// <returns></returns> |
| | | /// |
| | | |
| | | public IActionResult Nullify(string Id = "") |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | return new JsonResult(_hrJixiaotichengService.ModifyStatus(Id, curentuser.Id)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | ViewData.Model = dto; |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [CheckLogin] |
| | | public IActionResult JiBenGongZi() |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "æ¥è¯¢"; |
| | | actionlist.Add(actionEntity); |
| | | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | #region ä¿®æ¹å¤æ³¨ |
| | | [CheckLogin] |
| | | public ActionResult EditBeizhu(string id = null) |
| | | { |
| | | |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | PltUserDTO PltUserDTO = new PltUserDTO(); |
| | | PltUserDTO.Zhiwustatus = "A"; |
| | | |
| | | if (!String.IsNullOrEmpty(id)) |
| | | { |
| | | PltUserDTO = _userService.GetPltUserEntity(id); |
| | | PltUserDTO.DeptName = _hrDeptService.Get(PltUserDTO.DeptId).DeptName; |
| | | |
| | | PltUserDTO.ShiyongDateName = PltUserDTO.ShiyongDate.HasValue?PltUserDTO.ShiyongDate.Value.ToString("yyyy-MM-dd") : ""; |
| | | PltUserDTO.ShiyongDateEndName = PltUserDTO.ShiyongDateEnd.HasValue ? PltUserDTO.ShiyongDateEnd.Value.ToString("yyyy-MM-dd") : ""; |
| | | } |
| | | |
| | | ViewData.Model = PltUserDTO; |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¿å |
| | | /// </summary> |
| | | /// <param name="data">å²ä½å®ä½ç±»å¯¹è±¡</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [CheckLogin] |
| | | public string SaveBeizhu(PltUserDTO userdata) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | |
| | | |
| | | PltUserDTO dTO = _userService.GetPltUserEntity(userdata.Id); |
| | | |
| | | |
| | | |
| | | dTO.ShiyongDate = userdata.ShiyongDate; |
| | | dTO.ShiyongDateEnd = userdata.ShiyongDateEnd; |
| | | dTO.ShiyongPrice = userdata.ShiyongPrice; |
| | | dTO.geshuiqizheng = userdata.geshuiqizheng; |
| | | dTO.advancewages = userdata.advancewages; |
| | | dTO.miniyearsalary = userdata.miniyearsalary; |
| | | dTO.senioritywages = userdata.senioritywages; |
| | | dTO.Istravelsubsidy = userdata.Istravelsubsidy; |
| | | dTO.BasicPrice = userdata.BasicPrice; |
| | | |
| | | dTO.Modifier = curentuser.Id; |
| | | dTO.Modifytime = DateTime.Now; |
| | | |
| | | resultEntity = _userService.savePltUser(dTO); |
| | | |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | ViewBag.PayType = _liaotianService.GetSYScode("CooperVisit", "jtype").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | //ViewBag.PayType = _liaotianService.GetSYScode("CooperVisit", "jtype").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | ViewBag.DeptId = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | |
| | |
| | | ViewData["UserId"] = _userService.GetList(); |
| | | |
| | | ViewData["DeptId"] = _hrDeptService.GetList(); |
| | | ViewData["WorkPro"] = _fiPiecerateService.GetList(); |
| | | ViewData["WorkPro"] = _fiPiecerateService.GetList().Where(x=>x.Standard == "A").ToList(); |
| | | |
| | | ViewData.Model = dto; |
| | | return View(); |
| | |
| | | using zhengcaioa.Model; |
| | | using zhengcaioa.Models; |
| | | using zhengcaioa.Service; |
| | | using zhengcaioa.Timer; |
| | | |
| | | namespace zhengcaioa |
| | | { |
| | |
| | | options.AddPolicy("any", builder => |
| | | { |
| | | builder.WithMethods("GET", "POST", "HEAD", "PUT", "DELETE", "OPTIONS") |
| | | .AllowAnyHeader() |
| | | //.AllowCredentials()//æå®å¤çcookie |
| | | .AllowAnyOrigin(); //å
è®¸ä»»ä½æ¥æºç主æºè®¿é® |
| | | }); |
| | | }); |
| | | |
| | | //services.AddCors(option => option.AddPolicy("cors", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowCredentials().AllowAnyOrigin())); |
| | | |
| | | services.AddSession(options => |
| | | { |
| | |
| | | services.AddScoped(typeof(IAdmAttendanceDtlService), typeof(AdmAttendanceDtlService)); |
| | | services.AddScoped(typeof(IAdmAttendanceService), typeof(AdmAttendanceService)); |
| | | |
| | | services.AddScoped(typeof(IHrJibengongziService), typeof(HrJibengongziService)); |
| | | |
| | | services.AddScoped(typeof(IHrJixiaotichengService), typeof(HrJixiaotichengService)); |
| | | |
| | | |
| | | |
| | | //宿¶æ§è¡ |
| | | services.AddHostedService<TimedBackgroundService>(); |
| | | |
| | | |
| | | services.AddAutoMapper(typeof(AutoMapperConfigs)); |
| | | services.AddUEditorService("ueditor.json", true, "wwwroot"); |
New file |
| | |
| | | using Microsoft.Extensions.Hosting; |
| | | using Microsoft.Extensions.Logging; |
| | | using System; |
| | | using System.IO; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace zhengcaioa.Timer |
| | | { |
| | | public class TimedBackgroundService : BackgroundService |
| | | { |
| | | private readonly ILogger _logger; |
| | | |
| | | |
| | | public TimedBackgroundService(ILogger<TimedBackgroundService> logger) |
| | | { |
| | | _logger = logger; |
| | | } |
| | | protected override async Task ExecuteAsync(CancellationToken stoppingToken) |
| | | { |
| | | _logger.LogInformation("MyServiceA is starting."); |
| | | |
| | | //stoppingToken.Register(() => File.Create($"E:\\dotnetCore\\Practice\\Practice\\{DateTime.Now.Millisecond}.txt")); |
| | | |
| | | while (!stoppingToken.IsCancellationRequested) |
| | | { |
| | | _logger.LogInformation("MyServiceA å¼å§æ§è¡"); |
| | | |
| | | await Task.Delay(TimeSpan.FromMinutes(1), stoppingToken); |
| | | |
| | | _logger.LogInformation("ç»§ç»æ§è¡"); |
| | | } |
| | | |
| | | _logger.LogInformation("MyServiceA background task is stopping."); |
| | | } |
| | | |
| | | public override void Dispose() |
| | | { |
| | | base.Dispose(); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | var PayType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.PayType))'; |
| | | @*var PayType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.PayType))';*@ |
| | | |
| | | var DeptId = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.DeptId))'; |
| | | loseherght = 30; |
| | |
| | | dataUrl = "/AdmPieceCheck/GetList"; |
| | | searchCol = [ |
| | | { label: '工使¶é´', name: 'WorkTime', labtype: 'datearea', hidden: false }, |
| | | { label: 'ç±»å«', name: 'PayType', labtype: 'combox', hidden: false, data: JSON.parse(PayType), cwidth: '5%', cccwidth: '8%' }, |
| | | //{ label: 'ç±»å«', name: 'PayType', labtype: 'combox', hidden: false, data: JSON.parse(PayType), cwidth: '5%', cccwidth: '8%' }, |
| | | { label: 'é¨é¨', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(DeptId), cwidth: '5%', cccwidth: '8%' }, |
| | | { label: 'å§å', name: 'UserName', labtype: 'txt', hidden: false }, |
| | | |
| | |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | |
| | | List<SysCodeDtl> Pieceratetype = ViewData["Pieceratetype"] as List<SysCodeDtl>; //è¡ä¸åç±» |
| | | //List<SysCodeDtl> Pieceratetype = ViewData["Pieceratetype"] as List<SysCodeDtl>; //è¡ä¸åç±» |
| | | |
| | | |
| | | List<SysCodeDtl> Standard = ViewData["Standard"] as List<SysCodeDtl>; //æææ å |
| | | List<SysCodeDtl> Standard = ViewData["Standard"] as List<SysCodeDtl>; //æææ å |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | @{ |
| | |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | @*<div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">å¯ç¨æ¶é´<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="CreatedAtTime" class="form-control" label="å¯ç¨æ¶é´" name="CreatedAtTime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.CreatedAtTime.ToString("yyyy/MM/dd")" readonly="readonly"> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | |
| | | </div> |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </div>*@ |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">æå¡é¡¹ç®<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input class="form-control" label="æå¡é¡¹ç®" name="Project" id="Project" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Project"> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | </div> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">æ¯å¦è®¡ä»¶ç»è®°<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <select id="Standard" class="form-control" name="Standard" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in Standard) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.Standard)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | </select> |
| | | |
| | | </div> |
| | | |
| | | |
| | | @*<label class="text-right col-sm-1 col-md-1 control-label">项ç®ä»·æ ¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input class="form-control" label="项ç®ä»·æ ¼" name="Amount" id="Amount" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Amount" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div>*@ |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">项ç®ä»·æ ¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input class="form-control" label="项ç®ä»·æ ¼" name="Amount" id="Amount" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Amount" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | @*<div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">æææ å</label> |
| | |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input class="form-control" label="ææé¢åº¦" name="Percent" id="Percent" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Percent" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | </div> |
| | | </div>*@ |
| | | |
| | | |
| | | |
| | |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | laydate({ elem: "#CreatedAtTime", format: 'YYYY/MM/DD', istime: false, event: "focus" }); |
| | | //laydate({ elem: "#CreatedAtTime", format: 'YYYY/MM/DD', istime: false, event: "focus" }); |
| | | |
| | | |
| | | var id = '@Model.Id'; |
| | |
| | | |
| | | // ä¿åå²ä½ä¿¡æ¯ |
| | | var savePosition = function () { |
| | | if ($("#CreatedAtTime").val() == '') { |
| | | toastr.warning("å¯ç¨æ¶é´ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($("#Pieceratetype").val() == '') { |
| | | toastr.warning("ç±»å«ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | //if ($("#CreatedAtTime").val() == '') { |
| | | // toastr.warning("å¯ç¨æ¶é´ä¸è½ä¸ºç©º"); |
| | | // return; |
| | | //} |
| | | //if ($("#Pieceratetype").val() == '') { |
| | | // toastr.warning("ç±»å«ä¸è½ä¸ºç©º"); |
| | | // return; |
| | | //} |
| | | |
| | | |
| | | |
| | |
| | | toastr.warning("æå¡é¡¹ç®ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($.trim($("#Amount").val()) == '') { |
| | | toastr.warning("项ç®ä»·æ ¼ä¸è½ä¸ºç©º"); |
| | | if ($.trim($("#Standard").val()) == '') { |
| | | toastr.warning("æ¯å¦è®¡ä»¶ç»è®°ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($.trim($("#Standard").val()) == '') { |
| | | toastr.warning("æææ åä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($.trim($("#Percent").val()) == '') { |
| | | toastr.warning("ææé¢åº¦ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | //if ($.trim($("#Amount").val()) == '') { |
| | | // toastr.warning("项ç®ä»·æ ¼ä¸è½ä¸ºç©º"); |
| | | // return; |
| | | //} |
| | | |
| | | //if ($.trim($("#Percent").val()) == '') { |
| | | // toastr.warning("ææé¢åº¦ä¸è½ä¸ºç©º"); |
| | | // return; |
| | | //} |
| | | |
| | | //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } |
| | | $.ajax({ |
| | |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | var Pieceratetype = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Pieceratetype))'; |
| | | |
| | | |
| | | var Standard = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Standard))'; |
| | | |
| | | |
| | | //loseherght = 60; |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | |
| | | { label: 'ç±»å«', name: 'PieceratetypeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { label: 'ç±»å«', name: 'PieceratetypeName', labtype: 'txt', hidden: true, width: 100 }, |
| | | { |
| | | label: 'æå¡é¡¹ç®', name: 'Project', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | |
| | | } |
| | | }, |
| | | |
| | | |
| | | { label: 'æææ å', name: 'StandardName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: 'ææé¢åº¦', name: 'Percent', labtype: 'txt', hidden: false, width: 100 }, |
| | | { |
| | | label: 'å¯ç¨æ¶é´', name: 'CreatedAtTimeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | |
| | | { label: 'æ¯å¦è®¡ä»¶ç»è®°', name: 'StandardName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: 'ææé¢åº¦', name: 'Percent', labtype: 'txt', hidden: true, width: 100 }, |
| | | { |
| | | label: 'å¯ç¨æ¶é´', name: 'CreatedAtTimeName', labtype: 'txt', hidden: true, width: 100 }, |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | |
| | | |
| | | |
| | | |
| | | { label: 'å¯ç¨æ¶é´', name: 'CreatedAtTime', labtype: 'datearea', hidden: false }, |
| | | { label: 'ç±»å«', name: 'Pieceratetype', labtype: 'combox', hidden: false, data: JSON.parse(Pieceratetype), cwidth: '5%', cccwidth: '8%' }, |
| | | //{ label: 'å¯ç¨æ¶é´', name: 'CreatedAtTime', labtype: 'datearea', hidden: false }, |
| | | //{ label: 'ç±»å«', name: 'Pieceratetype', labtype: 'combox', hidden: false, data: JSON.parse(Pieceratetype), cwidth: '5%', cccwidth: '8%' }, |
| | | { label: 'æå¡é¡¹ç®', name: 'Project', labtype: 'txt', hidden: false }, |
| | | |
| | | { label: 'æ¯å¦è®¡ä»¶ç»è®°', name: 'Standard', labtype: 'combox', hidden: false, data: JSON.parse(Standard), cwidth: '5%', cccwidth: '8%' }, |
| | | |
| | | |
| | | ]; |
| | | var _pageAdd = function () { |
| | | OpenWindow("æ°å¢è®¡ä»¶æ å", "98%", "90%", "/FiPiecerate/Edit/"); |
New file |
| | |
| | | @model DTO.HrJibengongziDTO |
| | | @using DTO; |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | |
| | | |
| | | List<SysCodeDtl> dianhuabutie = ViewData["dianhuabutie"] as List<SysCodeDtl>; //ç©åç¶æ |
| | | |
| | | List<HrPositionDTO> PostId = ViewData["post"] as List<HrPositionDTO>; //ç©åç±»å |
| | | |
| | | } |
| | | @{ |
| | | Layout = null; |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
| | | <meta name="description" content=""> |
| | | <meta name="author" content="ThemeBucket"> |
| | | <title>@(SiteConfig.SiteName)</title> |
| | | <link href="~/css/bootstrap.min.css" rel="stylesheet"> |
| | | <link href="~/css/font-awesome.min.css" rel="stylesheet"> |
| | | <link href="~/css/animate.min.css" rel="stylesheet"> |
| | | |
| | | @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> |
| | | @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ |
| | | @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> |
| | | <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> |
| | | |
| | | <style type="text/css"> |
| | | .webuploader-pick { |
| | | position: relative; |
| | | display: inline-block; |
| | | cursor: pointer; |
| | | background: #00b7ee; |
| | | padding: 8px 14px 7px 14px; |
| | | color: #fff; |
| | | text-align: center; |
| | | border-radius: 3px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | div.clearfix > label { |
| | | padding-top: 8px; |
| | | } |
| | | |
| | | .chosen-container { |
| | | border-radius: 1px; |
| | | border: 1px solid #e5e6e7; |
| | | } |
| | | |
| | | .col-md-1.control-label { |
| | | padding-right: 0px; |
| | | font-weight: 400; |
| | | } |
| | | </style> |
| | | |
| | | <!-- jqgrid--> |
| | | @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@ |
| | | <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> |
| | | <script src="~/js/bootstrap.min.js"></script> |
| | | @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@ |
| | | |
| | | <!--容å¨--> |
| | | @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> |
| | | @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ |
| | | <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/webuploader/webuploader.min.js"></script> |
| | | |
| | | <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ |
| | | <script src="~/js/TUJS.js"></script> |
| | | </head> |
| | | <body class="gray-bg" style="overflow:auto"> |
| | | <form id="formtest"> |
| | | <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> |
| | | <div class="row"> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5> <i class="fa fa-list"></i> åºæ¬ä¿¡æ¯</h5> |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">èå¡<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <select id="PostId" class="form-control" name="PostId" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in PostId) |
| | | { |
| | | @if (!item.Id.Equals(Model.PostId)) |
| | | { |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.PostName |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.PostName |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">åºæ¬å·¥èµï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="åºæ¬å·¥èµï¼å
ï¼" name="Jibengongzi" id="Jibengongzi" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.JibengongziName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">ä¿å¯è´¹ï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="ä¿å¯è´¹ï¼å
ï¼" name="Baomifei" id="Baomifei" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.BaomifeiName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">社ä¿å
¬å¸ï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="社ä¿å
¬å¸ï¼å
ï¼" name="Shebaodanwei" id="Shebaodanwei" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.ShebaodanweiName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">社ä¿ä¸ªäººï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="社ä¿ä¸ªäººï¼å
ï¼" name="Shebaogeren" id="Shebaogeren" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.ShebaogerenName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">çµè¯è¡¥è´´ï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <select id="Dianhuabutie" class="form-control" name="Dianhuabutie" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in dianhuabutie) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.Dianhuabutie)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">å
¨å¤å¥ï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="å
¨å¤å¥ï¼å
ï¼" name="Quanqingjiang" id="Quanqingjiang" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.QuanqingjiangName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">交é补贴ï¼å
ï¼<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="交é补贴ï¼å
ï¼" name="Jiaotongbutie" id="Jiaotongbutie" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.JiaotongbutieName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">çææ¥æ<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="Effecttime" class="form-control" label="çææ¥æ" name="Effecttime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.EffecttimeName" readonly="readonly"> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="wrapper wrapper-content" style="margin-top:0px"></div> |
| | | <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> |
| | | <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="åè½æé®ï¼âä¿åâï¼âå é¤â"> |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-remove"></i> <span class="bold">å é¤</span> |
| | | </a> |
| | | |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">æäº¤</span> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | </form> |
| | | <!-- é
ç½®æä»¶ --> |
| | | <script type="text/javascript" src="/js/ueditor/ueditor.config.js?v=10"></script> |
| | | <!-- ç¼è¾å¨æºç æä»¶ --> |
| | | <script type="text/javascript" src="/js/ueditor/ueditor.all.min.js?v=2"></script> |
| | | <!-- å®ä¾åç¼è¾å¨ --> |
| | | <script type="text/javascript"> |
| | | |
| | | var ue4 = UE.getEditor('DocContent', { |
| | | initialFrameHeight: 500 |
| | | }); |
| | | @*ue4.ready(function () { |
| | | //设置ç¼è¾å¨çå
容 |
| | | ue4.setContent('@Html.Raw(Model.DocContent)'); |
| | | ////è·åhtmlå
容ï¼è¿å: <p>hello</p> |
| | | //var html = ue.getContent(); |
| | | ////è·åçº¯ææ¬å
容ï¼è¿å: hello |
| | | //var txt = ue.getContentTxt(); |
| | | });*@ |
| | | </script> |
| | | <script type="text/javascript"> |
| | | var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; |
| | | $("#div_content").height(hh); |
| | | |
| | | toastr.options = { |
| | | "closeButton": true, |
| | | "debug": false, |
| | | "progressBar": true, |
| | | "positionClass": "toast-bottom-right", |
| | | "onclick": null, |
| | | "showDuration": "300", |
| | | "hideDuration": "600", |
| | | "timeOut": "4500", |
| | | "extendedTimeOut": "600", |
| | | "showEasing": "swing", |
| | | "hideEasing": "linear", |
| | | "showMethod": "fadeIn", |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | |
| | | $("#PostId").chosen(); |
| | | |
| | | laydate({ elem: "#Effecttime", format: 'YYYY-MM-DD', istime: true, event: "focus" }); |
| | | |
| | | var id = '@Model.Id'; |
| | | |
| | | var delPosition = function () { |
| | | if (id == null || id == '') { |
| | | toastr.warning("请å
ä¿å"); |
| | | return; |
| | | } |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: "/HrJibengongzi/Nullify?id=" + id, |
| | | dataType: "json", |
| | | global: false, |
| | | data: '', |
| | | success: function (data) { |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('å 餿å', { icon: 6 }); |
| | | _pageAutoClose();//èªå¨å
³é页颿¹æ³ |
| | | } |
| | | else { |
| | | // toastr.error(""); |
| | | parent.layer.msg('å é¤å¤±è´¥', { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | if ($.isNumber(imgLoad)) { |
| | | parent.layer.close(imgLoad); |
| | | } |
| | | //toastr.error("ä¿å失败"); |
| | | |
| | | parent.layer.msg('ä¿å失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | // ä¿åå²ä½ä¿¡æ¯ |
| | | var savePosition = function () { |
| | | |
| | | |
| | | |
| | | if ($("#PostId").val() == '') { |
| | | toastr.warning("å²ä½ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($("#Jibengongzi").val() == '') { |
| | | toastr.warning("åºæ¬å·¥èµä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($("#Baomifei").val() == '') { |
| | | toastr.warning("ä¿å¯è´¹ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#Shebaodanwei").val() == '') { |
| | | toastr.warning("社ä¿å
¬å¸ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#Shebaogeren").val() == '') { |
| | | toastr.warning("社ä¿ä¸ªäººä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($.trim($("#Dianhuabutie").val() )== '') { |
| | | toastr.warning("çµè¯è¡¥è´´ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($.trim($("#Quanqingjiang").val()) == '') { |
| | | toastr.warning("å
¨å¤å¥ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($.trim($("#Jiaotongbutie").val()) == '') { |
| | | toastr.warning("交é补贴ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($.trim($("#Effecttime").val()) == '') { |
| | | toastr.warning("çææ¥æä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()} |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/HrJibengongzi/Save", |
| | | dataType: "json", |
| | | global: false, |
| | | data: $('form').serializeArray(), |
| | | success: function (data) { |
| | | |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('æåä¿å', { icon: 6 }); |
| | | //window.location = "/Project/add?id=" + data.ReturnID; |
| | | |
| | | |
| | | try { |
| | | _pageAutoClose();//èªå¨å
³é页颿¹æ³ |
| | | } |
| | | catch (err) { |
| | | parent._CloseTab1("/HrJibengongzi/Edit/"); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | // toastr.error("失败"); |
| | | parent.layer.msg(data.Message, { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | function _pageAutoClose() { |
| | | parent.window._reloadPageData(); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.isRefresh = true; |
| | | parent.layer.closeAll('loading'); |
| | | parent.layer.close(index); |
| | | return false; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | @{ |
| | | ViewBag.Title = "HrJibengongzi"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | var post = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.post))'; |
| | | |
| | | |
| | | |
| | | |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | { |
| | | label: 'èå¡', name: 'PostName', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/HrJibengongzi/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | } |
| | | }, |
| | | { |
| | | label: 'åºæ¬å·¥èµ', name: 'JibengongziName', labtype: 'txt', hidden: false, width: 100 |
| | | }, |
| | | |
| | | { |
| | | label: 'ä¿å¯è´¹', name: 'BaomifeiName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { label: '社ä¿å
¬å¸', name: 'ShebaodanweiName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { label: '社ä¿ä¸ªäºº', name: 'ShebaogerenName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: 'çµè¯è¡¥è´´', name: 'DianhuabutieName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { label: 'å
¨å¤å¥', name: 'QuanqingjiangName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '交é补贴', name: 'JiaotongbutieName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: 'çææ¥æ', name: 'EffecttimeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | ]; |
| | | dataUrl = "/HrJibengongzi/GetList"; |
| | | searchCol = [ |
| | | |
| | | { label: 'èå¡', name: 'PostId', labtype: 'combox', hidden: false, data: JSON.parse(post), cwidth: '5%', cccwidth: '8%' }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | |
| | | |
| | | var _pageAdd = function () { |
| | | OpenWindow("æ°å¢åºæ¬å·¥èµ", "98%", "100%", "/HrJibengongzi/Edit/"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |
| | | toastr.success("ä¿åæå"); |
| | | } else { |
| | | toastr.error("ä¿å失败"); |
| | | } |
| | | } |
| | | |
| | | var _afterDel = function (result) { |
| | | if (result) { |
| | | toastr.success("å 餿å"); |
| | | } else { |
| | | /**/ |
| | | toastr.error("å 餿å"); |
| | | /**/ |
| | | } |
| | | } |
| | | </script> |
| | | } |
| | | |
| | | @section footerScripts{ |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |
New file |
| | |
| | | @model DTO.HrJixiaotichengDTO |
| | | @using DTO; |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | |
| | | |
| | | List<SysCodeDtl> Tichengstandard = ViewData["Tichengstandard"] as List<SysCodeDtl>; //ç©åç¶æ |
| | | |
| | | List<SysCodeDtl> Renwustandard = ViewData["Renwustandard"] as List<SysCodeDtl>; //ç©åç¶æ |
| | | |
| | | List<HrPositionDTO> PostId = ViewData["post"] as List<HrPositionDTO>; //èå¡ |
| | | |
| | | List<FiPiecerateDTO> Project = ViewData["Project"] as List<FiPiecerateDTO>; //ç©åç±»å |
| | | |
| | | } |
| | | @{ |
| | | Layout = null; |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
| | | <meta name="description" content=""> |
| | | <meta name="author" content="ThemeBucket"> |
| | | <title>@(SiteConfig.SiteName)</title> |
| | | <link href="~/css/bootstrap.min.css" rel="stylesheet"> |
| | | <link href="~/css/font-awesome.min.css" rel="stylesheet"> |
| | | <link href="~/css/animate.min.css" rel="stylesheet"> |
| | | |
| | | @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> |
| | | @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ |
| | | @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> |
| | | <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> |
| | | |
| | | <style type="text/css"> |
| | | .webuploader-pick { |
| | | position: relative; |
| | | display: inline-block; |
| | | cursor: pointer; |
| | | background: #00b7ee; |
| | | padding: 8px 14px 7px 14px; |
| | | color: #fff; |
| | | text-align: center; |
| | | border-radius: 3px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | div.clearfix > label { |
| | | padding-top: 8px; |
| | | } |
| | | |
| | | .chosen-container { |
| | | border-radius: 1px; |
| | | border: 1px solid #e5e6e7; |
| | | } |
| | | |
| | | .col-md-1.control-label { |
| | | padding-right: 0px; |
| | | font-weight: 400; |
| | | } |
| | | </style> |
| | | |
| | | <!-- jqgrid--> |
| | | @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@ |
| | | <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> |
| | | <script src="~/js/bootstrap.min.js"></script> |
| | | @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@ |
| | | |
| | | <!--容å¨--> |
| | | @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> |
| | | @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ |
| | | <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/webuploader/webuploader.min.js"></script> |
| | | |
| | | <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ |
| | | <script src="~/js/TUJS.js"></script> |
| | | </head> |
| | | <body class="gray-bg" style="overflow:auto"> |
| | | <form id="formtest"> |
| | | <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> |
| | | <div class="row"> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5> <i class="fa fa-list"></i> åºæ¬ä¿¡æ¯</h5> |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">èå¡<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <select id="PostId" class="form-control" name="PostId" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in PostId) |
| | | { |
| | | @if (!item.Id.Equals(Model.PostId)) |
| | | { |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.PostName |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.PostName |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">计件项ç®<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <select id="PiecerateId" class="form-control" name="PiecerateId" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in Project) |
| | | { |
| | | @if (!item.Id.Equals(Model.PiecerateId)) |
| | | { |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.Project |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.Project |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">æææ å<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <select id="Tichengstandard" class="form-control" name="Tichengstandard" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in Tichengstandard) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.Tichengstandard)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">ææ<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="ææ" name="Ticheng" id="Ticheng" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.TichengName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">任塿 å<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <select id="Renwustandard" class="form-control" name="Renwustandard" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in Renwustandard) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.Renwustandard)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">ä»»å¡åºæ°<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="ä»»å¡åºæ°" name="Renwu" id="Renwu" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.RenwuName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">çææ¥æ<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="Effecttime" class="form-control" label="çææ¥æ" name="Effecttime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.EffecttimeName" readonly="readonly"> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="wrapper wrapper-content" style="margin-top:0px"></div> |
| | | <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> |
| | | <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="åè½æé®ï¼âä¿åâï¼âå é¤â"> |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-remove"></i> <span class="bold">å é¤</span> |
| | | </a> |
| | | |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">æäº¤</span> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | </form> |
| | | <!-- é
ç½®æä»¶ --> |
| | | <script type="text/javascript" src="/js/ueditor/ueditor.config.js?v=10"></script> |
| | | <!-- ç¼è¾å¨æºç æä»¶ --> |
| | | <script type="text/javascript" src="/js/ueditor/ueditor.all.min.js?v=2"></script> |
| | | <!-- å®ä¾åç¼è¾å¨ --> |
| | | <script type="text/javascript"> |
| | | |
| | | var ue4 = UE.getEditor('DocContent', { |
| | | initialFrameHeight: 500 |
| | | }); |
| | | @*ue4.ready(function () { |
| | | //设置ç¼è¾å¨çå
容 |
| | | ue4.setContent('@Html.Raw(Model.DocContent)'); |
| | | ////è·åhtmlå
容ï¼è¿å: <p>hello</p> |
| | | //var html = ue.getContent(); |
| | | ////è·åçº¯ææ¬å
容ï¼è¿å: hello |
| | | //var txt = ue.getContentTxt(); |
| | | });*@ |
| | | </script> |
| | | <script type="text/javascript"> |
| | | var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; |
| | | $("#div_content").height(hh); |
| | | |
| | | toastr.options = { |
| | | "closeButton": true, |
| | | "debug": false, |
| | | "progressBar": true, |
| | | "positionClass": "toast-bottom-right", |
| | | "onclick": null, |
| | | "showDuration": "300", |
| | | "hideDuration": "600", |
| | | "timeOut": "4500", |
| | | "extendedTimeOut": "600", |
| | | "showEasing": "swing", |
| | | "hideEasing": "linear", |
| | | "showMethod": "fadeIn", |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | |
| | | $("#PostId").chosen(); |
| | | $("#PiecerateId").chosen(); |
| | | |
| | | |
| | | laydate({ elem: "#Effecttime", format: 'YYYY-MM-DD', istime: true, event: "focus" }); |
| | | |
| | | var id = '@Model.Id'; |
| | | |
| | | var delPosition = function () { |
| | | if (id == null || id == '') { |
| | | toastr.warning("请å
ä¿å"); |
| | | return; |
| | | } |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: "/HrJixiaoticheng/Nullify?id=" + id, |
| | | dataType: "json", |
| | | global: false, |
| | | data: '', |
| | | success: function (data) { |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('å 餿å', { icon: 6 }); |
| | | _pageAutoClose();//èªå¨å
³é页颿¹æ³ |
| | | } |
| | | else { |
| | | // toastr.error(""); |
| | | parent.layer.msg('å é¤å¤±è´¥', { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | if ($.isNumber(imgLoad)) { |
| | | parent.layer.close(imgLoad); |
| | | } |
| | | //toastr.error("ä¿å失败"); |
| | | |
| | | parent.layer.msg('ä¿å失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | // ä¿åå²ä½ä¿¡æ¯ |
| | | var savePosition = function () { |
| | | |
| | | |
| | | |
| | | if ($("#PostId").val() == '') { |
| | | toastr.warning("å²ä½ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | if ($("#PiecerateId").val() == '') { |
| | | toastr.warning("计件项ç®ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#Tichengstandard").val() == '') { |
| | | toastr.warning("æææ åä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#Ticheng").val() == '') { |
| | | toastr.warning("ææä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#Renwustandard").val() == '') { |
| | | toastr.warning("任塿 åä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | if ($.trim($("#Renwu").val() )== '') { |
| | | toastr.warning("ä»»å¡åºæ°ä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($.trim($("#Effecttime").val()) == '') { |
| | | toastr.warning("çææ¥æä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()} |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/HrJixiaoticheng/Save", |
| | | dataType: "json", |
| | | global: false, |
| | | data: $('form').serializeArray(), |
| | | success: function (data) { |
| | | |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('æåä¿å', { icon: 6 }); |
| | | //window.location = "/Project/add?id=" + data.ReturnID; |
| | | |
| | | |
| | | try { |
| | | _pageAutoClose();//èªå¨å
³é页颿¹æ³ |
| | | } |
| | | catch (err) { |
| | | parent._CloseTab1("/HrJixiaoticheng/Edit/"); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | // toastr.error("失败"); |
| | | parent.layer.msg(data.Message, { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | function _pageAutoClose() { |
| | | parent.window._reloadPageData(); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.isRefresh = true; |
| | | parent.layer.closeAll('loading'); |
| | | parent.layer.close(index); |
| | | return false; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | @{ |
| | | ViewBag.Title = "HrJixiaoticheng"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | var post = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.post))'; |
| | | |
| | | var Project = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Project))'; |
| | | |
| | | |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | { |
| | | label: 'èå¡', name: 'PostName', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/HrJixiaoticheng/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | } |
| | | }, |
| | | { |
| | | label: '计件项ç®', name: 'PiecerateName', labtype: 'txt', hidden: false, width: 100 |
| | | }, |
| | | { |
| | | label: 'æææ å', name: 'TichengstandardName', labtype: 'txt', hidden: false, width: 100 |
| | | }, |
| | | |
| | | { |
| | | label: 'ææ', name: 'TichengName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { label: '任塿 å', name: 'RenwustandardName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { label: 'ä»»å¡åºæ°', name: 'RenwuName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { label: 'çææ¥æ', name: 'EffecttimeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | ]; |
| | | dataUrl = "/HrJixiaoticheng/GetList"; |
| | | searchCol = [ |
| | | |
| | | { label: 'èå¡', name: 'PostId', labtype: 'combox', hidden: false, data: JSON.parse(post), cwidth: '5%', cccwidth: '8%' }, |
| | | { label: '计件项ç®', name: 'PiecerateId', labtype: 'combox', hidden: false, data: JSON.parse(Project), cwidth: '5%', cccwidth: '8%' }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | |
| | | |
| | | var _pageAdd = function () { |
| | | OpenWindow("æ°å¢ç»©ææææ å", "98%", "100%", "/HrJixiaoticheng/Edit/"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |
| | | toastr.success("ä¿åæå"); |
| | | } else { |
| | | toastr.error("ä¿å失败"); |
| | | } |
| | | } |
| | | |
| | | var _afterDel = function (result) { |
| | | if (result) { |
| | | toastr.success("å 餿å"); |
| | | } else { |
| | | /**/ |
| | | toastr.error("å 餿å"); |
| | | /**/ |
| | | } |
| | | } |
| | | </script> |
| | | } |
| | | |
| | | @section footerScripts{ |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |
| | |
| | | </script> |
| | | <script src="~/js/datehelper.js"></script> |
| | | <!-- jqgrid--> |
| | | <link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/jqgrid/ui.jqgrid.css?v=111111111" rel="stylesheet"> |
| | | <link href="~/css/animate.min.css" rel="stylesheet"> |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> |
| | |
| | | <script src="~/js/plugins/search/searchtoolbar.js?v=17"></script> |
| | | <script src="~/js/plugins/chosen/chosen.jquery.js"></script> |
| | | <script src="~/js/plugins/iCheck/icheck.min.js"></script> |
| | | <script src="~/js/plugins/search/search.js?v=1"></script> |
| | | <script src="~/js/plugins/search/search.js?v=111111111"></script> |
| | | <script src="~/js/plugins/datapicker/bootstrap-datepicker.js"></script> |
| | | <script type="text/javascript" src="~/js/plugins/treeview/bootstrap-treeview.js"></script> |
| | | <script src="~/js/TUJS.js"></script> |
| | |
| | | <style type="text/css"> |
| | | |
| | | label { |
| | | |
| | | font-weight:normal; |
| | | font-weight: normal; |
| | | } |
| | | |
| | | th { |
| | | font-weight: normal; |
| | | } |
| | | </style> |
| | | @RenderSection("headerStyle", false) |
| | | @RenderSection("headerStyle", false) |
| | | </head> |
| | | <body class="gray-bg" style="padding-top:0px; padding-left:0px; padding-right:0px; "> |
| | | |
| | |
| | | </div> |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | @*<div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <div class="col-sm-6 col-md-6"> |
| | | <span>å
¨å¤å¥</span> |
| | | <input type="number" value="@Model.FullAttendance" name="FullAttendance" id="FullAttendance" style="width:150px" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">å
|
| | | </div> |
| | | </div> |
| | | </div>*@ |
| | | |
| | | <h5 style="color:cornflowerblue;">è¿å°æ£æ¬¾:</h5> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <div class="col-sm-6 col-md-6"> |
| | | <span>è¿å°</span><input style="width:150px" type="number" min="0" step="1" max="999999" value="@Model.Absenteeism" name="Absenteeism" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">åé记为æ·å·¥ |
| | | <span>å天</span><input style="width:150px" type="number" min="0.01" step="0.01" max="999999" value="@Model.AbsenteeismPayment1" name="AbsenteeismPayment1" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">å
|
| | | <span>1天</span><input style="width:150px" type="number" min="0.01" step="0.01" max="999999" value="@Model.AbsenteeismPayment2" name="AbsenteeismPayment2" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">å
|
| | | <span>æ·å·¥æ£æ¬¾</span><input style="width:150px" type="number" min="0.01" step="0.01" max="999999" value="@Model.AbsenteeismPayment1" name="AbsenteeismPayment1" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">åå·¥èµ |
| | | @*<span>1天</span><input style="width:150px" type="number" min="0.01" step="0.01" max="999999" value="@Model.AbsenteeismPayment2" name="AbsenteeismPayment2" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">å
*@ |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5><i class="fa fa-list"></i> 项ç®å½å
¥</h5> |
| | | <h5><i class="fa fa-list"></i> 人åå½å
¥</h5> |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">èªèµå¾
é </label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="BasicPrice" class="form-control" label="èªèµå¾
é" name="BasicPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.BasicPrice" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | <input id="BasicPrice" class="form-control" label="èªèµå¾
é" name="BasicPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.BasicPrice" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">æ¯å¦è´ä¹°ç¤¾ä¿ </label> |
| | |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">è¯ç¨æå¾
é</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="ShiyongPrice" class="form-control" label="è¯ç¨æå¾
é" name="ShiyongPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShiyongPrice" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | <input id="ShiyongPrice" class="form-control" label="è¯ç¨æå¾
é" name="ShiyongPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShiyongPrice" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">æ¯å¦ç¾è®¢åå </label> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | @*<div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">åºæ¬å·¥èµ </label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="åºæ¬å·¥èµ" name="jibensalary" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.jibensalary" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/æ</label> |
| | | </div> |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">ä¿å¯è´¹</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="ä¿å¯è´¹" name="baomisalary" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.baomisalary" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/æ</label> |
| | | </div> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">å·¥ä½è¡¥è´´</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="å·¥ä½è¡¥è´´" name="jintiesalary" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.jintiesalary" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/å¹´</label> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div>*@ |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">é¢åå·¥èµ </label> |
| | | <div class="col-sm-2 col-md-2"> |
| | |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/æ</label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">ä¿åºå¹´èª</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="ä¿åºå¹´èª" name="miniyearsalary" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.miniyearsalary" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/å¹´</label> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">æ¯å¦äº¤é补贴</label> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">èç³»çµè¯<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="Email" class="form-control" label="çµåé®ç®±" name="Email" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.Email"> |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">ä¸é¡¹æ£é¤</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="geshuiqizheng" class="form-control" label="ä¸é¡¹æ£é¤" name="geshuiqizheng" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.geshuiqizheng" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
New file |
| | |
| | | @model DTO.PltUserDTO |
| | | @using DTO; |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | |
| | | List<SysCodeDtl> shifou = ViewBag.shifou as List<SysCodeDtl>; //æ¯å¦ |
| | | |
| | | |
| | | } |
| | | @{ |
| | | Layout = null; |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
| | | <meta name="description" content=""> |
| | | <meta name="author" content="ThemeBucket"> |
| | | <title>@(SiteConfig.SiteName)</title> |
| | | <link href="~/css/bootstrap.min.css" rel="stylesheet"> |
| | | <link href="~/css/font-awesome.min.css" rel="stylesheet"> |
| | | <link href="~/css/animate.min.css" rel="stylesheet"> |
| | | |
| | | @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> |
| | | @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ |
| | | @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> |
| | | <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> |
| | | |
| | | <style type="text/css"> |
| | | .webuploader-pick { |
| | | position: relative; |
| | | display: inline-block; |
| | | cursor: pointer; |
| | | background: #00b7ee; |
| | | padding: 8px 14px 7px 14px; |
| | | color: #fff; |
| | | text-align: center; |
| | | border-radius: 3px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | div.clearfix > label { |
| | | padding-top: 8px; |
| | | } |
| | | |
| | | .chosen-container { |
| | | border-radius: 1px; |
| | | border: 1px solid #e5e6e7; |
| | | } |
| | | |
| | | .col-md-1.control-label { |
| | | padding-right: 0px; |
| | | font-weight: 400; |
| | | } |
| | | </style> |
| | | |
| | | <!-- jqgrid--> |
| | | @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@ |
| | | <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> |
| | | <script src="~/js/bootstrap.min.js"></script> |
| | | @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@ |
| | | |
| | | <!--容å¨--> |
| | | @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> |
| | | @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ |
| | | <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/webuploader/webuploader.min.js"></script> |
| | | |
| | | <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ |
| | | <script src="~/js/TUJS.js"></script> |
| | | <link rel="stylesheet" href="~/viewerjs-master/dist/viewer.min.css"> |
| | | <script src="~/viewerjs-master/dist/viewer.min.js"></script> |
| | | </head> |
| | | <body class="gray-bg" style="overflow:auto"> |
| | | <form id="formtest"> |
| | | <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> |
| | | <div class="row"> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5><i class="fa fa-list"></i> åºæ¬å·¥èµå½å
¥</h5> |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">å·¥å·</label> |
| | | |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-12 col-md-12" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">@Model.Usernumber</label> |
| | | </div> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">å§å</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-12 col-md-12" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">@Model.UserName</label> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">é¨é¨</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-12 col-md-12" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">@Model.DeptName</label> |
| | | </div> |
| | | |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">èªèµå¾
é </label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="BasicPrice" class="form-control" label="èªèµå¾
é" name="BasicPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.BasicPrice" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">è¯ç¨æé </label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="ShiyongDate" class="form-control" label="è¯ç¨æé" name="ShiyongDate" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value='@Model.ShiyongDateName ' readonly="readonly"> |
| | | |
| | | </div> |
| | | <div class="col-sm-1 col-md-1"> |
| | | è³ |
| | | </div> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="ShiyongDateEnd" class="form-control" label="è¯ç¨æé" name="ShiyongDateEnd" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value='@Model.ShiyongDateEndName ' readonly="readonly"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">è¯ç¨æå¾
é</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="ShiyongPrice" class="form-control" label="è¯ç¨æå¾
é" name="ShiyongPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShiyongPrice" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">ä¸é¡¹æ£é¤</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="geshuiqizheng" class="form-control" label="ä¸é¡¹æ£é¤" name="geshuiqizheng" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.geshuiqizheng" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">é¢åå·¥èµ </label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="é¢åå·¥èµ" name="advancewages" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.advancewages" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/æ</label> |
| | | </div> |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">ä¿åºå¹´èª</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="ä¿åºå¹´èª" name="miniyearsalary" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.miniyearsalary" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/å¹´</label> |
| | | </div> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">å·¥é¾å·¥èµ</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-9 col-md-9" style="padding:0"> |
| | | <input class="form-control" label="å·¥é¾å·¥èµ" name="senioritywages" labtype="txt" addvisible="true" maxlength="20" editvisible="true" reg="" ismust="true" type="text" value="@Model.senioritywages" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | </div> |
| | | <div class="col-sm-3 col-md-3" style="padding:0 0 0 10px"> |
| | | <label class="text-left control-label">å
/å¹´</label> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">æ¯å¦äº¤é补贴</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <select class="form-control" name="Istravelsubsidy" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in shifou) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.Istravelsubsidy)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | } |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | @*<div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">å·¥èµå¤æ³¨</label> |
| | | <div class="col-sm-11 col-md-11"> |
| | | <textarea class="form-control bt" id="Beizhu" name="Beizhu" title="å·¥èµå¤æ³¨" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:80px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Beizhu</textarea> |
| | | |
| | | </div> |
| | | </div>*@ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;height:60px;"> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="wrapper wrapper-content" style="margin-top:0px"></div> |
| | | <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> |
| | | <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="åè½æé®ï¼âä¿åâï¼âå é¤â"> |
| | | |
| | | |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">ä¿å</span> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | </form> |
| | | <script type="text/javascript"> |
| | | var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 45; |
| | | $("#div_content").height(hh); |
| | | |
| | | $("#ZhuanjiaList").chosen(); |
| | | toastr.options = { |
| | | "closeButton": true, |
| | | "debug": false, |
| | | "progressBar": true, |
| | | "positionClass": "toast-bottom-right", |
| | | "onclick": null, |
| | | "showDuration": "300", |
| | | "hideDuration": "600", |
| | | "timeOut": "4500", |
| | | "extendedTimeOut": "600", |
| | | "showEasing": "swing", |
| | | "hideEasing": "linear", |
| | | "showMethod": "fadeIn", |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | laydate({ elem: "#ShiyongDate", format: 'YYYY-MM-DD', istime: false, event: "focus" }); |
| | | laydate({ elem: "#ShiyongDateEnd", format: 'YYYY-MM-DD', istime: false, event: "focus" }); |
| | | |
| | | var id = '@Model.Id'; |
| | | //var remark = document.getElementById("Beizhu"); |
| | | |
| | | //remark.style.height = remark.scrollHeight + 'px'; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // ä¿åå²ä½ä¿¡æ¯ |
| | | var savePosition = function () { |
| | | |
| | | |
| | | |
| | | |
| | | //if ($.trim($("#Beizhu").val()) == '') { |
| | | // toastr.warning("å·¥èµå¤æ³¨ä¸è½ä¸ºç©º"); |
| | | // return; |
| | | //} |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/User/SaveBeizhu", |
| | | dataType: "json", |
| | | global: false, |
| | | data: $('form').serializeArray(), |
| | | success: function (data) { |
| | | |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('æåä¿å', { icon: 6 }); |
| | | //window.location = "/Project/add?id=" + data.ReturnID; |
| | | |
| | | |
| | | try { |
| | | _pageAutoClose();//èªå¨å
³é页颿¹æ³ |
| | | } |
| | | catch (err) { |
| | | parent._CloseTab1("/Project/Add"); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | // toastr.error("失败"); |
| | | parent.layer.msg('失败' + data.Message, { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | function _pageAutoClose() { |
| | | parent.window._reloadPageData(); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.isRefresh = true; |
| | | parent.layer.closeAll('loading'); |
| | | parent.layer.close(index); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
New file |
| | |
| | | @{ |
| | | ViewBag.Title = "User"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | var zhiwustatusDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.zhiwustatus))'; |
| | | var dept = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.dept))'; |
| | | var post = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.post))'; |
| | | var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))'; |
| | | var sex = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.sex))'; |
| | | var isMaryed = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.isMaryed))'; |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | { |
| | | label: 'å·¥å·', name: 'Usernumber', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'å§å', name: 'UserName', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('" + cellvalue + "','100%','98%', '/User/EditBeizhu?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | } |
| | | }, |
| | | |
| | | { |
| | | label: 'å·¥ä½é¨é¨', name: 'DeptName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'èå¡', name: 'HrPositionName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'èªèµå¾
é', name: 'BasicPrice', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | //{ |
| | | // label: 'åºæ¬å·¥èµ', name: 'jibensalaryName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | //}, |
| | | //{ |
| | | // label: 'ä¿å¯è´¹', name: 'baomisalaryName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | //}, |
| | | //{ |
| | | // label: 'å·¥ä½è¡¥è´´', name: 'jintiesalaryName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | //}, |
| | | |
| | | { |
| | | label: 'è¯ç¨æ', name: 'ShiyongDateName', labtype: 'txt', hidden: false, width: 200 |
| | | |
| | | }, |
| | | |
| | | { |
| | | label: 'è¯ç¨æå·¥èµ', name: 'ShiyongPriceName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'é¢åå·¥èµ', name: 'advancewagesName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'ä¿åºå¹´èª', name: 'miniyearsalaryName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'å·¥é¾å·¥èµ', name: 'senioritywagesName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'æ¯å¦äº¤é补贴', name: 'IstravelsubsidyName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | { |
| | | label: 'ä¸é¡¹æ£é¤', name: 'geshuiqizhengName', labtype: 'txt', hidden: false, width: 100 |
| | | |
| | | }, |
| | | |
| | | { label: 'ç¶æ', name: 'RecStatus', labtype: 'txt', hidden: true }, |
| | | { label: 'å建人', name: 'Creater', labtype: 'txt', hidden: true }, |
| | | { label: 'å建æ¶é´', name: 'Createtimetxt', labtype: 'txt', hidden: true }, |
| | | { label: 'ä¿®æ¹äºº', name: 'Modifier', labtype: 'txt', hidden: true }, |
| | | { label: 'ä¿®æ¹æ¶é´', name: 'Modifytimetxt', labtype: 'txt', hidden: true }, |
| | | { |
| | | label: 'é¢è²', name: 'Coler', labtype: 'txt', hidden: true, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<span style='color:" + rowObject.Coler + ";'>" + cellvalue+"</span>"; |
| | | }}, |
| | | ]; |
| | | dataUrl = "/User/GetUserList"; |
| | | searchCol = [ |
| | | { label: 'å·¥å·', name: 'Usernumber', labtype: 'txt', hidden: false }, |
| | | { label: 'å·¥ä½é¨é¨', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) }, |
| | | |
| | | |
| | | { label: 'èå·¥å§å', name: 'UserName', labtype: 'txt', hidden: false }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |
| | | toastr.success("ä¿åæå"); |
| | | } else { |
| | | toastr.error("ä¿å失败"); |
| | | } |
| | | } |
| | | |
| | | var _afterDel = function (result) { |
| | | if (result) { |
| | | toastr.success("å 餿å"); |
| | | } else { |
| | | /**/ |
| | | toastr.error("å 餿å"); |
| | | /**/ |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |
| | | |
| | |
| | | , beforeRequest: BeforeRequest |
| | | }); |
| | | |
| | | //$("#jqGrid").jqGrid('setGroupHeaders', { |
| | | // useColSpanStyle: true, |
| | | // groupHeaders: [ |
| | | // { startColumnName: 'jibensalaryName', numberOfColumns: 3, titleText: 'èªèµå¾
é' } |
| | | // ] |
| | | //}); |
| | | jQuery("#jqGrid").jqGrid('navGrid', "#jqGridPager", { edit: false, add: false, del: false, search: false, refresh: true }); |
| | | doResize(); |
| | | }); |
| | |
| | | <WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected> |
| | | <WebStackScaffolding_IsReferencingScriptLibrariesSelected>False</WebStackScaffolding_IsReferencingScriptLibrariesSelected> |
| | | <WebStackScaffolding_LayoutPageFile /> |
| | | <ShowAllFiles>false</ShowAllFiles> |
| | | <ShowAllFiles>true</ShowAllFiles> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | miniyearsalary decimal(10,2) null, |
| | | senioritywages decimal(10,2) null, |
| | | is_travelsubsidy nvarchar(1) null |
| | | go |
| | | go |
| | | |
| | | |
| | | alter table plt_user add |
| | | |
| | | [beizhu] [nvarchar](500) NULL |
| | | go |
| | | |
| | | alter table plt_user add |
| | | |
| | | jibensalary decimal(10,2) null, |
| | | baomisalary decimal(10,2) null, |
| | | jintiesalary decimal(10,2) null |
| | | |
| | | go |
| | | |
| | | |
| | | |
| | | alter table plt_user add |
| | | |
| | | geshuiqizheng decimal(10,2) null |
| | | |
| | | go |
| | | |
| | | |
| | | INSERT [dbo].[plt_page] ([Id], [system_id], [page_name], [page_shortcut], [display_seq], [page_path], [page_method], [page_type], [page_superior], [page_ico], [open_type], [rec_status], [creater], [createtime], [modifier], [modifytime]) VALUES (N'd3f04c50-72d8-46c8-8537-b0b5b2e66a00', N'1', N'èå·¥åºæ¬å·¥èµ', NULL, 1, N'/User/JiBenGongZi', N'01', N'M', N'6a13cb10-35d9-4176-a231-8887948e059e', NULL, 0, N'A', N'e4c93811-b9b1-4998-89f5-c416ebab0c07', CAST(N'2021-06-15T13:53:24.527' AS DateTime), N'e4c93811-b9b1-4998-89f5-c416ebab0c07', CAST(N'2021-06-15T13:54:47.280' AS DateTime)) |
| | | go |
| | | |
| | | INSERT [dbo].[plt_page] ([Id], [system_id], [page_name], [page_shortcut], [display_seq], [page_path], [page_method], [page_type], [page_superior], [page_ico], [open_type], [rec_status], [creater], [createtime], [modifier], [modifytime]) VALUES (N'4c7fae29-974b-48e9-9519-1736af5f4d17', N'1', N'èå¡åºæ¬å·¥èµ', N'', 2, N'/HrJibengongzi/Index', N'01', N'M', N'6a13cb10-35d9-4176-a231-8887948e059e', N'', 0, N'A', N'e4c93811-b9b1-4998-89f5-c416ebab0c07', CAST(N'2021-06-17T10:38:16.583' AS DateTime), N'e4c93811-b9b1-4998-89f5-c416ebab0c07', CAST(N'2021-06-17T10:38:16.583' AS DateTime)) |
| | | go |
| | | |
| | | INSERT [dbo].[plt_page] ([Id], [system_id], [page_name], [page_shortcut], [display_seq], [page_path], [page_method], [page_type], [page_superior], [page_ico], [open_type], [rec_status], [creater], [createtime], [modifier], [modifytime]) VALUES (N'e7e0363d-8215-433e-8c63-df902088b160', N'1', N'ç»©ææææ å', NULL, 3, N'/HrJixiaoticheng/Index', N'01', N'M', N'6a13cb10-35d9-4176-a231-8887948e059e', NULL, 0, N'A', N'e4c93811-b9b1-4998-89f5-c416ebab0c07', CAST(N'2021-06-17T14:53:30.890' AS DateTime), N'e4c93811-b9b1-4998-89f5-c416ebab0c07', CAST(N'2021-06-17T14:54:01.643' AS DateTime)) |
| | | go |
| | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[hr_salary] Script Date: 2021/6/10 12:54:34 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='hr_salary') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | |
| | | |
| | | drop TABLE [dbo].[hr_salary] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[hr_salary]( |
| | | [Id] [nvarchar](50) NOT NULL, |
| | | [Userid] [nvarchar](50) NOT NULL, |
| | | [year] [int] NOT NULL DEFAULT ((0)), |
| | | [month] [int] NOT NULL DEFAULT ((0)), |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [jibengongzi] [decimal](18, 4) NULL , |
| | | [baomifei] [decimal](18, 4) NULL , |
| | | [gongzuobutie] [decimal](18, 4) NULL , |
| | | [jiabangongzi] [decimal](18, 4) NULL , |
| | | [shebao] [decimal](18, 4) NULL , |
| | | [dianhuabutie] [decimal](18, 4) NULL , |
| | | [quanqinjiang] [decimal](18, 4) NULL , |
| | | [jiaotngbutie] [decimal](18, 4) NULL , |
| | | [jixiaoticheng] [decimal](18, 4) NULL , |
| | | [jiangjin] [decimal](18, 4) NULL , |
| | | [bufagongzi] [decimal](18, 4) NULL , |
| | | |
| | | [shebaokou] [decimal](18, 4) NULL , |
| | | [geshui] [decimal](18, 4) NULL , |
| | | [dianhuafei] [decimal](18, 4) NULL , |
| | | [queqin] [decimal](18, 4) NULL , |
| | | [fakuan] [decimal](18, 4) NULL , |
| | | [peichang] [decimal](18, 4) NULL , |
| | | [jiucuo] [decimal](18, 4) NULL , |
| | | [daozhanggongzi] [decimal](18, 4) NULL , |
| | | [yufagongzi] [decimal](18, 4) NULL , |
| | | [yufagongziheji] [decimal](18, 4) NULL , |
| | | |
| | | [islock] [nvarchar](1) NOT NULL, |
| | | [rec_status] [nvarchar](1) NOT NULL, |
| | | [creater] [nvarchar](50) NOT NULL, |
| | | [createtime] [datetime] NOT NULL, |
| | | [modifier] [nvarchar](50) NOT NULL, |
| | | [modifytime] [datetime] NOT NULL, |
| | | CONSTRAINT [PK__hr_salary] PRIMARY KEY CLUSTERED |
| | | ( |
| | | [Id] ASC |
| | | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] |
| | | ) ON [PRIMARY] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_salary] ADD DEFAULT ('D') FOR [islock] |
| | | GO |
| | | ALTER TABLE [dbo].[hr_salary] ADD DEFAULT ('A') FOR [rec_status] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_salary] ADD DEFAULT ('1') FOR [creater] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_salary] ADD DEFAULT (getdate()) FOR [createtime] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_salary] ADD DEFAULT ('1') FOR [modifier] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_salary] ADD DEFAULT (getdate()) FOR [modifytime] |
| | | GO |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[ADM_Attendance] Script Date: 2021/6/10 12:54:34 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='ADM_Attendance') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop TABLE [dbo].[ADM_Attendance] |
| | | GO |
| | | CREATE TABLE [dbo].[ADM_Attendance]( |
| | | [Id] [nvarchar](50) NOT NULL, |
| | | [Userid] [nvarchar](50) NOT NULL, |
| | | [year] [int] NOT NULL DEFAULT ((0)), |
| | | [month] [int] NOT NULL DEFAULT ((0)), |
| | | [yingchuqin] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [offdays] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [shijichuqin] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [qingjia] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [jiaban] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [xiaojia] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [chidao] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [zaotui] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [kuanggong] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [yingchuqin] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [offdays] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [shijichuqin] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [qingjia] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [jiaban] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [xiaojia] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [chidao] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [zaotui] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [kuanggong] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | |
| | | [islock] [nvarchar](1) NOT NULL, |
| | | [rec_status] [nvarchar](1) NOT NULL, |
| | |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='ADM_Attendance_dtl') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop TABLE [dbo].[ADM_Attendance_dtl] |
| | | GO |
| | | CREATE TABLE [dbo].[ADM_Attendance_dtl]( |
| | | [Id] [nvarchar](50) NOT NULL, |
| | | [attendance_id] [nvarchar](50) NOT NULL, |
| | |
| | | [AfternoonOut] [datetime] NULL, |
| | | [OvertimeIn] [datetime] NULL, |
| | | [OvertimeOut] [datetime] NULL, |
| | | [qingjia] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [xiaojia] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [qingjia] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [xiaojia] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [rec_status] [nvarchar](1) NOT NULL, |
| | | [creater] [nvarchar](50) NOT NULL, |
| | | [createtime] [datetime] NOT NULL, |
| | | [modifier] [nvarchar](50) NOT NULL, |
| | | [modifytime] [datetime] NOT NULL, |
| | | [chidaofenzhong] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [zaotuifenzhong] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [kuanggongtianshu] [decimal](18, 2) NOT NULL DEFAULT ((0)), |
| | | [chidaofenzhong] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [zaotuifenzhong] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | [kuanggongtianshu] [decimal](18, 4) NOT NULL DEFAULT ((0)), |
| | | CONSTRAINT [PK__ADM_Attendance_dtl] PRIMARY KEY CLUSTERED |
| | | ( |
| | | [Id] ASC |
| | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[hr_jixiaoticheng] Script Date: 2021/6/9 14:15:04 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='hr_jixiaoticheng') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [hr_jixiaoticheng] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[hr_jixiaoticheng]( |
| | | [Id] [nvarchar](50) NOT NULL, |
| | | [post_id] [nvarchar](50) NULL, |
| | | [piecerate_id] [nvarchar](50) NULL, |
| | | [tichengstandard] [nvarchar](50) NULL, |
| | | [renwustandard] [nvarchar](50) NULL, |
| | | |
| | | [ticheng] [money] NULL, |
| | | [renwu] [money] NULL, |
| | | |
| | | |
| | | [effecttime] [datetime] NULL, |
| | | |
| | | [rec_status] [nvarchar](1) NOT NULL, |
| | | [creater] [nvarchar](50) NOT NULL, |
| | | [createtime] [datetime] NOT NULL, |
| | | [modifier] [nvarchar](50) NOT NULL, |
| | | [modifytime] [datetime] NOT NULL, |
| | | CONSTRAINT [PK_hr_jixiaoticheng] PRIMARY KEY CLUSTERED |
| | | ( |
| | | [Id] ASC |
| | | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] |
| | | ) ON [PRIMARY] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jixiaoticheng] ADD DEFAULT ('A') FOR [rec_status] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jixiaoticheng] ADD DEFAULT ('1') FOR [creater] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jixiaoticheng] ADD DEFAULT (getdate()) FOR [createtime] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jixiaoticheng] ADD DEFAULT ('1') FOR [modifier] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jixiaoticheng] ADD DEFAULT (getdate()) FOR [modifytime] |
| | | GO |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[hr_jibengongzi] Script Date: 2021/6/9 14:15:04 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='hr_jibengongzi') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [hr_jibengongzi] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[hr_jibengongzi]( |
| | | [Id] [nvarchar](50) NOT NULL, |
| | | [post_id] [nvarchar](50) NULL, |
| | | [jibengongzi] [money] NULL, |
| | | [baomifei] [money] NULL, |
| | | [shebaodanwei] [money] NULL, |
| | | [shebaogeren] [money] NULL, |
| | | [dianhuabutie] [nvarchar](50) NULL, |
| | | [quanqingjiang] [money] NULL, |
| | | [jiaotongbutie] [money] NULL, |
| | | |
| | | [effecttime] [datetime] NULL, |
| | | |
| | | [rec_status] [nvarchar](1) NOT NULL, |
| | | [creater] [nvarchar](50) NOT NULL, |
| | | [createtime] [datetime] NOT NULL, |
| | | [modifier] [nvarchar](50) NOT NULL, |
| | | [modifytime] [datetime] NOT NULL, |
| | | CONSTRAINT [PK_hr_jibengongzi] PRIMARY KEY CLUSTERED |
| | | ( |
| | | [Id] ASC |
| | | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] |
| | | ) ON [PRIMARY] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jibengongzi] ADD DEFAULT ('A') FOR [rec_status] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jibengongzi] ADD DEFAULT ('1') FOR [creater] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jibengongzi] ADD DEFAULT (getdate()) FOR [createtime] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jibengongzi] ADD DEFAULT ('1') FOR [modifier] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[hr_jibengongzi] ADD DEFAULT (getdate()) FOR [modifytime] |
| | | GO |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[ADM_AttendanceRules_dtl] Script Date: 2021/6/9 14:15:04 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='ADM_AttendanceRules_dtl') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [ADM_AttendanceRules_dtl] |
| | | GO |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='fi_account_record') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [fi_account_record] |
| | | GO |
| | | |
| | |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='ADM_AskLeave') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [ADM_AskLeave] |
| | | GO |
| | | CREATE TABLE [dbo].[ADM_AskLeave]( |
| | |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='ADM_AskLeaveOff') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [ADM_AskLeaveOff] |
| | | GO |
| | | |
| | |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | |
| | | IF EXISTS(Select 1 From Sysobjects Where Name='ADM_AttendanceRules') --æ¥è¯¢è¡¨åcostSeparateConfigæ¯å¦åå¨ |
| | | drop table [ADM_AttendanceRules] |
| | | GO |
| | | |
| | |
| | | |
| | | |
| | | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[ADM_AttendanceRules_dtl] Script Date: 2021/6/7 16:55:36 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |
| | | |
| | | SET QUOTED_IDENTIFIER ON |
| | | GO |
| | | |
| | | drop table [ADM_AttendanceRules_dtl] |
| | | GO |
| | | |
| | | CREATE TABLE [dbo].[ADM_AttendanceRules_dtl]( |
| | | [Id] [nvarchar](50) NOT NULL, |
| | | [pid] [nvarchar](50) NULL, |
| | | [value_start] [nvarchar](50) NULL, |
| | | [value_end] [nvarchar](50) NULL, |
| | | [Name] [nvarchar](200) NULL, |
| | | [rec_status] [nvarchar](1) NOT NULL, |
| | | [creater] [nvarchar](50) NOT NULL, |
| | | [createtime] [datetime] NOT NULL, |
| | | [modifier] [nvarchar](50) NOT NULL, |
| | | [modifytime] [datetime] NOT NULL, |
| | | CONSTRAINT [PK_ADM_AttendanceRules_dtl] PRIMARY KEY CLUSTERED |
| | | ( |
| | | [Id] ASC |
| | | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] |
| | | ) ON [PRIMARY] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[ADM_AttendanceRules_dtl] ADD DEFAULT ('A') FOR [rec_status] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[ADM_AttendanceRules_dtl] ADD DEFAULT ('1') FOR [creater] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[ADM_AttendanceRules_dtl] ADD DEFAULT (getdate()) FOR [createtime] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[ADM_AttendanceRules_dtl] ADD DEFAULT ('1') FOR [modifier] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[ADM_AttendanceRules_dtl] ADD DEFAULT (getdate()) FOR [modifytime] |
| | | GO |
| | | |
| | | |
| | | |