|
@@ -807,7 +807,6 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostReceivablesSave(ForeignReceivablesSaveDto dto)
|
|
|
{
|
|
|
-
|
|
|
return Ok(await _ForForeignReceivablesRep.PostReceivablesSave(dto));
|
|
|
|
|
|
}
|
|
@@ -1656,50 +1655,44 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostPaymentRefundAndOtherMoneyItemByDiId(PaymentRefundAndOtherMoneyItemByDiIdDto dto)
|
|
|
{
|
|
|
- try
|
|
|
- {
|
|
|
- if (dto == null) return Ok(JsonView(false, "参数不能为空!"));
|
|
|
|
|
|
- if (dto.PageId <= 0) return Ok(JsonView(false, "请传入正确的的页面Id!"));
|
|
|
-
|
|
|
- if (dto.UserId <= 0) return Ok(JsonView(false, "请传入正确的的员工Id!"));
|
|
|
+ if (dto == null) return Ok(JsonView(false, "参数不能为空!"));
|
|
|
|
|
|
- #region 页面功能权限处理
|
|
|
- PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
- pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
+ if (dto.PageId <= 0) return Ok(JsonView(false, "请传入正确的的页面Id!"));
|
|
|
|
|
|
- if (pageFunAuth.CheckAuth == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "您没有当前页面查询权限!"));
|
|
|
- }
|
|
|
+ if (dto.UserId <= 0) return Ok(JsonView(false, "请传入正确的的员工Id!"));
|
|
|
|
|
|
- #endregion
|
|
|
+ #region 页面功能权限处理
|
|
|
+ PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
+ pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
|
|
|
- Result _result = await _paymentRefundAndOtherMoneyRep._ItemByDiId(dto.DiId);
|
|
|
+ if (pageFunAuth.CheckAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面查询权限!"));
|
|
|
+ }
|
|
|
|
|
|
- if (dto.PortType == 1 || dto.PortType == 2 || dto.PortType == 3) //1 Web 2 Android 3 Ios
|
|
|
- {
|
|
|
- if (_result.Code != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, _result.Msg));
|
|
|
- }
|
|
|
+ #endregion
|
|
|
|
|
|
- var data = new
|
|
|
- {
|
|
|
- PageFuncAuth = pageFunAuth,
|
|
|
- Data = _result.Data
|
|
|
- };
|
|
|
+ Result _result = await _paymentRefundAndOtherMoneyRep._ItemByDiId(dto.DiId);
|
|
|
|
|
|
- return Ok(JsonView(true, "操作成功!", data));
|
|
|
- }
|
|
|
- else
|
|
|
+ if (dto.PortType == 1 || dto.PortType == 2 || dto.PortType == 3) //1 Web 2 Android 3 Ios
|
|
|
+ {
|
|
|
+ if (_result.Code != 0)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "请输入正确的端口号! 1 Web 2 Android 3 Ios;"));
|
|
|
+ return Ok(JsonView(false, _result.Msg));
|
|
|
}
|
|
|
+
|
|
|
+ var data = new
|
|
|
+ {
|
|
|
+ PageFuncAuth = pageFunAuth,
|
|
|
+ Data = _result.Data
|
|
|
+ };
|
|
|
+
|
|
|
+ return Ok(JsonView(true, "操作成功!", data));
|
|
|
}
|
|
|
- catch (Exception ex)
|
|
|
+ else
|
|
|
{
|
|
|
- return Ok(JsonView(false, ex.Message));
|
|
|
+ return Ok(JsonView(false, "请输入正确的端口号! 1 Web 2 Android 3 Ios;"));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1713,39 +1706,32 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostPaymentRefundAndOtherMoneyDel(PaymentRefundAndOtherMoneyDelDto dto)
|
|
|
{
|
|
|
- try
|
|
|
- {
|
|
|
- if (dto == null) return Ok(JsonView(false, "参数不能为空!"));
|
|
|
- if (dto.PageId <= 0) return Ok(JsonView(false, "请传入正确的的页面Id!"));
|
|
|
- if (dto.UserId <= 0) return Ok(JsonView(false, "请传入正确的的员工Id!"));
|
|
|
-
|
|
|
- PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
+ if (dto == null) return Ok(JsonView(false, "参数不能为空!"));
|
|
|
+ if (dto.PageId <= 0) return Ok(JsonView(false, "请传入正确的的页面Id!"));
|
|
|
+ if (dto.UserId <= 0) return Ok(JsonView(false, "请传入正确的的员工Id!"));
|
|
|
|
|
|
- #region 页面功能权限处理
|
|
|
+ PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
|
|
|
- pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
+ #region 页面功能权限处理
|
|
|
|
|
|
- #endregion
|
|
|
+ pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
|
|
|
- if (pageFunAuth.DeleteAuth == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "您没有当前页面删除权限!"));
|
|
|
- }
|
|
|
+ #endregion
|
|
|
|
|
|
+ if (pageFunAuth.DeleteAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面删除权限!"));
|
|
|
+ }
|
|
|
|
|
|
- Result _result = await _paymentRefundAndOtherMoneyRep._Del(dto);
|
|
|
|
|
|
- if (_result.Code != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, _result.Msg));
|
|
|
- }
|
|
|
+ Result _result = await _paymentRefundAndOtherMoneyRep._Del(dto);
|
|
|
|
|
|
- return Ok(JsonView(true, "操作成功!"));
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
+ if (_result.Code != 0)
|
|
|
{
|
|
|
- return Ok(JsonView(false, ex.Message));
|
|
|
+ return Ok(JsonView(false, _result.Msg));
|
|
|
}
|
|
|
+
|
|
|
+ return Ok(JsonView(true, "操作成功!"));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -1758,21 +1744,14 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostPaymentRefundAndOtherMoneyInfoDataSource(PortDtoBase dto)
|
|
|
{
|
|
|
- try
|
|
|
- {
|
|
|
- Result _result = await _paymentRefundAndOtherMoneyRep._InfoDataSource(dto);
|
|
|
+ Result _result = await _paymentRefundAndOtherMoneyRep._InfoDataSource(dto);
|
|
|
|
|
|
- if (_result.Code != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, _result.Msg));
|
|
|
- }
|
|
|
-
|
|
|
- return Ok(JsonView(true, "查询成功!", _result.Data));
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
+ if (_result.Code != 0)
|
|
|
{
|
|
|
- return Ok(JsonView(false, ex.Message));
|
|
|
+ return Ok(JsonView(false, _result.Msg));
|
|
|
}
|
|
|
+
|
|
|
+ return Ok(JsonView(true, "查询成功!", _result.Data));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|