Esempio n. 1
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var SistTablToUpadte = await _context.SistTabl
                                   .FirstOrDefaultAsync(m => m.Id == id);

            await TryUpdateModelAsync(
                SistTablToUpadte,
                "SistTabl",
                m => m.ElemNumb, m => m.MinValue, m => m.MaxValue);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 2
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var WavepureToUpadte = await _context.Wavepure
                                   .FirstOrDefaultAsync(m => m.Id == id);

            await TryUpdateModelAsync(
                WavepureToUpadte,
                "Wavepure",
                m => m.Leftwave, m => m.Rightwave, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 3
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            SistTabl = await _context.SistTabl
                       .FirstOrDefaultAsync(m => m.Id == id);

            _context.SistTabl.Remove(SistTabl);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Composition",
                system: _contextUtils.GetSystemUrlByHeadClue(SistTabl.HeadClue)

                );

            return(Redirect(url));
        }
Esempio n. 4
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            Wavepure = await _context.Wavepure
                       .FirstOrDefaultAsync(m => m.Id == id);

            _context.Wavepure.Remove(Wavepure);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Transparency",
                system: _contextUtils.GetSystemUrlByHeadClue(Wavepure.HeadClue)

                );

            return(Redirect(url));
        }
Esempio n. 5
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            SistTabl.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);

            _context.SistTabl.Add(SistTabl);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Composition",
                system: systemUrl
                );

            return(Redirect(url));
        }
