Пример #1
0
        public ActionResult UserView()
        {
            MapConfigViewModel mapConfigViewModel = new MapConfigViewModel();

            mapConfigViewModel.MapDefCentroidX = _SettingBL.getSettingAsDouble(DataAccess.Logic.SettingBL.SettingParameters.MapDefCentroidX, User.Identity.Name);
            mapConfigViewModel.MapDefCentroidY = _SettingBL.getSettingAsDouble(DataAccess.Logic.SettingBL.SettingParameters.MapDefCentroidY, User.Identity.Name);
            mapConfigViewModel.MapDefultZoom   = _SettingBL.getSettingAsDouble(DataAccess.Logic.SettingBL.SettingParameters.MapDefultZoom, User.Identity.Name);

            return(View(mapConfigViewModel));
        }
Пример #2
0
        public ActionResult SYSSetting()
        {
            DateTime?dateOf = _SettingBL.getSettingAsDate(SettingBL.SettingParameters.ExpireDateTime, "SYSTEM");
            var      model  = new SysSettingParam();

            model.MapDefCentroidX = _SettingBL.getSettingAsDouble(DataAccess.Logic.SettingBL.SettingParameters.MapDefCentroidX, User.Identity.Name);
            model.MapDefCentroidY = _SettingBL.getSettingAsDouble(DataAccess.Logic.SettingBL.SettingParameters.MapDefCentroidY, User.Identity.Name);
            model.MapDefultZoom   = _SettingBL.getSettingAsDouble(DataAccess.Logic.SettingBL.SettingParameters.MapDefultZoom, User.Identity.Name);


            PersianCalendar pc       = new PersianCalendar();
            DateTime        thisDate = dateOf ?? DateTime.Now.AddDays(2);

            model.ExpireDate = string.Format("'{0}/{1}/{2}'", pc.GetYear(thisDate), pc.GetMonth(thisDate), pc.GetDayOfMonth(thisDate));
            model.BackupPath = _SettingBL.getSettingAsString(DataAccess.Logic.SettingBL.SettingParameters.BackUpPath, User.Identity.Name);
            return(View(model));
        }