|
@@ -40,25 +40,27 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
/// </summary>
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<Result> GetPagePriceTypeData(DtoBase dto)
|
|
|
+ public async Task<Result> GetPagePriceTypeData(PortDtoBase dto)
|
|
|
{
|
|
|
Result result = new Result() { Code = -2 };
|
|
|
|
|
|
dynamic? DailyFeePaymentList = null;
|
|
|
- if (dto.PortType == 1 || dto.PortType == 2) //web
|
|
|
+
|
|
|
+ var setTypeData = _setDataTypeRep.QueryDto<Sys_SetDataType, Fin_DailyFeePaymentPagePriceTypeView>().ToList();
|
|
|
+ var setData = _setDataTypeRep.QueryDto<Sys_SetData, Fin_DailyFeePaymentPagePriceSubTypeView>().ToList();
|
|
|
+
|
|
|
+ //48人员费用 49办公费用 50 销售费用 51 其他费用 55 大运会
|
|
|
+ var priceTypeData = setTypeData.Where(s => s.Id == 48 || s.Id == 49 || s.Id == 50 || s.Id == 51 || s.Id == 55).ToList();
|
|
|
+ var priceSubTypeData = setData.Where(s => s.STid == 48 || s.STid == 49 || s.STid == 50 || s.STid == 51 || s.STid == 55).ToList();
|
|
|
+ //员工姓名列表
|
|
|
+ var userNameData = await _UsersRep.GetUserNameList(dto.PortType);
|
|
|
+ //62 公转 63 私转
|
|
|
+ var feeMarkTypeData = setTypeData.Where(s => s.Id == 62 || s.Id == 63).ToList();
|
|
|
+ var feeMarkSubTypeData = setData.Where(s => s.STid == 62 || s.STid == 63).ToList();
|
|
|
+ var companyNameData = await _CompanyRep.GetCompanyNameData();
|
|
|
+
|
|
|
+ if (dto.PortType == 1) //web
|
|
|
{
|
|
|
- var setTypeData = _setDataTypeRep.QueryDto<Sys_SetDataType, Fin_DailyFeePaymentPagePriceTypeView>().ToList();
|
|
|
- var setData = _setDataTypeRep.QueryDto<Sys_SetData, Fin_DailyFeePaymentPagePriceSubTypeView>().ToList();
|
|
|
-
|
|
|
- //48人员费用 49办公费用 50 销售费用 51 其他费用 55 大运会
|
|
|
- var priceTypeData = setTypeData.Where(s => s.Id == 48 || s.Id == 49 || s.Id == 50 || s.Id == 51 || s.Id == 55).ToList();
|
|
|
- var priceSubTypeData = setData.Where(s => s.STid == 48 || s.STid == 49 || s.STid == 50 || s.STid == 51 || s.STid == 55).ToList();
|
|
|
- //员工姓名列表
|
|
|
- var userNameData = await _UsersRep.GetUserNameList(dto.PortType);
|
|
|
- //62 公转 63 私转
|
|
|
- var feeMarkTypeData = setTypeData.Where(s => s.Id == 62 || s.Id == 63).ToList();
|
|
|
- var feeMarkSubTypeData = setData.Where(s => s.STid == 62 || s.STid == 63).ToList();
|
|
|
- var companyNameData = await _CompanyRep.GetCompanyNameData();
|
|
|
DailyFeePaymentList = new Fin_DailyFeePaymentPagePriceTypeDataView
|
|
|
{
|
|
|
FeeTypeData = priceTypeData,
|
|
@@ -69,6 +71,36 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
CompanyNameData = companyNameData.Data
|
|
|
};
|
|
|
}
|
|
|
+ else if (dto.PortType == 2) //安卓
|
|
|
+ {
|
|
|
+ //DailyFeePaymentPagePriceTypeView
|
|
|
+
|
|
|
+ List<DailyFeePaymentDataSourceView> priceTypeDatas = new List<DailyFeePaymentDataSourceView>();
|
|
|
+ foreach (Fin_DailyFeePaymentPagePriceTypeView item in priceTypeData)
|
|
|
+ {
|
|
|
+ List<Fin_DailyFeePaymentPagePriceSubTypeView> data1 = setData.Where(s => s.STid == item.Id).ToList();
|
|
|
+
|
|
|
+ priceTypeDatas.Add(new DailyFeePaymentDataSourceView { Id = item.Id,Name=item.Name,SubDatas= data1 });
|
|
|
+ }
|
|
|
+
|
|
|
+ List<DailyFeePaymentDataSourceView> feeMarkTypeDatas = new List<DailyFeePaymentDataSourceView>();
|
|
|
+
|
|
|
+ foreach (Fin_DailyFeePaymentPagePriceTypeView item in feeMarkTypeData)
|
|
|
+ {
|
|
|
+ List<Fin_DailyFeePaymentPagePriceSubTypeView> data1 = feeMarkSubTypeData.Where(s => s.STid == item.Id).ToList();
|
|
|
+
|
|
|
+ feeMarkTypeDatas.Add(new DailyFeePaymentDataSourceView { Id = item.Id, Name = item.Name, SubDatas = data1 });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ DailyFeePaymentList = new
|
|
|
+ {
|
|
|
+ CompanyNameData = companyNameData.Data,
|
|
|
+ UserNameData = userNameData.Data,
|
|
|
+ FeeTypeData = priceTypeDatas,
|
|
|
+ FeeMarkTypeData = feeMarkTypeDatas
|
|
|
+ };
|
|
|
+ }
|
|
|
|
|
|
result.Code = 0;
|
|
|
result.Msg = "查询成功!";
|