コード例 #1
0
ファイル: ObjectEntryLogBO.cs プロジェクト: ewin66/dev
 public bool CreateObjectEntryLog(Session session, BusinessObject businessObject)
 {
     try
     {
         ObjectEntryLog objectEntryLog = new ObjectEntryLog(session);
         objectEntryLog.LastUpdatedObjectTimeStamp = DateTime.Now;
         objectEntryLog.RowStatus        = Constant.ROWSTATUS_ACTIVE;
         objectEntryLog.BusinessObjectId = businessObject;
         objectEntryLog.Save();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
コード例 #2
0
ファイル: ObjectEntryLogBO.cs プロジェクト: ewin66/dev
 public bool CreateObjectEntryLog(Session session, Int64 businessObjectId)
 {
     try
     {
         BusinessObject businessObject = session.GetObjectByKey <BusinessObject>(businessObjectId);
         if (businessObject == null)
         {
             return(false);
         }
         ObjectEntryLog objectEntryLog = new ObjectEntryLog(session);
         objectEntryLog.LastUpdatedObjectTimeStamp = DateTime.Now;
         objectEntryLog.RowStatus        = Constant.ROWSTATUS_ACTIVE;
         objectEntryLog.BusinessObjectId = businessObject;
         objectEntryLog.Save();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }