Merge branch 'glms/feature/1.4.2' of http://git.yiliantech.com/gitlab/otc-dev/zszq-trs into glms/feature/1.4.2

This commit is contained in:
hjhan
2026-08-11 13:13:35 +08:00
3 changed files with 12 additions and 7 deletions
@@ -98,7 +98,7 @@ namespace YLErp.Modules.ClientModule
//针对法人,授权协议签署人才做唯一性判断,有效期结束后可新增
if ((contactType == contactypelist.FirstOrDefault(x => x.ContactType == "法人")?.id || (contactType == contactypelist.FirstOrDefault(x => x.ContactType == "授权协议签署人")?.id && PS.Config.Company == Configuration.CompanyEnum.))
&& DbContext.clientduty.Any(x => x.ApprovalOrder < 1 && x.ClientId == req.ClientId && x.ContactTypeId.Contains(contactType.ToString()) && (x.DeadLine >= DateTime.Now || !x.DeadLine.HasValue))
&& !PS.Config.Is浙期)
&& !PS.Config.Is浙期 && PS.Config.Company != Configuration.CompanyEnum.)
{
throw new ServiceException("法人在有效期内必须唯一,授权协议签署人必须唯一");
}
@@ -113,7 +113,7 @@ namespace YLErp.Modules.ClientModule
//针对法人,授权协议签署人才做唯一性判断,有效期结束后可新增
if ((contactType == contactypelist.FirstOrDefault(x => x.ContactType == "法人")?.id || contactType == contactypelist.FirstOrDefault(x => x.ContactType == "授权协议签署人")?.id)
&& DbContext.clientduty.Any(x => x.ApprovalOrder < 1 && x.ClientId == req.ClientId && x.ContactTypeId.Contains(contactType.ToString()) && x.id != req.id && (x.DeadLine >= DateTime.Now || !x.DeadLine.HasValue))
&& !PS.Config.Is浙期)
&& !PS.Config.Is浙期 && PS.Config.Company != Configuration.CompanyEnum.)
{
throw new ServiceException("法人在有效期内必须唯一,授权协议签署人必须唯一");
}
@@ -208,7 +208,8 @@ namespace YLErp.Modules.ClientModule
var clientCount = yldb.approvalprocess.Where(x => x.processType == "ClientProcess").Count();
if (dbmodel.ApprovalOrder == 0)
{
if (clientCount > 0 && client.ProcessStatus == "已开户" && PS.Config.Is浙期)
if (clientCount > 0 && client.ProcessStatus == "已开户"
&& (PS.Config.Is浙期 || PS.Config.Company == Configuration.CompanyEnum.))
{
if (!isAdd)
{
@@ -397,7 +398,9 @@ namespace YLErp.Modules.ClientModule
var clientCount = yldb.approvalprocess.Where(x => x.processType == "ClientProcess").Count();
if (clientCount > 0 && client.ProcessStatus == "已开户" && PS.Config.Is浙期 && clientDuty.ApprovalOrder == 0)
if (clientCount > 0 && client.ProcessStatus == "已开户"
&& (PS.Config.Is浙期 || PS.Config.Company == Configuration.CompanyEnum.)
&& clientDuty.ApprovalOrder == 0)
{
clientDuty.ApprovalOrder = (int)ApprovalOrderEnum.;
if (isDirectSubApp)
@@ -1102,7 +1102,8 @@ namespace YLErp.Modules.ClientModule
public bool resetClientProcess(client_file file, ApprovalOrderEnum orderEnum)
{
if (string.IsNullOrWhiteSpace(file.ProtocolNumber) && file.ApprovalOrder == (int)ApprovalOrderEnum. && !PS.Config.Is浙期)
if (string.IsNullOrWhiteSpace(file.ProtocolNumber) && file.ApprovalOrder == (int)ApprovalOrderEnum.
&& !PS.Config.Is浙期 && PS.Config.Company != Configuration.CompanyEnum.)
{
return false;
}
@@ -1539,4 +1540,4 @@ namespace YLErp.Modules.ClientModule
public ThisUnitOpreateHandle thisUnitOpreate;
public ThisUnitBackHandle thisUnitBack;
}
}
}
@@ -1777,7 +1777,8 @@ namespace YLErp.Modules.ClientModule
var processlist = yldb.approvalprocess.Where(x => x.processType == "ClientProcess");
if (processlist.Count() > 0 && client.ProcessStatus == "已开户" && PS.Config.Is浙期)
if (processlist.Count() > 0 && client.ProcessStatus == "已开户"
&& (PS.Config.Is浙期 || PS.Config.Company == Configuration.CompanyEnum.))
{
clientDuty.ApprovalOrder = (int)ApprovalOrderEnum.;