예제 #1
0
 internal bool BatchHistoryCreate(Guid tenantId, BatchItemHistory info)
 {
     try
     {
         var cmd = CreateProcedureCommand("dbo.BatchHistory_Create");
         cmd.AppendGuid("@guidTenantId", tenantId);
         cmd.AppendGuid("@guidBatchHistoryId", info.BatchHistoryId);
         cmd.AppendGuid("@guidBatchItemId", info.BatchItemId);
         cmd.AppendXSmallText("@strEntityId", info.EntityId);
         cmd.AppendGuid("@guidReferenceId", info.ReferenceId);
         cmd.AppendTinyInt("@tinyintStatus", (byte)info.Status);
         if (!string.IsNullOrEmpty(info.FailedReason))
         {
             cmd.AppendXLargeText("@strFailedReason", info.FailedReason);
         }
         cmd.AppendDateTime("@dtRunTime", info.RunTime);
         ExecuteCommand(cmd);
         return(true);
     }
     catch (SqlException e)
     {
         throw ReportAndTranslateException(e, "DataBatchItem::BatchHistory_Create");
     }
 }
예제 #2
0
        //--------------------------------------------------------------------------------------------------------------------

        bool IManagerBatchItem.BatchHistoryCreate(Guid tenantId, BatchItemHistory info)
        {
            return(_admin.BatchHistoryCreate(tenantId, info));
        }
예제 #3
0
 bool IAdminBatchItem.BatchHistoryCreate(Guid tenantId, BatchItemHistory info)
 {
     return(_data.BatchHistoryCreate(tenantId, info));
 }