外训申请_宝连通

master
xiaochanghai 2 months ago
parent 715f20a58f
commit 642c5d4bd1
  1. 2
      Tiobon.Core.Model/ViewModels/Menu.cs
  2. 31
      Tiobon.Core.Services/CommonServices.cs

@ -267,6 +267,8 @@ public class FlowTableColumn
public bool @required { get; set; }
public bool multipleSelect { get; set; }
public int rowNum { get; set; }
public int? isFullWidth { get; set; }
public int? hasMarginLeft { get; set; }
public string GroupName { get; set; }
}

@ -2853,6 +2853,9 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
{
var flowReturn = new FlowReturn();
#region JM_PageFormT1
var sql = $@"DECLARE
@SQL NVARCHAR (MAX) = '',
@ -2916,10 +2919,13 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
flowReturn.JM_PageFormActionsT1.Toolbar = await Db.Ado.SqlQueryAsync<Toolbar>(sql);
#endregion
var flowId = param.jsonParam.FlowID;
sql = $"SELECT FlowId FROM Ghrw_Flow where FlowNo='{param.menuName}'";
flowId = Convert.ToInt16(DbAccess.ExecuteScalar(sql));
#region JM_TableColumnT1
sql = $@"DECLARE
@SQL NVARCHAR (MAX) = '',
@FlowID INT = {param.jsonParam.FlowID},
@FlowID INT = {flowId},
@DoType NVARCHAR (MAX) = '{param.doType}',
@SQL2 NVARCHAR (MAX) = '',
@JsonString NVARCHAR (MAX) = '',
@ -2949,6 +2955,8 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
dynamicShow INT,
PrivFlag INT,
multipleSelect NVARCHAR (100),
isFullWidth INT,
hasMarginLeft INT,
canBatchPageDisplay NVARCHAR (100)
)
@ -2982,6 +2990,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
pp.dynamicShow,
isnull (kk.PrivFlag, 1) PrivFlag, --
iif (pp.IsMultipleSelect = 1, 'true', 'false'),
pp.isFullWidth, pp.hasMarginLeft,
iif (pp.IsBatchPageDisplay = 1, 'true', 'false')
FROM Ghrw_FlowPageDesign pp
LEFT JOIN Ghrw_FlowNodesColumnPriv kk
@ -3028,6 +3037,8 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
CONVERT (INT, columnWidth) columnWidth,
dynamicShow,
multipleSelect,
isFullWidth,
hasMarginLeft,
canBatchPageDisplay
FROM [dbo].[#TempInitUserPageEditColumn]
FOR JSON PATH)
@ -3893,12 +3904,17 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
}
break;
case "F_ESS_ExternalTrainApply_Boltone":
case "F_ESS_ExternalTrainApplyOrder_Boltone":
if (param.doType == "Insert")
{
flowReturn.DT_TableDataT1 = new List<InsertGhre_ExternalTrainApplyOrder_BoltoneInput>()
{
new InsertGhre_ExternalTrainApplyOrder_BoltoneInput()
{
ApplicantId = App.User.StaffId,
ApplicantDeptId = GetStaffDeptId(),
ApplicantTime = DateTime.Now
}
};
}
break;
@ -4296,6 +4312,15 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
StaffId = Convert.ToInt32(StaffId1);
return StaffId;
}
public int? GetStaffDeptId()
{
int? StaffId = null;
string sql = $"SELECT DeptID FROM Ghra_Staff where StaffID='{App.User.StaffId}'";
string StaffId1 = Convert.ToString(DbAccess.ExecuteScalar(sql));
if (!StaffId1.IsNull())
StaffId = Convert.ToInt32(StaffId1);
return StaffId;
}
#endregion
#region 自动编号

Loading…
Cancel
Save