public void ClearBiaAreaSchemeSat(int SchemeID) { CoScheduling.Core.DAL.BIGAREA_SATELLITE satelliteList = new CoScheduling.Core.DAL.BIGAREA_SATELLITE(); CoScheduling.Core.DAL.BIGAREA_SENSOR sensorList = new CoScheduling.Core.DAL.BIGAREA_SENSOR(); CoScheduling.Core.DAL.BIGAREA_ORBIT orbitList = new CoScheduling.Core.DAL.BIGAREA_ORBIT(); satelliteList.DeleteScheme(SchemeID); sensorList.DeleteScheme(SchemeID); orbitList.DeleteScheme(SchemeID); }
public void SetBigAreaSchemeSat(int SchemeID) { List <CoScheduling.Core.Model.SATELLITE_SENSOR_SELECTED> selectedSatelliteList = new List <CoScheduling.Core.Model.SATELLITE_SENSOR_SELECTED>(); CoScheduling.Core.DAL.SATELLITE_SENSOR_SELECTED dal_selectedSatelliteList = new CoScheduling.Core.DAL.SATELLITE_SENSOR_SELECTED(); CoScheduling.Core.DAL.BIGAREA_SATELLITE dal_satelliteList = new CoScheduling.Core.DAL.BIGAREA_SATELLITE(); CoScheduling.Core.DAL.BIGAREA_SENSOR dal_sensorList = new CoScheduling.Core.DAL.BIGAREA_SENSOR(); CoScheduling.Core.DAL.BIGAREA_ORBIT dal_orbitList = new CoScheduling.Core.DAL.BIGAREA_ORBIT(); CoScheduling.Core.DAL.SatelliteOrbit dal_orbit = new CoScheduling.Core.DAL.SatelliteOrbit(); CoScheduling.Core.DAL.BIGAREA_SCHEME dal_scheme = new CoScheduling.Core.DAL.BIGAREA_SCHEME(); List <int> satidList = new List <int>(); CoScheduling.Core.Model.BIGAREA_SATELLITE satelliteList = new CoScheduling.Core.Model.BIGAREA_SATELLITE(); CoScheduling.Core.Model.BIGAREA_SENSOR sensorList = new CoScheduling.Core.Model.BIGAREA_SENSOR(); CoScheduling.Core.Model.BIGAREA_ORBIT orbitList = new CoScheduling.Core.Model.BIGAREA_ORBIT(); CoScheduling.Core.Model.SatelliteOrbit orbit = new CoScheduling.Core.Model.SatelliteOrbit(); CoScheduling.Core.Model.BIGAREA_SCHEME scheme = new CoScheduling.Core.Model.BIGAREA_SCHEME(); scheme = dal_scheme.GetModel(SchemeID); satidList = dal_selectedSatelliteList.GetCheckedSatID(true); satelliteList.SCHEMEID = SchemeID; sensorList.SCHEMEID = SchemeID; orbitList.SCHEMEID = SchemeID; foreach (int satid in satidList) { satelliteList.SATID = satid; dal_satelliteList.Add(satelliteList); orbit = dal_orbit.GetModel(satid, scheme.SCHEMEBTIME); orbitList.SATID = satid; orbitList.SAT_ARGOFPERIGEE = orbit.SAT_ARGOFPERIGEE; orbitList.SAT_BSTAR = orbit.SAT_BSTAR; orbitList.SAT_ECCENTRICITY = orbit.SAT_ECCENTRICITY; orbitList.SAT_INCLINATION = orbit.SAT_INCLINATION; orbitList.SAT_MEANANOMALY = orbit.SAT_MEANANOMALY; orbitList.SAT_MEANMOTION = orbit.SAT_MEANMOTION; orbitList.SAT_MEANMOTIONDOT = orbit.SAT_MEANMOTIONDOT; orbitList.SAT_MEANMOTIONDOTDOT = orbit.SAT_MEANMOTIONDOTDOT; orbitList.SAT_ORBITEPOCH = orbit.SAT_ORBITEPOCH; orbitList.SAT_RAAN = orbit.SAT_RAAN; orbitList.SAT_TLE1 = orbit.SAT_TLE1; orbitList.SAT_TLE2 = orbit.SAT_TLE2; dal_orbitList.Add(orbitList); } selectedSatelliteList = dal_selectedSatelliteList.GetCheckedList(); foreach (CoScheduling.Core.Model.SATELLITE_SENSOR_SELECTED sensor in selectedSatelliteList) { sensorList.SATID = sensor.SAT_ID; sensorList.SENSORID = sensor.SENSOR_ID; dal_sensorList.Add(sensorList); } }