ylbtech-Moduels:订单模块 |
1. 返回顶部 |
1、GoodsType.cs 货品类别
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { public enum GoodsType { /// <summary> /// 合同 /// </summary> Contract = 0, /// <summary> /// 视频 /// </summary> Video, /// <summary> /// 工资 /// </summary> Wages, /// <summary> /// 其他 /// </summary> Others } }
2、BillType.cs 票据类型
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { public enum BillType { /// <summary> /// 合同预付款 /// </summary> ContractPreCharge = 0, /// <summary> /// 工资 /// </summary> Wages, /// <summary> /// 视频 /// </summary> Video, /// <summary> /// 合同服务费 /// </summary> ContractService, /// <summary> /// 离岗 /// </summary> ResignApply } }
3、PaymentType.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { /// <summary> /// 收付款类型 /// </summary> public enum PaymentType { /// <summary> /// 收款 /// </summary> Receive = 0, /// <summary> /// 付款 /// </summary> Payment } }
4、
2. InOutList.cs 收支账单返回顶部 |
1、InOutList.cs 收支账单
using Dapper.Contrib.Extensions; using DS.SP.Base.Accounts; namespace DS.SP.Base.Order { [Table("InOutList")] public class InOutList : BaseEntity { /// <summary> /// 收支流水Id /// </summary> [Key] public int Id { get; set; } /// <summary> /// 用户Id,具体的用户根据用户类型来查找 /// </summary> public int MemberId { get; set; } /// <summary> /// 用户类型 /// </summary> public UserType UserType { get; set; } = UserType.Employer; /// <summary> /// 收支类型 0 支出 1 收入 /// </summary> public int InOutType { get; set; } = 0; /// <summary> /// 账目类别 0服务费(雇主支付的家政员工资) 1工资(支付给家政员的工资) /// </summary> public int AccountsType { get; set; } /// <summary> /// 收支金额 /// </summary> public decimal InOutMoney { get; set; } /// <summary> /// 收支方式 0微信 1支付宝 2银联 /// </summary> public int InOutMode { get; set; } = 0; /// <summary> /// 收支状态 0未支付 1支付中 2已支付 3支付失败 /// </summary> public int CurStatus { get; set; } = 0; /// <summary> /// 备注 /// </summary> public string Remark { get; set; } } }
2、
3.返回顶部 |
1、OrderList.cs
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { /// <summary> /// 订单列表 /// </summary> [Table("OrderList")] public class OrderList { public int Id { get; set; } /// <summary> /// 订单号 /// </summary> public string OrderNo { get; set; } /// <summary> /// 总金额 /// </summary> public decimal TotalMoney { get; set; } /// <summary> /// 收款或者付款对象 /// </summary> public int MemberId { get; set; } /// <summary> /// 创建时间 /// </summary> public DateTime CreateTime { get; set; } = DateTime.Now; /// <summary> /// 状态 0 未付款(未收款) 1 已付款(已收款) /// </summary> public int Status { get; set; } /// <summary> /// 业务id(收付款单id) /// </summary> public int BillId { get; set; } /// <summary> /// 收付款类型 /// </summary> public PaymentType PaymentType { get; set; } /// <summary> /// 收付款单号 /// </summary> public string PaymentOrderId { get; set; } /// <summary> /// 收付款时间 /// </summary> public DateTime? PaymentTime { get; set; } public bool IsDeleted { get; set; } = false; } }
2、OrderDetail.cs
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { /// <summary> /// 订单明细表 /// </summary> [Table("OrderDetail")] public class OrderDetail { public int Id { get; set; } /// <summary> /// orderlist 表Id /// </summary> public int OrderId { get; set; } /// <summary> /// 产品类型 /// </summary> public GoodsType GoodsType { get; set; } /// <summary> /// 产品数量 /// </summary> public int GoodsCount { get; set; } /// <summary> /// 产品单价 /// </summary> public decimal GoodsPrice { get; set; } } }
3、
4.返回顶部 |
1、PayrollList.cs
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { /// <summary> /// 工资结算单 /// </summary> [Table("PayrollList")] public class PayrollList { public int Id { get; set; } public DateTime CreateTime { get; set; } = DateTime.Now; /// <summary> /// 收工资人 /// </summary> public int MemberId { get; set; } /// <summary> /// 0 表示未发放,1 表示已发放 /// </summary> public int CurStatus { get; set; } /// <summary> /// 工资发放时间 /// </summary> public DateTime? ChargeTime { get; set; } /// <summary> /// 调休加班时长(天) /// </summary> public decimal OverTimeOffDay { get; set; } /// <summary> /// 调休加班时长(小时) /// </summary> public decimal OverTimeOffHours { get; set; } /// <summary> /// 补贴扣款加班时长(天) /// </summary> public decimal OverTimeSub_DebitDay { get; set; } /// <summary> /// 补贴扣款加班时长(小时) /// </summary> public decimal OverTimeSub_DebitHours { get; set; } /// <summary> /// 加班补贴金额 /// </summary> public decimal OverTimeSubsidyAmount { get; set; } /// <summary> /// 请假时长(天) /// </summary> public decimal LeaveTimeOffDay { get; set; } /// <summary> /// 调休请假时长(小时) /// </summary> public decimal LeaveTimeOffHours { get; set; } /// <summary> /// 补贴调休请假时长(天) /// </summary> public decimal LeaveTimeSub_DebitDay { get; set; } /// <summary> /// 补贴扣款请假时长(小时) /// </summary> public decimal LeaveTimeSub_DebitHours { get; set; } /// <summary> /// 请假扣款金额 /// </summary> public decimal LeaveTimeDebitAmount { get; set; } /// <summary> /// 调休节假日加班时长(天) /// </summary> public decimal HolidayOverTimeOffDay { get; set; } /// <summary> /// 调休节假日加班时长(小时) /// </summary> public decimal HolidayOverTimeOffHours { get; set; } /// <summary> /// 补贴节假日加班时长(天) /// </summary> public decimal HolidayOverTimeSub_DebitDay { get; set; } /// <summary> /// 补贴节假日加班时长(小时) /// </summary> public decimal HolidayOverTimeSub_DebitHours { get; set; } /// <summary> /// 节假日加班补贴 /// </summary> public decimal HolidayOverTimeSubsidyAmount { get; set; } /// <summary> /// 陪住次数 /// </summary> public int AccompanyTime { get; set; } /// <summary> /// 陪住补贴 /// </summary> public decimal AccompanyAmount { get; set; } /// <summary> /// 其他补贴 /// </summary> public decimal OtherSubsidy { get; set; } /// <summary> /// 其他补贴备注 /// </summary> public string OtherSubsidyRemark { get; set; } /// <summary> /// 其他扣款备注 /// </summary> public string OtherDebitRemark { get; set; } /// <summary> /// 其他扣款 /// </summary> public decimal OtherDebit { get; set; } /// <summary> /// 基本工资 /// </summary> public decimal BasePay { get; set; } /// <summary> /// 合同id /// </summary> public int ContractId { get; set; } /// <summary> /// 雇主id /// </summary> public int EmployerId { get; set; } /// <summary> /// 雇主姓名 /// </summary> public string EmployerName { get; set; } /// <summary> /// 雇主电话 /// </summary> public string EmployerTel { get; set; } /// <summary> /// 雇主地址 /// </summary> public string EmployerAddress { get; set; } /// <summary> /// 总金额 /// </summary> public decimal TotalAmount { get; set; } public bool IsDeleted { get; set; } = false; /// <summary> /// 是否确认,用于家政人员工资单确认 0 表示未确认 1 表示确认 /// </summary> public int Status { get; set; } /// <summary> /// 总加班天数 /// </summary> public int TotalOverTimeDay { get; set; } /// <summary> /// 总加班小时数 /// </summary> public decimal TotalOverTimeHour { get; set; } /// <summary> /// 总请假天数 /// </summary> public int TotalLeaveDay { get; set; } /// <summary> /// 总请假小时数 /// </summary> public decimal TotalLeaveHour { get; set; } /// <summary> /// 上期递延天数 /// </summary> public int LastDeferredDay { get; set; } /// <summary> /// 上期递延小时 /// </summary> public decimal LastDeferredHour { get; set; } /// <summary> /// 递延工资 /// </summary> public decimal LastDeferredAmount { get; set; } /// <summary> /// 驳回原因 /// </summary> public string RejectReason { get; set; } /// <summary> /// 当前年 /// </summary> public int CurrentYear { get; set; } /// <summary> /// 上个月 /// </summary> public int LastMonth { get; set; } /// <summary> /// 上月累计加班天数 /// </summary> public int LastMonthTotalOverTimeDay { get; set; } /// <summary> /// 上月累计加班小时数 /// </summary> public int LastMonthTotalOverTimeHours { get; set; } /// <summary> /// 上月累计请假天数 /// </summary> public int LastMonthTotalLeaveDay { get; set; } /// <summary> /// 上月累计请假小时数 /// </summary> public int LastMonthTotalLeaveHours { get; set; } } public class PayrollListExt { /// <summary> /// 附加:收工资人姓名 /// </summary> public string MemberName { get; set; } } }
2、
3、
5.返回顶部 |
1、Receipt_Payment.cs
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { /// <summary> /// 收款单 /// </summary> [Table("Receipt_Payment")] public class Receipt_Payment { public int Id { get; set; } /// <summary> /// 对应的收款人 /// </summary> public int ReceiveMemberId { get; set; } /// <summary> /// 业务类型 /// </summary> public BillType BillType { get; set; } /// <summary> /// 业务单id /// </summary> public int BillId { get; set; } /// <summary> /// 金额 /// </summary> public decimal Amount { get; set; } public DateTime CreateTime { get; set; } = DateTime.Now; /// <summary> /// 状态 0表示未收款,1表示已收款 /// </summary> public int CurStatus { get; set; } public bool IsDeleted { get; set; } /// <summary> /// 收付款类型 /// </summary> public PaymentType PaymentType { get; set; } /// <summary> /// 付款人 /// </summary> public int PayMemberId { get; set; } /// <summary> /// 手续费 /// </summary> public decimal ServiceAmount { get; set; } /// <summary> /// 交易编号 /// </summary> public string TradeNo { get; set; } } }
2、
6.返回顶部 |
1、TimedExecutionPayroll.cs
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.SP.Base.Order { /// <summary> /// 生成工资表的时间 /// </summary> [Table("TimedExecutionPayroll")] public class TimedExecutionPayroll { public int Id { get; set; } public DateTime CreateTime { get; set; } } }
2、TimedPayWages.cs
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /// <summary> /// 工资发放时间 /// </summary> namespace DS.SP.Base.Order { [Table("TimedPayWages")] public class TimedPayWages { public int Id { get; set; } public DateTime CreateTime { get; set; } } }
3、
7.返回顶部 |
8.返回顶部 |
9.返回顶部 |
10.返回顶部 |
11.返回顶部 |
12.返回顶部 |
13.返回顶部 |
14.返回顶部 |
15.返回顶部 |
16.返回顶部 |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |