Esempio n. 1
0
        public static bool UpdateScanAudits(RSReportsDataset scans)
        {
            //
            bool ret = false;

            if (scans.HasChanges())
            {
                RSReportsDataset _scans = (RSReportsDataset)scans.GetChanges(DataRowState.Modified);
                for (int i = 0; i < _scans.ScanAuditTable.Rows.Count; i++)
                {
                    RSReportsDataset.ScanAuditTableRow scan = _scans.ScanAuditTable[i];
                    bool changed = UpdateScanAudit(scan);
                }
                scans.AcceptChanges();
            }
            ret = true;
            return(ret);
        }
Esempio n. 2
0
        public static bool UpdatePickups(RSReportsDataset pickups)
        {
            //
            bool ret = false;

            if (pickups.HasChanges())
            {
                RSReportsDataset _pickups = (RSReportsDataset)pickups.GetChanges(DataRowState.Modified);
                for (int i = 0; i < _pickups.PickupTable.Rows.Count; i++)
                {
                    RSReportsDataset.PickupTableRow pickup = _pickups.PickupTable[i];
                    bool changed = UpdatePickup(pickup);
                }
                pickups.AcceptChanges();
            }
            ret = true;
            return(ret);
        }