123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597 |
- using Newtonsoft.Json;
- using OASystem.Domain.Entities.PersonnelModule;
- using OASystem.Domain.ViewModels.QiYeWeChat;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.ViewModels.PersonnelModule
- {
- /// <summary>
- /// 工资表详情
- /// </summary>
- public class WageSheetView : Pm_WageSheet
- {
- }
- /// <summary>
- /// 工资年月 View
- /// </summary>
- public class WageYearMonthView
- {
- public string YearMonth { get; set; }
- public string StartDate { get; set; }
- public string EndDate { get; set; }
- public int Workdays { get; set; }
- }
- /// <summary>
- /// 工资表单详情
- /// </summary>
- public class WageSheetInfoView
- {
- public int Id { get; set; }
- /// <summary>
- /// 员工Id
- /// </summary>
- public int UserId { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- public string? Name { get; set; }
- /// <summary>
- /// 年月
- /// </summary>
- public string? YearMonth { get; set; }
- /// <summary>
- /// 工资日期 起
- /// </summary>
- public string? StartDate { get; set; }
- /// <summary>
- /// 工资日期 止
- /// </summary>
- public string? EndDate { get; set; }
- /// <summary>
- /// 应出勤天数
- /// </summary>
- public int WorkDays { get; set; }
- /// <summary>
- /// 正常出勤天数
- /// </summary>
- public int RegularDays { get; set; }
- /// <summary>
- /// 基本工资
- /// </summary>
- public decimal Basic { get; set; }
- /// <summary>
- /// 绩效工资
- /// </summary>
- public decimal Floats { get; set; }
- /// <summary>
- /// 岗位津贴
- /// </summary>
- public decimal PostAllowance { get; set; }
- /// <summary>
- /// 保密费
- /// </summary>
- public decimal InformationSecurityFee { get; set; }
- /// <summary>
- /// 其他应付
- /// </summary>
- public decimal OtherHandle { get; set; }
- /// <summary>
- /// 月度补贴/其他补贴
- /// </summary>
- public decimal OtherSubsidies { get; set; }
- /// <summary>
- /// 餐补
- /// </summary>
- public decimal Mealsupplement { get; set; }
- /// <summary>
- /// 代扣保险
- /// </summary>
- public decimal WithholdingInsurance { get; set; }
- /// <summary>
- /// 代扣公积金
- /// </summary>
- public decimal ReservedFunds { get; set; }
- /// <summary>
- /// 病假
- /// </summary>
- public decimal SickLeave { get; set; }
- /// <summary>
- /// 事假
- /// </summary>
- public decimal SomethingFalse { get; set; }
- /// <summary>
- /// 迟到
- /// </summary>
- public decimal LateTo { get; set; }
- /// <summary>
- /// 早退
- /// </summary>
- public decimal LeaveEarly { get; set; }
- /// <summary>
- /// 旷工
- /// 小时计算 7.5小时一天
- /// </summary>
- public decimal Absenteeism { get; set; }
- /// <summary>
- /// 未打卡
- /// </summary>
- public decimal NotPunch { get; set; }
- /// <summary>
- /// 其他扣款
- /// </summary>
- public decimal OtherDeductions { get; set; }
- /// <summary>
- /// 考勤/打卡 详情
- /// </summary>
- public string Ex_ItemsRemark { get; set; }
- /// <summary>
- /// 应发合计
- /// </summary>
- public decimal Should { get; set; }
- /// <summary>
- /// 扣款合计
- /// </summary>
- public decimal TotalDeductions { get; set; }
- /// <summary>
- /// 税前合计
- /// </summary>
- public decimal BeforeTax
- {
- get
- {
- return Should - TotalDeductions;
- }
- }
- /// <summary>
- /// 代扣个税
- /// </summary>
- public decimal WithholdingTax { get; set; }
- /// <summary>
- /// 实发合计(税后工资)
- /// </summary>
- public decimal TotalRealHair { get; set; }
- /// <summary>
- /// 最后操作人
- /// </summary>
- public int LastUpdateUserId { get; set; }
- /// <summary>
- /// 最后操作人Name
- /// </summary>
- public string? LastUpdateUserName { get; set; }
- /// <summary>
- /// 最后操作时间
- /// </summary>
- public string? LastUpdateDt { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string? Remark { get; set; }
- }
- public class WageSheetItemInfoView
- {
- /// <summary>
- /// 序号
- /// </summary>
- public int Row_Number { get; set; }
- /// <summary>
- /// 公司Id
- /// </summary>
- public int CompanyId { get; set; }
- /// <summary>
- /// 公司名称
- /// </summary>
- public string? CompanyName { get; set; }
- /// <summary>
- /// 部门Id
- /// </summary>
- public int DepId { get; set; }
- /// <summary>
- /// 部门名称
- /// </summary>
- public string? DepName { get; set; }
- /// <summary>
- ///
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 年月
- /// </summary>
- public string? YearMonth { get; set; }
- /// <summary>
- /// 工资日期 起
- /// </summary>
- public string? StartDate { get; set; }
- /// <summary>
- /// 工资日期 止
- /// </summary>
- public string? EndDate { get; set; }
- /// <summary>
- /// 应出勤天数
- /// </summary>
- public int WorkDays { get; set; }
- /// <summary>
- /// 正常出勤天数
- /// </summary>
- public int RegularDays { get; set; }
- /// <summary>
- /// 员工Id
- /// </summary>
- public int UserId { get; set; }
- /// <summary>
- /// 员工Name
- /// </summary>
- public string? Name { get; set; }
- /// <summary>
- /// 应发合计
- /// </summary>
- public decimal Should { get; set; }
- /// <summary>
- /// 扣款合计
- /// </summary>
- public decimal TotalDeductions { get; set; }
- /// <summary>
- /// 假勤 / 打卡补卡 明细 string
- /// </summary>
- public string? Ex_ItemsRemark { get; set; }
- /// <summary>
- /// 代扣个税
- /// </summary>
- public decimal WithholdingTax { get; set; }
- /// <summary>
- /// 税前合计
- /// </summary>
- public decimal BeforeTax
- {
- get
- {
- return Should - TotalDeductions;
- }
- }
- /// <summary>
- /// 实发合计(税后工资)
- /// </summary>
- public decimal TotalRealHair { get; set; }
- /// <summary>
- /// 最后操作人
- /// </summary>
- public int LastUpdateUserId { get; set; }
- /// <summary>
- /// 员工Name
- /// </summary>
- public string? LastUpdateUserName { get; set; }
- /// <summary>
- /// 最后操作时间
- /// </summary>
- public DateTime? LastUpdateDt { get; set; }
- }
- /// <summary>
- /// 个税模板 View
- /// </summary>
- public class TaxTemlateViuw
- {
- public string? UserName { get; set; }
- public decimal Tax { get; set; } = 0.00M;
- }
- public class ExportWageSheetItemView:Pm_WageSheet
- {
-
- /// <summary>
- /// 公司Id
- /// </summary>
- public int CompanyId { get; set; }
- /// <summary>
- /// 公司名称
- /// </summary>
- public string? CompanyName { get; set; }
- /// <summary>
- /// 部门Id
- /// </summary>
- public int DepId { get; set; }
- /// <summary>
- /// 部门名称
- /// </summary>
- public string? DepName { get; set; }
- /// <summary>
- ///
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 年月
- /// </summary>
- public string? YearMonth { get; set; }
- /// <summary>
- /// 工资日期 起
- /// </summary>
- public string? StartDate { get; set; }
- /// <summary>
- /// 工资日期 止
- /// </summary>
- public string? EndDate { get; set; }
- /// <summary>
- /// 应出勤天数
- /// </summary>
- public int WorkDays { get; set; }
- /// <summary>
- /// 员工Id
- /// </summary>
- public int UserId { get; set; }
- /// <summary>
- /// 员工Name
- /// </summary>
- public string? Name { get; set; }
- /// <summary>
- /// 税前合计
- /// </summary>
- public decimal BeforeTax
- {
- get
- {
- return Should - TotalDeductions;
- }
- }
- /// <summary>
- /// 实发合计(税后工资)
- /// </summary>
- public decimal TotalRealHair { get; set; }
- /// <summary>
- /// 最后操作人
- /// </summary>
- public int LastUpdateUserId { get; set; }
- /// <summary>
- /// 员工Name
- /// </summary>
- public string? LastUpdateUserName { get; set; }
- /// <summary>
- /// 最后操作时间
- /// </summary>
- public DateTime? LastUpdateDt { get; set; }
- }
- /// <summary>
- /// 工资列表信息
- /// </summary>
- public class WageSheetInfos : Pm_WageSheet
- {
- public string Name { get; set; }
- }
- #region 假勤 和 打卡 统计
- /// <summary>
- /// 假期详情
- /// </summary>
- public class LeaveDetails
- {
- /// <summary>
- /// 假期类型Id
- /// </summary>
- public int TypeId { get; set; }
- /// <summary>
- /// 假期名称
- /// </summary>
- public string TypeName { get; set; }
- /// <summary>
- /// 开始日期
- /// </summary>
- public DateTime StartDt { get; set; }
- /// <summary>
- /// 结束日期
- /// </summary>
- public DateTime EndDt { get; set; }
- /// <summary>
- /// 时间展示类型:halfday-日期;hour-日期+时间
- /// </summary>
- public string DtType { get; set; }
- /// <summary>
- /// 时长单位
- /// 小时/天
- /// </summary>
- public string Unit { get; set; }
- /// <summary>
- /// 请假时长
- /// </summary>
- public decimal New_Duration { get; set; }
- /// <summary>
- /// 申请时间
- /// </summary>
- public DateTime ApplyDt { get; set; }
- /// <summary>
- /// 时长支持按天分片信息, 2020/10/01之前的历史表单不支持时长分片
- /// </summary>
- public Slice_info SliceInfo { get; set; }
- /// <summary>
- /// 餐补是否参与扣款
- /// </summary>
- public bool IsDeduction { get; set; } = false;
- }
- public class Ex_Items
- {
- /// <summary>
- /// 类型
- /// 假勤 打卡
- /// </summary>
- public string? Type { get; set; }
- public Object Ex_ItemInfo { get; set; }
- }
- public class Ex_Item
- {
- /// <summary>
- /// 子类型Id
- /// </summary>
- public int SubTypeId { get; set; }
- /// <summary>
- /// 子类型
- /// </summary>
- public string? SubType { get; set; }
- /// <summary>
- /// 扣款金额
- /// </summary>
- public decimal Deduction { get; set; } = 0.00M;
- /// <summary>
- /// 餐补扣款金额
- /// </summary>
- public decimal MealDeduction { get; set; } = 0.00M;
- /// <summary>
- /// 开始时间
- /// </summary>
- public DateTime StartTimeDt { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- public DateTime EndTimeDt { get; set; }
- /// <summary>
- /// 请假时长
- /// </summary>
- public decimal Duration { get; set; }
- /// <summary>
- /// 请假时长,单位小时
- /// </summary>
- public string Unit { get; set; } = "小时";
- /// <summary>
- /// 请假事由
- /// </summary>
- public string? Reason { get; set; }
- /// <summary>
- /// 申请时间
- /// </summary>
- public DateTime Apply_time_dt { get; set; }
- /// <summary>
- /// 审核人
- /// </summary>
- public List<string>? Approval_name { get; set; }
- }
- #endregion
- #region 法定节假日
- public class HoliDaysDataSourceView
- {
- /// <summary>
- /// 年
- /// </summary>
- public string Year { get; set; }
- public List<HolidaysInfo> Holidays { get; set; }
- }
- public class HolidaysInfo
- {
- /// <summary>
- /// 节假日期
- /// </summary>
- public string HoliDate { get; set; }
- /// <summary>
- /// 节假日
- /// </summary>
- public string HoliName { get; set; }
- }
- #endregion
- }
|