Ejemplo n.º 1
0
 public Guid AddAuditBusiness(AuditBusiness auditBusiness)
 {
     Guid newId = Guid.NewGuid();
     try
     {
         auditBusiness.OID = newId.ToString();
         execptionDC.AuditBusiness.InsertOnSubmit(auditBusiness);
         execptionDC.SubmitChanges(System.Data.Linq.ConflictMode.ContinueOnConflict);
     }
     catch
     {
         newId = Guid.Empty;
     }
     return newId;
 }
Ejemplo n.º 2
0
        public Guid AddAuditBusiness(AuditBusiness auditBusiness)
        {
            Guid newId = Guid.NewGuid();

            try
            {
                auditBusiness.OID = newId.ToString();
                execptionDC.AuditBusiness.InsertOnSubmit(auditBusiness);
                execptionDC.SubmitChanges(System.Data.Linq.ConflictMode.ContinueOnConflict);
            }
            catch
            {
                newId = Guid.Empty;
            }
            return(newId);
        }
Ejemplo n.º 3
0
        public void AddAuditBusiness(string hostName, string messageBody, string messageID, string methodName, string reqBeginTime, string serviceName, int status, string callBeginTime, string callEndTime)
        {
            AuditBusiness business = new AuditBusiness();
            AuditLogic auditLogic = new AuditLogic();

            business.HostName = hostName;
            business.MessageID = messageID;
            business.MethodName = methodName;
            business.ReqBeginTime = reqBeginTime;
            business.ReqEndTime = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            business.ServiceName = serviceName;
            business.Status = status;
            business.CallBeginTime = callBeginTime;
            business.CallEndTime = callEndTime;

            auditLogic.AddAuditBusiness(business);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 添加审计日志
 /// </summary>
 /// <param name="business"></param>
 public void AddAuditBusiness(AuditBusiness business)
 {
     dataAccess.AddAuditBusiness(business);
 }
Ejemplo n.º 5
0
 partial void DeleteAuditBusiness(AuditBusiness instance);
Ejemplo n.º 6
0
 partial void UpdateAuditBusiness(AuditBusiness instance);
Ejemplo n.º 7
0
 partial void InsertAuditBusiness(AuditBusiness instance);
 partial void DeleteAuditBusiness(AuditBusiness instance);
 partial void UpdateAuditBusiness(AuditBusiness instance);
 partial void InsertAuditBusiness(AuditBusiness instance);