Esempio n. 6
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var Elastic1LanguageToUpdate = await _context.Elastic1Language
                                           .Include(m => m.Elastic1)
                                           .FirstAsync(m => m.Id == id);

            var Elastic1InvariantToUpdate = Elastic1LanguageToUpdate.Elastic1;

            await TryUpdateModelAsync(
                Elastic1LanguageToUpdate,
                "Elastic1Language",
                m => m.MethodE, m => m.ZnE);

            await TryUpdateModelAsync(
                Elastic1InvariantToUpdate,
                "Elastic1Invariant",
                m => m.TemperEl, m => m.CondClu1, m => m.E1, m => m.ErrE, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 7
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var ElemTablNewLanguageToUpdate = await _context.ElemTablNewLanguage
                                              .Include(m => m.ElemTablNew)
                                              .FirstAsync(m => m.Id == id);

            var ElemTablNewInvariantToUpdate = ElemTablNewLanguageToUpdate.ElemTablNew;

            await TryUpdateModelAsync(
                ElemTablNewLanguageToUpdate,
                "ElemTablNewLanguage",
                m => m.MethodP);

            await TryUpdateModelAsync(
                ElemTablNewInvariantToUpdate,
                "ElemTablNewInvariant",
                m => m.A, m => m.B, m => m.C, m => m.Alpha, m => m.Beta, m => m.Gamma, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 8
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var CuryTablLanguageToUpdate = await _context.CuryTablLanguage
                                           .Include(m => m.CuryTabl)
                                           .FirstAsync(m => m.Id == id);

            var CuryTablInvariantToUpdate = CuryTablLanguageToUpdate.CuryTabl;

            await TryUpdateModelAsync(
                CuryTablLanguageToUpdate,
                "CuryTablLanguage",
                m => m.Oboztran);

            await TryUpdateModelAsync(
                CuryTablInvariantToUpdate,
                "CuryTablInvariant",
                m => m.CuryTemp, m => m.ErrCury, m => m.Bknumber);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 9
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var ConstSelLanguageToUpdate = await _context.ConstSelLanguage
                                           .Include(m => m.ConstSel)
                                           .FirstAsync(m => m.Id == id);

            var ConstSelInvariantToUpdate = ConstSelLanguageToUpdate.ConstSel;

            await TryUpdateModelAsync(
                ConstSelLanguageToUpdate,
                "ConstSelLanguage",
                m => m.Measure);

            await TryUpdateModelAsync(
                ConstSelInvariantToUpdate,
                "ConstSelInvariant",
                m => m.Equation, m => m.NazvSel, m => m.ZnachSel, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 10
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            ConstSelLanguage.ConstSel.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            ConstSelLanguage.LanguageId        = this.GetLanguageId();

            _context.ConstSelLanguage.Add(ConstSelLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Sellmeier",
                system: systemUrl
                );

            return(Redirect(url));
        }
Esempio n. 11
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var DecrTablLanguageToUpdate = await _context.DecrTablLanguage
                                           .Include(m => m.DecrTabl)
                                           .FirstAsync(m => m.Id == id);

            var DecrTablInvariantToUpdate = DecrTablLanguageToUpdate.DecrTabl;

            await TryUpdateModelAsync(
                DecrTablLanguageToUpdate,
                "DecrTablLanguage",
                m => m.Nzv, m => m.Uzv, m => m.WaveType);

            await TryUpdateModelAsync(
                DecrTablInvariantToUpdate,
                "DecrTablInvariant",
                m => m.WaveSpeed, m => m.Decrement, m => m.DecrFreq, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 12
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var NlOpTablLanguageToUpdate = await _context.NlOpTablLanguage
                                           .Include(m => m.NlOpTabl)
                                           .FirstAsync(m => m.Id == id);

            var NlOpTablInvariantToUpdate = NlOpTablLanguageToUpdate.NlOpTabl;

            await TryUpdateModelAsync(
                NlOpTablLanguageToUpdate,
                "NlOpTablLanguage",
                m => m.MethodR, m => m.ZnR);

            await TryUpdateModelAsync(
                NlOpTablInvariantToUpdate,
                "NlOpTablInvariant",
                m => m.Lyambda, m => m.Rij, m => m.ErrRij, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 13
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var DensTablLanguageToUpdate = await _context.DensTablLanguage
                                           .Include(m => m.DensTabl)
                                           .FirstAsync(m => m.Id == id);

            var DensTablInvariantToUpdate = DensTablLanguageToUpdate.DensTabl;

            await TryUpdateModelAsync(
                DensTablLanguageToUpdate,
                "DensTablLanguage",
                m => m.MethodD);

            await TryUpdateModelAsync(
                DensTablInvariantToUpdate,
                "DensTablInvariant",
                m => m.Density, m => m.ErrDens, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 14
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            MechTablLanguage.MechTabl.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            MechTablLanguage.LanguageId        = this.GetLanguageId();

            _context.MechTablLanguage.Add(MechTablLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Piezoelectric_Coupling",
                system: systemUrl
                );

            return(Redirect(url));
        }
Esempio n. 15
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var HardTablLanguageToUpdate = await _context.HardTablLanguage
                                           .Include(m => m.HardTabl)
                                           .FirstAsync(m => m.Id == id);

            var HardTablInvariantToUpdate = HardTablLanguageToUpdate.HardTabl;

            await TryUpdateModelAsync(
                HardTablLanguageToUpdate,
                "HardTablLanguage",
                m => m.MethodH);

            await TryUpdateModelAsync(
                HardTablInvariantToUpdate,
                "HardTablInvariant",
                m => m.Hard1, m => m.Hard2, m => m.ErrHard, m => m.Mohs, m => m.ErrMohs, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 16
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var EsOpTablLanguageToUpdate = await _context.EsOpTablLanguage
                                           .Include(m => m.EsOpTabl)
                                           .FirstAsync(m => m.Id == id);

            var EsOpTablInvariantToUpdate = EsOpTablLanguageToUpdate.EsOpTabl;

            await TryUpdateModelAsync(
                EsOpTablLanguageToUpdate,
                "EsOpTablLanguage",
                m => m.MethodP, m => m.ZnP);

            await TryUpdateModelAsync(
                EsOpTablInvariantToUpdate,
                "EsOpTablInvariant",
                m => m.LengWave, m => m.P, m => m.ErrP, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 17
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var MechTablLanguageToUpdate = await _context.MechTablLanguage
                                           .Include(m => m.MechTabl)
                                           .FirstAsync(m => m.Id == id);

            var MechTablInvariantToUpdate = MechTablLanguageToUpdate.MechTabl;

            await TryUpdateModelAsync(
                MechTablLanguageToUpdate,
                "MechTablLanguage",
                m => m.MethodK, m => m.ZnK);

            await TryUpdateModelAsync(
                MechTablInvariantToUpdate,
                "MechTablInvariant",
                m => m.FreqCons, m => m.Temper, m => m.K, m => m.ErrK, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 18
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var HeatTablLanguageToUpdate = await _context.HeatTablLanguage
                                           .Include(m => m.HeatTabl)
                                           .FirstAsync(m => m.Id == id);

            var HeatTablInvariantToUpdate = HeatTablLanguageToUpdate.HeatTabl;

            await TryUpdateModelAsync(
                HeatTablLanguageToUpdate,
                "HeatTablLanguage",
                m => m.MethodC);

            await TryUpdateModelAsync(
                HeatTablInvariantToUpdate,
                "HeatTablInvariant",
                m => m.Temperat, m => m.ZnC, m => m.C, m => m.ErrC, m => m.Bknumber);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 19
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            var headTablToUpdate = await _context.HeadTablLanguage
                                   .Include(h => h.HeadTabl)
                                   .FirstOrDefaultAsync(m => m.HeadTabl.SystemUrl == systemUrl);

            await TryUpdateModelAsync(
                headTablToUpdate,
                "HeadTablLanguage",
                h => h.Expert
                );

            await TryUpdateModelAsync(
                headTablToUpdate.HeadTabl,
                "HeadTablInvariant",
                h => h.Help, h => h.System
                );

            await _context.SaveChangesAsync();

            return(RedirectToPage("./Index"));
        }
Esempio n. 20
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var DielectrLanguageToUpdate = await _context.DielectrLanguage
                                           .Include(m => m.Dielectr)
                                           .FirstAsync(m => m.Id == id);

            var DielectrInvariantToUpdate = DielectrLanguageToUpdate.Dielectr;

            await TryUpdateModelAsync(
                DielectrLanguageToUpdate,
                "DielectrLanguage",
                m => m.MethodY, m => m.Znak);

            await TryUpdateModelAsync(
                DielectrInvariantToUpdate,
                "DielectrInvariant",
                m => m.FreqDiel, m => m.Temper_2, m => m.Constant, m => m.Diel, m => m.ErrY, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 21
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var AcOpTablLanguageToUpdate = await _context.AcOpTablLanguage
                                           .Include(m => m.AcOpTabl)
                                           .FirstAsync(m => m.Id == id);

            var AcOpTablInvariantToUpdate = AcOpTablLanguageToUpdate.AcOpTabl;

            await TryUpdateModelAsync(
                AcOpTablLanguageToUpdate,
                "AcOpTablLanguage",
                m => m.E, m => m.Nsv, m => m.Uzv);

            await TryUpdateModelAsync(
                AcOpTablInvariantToUpdate,
                "AcOpTablInvariant",
                m => m.WaveLeng, m => m.Nzv, m => m.M1, m => m.M2, m => m.M3, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 22
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var PzElTablLanguageToUpdate = await _context.PzElTablLanguage
                                           .Include(m => m.PzElTabl)
                                           .FirstAsync(m => m.Id == id);

            var PzElTablInvariantToUpdate = PzElTablLanguageToUpdate.PzElTabl;

            await TryUpdateModelAsync(
                PzElTablLanguageToUpdate,
                "PzElTablLanguage",
                m => m.MethodPz);

            await TryUpdateModelAsync(
                PzElTablInvariantToUpdate,
                "PzElTablInvariant",
                m => m.FreqPzEl, m => m.ConstD, m => m.D, m => m.ErrD, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 23
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var ModfTablLanguageToUpdate = await _context.ModfTablLanguage
                                           .Include(m => m.ModfTabl)
                                           .FirstAsync(m => m.Id == id);

            var ModfTablInvariantToUpdate = ModfTablLanguageToUpdate.ModfTabl;

            await TryUpdateModelAsync(
                ModfTablLanguageToUpdate,
                "ModfTablLanguage",
                m => m.SpaceGrp);

            await TryUpdateModelAsync(
                ModfTablInvariantToUpdate,
                "ModfTablInvariant",
                m => m.SuprTemp, m => m.SP2, m => m.ErrSupr, m => m.PointGrp, m => m.Z, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 24
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            NlOpTablLanguage.NlOpTabl.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            NlOpTablLanguage.LanguageId        = this.GetLanguageId();

            _context.NlOpTablLanguage.Add(NlOpTablLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "NonlinearOptical",
                system: systemUrl
                );

            return(Redirect(url));
        }
Esempio n. 25
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var DielDissLanguageToUpdate = await _context.DielDissLanguage
                                           .Include(m => m.DielDiss)
                                           .FirstAsync(m => m.Id == id);

            var DielDissInvariantToUpdate = DielDissLanguageToUpdate.DielDiss;

            await TryUpdateModelAsync(
                DielDissLanguageToUpdate,
                "DielDissLanguage",
                m => m.MethodY, m => m.TangName);

            await TryUpdateModelAsync(
                DielDissInvariantToUpdate,
                "DielDissInvariant",
                m => m.FreqDiss, m => m.Temper_3, m => m.TangentD, m => m.ErrDiss, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 26
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var RefrcIndLanguageToUpdate = await _context.RefrcIndLanguage
                                           .Include(m => m.RefrcInd)
                                           .FirstAsync(m => m.Id == id);

            var RefrcIndInvariantToUpdate = RefrcIndLanguageToUpdate.RefrcInd;

            await TryUpdateModelAsync(
                RefrcIndLanguageToUpdate,
                "RefrcIndLanguage",
                m => m.MethodIn);

            await TryUpdateModelAsync(
                RefrcIndInvariantToUpdate,
                "RefrcIndInvariant",
                m => m.Temper, m => m.WaveLeng, m => m.NazbIndx, m => m.ZnachInd, m => m.ErrIndex, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 27
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            DielDissLanguage.DielDiss.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            DielDissLanguage.LanguageId        = this.GetLanguageId();

            _context.DielDissLanguage.Add(DielDissLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Dielectric_Loss",
                system: systemUrl
                );

            return(Redirect(url));
        }
Esempio n. 28
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            HeatExpnLanguage.HeatExpn.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            HeatExpnLanguage.LanguageId        = this.GetLanguageId();

            _context.HeatExpnLanguage.Add(HeatExpnLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Thermal_Conductivity",
                system: systemUrl
                );

            return(Redirect(url));
        }
Esempio n. 29
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var HeatExpnLanguageToUpdate = await _context.HeatExpnLanguage
                                           .Include(m => m.HeatExpn)
                                           .FirstAsync(m => m.Id == id);

            var HeatExpnInvariantToUpdate = HeatExpnLanguageToUpdate.HeatExpn;

            await TryUpdateModelAsync(
                HeatExpnLanguageToUpdate,
                "HeatExpnLanguage",
                m => m.MethodEx, m => m.Znak1);

            await TryUpdateModelAsync(
                HeatExpnInvariantToUpdate,
                "HeatExpnInvariant",
                m => m.DataType, m => m.Temper_1, m => m.Temper_2, m => m.S11, m => m.ErrHExp, m => m.Bknumber, m => m.SingCode);

            await _context.SaveChangesAsync();

            return(Page());
        }
Esempio n. 30
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            var PlavTablLanguageToUpdate = await _context.PlavTablLanguage
                                           .Include(m => m.PlavTabl)
                                           .FirstAsync(m => m.Id == id);

            var PlavTablInvariantToUpdate = PlavTablLanguageToUpdate.PlavTabl;

            await TryUpdateModelAsync(
                PlavTablLanguageToUpdate,
                "PlavTablLanguage",
                m => m.PlavType);

            await TryUpdateModelAsync(
                PlavTablInvariantToUpdate,
                "PlavTablInvariant",
                m => m.PlavTemp, m => m.ErrPlav, m => m.Bknumber);

            await _context.SaveChangesAsync();

            return(Page());
        }