34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using Fab2ApprovalSystem.Models;
|
|
using Dapper;
|
|
using System.Configuration;
|
|
using Fab2ApprovalSystem.Misc;
|
|
|
|
namespace Fab2ApprovalSystem.DMO
|
|
{
|
|
public static class ApprovalLogDMO
|
|
{
|
|
|
|
private static IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
|
|
|
public static void Add(ApprovalLog appLog)
|
|
{
|
|
var parameters = new DynamicParameters();
|
|
parameters.Add("@IssueID", appLog.IssueID);
|
|
parameters.Add("@UserID", appLog.UserID);
|
|
parameters.Add("@OperationType", appLog.OperationType);
|
|
parameters.Add("@SubRoleID", appLog.SubRoleID);
|
|
parameters.Add("@OperationLog", appLog.OperationLog);
|
|
parameters.Add("@DocumentTypeID", appLog.DocumentTypeID);
|
|
|
|
db.Execute("InsertApprovalLogByDocument", parameters, commandType: CommandType.StoredProcedure);
|
|
|
|
}
|
|
}
|
|
}
|