Esempio n. 1
0
        } // getImportDataTableNames()

        public static void CancelJob(CswNbtResources CswNbtResources, Int32 JobId)
        {
            // Set Job's dateended to now
            CswNbtImportDataJob Job = new CswNbtImportDataJob(CswNbtResources, JobId);

            Job.DateEnded = DateTime.Now;

            // Set all DataMaps to Completed=1
            foreach (CswNbtImportDataMap DataMap in Job.Maps)
            {
                DataMap.Completed = true;
            }
        } // CancelJob()
        public static void getImportStatus(ICswResources CswResources, CswNbtImportWcf.ImportStatusReturn ret, CswNbtImportWcf.JobRequest parms)
        {
            CswNbtResources CswNbtResources = (CswNbtResources)CswResources;

            if (Int32.MinValue != parms.JobId)
            {
                CswNbtImportDataJob Job = new CswNbtImportDataJob(CswNbtResources, parms.JobId);
                ret.Data.DateEnded = Job.DateEnded;
                Job.getStatus(out ret.Data.RowsDone,
                              out ret.Data.RowsTotal,
                              out ret.Data.RowsError,
                              out ret.Data.ItemsDone,
                              out ret.Data.ItemsTotal);
            }
        }