Procházet zdrojové kódy

经费开支申报手机端查看权限

新疆警官学校中职
ndbs před 2 roky
rodič
revize
788742ff8d
3 změnil soubory, kde provedl 19 přidání a 4 odebrání
  1. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config
  2. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config
  3. +14
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/FundsApply/FundsApplyService.cs

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config Zobrazit soubor

@@ -167,6 +167,8 @@
<add key="EpidemicControlTeamRoleId" value="87f38e4e-b0a6-472c-b01a-2620b8f1ec46" />
<!--注册教师生成编号 金隅:jy;西昌:xc;大厂:dc-->
<add key="EmpNoRule" value="jy"/>
<!--校长角色Id-->
<add key="PrincipalRoleId" value="72b0df2d-66cc-4c84-a7d7-f3728c787d92" />
<!--考勤明细统计时查询的职工编号前缀 大厂:DCZZ-->
<add key="ADR_RecordUserNoPrev" value=""/>
<!--第三方登录跳转地址(最后不加/)-->


+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config Zobrazit soubor

@@ -102,8 +102,10 @@
<add key="EpidemicControlTeamRoleId" value="87f38e4e-b0a6-472c-b01a-2620b8f1ec46" />
<!--系主任角色Id-->
<add key="DeptDirectorRoleId" value="cccde0ce-ebfe-41f2-9a78-e49aaa21cd5a" />
<!--校长角色Id-->
<add key="PrincipalRoleId" value="72b0df2d-66cc-4c84-a7d7-f3728c787d92" />
<add key="QJUrl" value="www.qj.com"/>
<!-- 报名选修课的最大课程数 -->
<add key="ElectiveLessonApplyMax" value="2" />
</appSettings>

+ 14
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/FundsApply/FundsApplyService.cs Zobrazit soubor

@@ -4,6 +4,7 @@ using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Learun.Application.TwoDevelopment.AssetManagementSystem
@@ -45,10 +46,20 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime);
strSql.Append(" AND ( t.ApplyTime >= @startTime AND t.ApplyTime <= @endTime ) ");
}
if (!queryParam["ApplyUser"].IsEmpty())
var userLogin = LoginUserInfo.Get();
var PrincipalRole = Config.GetValue("PrincipalRoleId");
var loginInfoRoleIds = LoginUserInfo.Get().roleIds;
if (!userLogin.Description.Contains("管理员") && !loginInfoRoleIds.Split(',').Contains(PrincipalRole))
{
dp.Add("ApplyUser", queryParam["ApplyUser"].ToString(), DbType.String);
strSql.Append(" AND t.ApplyUser = @ApplyUser ");
strSql.Append(" AND t.ApplyUser = '" + userLogin.userId + "' ");
}
else
{
if (!queryParam["ApplyUser"].IsEmpty())
{
dp.Add("ApplyUser", queryParam["ApplyUser"].ToString(), DbType.String);
strSql.Append(" AND t.ApplyUser = @ApplyUser ");
}
}
return this.BaseRepository("CollegeMIS").FindList<FundsApplyEntity>(strSql.ToString(), dp, pagination);
}


Načítá se…
Zrušit
Uložit