You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

62 lines
1.8 KiB

using Entity.Sugar;
using Newtonsoft.Json.Linq;
using SqlSugar;
using SqlSugar.Base;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.IO;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Xml;
using DocumentFormat.OpenXml.Wordprocessing;
using DocumentFormat.OpenXml.Packaging;
using System.Linq;
using EasyBL.WebApi.Message;
using Newtonsoft.Json;
namespace EasyBL
{
public enum ActionType
{
, , , , ,
退, 退, 退, 退, 退
}
/// <summary>
/// Common 的摘要描述
/// </summary>
public class BillLogs
{
public static Tuple<bool, string> InsertBillChangeLog(SqlSugarClient db, string strLogData, ActionType ActionType, string OrgID, string UserID)
{
var sMsg = "";
try
{
do
{
var LogData = JsonConvert.DeserializeObject<OTB_OPM_BillChangeLog>(strLogData);
LogData.OrgID = OrgID;
LogData.ModifyUser = UserID;
LogData.ModifyDate = DateTime.Now;
LogData.Operation = ActionType.ToString();
db.Insertable(LogData).IgnoreColumns( c => c.SN).ExecuteCommand();
} while (false);
return new Tuple<bool, string>(true, sMsg);
}
catch (Exception ex)
{
sMsg = Util.GetLastExceptionMsg(ex);
return new Tuple<bool, string>(false, sMsg);
}
}
}
}