public void start(SCApplication app)
 {
     AddressDataDao    = app.AddressDataDao;
     ScaleBaseDataDao  = app.ScaleBaseDataDao;
     ControlDataDao    = app.ControlDataDao;
     VehicleControlDao = app.VehicleControlDao;
 }
        public List <AADDRESS_DATA> loadReleaseADDRESS_DATAs(string vh_id)
        {
            List <AADDRESS_DATA> adrs = null;

            using (DBConnection_EF con = DBConnection_EF.GetUContext())
            {
                adrs = AddressDataDao.loadReleaseDataByVhID(con, vh_id);
            }
            return(adrs);
        }
        public List <AADDRESS_DATA> loadAllReleaseAddress_Data()
        {
            List <AADDRESS_DATA> adrs = null;

            using (DBConnection_EF con = DBConnection_EF.GetUContext())
            {
                adrs = AddressDataDao.loadAllReleaseData(con);
            }
            return(adrs);
        }
 public void start(ViewSectionDao viewSectionDao, SegmentDao segmentDao, AddressDataDao addressDataDao, ScaleBaseDataDao scaleBaseDataDao,
                   ControlDataDao controlDataDao, VehicleControlDao vehicleControlDao)
 {
     VSection100Dao    = viewSectionDao;
     AddressDataDao    = addressDataDao;
     ScaleBaseDataDao  = scaleBaseDataDao;
     ControlDataDao    = controlDataDao;
     VehicleControlDao = vehicleControlDao;
     SegmentDao        = segmentDao;
 }
        public void updateAddressData(string vh_id, string adr_id, int resolution)
        {
            AADDRESS_DATA adr_data = null;

            using (DBConnection_EF con = DBConnection_EF.GetUContext())
            {
                adr_data          = AddressDataDao.getAddressData(con, vh_id, adr_id);
                adr_data.LOACTION = resolution;
                AddressDataDao.update(con, adr_data);
            }
        }
Ejemplo n.º 6
0
            public VehicleDataSetting()
            {
                VSection100Dao    = new ViewSectionDao();
                SegmentDao        = new SegmentDao();
                AddressDataDao    = new AddressDataDao();
                ScaleBaseDataDao  = new ScaleBaseDataDao();
                ControlDataDao    = new ControlDataDao();
                VehicleControlDao = new VehicleControlDao();

                SectionDao        = new SectionDao();
                sectionControlDao = new ohxc.winform.Dao.MirleOHS_100.SectionControlDao();

                start(VSection100Dao, SegmentDao, AddressDataDao, ScaleBaseDataDao, ControlDataDao, VehicleControlDao);
            }
Ejemplo n.º 7
0
            public bool updateAddressData(string vh_id, string adr_id, int resolution, int location)
            {
                AADDRESS_DATA adr_data = null;

                try
                {
                    using (sc.Data.DBConnection_EF con = sc.Data.DBConnection_EF.GetUContext())
                    {
                        adr_data            = AddressDataDao.getAddressData(con, vh_id, adr_id);
                        adr_data.RESOLUTION = resolution;
                        adr_data.LOACTION   = location;
                        AddressDataDao.update(con, adr_data);
                    }
                    return(true);
                }
                catch (Exception ex)
                {
                    NLog.LogManager.GetCurrentClassLogger().Error(ex, "Exception:");
                    return(false);
                }
            }