Commit 60e88abf authored by 黄奎's avatar 黄奎

新增代码备注

parent eda478b4
...@@ -7,7 +7,7 @@ using VT.FW.DB; ...@@ -7,7 +7,7 @@ using VT.FW.DB;
namespace Edu.Model.Entity.App namespace Edu.Model.Entity.App
{ {
/// <summary> /// <summary>
/// app首页banner图片 /// app首页bannerLabel
/// </summary> /// </summary>
[Serializable] [Serializable]
[DB(ConnectionName = "DefaultConnection")] [DB(ConnectionName = "DefaultConnection")]
......
...@@ -12,7 +12,6 @@ namespace Edu.Model.Entity.Finance ...@@ -12,7 +12,6 @@ namespace Edu.Model.Entity.Finance
[DB(ConnectionName = "FinanceConnection")] [DB(ConnectionName = "FinanceConnection")]
public class RB_AccountType public class RB_AccountType
{ {
/// <summary> /// <summary>
/// 编号 /// 编号
/// </summary> /// </summary>
...@@ -21,6 +20,7 @@ namespace Edu.Model.Entity.Finance ...@@ -21,6 +20,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 创建人 /// 创建人
/// </summary> /// </summary>
...@@ -30,7 +30,6 @@ namespace Edu.Model.Entity.Finance ...@@ -30,7 +30,6 @@ namespace Edu.Model.Entity.Finance
set; set;
} }
/// <summary> /// <summary>
/// 创建日期 /// 创建日期
/// </summary> /// </summary>
...@@ -66,6 +65,7 @@ namespace Edu.Model.Entity.Finance ...@@ -66,6 +65,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 集团 /// 集团
/// </summary> /// </summary>
...@@ -74,6 +74,7 @@ namespace Edu.Model.Entity.Finance ...@@ -74,6 +74,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 公司 /// 公司
/// </summary> /// </summary>
...@@ -82,6 +83,7 @@ namespace Edu.Model.Entity.Finance ...@@ -82,6 +83,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 状态 /// 状态
/// </summary> /// </summary>
...@@ -90,6 +92,7 @@ namespace Edu.Model.Entity.Finance ...@@ -90,6 +92,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 备注 /// 备注
/// </summary> /// </summary>
...@@ -98,6 +101,7 @@ namespace Edu.Model.Entity.Finance ...@@ -98,6 +101,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 类型名称 /// 类型名称
/// </summary> /// </summary>
...@@ -106,6 +110,7 @@ namespace Edu.Model.Entity.Finance ...@@ -106,6 +110,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 是否对公 /// 是否对公
/// </summary> /// </summary>
...@@ -114,6 +119,7 @@ namespace Edu.Model.Entity.Finance ...@@ -114,6 +119,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 虚拟类型 /// 虚拟类型
/// </summary> /// </summary>
......
...@@ -12,7 +12,6 @@ namespace Edu.Model.Entity.Finance ...@@ -12,7 +12,6 @@ namespace Edu.Model.Entity.Finance
[DB(ConnectionName = "FinanceConnection")] [DB(ConnectionName = "FinanceConnection")]
public class RB_BackAccount public class RB_BackAccount
{ {
/// <summary> /// <summary>
/// ID /// ID
/// </summary> /// </summary>
...@@ -183,6 +182,5 @@ namespace Edu.Model.Entity.Finance ...@@ -183,6 +182,5 @@ namespace Edu.Model.Entity.Finance
/// 公司名称 /// 公司名称
/// </summary> /// </summary>
public string RB_BranchName { get; set; } public string RB_BranchName { get; set; }
} }
} }
...@@ -6,7 +6,7 @@ using VT.FW.DB; ...@@ -6,7 +6,7 @@ using VT.FW.DB;
namespace Edu.Model.Entity.Finance namespace Edu.Model.Entity.Finance
{ {
/// <summary> /// <summary>
/// 现金账户表 实体 /// 现金账户表实体
/// </summary> /// </summary>
[Serializable] [Serializable]
[DB(ConnectionName = "FinanceConnection")] [DB(ConnectionName = "FinanceConnection")]
......
...@@ -133,6 +133,7 @@ namespace Edu.Model.Entity.Finance ...@@ -133,6 +133,7 @@ namespace Edu.Model.Entity.Finance
/// 账户2019-01-01 初始原币金额 /// 账户2019-01-01 初始原币金额
/// </summary> /// </summary>
private decimal? accountStartWBMoney = 0; private decimal? accountStartWBMoney = 0;
/// <summary> /// <summary>
/// 账户2019-01-01 初始原币金额 /// 账户2019-01-01 初始原币金额
/// </summary> /// </summary>
......
using System; using System;
using System.Collections.Generic;
using System.Text;
using Edu.Common.Enum.Finance; using Edu.Common.Enum.Finance;
using VT.FW.DB; using VT.FW.DB;
......
using System; using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB; using VT.FW.DB;
namespace Edu.Model.Entity.Finance namespace Edu.Model.Entity.Finance
......
using System; using System;
using System.Collections.Generic;
using System.Text;
using Edu.Common.Enum.Finance; using Edu.Common.Enum.Finance;
using VT.FW.DB; using VT.FW.DB;
......
using System; using System;
using System.Collections.Generic;
using System.Text;
using Edu.Common.Enum.Finance; using Edu.Common.Enum.Finance;
using VT.FW.DB; using VT.FW.DB;
......
...@@ -8,13 +8,12 @@ using VT.FW.DB; ...@@ -8,13 +8,12 @@ using VT.FW.DB;
namespace Edu.Model.Entity.Finance namespace Edu.Model.Entity.Finance
{ {
/// <summary> /// <summary>
/// rb_workflow_auditrecord Entity /// 工作流程审核记录表实体类
/// </summary> /// </summary>
[Serializable] [Serializable]
[DB(ConnectionName = "FinanceConnection")] [DB(ConnectionName = "FinanceConnection")]
public class Rb_Workflow_Auditrecord public class Rb_Workflow_Auditrecord
{ {
/// <summary> /// <summary>
/// Id /// Id
/// </summary> /// </summary>
...@@ -23,6 +22,7 @@ namespace Edu.Model.Entity.Finance ...@@ -23,6 +22,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 工作流id /// 工作流id
/// </summary> /// </summary>
...@@ -31,6 +31,7 @@ namespace Edu.Model.Entity.Finance ...@@ -31,6 +31,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 审核id /// 审核id
/// </summary> /// </summary>
...@@ -39,6 +40,7 @@ namespace Edu.Model.Entity.Finance ...@@ -39,6 +40,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 1未审核 2审核通过 3 不通过 4 驳回 5他人已审核 /// 1未审核 2审核通过 3 不通过 4 驳回 5他人已审核
/// </summary> /// </summary>
...@@ -47,6 +49,7 @@ namespace Edu.Model.Entity.Finance ...@@ -47,6 +49,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 描述 /// 描述
/// </summary> /// </summary>
...@@ -55,6 +58,7 @@ namespace Edu.Model.Entity.Finance ...@@ -55,6 +58,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 1请假 2出差 3 外出 4 补卡 /// 1请假 2出差 3 外出 4 补卡
/// </summary> /// </summary>
...@@ -63,38 +67,43 @@ namespace Edu.Model.Entity.Finance ...@@ -63,38 +67,43 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// CreateBy /// 创建人
/// </summary> /// </summary>
public int? CreateBy public int? CreateBy
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// CreateTime /// 创建时间
/// </summary> /// </summary>
public DateTime? CreateTime public DateTime? CreateTime
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// UpdateBy /// 修改人
/// </summary> /// </summary>
public int? UpdateBy public int? UpdateBy
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// UpdateTime /// 修改时间
/// </summary> /// </summary>
public DateTime? UpdateTime public DateTime? UpdateTime
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 审批人 /// 审批人
/// </summary> /// </summary>
...@@ -107,14 +116,17 @@ namespace Edu.Model.Entity.Finance ...@@ -107,14 +116,17 @@ namespace Edu.Model.Entity.Finance
/// 转交备注 /// 转交备注
/// </summary> /// </summary>
public string CareOfRemarks { get; set; } public string CareOfRemarks { get; set; }
/// <summary> /// <summary>
/// 图片 /// 图片
/// </summary> /// </summary>
public string Image { get; set; } public string Image { get; set; }
/// <summary> /// <summary>
/// 创建人名称 /// 创建人名称
/// </summary> /// </summary>
public string RB_CreateByName { get; set; } public string RB_CreateByName { get; set; }
/// <summary> /// <summary>
/// 审核人名称 /// 审核人名称
/// </summary> /// </summary>
......
...@@ -8,13 +8,12 @@ using VT.FW.DB; ...@@ -8,13 +8,12 @@ using VT.FW.DB;
namespace Edu.Model.Entity.Finance namespace Edu.Model.Entity.Finance
{ {
/// <summary> /// <summary>
/// rb_workflow_template Entity /// 财务审批流程模版实体类
/// </summary> /// </summary>
[Serializable] [Serializable]
[DB(ConnectionName = "FinanceConnection")] [DB(ConnectionName = "FinanceConnection")]
public class Rb_Workflow_Template public class Rb_Workflow_Template
{ {
/// <summary> /// <summary>
/// Id /// Id
/// </summary> /// </summary>
...@@ -23,6 +22,7 @@ namespace Edu.Model.Entity.Finance ...@@ -23,6 +22,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 流程名称 /// 流程名称
/// </summary> /// </summary>
...@@ -31,6 +31,7 @@ namespace Edu.Model.Entity.Finance ...@@ -31,6 +31,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 1正常 2 停用 3删除-->add by:2018-08-23 财务自定义 /// 1正常 2 停用 3删除-->add by:2018-08-23 财务自定义
/// </summary> /// </summary>
...@@ -39,6 +40,7 @@ namespace Edu.Model.Entity.Finance ...@@ -39,6 +40,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 分组类型 1出勤休假 /// 分组类型 1出勤休假
/// </summary> /// </summary>
...@@ -47,6 +49,7 @@ namespace Edu.Model.Entity.Finance ...@@ -47,6 +49,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 所属集团 /// 所属集团
/// </summary> /// </summary>
...@@ -55,6 +58,7 @@ namespace Edu.Model.Entity.Finance ...@@ -55,6 +58,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 所属公司 /// 所属公司
/// </summary> /// </summary>
...@@ -63,38 +67,43 @@ namespace Edu.Model.Entity.Finance ...@@ -63,38 +67,43 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// CreateBy /// 创建人
/// </summary> /// </summary>
public int? CreateBy public int? CreateBy
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// CreateTime /// 创建时间
/// </summary> /// </summary>
public DateTime? CreateTime public DateTime? CreateTime
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// UpdateBy /// 修改人
/// </summary> /// </summary>
public int? UpdateBy public int? UpdateBy
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// UpdateTime /// 修改时间
/// </summary> /// </summary>
public DateTime? UpdateTime public DateTime? UpdateTime
{ {
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 1请假 2出差 3 外出 4 补卡 5-收款流程 6- 付款流程 7-发票流程 /// 1请假 2出差 3 外出 4 补卡 5-收款流程 6- 付款流程 7-发票流程
/// </summary> /// </summary>
...@@ -103,6 +112,7 @@ namespace Edu.Model.Entity.Finance ...@@ -103,6 +112,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 1 不启用自动去重 2同一个审批人在流程中出现多次时,仅保留第一个 3同一个审批人在流程中出现多次时,仅保留最后一个 4同一个审批人仅在连续出现时,自动去重 /// 1 不启用自动去重 2同一个审批人在流程中出现多次时,仅保留第一个 3同一个审批人在流程中出现多次时,仅保留最后一个 4同一个审批人仅在连续出现时,自动去重
/// </summary> /// </summary>
...@@ -111,6 +121,7 @@ namespace Edu.Model.Entity.Finance ...@@ -111,6 +121,7 @@ namespace Edu.Model.Entity.Finance
get; get;
set; set;
} }
/// <summary> /// <summary>
/// 1 仅全部同意后通知 2仅发起时通知 3发起时和全部同意后均通知 /// 1 仅全部同意后通知 2仅发起时通知 3发起时和全部同意后均通知
/// </summary> /// </summary>
...@@ -129,10 +140,12 @@ namespace Edu.Model.Entity.Finance ...@@ -129,10 +140,12 @@ namespace Edu.Model.Entity.Finance
/// 描述 /// 描述
/// </summary> /// </summary>
public string DescribeInfo { get; set; } public string DescribeInfo { get; set; }
/// <summary> /// <summary>
/// 1-收入2-支出 /// 1-收入2-支出
/// </summary> /// </summary>
public WFTempLateClassEnum? TempLateClass { get; set; } public WFTempLateClassEnum? TempLateClass { get; set; }
/// <summary> /// <summary>
/// 是否上传凭证0-不启用1-启用 /// 是否上传凭证0-不启用1-启用
/// </summary> /// </summary>
...@@ -140,6 +153,7 @@ namespace Edu.Model.Entity.Finance ...@@ -140,6 +153,7 @@ namespace Edu.Model.Entity.Finance
{ {
get; set; get; set;
} }
/// <summary> /// <summary>
/// 是否无条件显示 1是 2否 /// 是否无条件显示 1是 2否
/// </summary> /// </summary>
...@@ -151,18 +165,22 @@ namespace Edu.Model.Entity.Finance ...@@ -151,18 +165,22 @@ namespace Edu.Model.Entity.Finance
/// 不显示时 可以查看的员工 逗号分隔 /// 不显示时 可以查看的员工 逗号分隔
/// </summary> /// </summary>
public string ShowEmployee { get; set; } public string ShowEmployee { get; set; }
/// <summary> /// <summary>
/// 不显示时 可以查看的部门 逗号分隔 /// 不显示时 可以查看的部门 逗号分隔
/// </summary> /// </summary>
public string ShowDepartment { get; set; } public string ShowDepartment { get; set; }
/// <summary> /// <summary>
/// 排序 /// 排序
/// </summary> /// </summary>
public int? Sort { get; set; } public int? Sort { get; set; }
/// <summary> /// <summary>
/// 来源 1财务 2资产管理 /// 来源 1财务 2资产管理
/// </summary> /// </summary>
public int? TemplateSorce { get; set; } public int? TemplateSorce { get; set; }
/// <summary> /// <summary>
/// 资产管理 审批类型 1领取流程 2 退库流程 ~~ /// 资产管理 审批类型 1领取流程 2 退库流程 ~~
/// </summary> /// </summary>
......
...@@ -7,16 +7,12 @@ using VT.FW.DB; ...@@ -7,16 +7,12 @@ using VT.FW.DB;
namespace Edu.Model.ViewModel.Finance namespace Edu.Model.ViewModel.Finance
{ {
/// <summary> /// <summary>
/// 财务 审批流程模版扩展实体 /// 财务审批流程模版扩展实体
/// </summary> /// </summary>
[Serializable] [Serializable]
[DB(ConnectionName = "FinanceConnection")] [DB(ConnectionName = "FinanceConnection")]
public class Rb_Workflow_Template_Finance_Extend : Rb_Workflow_Template public class Rb_Workflow_Template_Finance_Extend : Rb_Workflow_Template
{ {
/// <summary>
/// 工作流 条件表
/// </summary>
//public Rb_Workflow_Condition_Extend Workflow_Condition { get; set; }
/// <summary> /// <summary>
......
...@@ -8,6 +8,9 @@ using Edu.Repository.App; ...@@ -8,6 +8,9 @@ using Edu.Repository.App;
namespace Edu.Module.System namespace Edu.Module.System
{ {
/// <summary>
/// App首页处理类
/// </summary>
public class AppHomePageModule public class AppHomePageModule
{ {
/// <summary> /// <summary>
...@@ -20,7 +23,7 @@ namespace Edu.Module.System ...@@ -20,7 +23,7 @@ namespace Edu.Module.System
/// </summary> /// </summary>
private readonly RB_HomePage_LableRepository homeLableRepository = new RB_HomePage_LableRepository(); private readonly RB_HomePage_LableRepository homeLableRepository = new RB_HomePage_LableRepository();
#region 首页banner列表 #region 首页banner图片列表
/// <summary> /// <summary>
/// 获取学生app首页banner列表 /// 获取学生app首页banner列表
/// </summary> /// </summary>
...@@ -31,8 +34,13 @@ namespace Edu.Module.System ...@@ -31,8 +34,13 @@ namespace Edu.Module.System
return homePageBannerRepository.GetHomePageBannerList(query); return homePageBannerRepository.GetHomePageBannerList(query);
} }
/// <summary>
/// 添加修改轮播图信息
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
[TransactionCallHandler] [TransactionCallHandler]
public bool SetHomePage(List<RB_HomePage_Banner> list) public virtual bool SetHomePage(List<RB_HomePage_Banner> list)
{ {
bool flag = false; bool flag = false;
var oldList = homePageBannerRepository.GetHomePageBannerList(new RB_HomePage_Banner { Group_Id = list.FirstOrDefault()?.Group_Id ?? 0 }); var oldList = homePageBannerRepository.GetHomePageBannerList(new RB_HomePage_Banner { Group_Id = list.FirstOrDefault()?.Group_Id ?? 0 });
...@@ -53,11 +61,9 @@ namespace Edu.Module.System ...@@ -53,11 +61,9 @@ namespace Edu.Module.System
} }
#endregion #endregion
#region 首页banner标签列表
#region 首页banner列表
/// <summary> /// <summary>
/// 获取学生app首页banner列表 /// 获取学生app首页bannerLabel列表
/// </summary> /// </summary>
/// <param name="query"></param> /// <param name="query"></param>
/// <returns></returns> /// <returns></returns>
...@@ -66,8 +72,13 @@ namespace Edu.Module.System ...@@ -66,8 +72,13 @@ namespace Edu.Module.System
return homeLableRepository.GetHomePageLableList(query); return homeLableRepository.GetHomePageLableList(query);
} }
/// <summary>
/// 添加修改首页标签信息
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
[TransactionCallHandler] [TransactionCallHandler]
public bool SetHomePageLable(List<RB_HomePage_Lable> list) public virtual bool SetHomePageLable(List<RB_HomePage_Lable> list)
{ {
bool flag = false; bool flag = false;
var oldList = homeLableRepository.GetHomePageLableList(new RB_HomePage_Lable { Group_Id = list.FirstOrDefault()?.Group_Id ?? 0 }); var oldList = homeLableRepository.GetHomePageLableList(new RB_HomePage_Lable { Group_Id = list.FirstOrDefault()?.Group_Id ?? 0 });
......
...@@ -7,6 +7,9 @@ using Edu.Model.Entity.App; ...@@ -7,6 +7,9 @@ using Edu.Model.Entity.App;
namespace Edu.Repository.App namespace Edu.Repository.App
{ {
/// <summary>
/// app首页banner图片仓储层
/// </summary>
public class RB_HomePage_BannerRepository : BaseRepository<RB_HomePage_Banner> public class RB_HomePage_BannerRepository : BaseRepository<RB_HomePage_Banner>
{ {
/// <summary> /// <summary>
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
...@@ -7,7 +6,10 @@ using Edu.Model.Entity.App; ...@@ -7,7 +6,10 @@ using Edu.Model.Entity.App;
namespace Edu.Repository.App namespace Edu.Repository.App
{ {
public class RB_HomePage_LableRepository:BaseRepository<RB_HomePage_Lable> /// <summary>
/// app首页bannerLabel仓储层
/// </summary>
public class RB_HomePage_LableRepository : BaseRepository<RB_HomePage_Lable>
{ {
/// <summary> /// <summary>
/// 获取学生app首页Lable列表 /// 获取学生app首页Lable列表
......
using System; using Edu.Model.Entity.Finance;
using System.Collections.Generic;
using System.Text;
using Edu.Model.Entity.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
public class RB_AccountTypeRepository:BaseRepository<RB_AccountType> /// <summary>
/// 账户类型仓储层
/// </summary>
public class RB_AccountTypeRepository : BaseRepository<RB_AccountType>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
...@@ -31,10 +29,6 @@ namespace Edu.Repository.Finance ...@@ -31,10 +29,6 @@ namespace Edu.Repository.Finance
{ {
where += string.Format(" AND A." + nameof(RB_BackAccount.RB_Group_Id) + "={0} ", model.RB_Group_Id); where += string.Format(" AND A." + nameof(RB_BackAccount.RB_Group_Id) + "={0} ", model.RB_Group_Id);
} }
//if (model.RB_Branch_Id >= 0)
//{
// where += string.Format(" AND A." + nameof(RB_BackAccount.RB_Branch_Id) + "={0} ", model.RB_Branch_Id);
//}
if (model.BackId > 0) if (model.BackId > 0)
{ {
where += string.Format(" AND A." + nameof(RB_BackAccount.BackId) + "={0} ", model.BackId); where += string.Format(" AND A." + nameof(RB_BackAccount.BackId) + "={0} ", model.BackId);
...@@ -57,52 +51,5 @@ namespace Edu.Repository.Finance ...@@ -57,52 +51,5 @@ namespace Edu.Repository.Finance
} }
return Get<RB_BackAccount_Extend>(string.Format("SELECT A.*,B.`Name` as BackName,B.Logo as BackLogo,C.`Name` as TypeName,D.`Name` as CurrencyName,D.Rate,D.CurrentRate as CurrencyRate,D.OutCashRate as PayRate,D.ExchangeRates,D.IsStandardCurrency as IsStandardCurrency FROM {0} as A LEFT JOIN rb_financialinstitutions AS B ON A.BackId = B.ID left JOIN RB_AccountType as c ON A.TypeId = C.ID LEFT JOIN rb_currency as D ON D.ID = A.currencyID {1}", TableName, where)).ToList(); return Get<RB_BackAccount_Extend>(string.Format("SELECT A.*,B.`Name` as BackName,B.Logo as BackLogo,C.`Name` as TypeName,D.`Name` as CurrencyName,D.Rate,D.CurrentRate as CurrencyRate,D.OutCashRate as PayRate,D.ExchangeRates,D.IsStandardCurrency as IsStandardCurrency FROM {0} as A LEFT JOIN rb_financialinstitutions AS B ON A.BackId = B.ID left JOIN RB_AccountType as c ON A.TypeId = C.ID LEFT JOIN rb_currency as D ON D.ID = A.currencyID {1}", TableName, where)).ToList();
} }
/// <summary>
/// 查询银行名称
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public string GetBankName(int id)
{
string sql = $"select Alias from {TableName} where ID={id}";
object result = ExecuteScalar(sql);
return Convert.IsDBNull(result) ? string.Empty : result.ToString();
}
/// <summary>
/// 根据名称查询银行账户
/// </summary>
/// <param name="alias"></param>
/// <param name="RB_Group_id"></param>
/// <returns></returns>
public List<RB_BackAccount_Extend> GetListByName(string alias, int RB_Group_id)
{
string where = " WHERE 1=1 ";
if (RB_Group_id > 0)
{
where += string.Format(" AND A." + nameof(RB_BackAccount.RB_Group_Id) + " ={0} ", RB_Group_id);
}
where += string.Format(" AND A." + nameof(RB_BackAccount.Alias) + " like '%{0}%' ", alias);
return Get<RB_BackAccount_Extend>(string.Format("SELECT A.ID,A.Alias,A.RB_Branch_Id,B.`Name` as BackName,C.`Name` as TypeName FROM {0} as A LEFT JOIN rb_financialinstitutions AS B ON A.BackId = B.ID left JOIN RB_AccountType as c ON A.TypeId = C.ID LEFT JOIN rb_currency as D ON D.ID = A.currencyID {1}", TableName, where)).ToList();
}
/// <summary>
/// 根据分公司编号获取银行账户
/// </summary>
/// <param name="branchId"></param>
/// <returns></returns>
public RB_BackAccount_Extend GetBankAccountByBranchId(int branchId)
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT A.*
FROM rb_backaccount AS A LEFT JOIN rb_accountrelation AS B ON A.ID=B.AccountID and B.Type=2 and B.AccountType=1
WHERE B.RB_Branch_Id={0}
", branchId);
return Get<RB_BackAccount_Extend>(builder.ToString()).FirstOrDefault();
}
} }
} }
\ No newline at end of file
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
public class RB_CashAccountRepository:BaseRepository<RB_CashAccount> /// <summary>
/// 现金账户表仓储层
/// </summary>
public class RB_CashAccountRepository : BaseRepository<RB_CashAccount>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
...@@ -28,10 +29,6 @@ namespace Edu.Repository.Finance ...@@ -28,10 +29,6 @@ namespace Edu.Repository.Finance
{ {
where += string.Format(" AND A." + nameof(RB_CashAccount.RB_Group_Id) + "={0} ", model.RB_Group_Id); where += string.Format(" AND A." + nameof(RB_CashAccount.RB_Group_Id) + "={0} ", model.RB_Group_Id);
} }
//if (model.RB_Branch_Id >= 0)
//{
// where += string.Format(" AND A." + nameof(RB_CashAccount.RB_Branch_Id) + "={0} ", model.RB_Branch_Id);
//}
if (!string.IsNullOrWhiteSpace(model.AccountIdStr)) if (!string.IsNullOrWhiteSpace(model.AccountIdStr))
{ {
where += string.Format(" AND A." + nameof(RB_CashAccount.ID) + " in({0}) ", model.AccountIdStr); where += string.Format(" AND A." + nameof(RB_CashAccount.ID) + " in({0}) ", model.AccountIdStr);
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
public class RB_CashPoolAccountRepository:BaseRepository<RB_CashPoolAccount> /// <summary>
/// 资金池账户仓储层
/// </summary>
public class RB_CashPoolAccountRepository : BaseRepository<RB_CashPoolAccount>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
/// </summary> /// </summary>
public string TableName { get { return nameof(RB_CashPoolAccount); } } public string TableName { get { return nameof(RB_CashPoolAccount); } }
/// <summary> /// <summary>
/// 获取列表 /// 获取列表
/// </summary> /// </summary>
...@@ -29,10 +29,6 @@ namespace Edu.Repository.Finance ...@@ -29,10 +29,6 @@ namespace Edu.Repository.Finance
{ {
where += string.Format(" AND " + nameof(RB_CashPoolAccount_Extend.RB_Group_Id) + "={0} ", model.RB_Group_Id); where += string.Format(" AND " + nameof(RB_CashPoolAccount_Extend.RB_Group_Id) + "={0} ", model.RB_Group_Id);
} }
//if (model.RB_Branch_Id >= 0)
//{
// where += string.Format(" AND " + nameof(RB_CashPoolAccount_Extend.RB_Branch_Id) + "={0} ", model.RB_Branch_Id);
//}
if (!string.IsNullOrWhiteSpace(model.AccountIdStr)) if (!string.IsNullOrWhiteSpace(model.AccountIdStr))
{ {
where += string.Format(" AND " + nameof(RB_CashPoolAccount_Extend.ID) + " in({0}) ", model.AccountIdStr); where += string.Format(" AND " + nameof(RB_CashPoolAccount_Extend.ID) + " in({0}) ", model.AccountIdStr);
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
...@@ -9,7 +7,7 @@ using Edu.Model.ViewModel.Finance; ...@@ -9,7 +7,7 @@ using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
/// <summary> /// <summary>
/// 客户账户仓储 /// 客户账户仓储
/// </summary> /// </summary>
public partial class RB_ClientBankAccountRepository : BaseRepository<RB_ClientBankAccount> public partial class RB_ClientBankAccountRepository : BaseRepository<RB_ClientBankAccount>
{ {
...@@ -17,97 +15,6 @@ namespace Edu.Repository.Finance ...@@ -17,97 +15,6 @@ namespace Edu.Repository.Finance
/// 表名称 /// 表名称
/// </summary> /// </summary>
public string TableName { get { return nameof(RB_ClientBankAccount); } } public string TableName { get { return nameof(RB_ClientBankAccount); } }
/// <summary>
/// 获取客户账户分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="model"></param>
/// <param name="count"></param>
/// <returns></returns>
public List<RB_ClientBankAccount_Extend> GetPageList(int pageIndex, int pageSize, RB_ClientBankAccount_Extend model, out long count)
{
string where = " WHERE 1=1 ";
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.Status) + "={0}", (int)DateStateEnum.Normal);
if (model.RB_Group_Id > 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.RB_Group_Id) + "={0}", model.RB_Group_Id);
}
if (model.RB_Branch_Id >= 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.RB_Branch_Id) + "={0}", model.RB_Branch_Id);
}
if (model.Type > 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.Type) + "={0}", (int)model.Type);
}
if (!string.IsNullOrEmpty(model.AccountAlias))
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.AccountAlias) + " like '%{0}%' ", model.AccountAlias);
}
if (!string.IsNullOrEmpty(model.OpenBankName))
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.OpenBankName) + " like '%{0}%' ", model.OpenBankName);
}
if (!string.IsNullOrEmpty(model.CardNum))
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.CardNum) + " like '%{0}%' ", model.CardNum);
}
if (!string.IsNullOrEmpty(model.AccountHolder))
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount_Extend.AccountHolder) + " like '%{0}%' ", model.AccountHolder);
}
return GetPage<RB_ClientBankAccount_Extend>(pageIndex, pageSize, out count, " select * from " + TableName + "" + where).ToList();
}
/// <summary>
/// 获取客户账户列表
/// </summary>
/// <param name="model"></param>
/// <param name="AccountAlias"></param>
/// <param name="ClientIdStr"></param>
/// <returns></returns>
public List<RB_ClientBankAccount> GetList(RB_ClientBankAccount model, string AccountAlias = "", string ClientIdStr = "")
{
string where = " WHERE 1=1 ";
where += string.Format(" AND " + nameof(RB_ClientBankAccount.Status) + "={0} ", (int)DateStateEnum.Normal);
if (model.RB_Group_Id > 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.RB_Group_Id) + "={0} ", model.RB_Group_Id);
}
if (model.RB_Branch_Id >= 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.RB_Branch_Id) + "={0} ", model.RB_Branch_Id);
}
if (model.ID > 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.ID) + "={0} ", model.ID);
}
if (ClientIdStr != "")
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.ID) + " in({0}) ", ClientIdStr);
}
if (model.Type > 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.Type) + "={0}", (int)model.Type);
}
if (model.ObjID > 0)
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.ObjID) + "={0}", model.ObjID);
}
if (!string.IsNullOrEmpty(model.AccountAlias))
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.AccountAlias) + "='{0}'", model.AccountAlias);
}
if (AccountAlias != "")
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.AccountAlias) + " like'%{0}%'", AccountAlias);
}
if (!string.IsNullOrEmpty(model.CardNum))
{
where += string.Format(" AND " + nameof(RB_ClientBankAccount.CardNum) + " like '%{0}%' ", model.CardNum);
}
return Get<RB_ClientBankAccount>("select * from " + TableName + " " + where).ToList();
}
/// <summary> /// <summary>
/// 根据查询条件获取客户账户列表 /// 根据查询条件获取客户账户列表
...@@ -156,46 +63,5 @@ namespace Edu.Repository.Finance ...@@ -156,46 +63,5 @@ namespace Edu.Repository.Finance
} }
return Get<RB_ClientBankAccount>("select * from " + TableName + " " + where).ToList(); return Get<RB_ClientBankAccount>("select * from " + TableName + " " + where).ToList();
} }
/// <summary>
/// 获取员工银行账户绑定分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="empId"></param>
/// <param name="bankId"></param>
/// <param name="accountHolder"></param>
/// <param name="accountAlias"></param>
/// <param name="RB_Group_id"></param>
/// <param name="BranchId"></param>
/// <param name="Type"></param>
public List<RB_ClientBankAccount_Extend> GetEmpBankAccountPageList(int pageIndex, int pageSize, out long count, int empId, int bankId, string accountHolder, string accountAlias, int RB_Group_id, int BranchId, int Type)
{
string where = $@" 1=1 and c.{nameof(RB_ClientBankAccount.Type)}={Type} and c.{nameof(RB_ClientBankAccount.RB_Group_Id)}={RB_Group_id}";
if (empId > 0)
{
where += $@" and c.{nameof(RB_ClientBankAccount.ObjID)}={empId}";
}
if (bankId > 0)
{
where += $@" and c.{nameof(RB_ClientBankAccount.BankId)}={bankId}";
}
if (BranchId >= 0)
{
where += $@" and c.{nameof(RB_ClientBankAccount.RB_Branch_Id)}={BranchId}";
}
if (!string.IsNullOrWhiteSpace(accountHolder))
{
where += $@" and c.{nameof(RB_ClientBankAccount.AccountHolder)} like '%{accountHolder}%'";
}
if (!string.IsNullOrWhiteSpace(accountAlias))
{
where += $@" and c.{nameof(RB_ClientBankAccount.AccountAlias)} like '%{accountAlias}%'";
}
string sql = $@" select c.*,b.Name as BankName,sum(IFNULL(f.PayMoney,0)) as PayMoney from {TableName} c left join RB_FinancialInstitutions b on c.{nameof(RB_ClientBankAccount.BankId)}=b.ID
left join {nameof(RB_Finance)} f on f.{nameof(RB_Finance.ClientType)}=c.{nameof(RB_ClientBankAccount.Type)} and f.{nameof(RB_Finance.ClientID)}=c.{nameof(RB_ClientBankAccount.ObjID)} and f.{nameof(RB_Finance.Status)}=2
where {where} group by c.ID,B.Name order by c.ID desc";
return GetPage<RB_ClientBankAccount_Extend>(pageIndex, pageSize, out count, sql).ToList();
}
} }
} }
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
...@@ -9,7 +8,7 @@ using Edu.Model.ViewModel.Finance; ...@@ -9,7 +8,7 @@ using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
/// <summary> /// <summary>
/// 财务单据币种仓储 /// 财务单据币种仓储
/// </summary> /// </summary>
public partial class RB_CurrencyRepository : BaseRepository<RB_Currency> public partial class RB_CurrencyRepository : BaseRepository<RB_Currency>
{ {
...@@ -45,116 +44,5 @@ namespace Edu.Repository.Finance ...@@ -45,116 +44,5 @@ namespace Edu.Repository.Finance
} }
return Get<RB_Currency>("select * from " + TableName + " " + where + " order by IsStandardCurrency desc ").ToList(); return Get<RB_Currency>("select * from " + TableName + " " + where + " order by IsStandardCurrency desc ").ToList();
} }
/// <summary>
/// 获取币种分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="model"></param>
/// <param name="count"></param>
/// <returns></returns>
public List<RB_Currency_Extend> GetPageList(int pageIndex, int pageSize, RB_Currency_Extend model, out long count)
{
string where = " WHERE 1=1 ";
where += string.Format(" AND " + nameof(RB_Currency_Extend.Status) + "={0}", (int)Common.Enum.DateStateEnum.Normal);
if (model.RB_Group_Id > 0)
{
where += string.Format(" AND " + nameof(RB_Currency_Extend.RB_Group_Id) + "={0}", model.RB_Group_Id);
}
//if (model.RB_Branch_Id >= 0)
//{
// where += string.Format(" AND " + nameof(RB_Currency_Extend.RB_Branch_Id) + "={0}", model.RB_Branch_Id);
//}
if (!string.IsNullOrEmpty(model.Code))
{
where += string.Format(" AND " + nameof(RB_Currency_Extend.Code) + " like '%{0}%' ", model.Code);
}
if (!string.IsNullOrEmpty(model.Name))
{
where += string.Format(" AND " + nameof(RB_Currency_Extend.Name) + " like '%{0}%' ", model.Name);
}
return GetPage<RB_Currency_Extend>(pageIndex, pageSize, out count, " select * from " + TableName + "" + where).ToList();
}
/// <summary>
/// 获取币种余额记录
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="model"></param>
/// <param name="count"></param>
/// <returns></returns>
public List<RB_Currency_Extend> GetMoneyPageList(int pageIndex, int pageSize, RB_Currency_Extend model, out long count)
{
StringBuilder sbwhere = new StringBuilder();
StringBuilder sb = new StringBuilder();
sb.AppendFormat("{0}",
@"select * from (
SELECT A.ID,B.ID AS BankID,A.`Name`,B.alias as Alias,B.backNo,IFNULL(B.Initialbalance,0)AS Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,1 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_backaccount AS B ON A.ID=B.currencyId where B.`Status`=0
UNION ALL
SELECT A.ID,B.ID AS BankID,A.`Name`,B.Alias,B.PlatformNo as backNo,IFNULL(B.Initialbalance,0)AS Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,2 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_platformaccount AS B ON A.ID=B.CurrencyId where B.`Status`=0
UNION ALL
SELECT A.ID,B.ID AS BankID,A.`Name`,B.Alias,'' as backNo,IFNULL(B.Initialbalance,0)AS Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,3 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_cashaccount AS B ON A.ID=B.CurrencyId where B.`Status`=0
UNION ALL
SELECT A.ID,B.ID AS BankID,A.`Name`,B.Alias,'' as backNo,IFNULL(B.Initialbalance,0)AS Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,4 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_cashpoolaccount AS B ON A.ID=B.CurrencyId where B.`Status`=0) as Temp ");
sbwhere.AppendFormat(" AND Temp.{0}={1}", nameof(RB_Currency.Status), (int)DateStateEnum.Normal);
if (model.ID > 0)
{
sbwhere.AppendFormat(" AND Temp.{0}={1} ", nameof(RB_Currency.ID), model.ID);
}
if (sbwhere.ToString().Length > 0)
{
sbwhere.Insert(0, " WHERE 1=1 ");
}
return GetPage<RB_Currency_Extend>(pageIndex, pageSize, out count, sb.ToString() + sbwhere.ToString() + " order by Temp.ID,Temp.Type ASC ").ToList();
}
/// <summary>
/// 获取币种余额列表
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public List<RB_Currency_Extend> GetMoneyList(RB_Currency_Extend model)
{
StringBuilder sbwhere = new StringBuilder();
StringBuilder sb = new StringBuilder();
sb.AppendFormat("{0}",
@"select * from (
SELECT A.ID,B.ID AS BankID,A.`Name`,B.alias as Alias,B.backNo,B.Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,1 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_backaccount AS B ON A.ID=B.currencyId where B.`Status`=0
UNION ALL
SELECT A.ID,B.ID AS BankID,A.`Name`,B.Alias,B.PlatformNo as backNo,B.Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,2 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_platformaccount AS B ON A.ID=B.CurrencyId where B.`Status`=0
UNION ALL
SELECT A.ID,B.ID AS BankID,A.`Name`,B.Alias,'' as backNo,B.Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,3 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_cashaccount AS B ON A.ID=B.CurrencyId where B.`Status`=0
UNION ALL
SELECT A.ID,B.ID AS BankID,A.`Name`,B.Alias,'' as backNo,B.Initialbalance,IFNULL(B.Initialbalance*A.CurrentRate,0) as Balance,4 AS Type,A.`Status` FROM rb_currency AS A LEFT JOIN rb_cashpoolaccount AS B ON A.ID=B.CurrencyId where B.`Status`=0) as Temp ");
sbwhere.AppendFormat(" AND Temp.{0}={1}", nameof(RB_Currency_Extend.Status), (int)DateStateEnum.Normal);
if (model.ID > 0)
{
sbwhere.AppendFormat(" AND Temp.{0}={1} ", nameof(RB_Currency_Extend.ID), model.ID);
}
if (sbwhere.ToString().Length > 0)
{
sbwhere.Insert(0, " WHERE 1=1 ");
}
return Get<RB_Currency_Extend>(sb.ToString() + sbwhere.ToString()).ToList();
}
/// <summary>
/// 根据币种ids获取币种列表
/// </summary>
/// <param name="CurrencyIDs"></param>
/// <returns></returns>
public List<RB_Currency> GetListByIDs(string CurrencyIDs)
{
string where = " WHERE 1=1 ";
where += string.Format(" AND " + nameof(RB_Currency.Status) + "={0} ", (int)DateStateEnum.Normal);
if (!string.IsNullOrEmpty(CurrencyIDs))
{
where += string.Format(" AND " + nameof(RB_Currency_Extend.ID) + " in({0})", CurrencyIDs);
}
return Get<RB_Currency>("select * from " + TableName + " " + where + " order by IsStandardCurrency desc ").ToList();
}
} }
} }
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
/// <summary>
/// 财务单据明细仓储层
/// </summary>
public class RB_FinanceDetailRepository : BaseRepository<RB_FinanceDetail> public class RB_FinanceDetailRepository : BaseRepository<RB_FinanceDetail>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
/// </summary> /// </summary>
...@@ -24,6 +24,7 @@ namespace Edu.Repository.Finance ...@@ -24,6 +24,7 @@ namespace Edu.Repository.Finance
/// 费用类型表 /// 费用类型表
/// </summary> /// </summary>
public string TTableName { get { return nameof(RB_Costtype); } } public string TTableName { get { return nameof(RB_Costtype); } }
/// <summary> /// <summary>
/// 获取单据详情列表 /// 获取单据详情列表
/// </summary> /// </summary>
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
/// <summary>
/// 财务单据仓储层
/// </summary>
public class RB_FinanceRepository : BaseRepository<RB_Finance> public class RB_FinanceRepository : BaseRepository<RB_Finance>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
/// </summary> /// </summary>
...@@ -19,6 +19,7 @@ namespace Edu.Repository.Finance ...@@ -19,6 +19,7 @@ namespace Edu.Repository.Finance
/// 记录表 /// 记录表
/// </summary> /// </summary>
public string ReCordTableName { get { return nameof(Rb_Workflow_Auditrecord); } } public string ReCordTableName { get { return nameof(Rb_Workflow_Auditrecord); } }
/// <summary> /// <summary>
/// 财务单据 主表查询 /// 财务单据 主表查询
/// </summary> /// </summary>
...@@ -121,6 +122,5 @@ namespace Edu.Repository.Finance ...@@ -121,6 +122,5 @@ namespace Edu.Repository.Finance
string sql = string.Format(@"SELECT A.* FROM {0} AS A WHERE {2} {3}", TableName, ReCordTableName, where, " GROUP BY A.FrID DESC"); string sql = string.Format(@"SELECT A.* FROM {0} AS A WHERE {2} {3}", TableName, ReCordTableName, where, " GROUP BY A.FrID DESC");
return Get<RB_Finance_Extend>(sql).ToList(); return Get<RB_Finance_Extend>(sql).ToList();
} }
} }
} }
\ No newline at end of file
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
...@@ -13,11 +11,6 @@ namespace Edu.Repository.Finance ...@@ -13,11 +11,6 @@ namespace Edu.Repository.Finance
/// </summary> /// </summary>
public class RB_PlatformAccountRepository:BaseRepository<RB_PlatformAccount> public class RB_PlatformAccountRepository:BaseRepository<RB_PlatformAccount>
{ {
/// <summary>
/// 表名称
/// </summary>
public string TableName { get { return nameof(RB_PlatformAccount); } }
/// <summary> /// <summary>
/// 获取列表 /// 获取列表
/// </summary> /// </summary>
...@@ -34,7 +27,6 @@ namespace Edu.Repository.Finance ...@@ -34,7 +27,6 @@ namespace Edu.Repository.Finance
if (model.RB_Branch_Id >= 0) if (model.RB_Branch_Id >= 0)
{ {
where += string.Format(" AND b.RB_Branch_Id={0} ", model.RB_Branch_Id); where += string.Format(" AND b.RB_Branch_Id={0} ", model.RB_Branch_Id);
//where += string.Format(" AND b." + nameof(RB_AccountRelation.RB_Branch_Id) + "={0} ", model.RB_Branch_Id);
} }
if (model.BackId > 0) if (model.BackId > 0)
{ {
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
/// <summary>
/// 单据交易方式仓储层
/// </summary>
public class RB_TradeWayRepository : BaseRepository<RB_TradeWay> public class RB_TradeWayRepository : BaseRepository<RB_TradeWay>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
/// </summary> /// </summary>
public string TableName { get { return nameof(RB_TradeWay); } } public string TableName { get { return nameof(RB_TradeWay); } }
/// <summary> /// <summary>
/// /// 获取交易方式列表
/// </summary> /// </summary>
/// <param name="model"></param> /// <param name="model"></param>
/// <returns></returns> /// <returns></returns>
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
using Edu.Model.ViewModel.Finance; using Edu.Model.ViewModel.Finance;
...@@ -12,20 +10,19 @@ namespace Edu.Repository.Finance ...@@ -12,20 +10,19 @@ namespace Edu.Repository.Finance
/// </summary> /// </summary>
public class RB_VoucherRepository : BaseRepository<RB_Voucher> public class RB_VoucherRepository : BaseRepository<RB_Voucher>
{ {
/// <summary> /// <summary>
/// 表名称 /// 表名称
/// </summary> /// </summary>
public string TableName { get { return nameof(RB_Voucher); } } public string TableName { get { return nameof(RB_Voucher); } }
/// <summary> /// <summary>
/// 获取列表 /// 获取单据凭证列表
/// </summary> /// </summary>
/// <param name="model"></param> /// <param name="model"></param>
/// <returns></returns> /// <returns></returns>
public List<RB_Voucher_Extend> GetList(RB_Voucher_Extend model) public List<RB_Voucher_Extend> GetList(RB_Voucher_Extend model)
{ {
string where = " WHERE 1=1 "; string where = " WHERE 1=1 ";
if (model.Type > 0) if (model.Type > 0)
{ {
where += string.Format(" AND " + nameof(RB_Voucher.Type) + "={0} ", (int)model.Type); where += string.Format(" AND " + nameof(RB_Voucher.Type) + "={0} ", (int)model.Type);
...@@ -44,6 +41,5 @@ namespace Edu.Repository.Finance ...@@ -44,6 +41,5 @@ namespace Edu.Repository.Finance
} }
return Get<RB_Voucher_Extend>("select * from " + TableName + " " + where).ToList(); return Get<RB_Voucher_Extend>("select * from " + TableName + " " + where).ToList();
} }
} }
} }
\ No newline at end of file
...@@ -5,6 +5,9 @@ using Edu.Model.Entity.Finance; ...@@ -5,6 +5,9 @@ using Edu.Model.Entity.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
/// <summary>
/// 工作流程审核记录仓储层
/// </summary>
public class Rb_Workflow_AuditrecordRepository : BaseRepository<Rb_Workflow_Auditrecord> public class Rb_Workflow_AuditrecordRepository : BaseRepository<Rb_Workflow_Auditrecord>
{ {
......
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Edu.Model.Entity.Finance; using Edu.Model.Entity.Finance;
namespace Edu.Repository.Finance namespace Edu.Repository.Finance
{ {
public class Rb_Workflow_TemplateRepository:BaseRepository<Rb_Workflow_Template> /// <summary>
/// 财务审批流程模版仓储层
/// </summary>
public class Rb_Workflow_TemplateRepository : BaseRepository<Rb_Workflow_Template>
{ {
/// <summary> /// <summary>
/// 获取我审批的,待我审批的。 /// 获取我审批的,待我审批的。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment