Class-SP:Order.cs
ylbtech-Moduels:订单模块 |
1. 返回顶部 |
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 = ,
/// <summary>
/// 视频
/// </summary>
Video,
/// <summary>
/// 工资
/// </summary>
Wages,
/// <summary>
/// 其他
/// </summary>
Others
}
}
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 = ,
/// <summary>
/// 工资
/// </summary>
Wages,
/// <summary>
/// 视频
/// </summary>
Video,
/// <summary>
/// 合同服务费
/// </summary>
ContractService,
/// <summary>
/// 离岗
/// </summary>
ResignApply
}
}
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 = ,
/// <summary>
/// 付款
/// </summary>
Payment
}
}
2. 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; } = ; /// <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; } = ; /// <summary>
/// 收支状态 0未支付 1支付中 2已支付 3支付失败
/// </summary>
public int CurStatus { get; set; } = ; /// <summary>
/// 备注
/// </summary>
public string Remark { get; set; } }
}
3.返回顶部 |
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;
}
}
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; }
}
}
4.返回顶部 |
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; }
}
}
5.返回顶部 |
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; }
}
}
6.返回顶部 |
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; }
}
}
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; }
}
}
7.返回顶部 |
8.返回顶部 |
9.返回顶部 |
10.返回顶部 |
11.返回顶部 |
12.返回顶部 |
13.返回顶部 |
14.返回顶部 |
15.返回顶部 |
16.返回顶部 |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
Class-SP:Order.cs的更多相关文章
- Oracle与Sqlserver:Order by NULL值介绍
针对页面传参到in的子集中去进行查询操作的话,就会有in(xxx,null),这样就会导致查询的结果中其实直接过滤掉了null,根本就查不出来null的值.之前对于null的操作都是进行不同数据库的n ...
- 关键字(3):order by/group by/having/where/sum/count(*)...查询结果筛选关键字
ORDER BY <属性表> 只要在WHERE子句的选择条件后面加上如下子句:ORDER BY <属性表> 就可以实现输出的排序,默认的顺序为升序(ASC).可以在属性的后面加 ...
- Class:DbConnectionManipulator.cs
ylbtech-Class:DbConnectionManipulator.cs 1.返回顶部 1.DbConnectionManipulator.cs using System; using Sys ...
- ASP.NET MVC:UrlHelper.cs
ylbtech-funcation-Utility: ASP.NET MVC:UrlHelper.cs 充当表示 ASP.NET Razor 页的类的基类. 1.UrlHelper 类返回顶部 1-1 ...
- ASP.NET MVC:WebPageBase.cs
ylbtech-funcation-Utility: ASP.NET MVC:WebPageBase.cs 充当表示 ASP.NET Razor 页的类的基类. 1.A,WebPageBase 抽象类 ...
- ASP.NET MVC:WebPageRenderingBase.cs
ylbtech-funcation-Utility: ASP.NET MVC:WebPageRenderingBase.cs 提供用于呈现使用 Razor 视图引擎的页的方法和属性. 1.A,WebP ...
- ASP.NET MVC:WebViewPage.cs
ylbtech-funcation-Utility: ASP.NET MVC:WebViewPage.cs 表示呈现使用 ASP.NET Razor 语法的视图所需的属性和方法. 1.A,WebVie ...
- mysql实战优化之六:Order by优化 sql优化、索引优化
在MySQL中的ORDER BY有两种排序实现方式: 1.利用有序索引获取有序数据 2.文件排序 在使用explain分析查询的时候,利用有序索引获取有序数据显示Using index.而文件排序显示 ...
- 基本教程篇--第一节:InitialSampleDemo.cs介绍
第一节:InitialSampleDemo.cs介绍 为了讲解方便,我先附上源代码和效果图. 代码如下: using System; using System.Drawing; ...
随机推荐
- 【MySql】Update批量更新与批量更新多条记录的不同值实现方法
mysql更新语句很简单,更新一条数据的某个字段,一般这样写: UPDATE mytable SET myfield = 'value' WHERE other_field = 'other_valu ...
- 解决Android studio导航tools下没有android怎么打开DDMS工具
因为这个功能用的人少, 新版本就去掉菜单入口了, 但这个功能并没有删除,打开方式:点开terminal ,也就是AS自带的命令行工具, 输入monitor 回车就启动了, 1.点开terminal 2 ...
- linux常见依赖
1. 搭建LNMP环境用到的依赖包 yum -y install gcc gcc-c++ libxml2 libxml2-devel openssl openssl-devel curl libcur ...
- kubelet 预留system、kube资源
kubelet 预留system.kube资源 Kubernetes 的节点可以按照 Capacity 调度.默认情况下 pod 能够使用节点全部可用容量.这是个问题,因为节点自己通常运行了不少驱动 ...
- C#和PHP加密结果一致的DES加密解密算法。php实现和c#一致的DES加密解密
DES加密算法 des对称加密,是一种比较传统的加密方式,其加密运算.解密运算使用的是同样的密钥,信息的发送者和信息的接收者在进行信息的传输与处理时,必须共同持有该密码(称为对称密码),是一种对称加密 ...
- PVE手册资料
PVE 软件源/etc/apt/souces.list apt-get update命令获取软件源中的软件包信息 企业版软件源 /etc/apt/sources.list.d/pve-enterpri ...
- IE haslayout 问题引起的常见 bug
http://www.qianduan.net/comprehensive-haslayout/ 要想更好的理解 css, 尤其是 IE 下对 css 的渲染,haslayout 是一个非常有必要彻底 ...
- Java实现List自定义排序
废话不多说,直接上代码 import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; i ...
- python列表各种切片姿势
顺着切,反着切,想怎么切就怎么切,但是别被坑. mylist = [1,2,3,4,5,6,7,8,9] print(mylist[2:7:2]) # [3, 5, 7] print(mylist[: ...
- php的快速排序
<?php function quicksort($str){ if(count($str)<=1) return $str;//如果个数不大于一,直接返回 ...