コード例 #1
0
        public async Task <IActionResult> Create([Bind("PhasePowerTransformerId,ManufacturersName,ManufacturersAddress,AppliedStandard,DescriptionType,SerialNumber,RatedPower,NumberOfPhase,RatedVoltagePhaseToPhase,HighVoltageWindingPhaseToPhase,LowVoltageWindingPhaseToPhase,RatedFrequency,RatedInsulationLevel,ImpulseHighVoltageWinding,ImpulseLowVoltageWinding,ACHighVoltageWinding,ACLowVoltageWinding,TypeOfCooling28Or35MVA,OnLoadTapChanger,TypeTap,TappingRangeHT,LocationOfTap,OilVolume,OneStepChange,MotorRating,ImpedanceVoltageAt75CAndAtNominalRatio,TemperatureRiseAtRatedPowerMaxAmbientTemperature40C,FiveMva,SixPointSixMva,OilByThermometer,WindingByResistanceMeasurement,TemperatureGradientBetweenWindingsAndOil,ShortCircuitLevelAtTerminalThirtyThreeKv,ShortCircuitLevelAtTerminalEleventKv,TransformerCore,TypeofCoreAndFluxEnsityAtNominalVoltage,TransformeHVBushing,TransformeHVBushingType,TransformeLVBushing,TransformeLVBushingType,TransformeNeutralBushing,TransformeNeutralBushingType,ConservatorWithAirSealedBagForConstantOilPressur,BreatherSilicagel,AuxiliaryCircuitVoltageForFanetc3P4W,ControlVoltage,SoundLevelIEC551,ONAN,ONAF,BushingCTParticularsHVside,BushingCTParticularsLVside,BushingCTParticularsNeutralSide,NumberOfCoolingFan,RatingOfFanMotors,CoolingFanLossesAtFullOnafCapacityOperation,CoreLossAtRatedFrequencyAndRatedVoltageAtNominalTapNoLoadLoss,CopperLossAtMaximumTap,CopperLossAtNominalTap,CopperLossAtMinimumTap,Radiators,OverallDimensions,NoOfRadiators,SupervisoryAlarmAndTripContacts,TemperatureIndicators,MakeAndType,AlarmAndTripRange,NoOfContacts,CurrentRatingOfContacts,SupervisoryAlarmContact,DimensionsAndWeightTransportLMulWMulH,DimensionsAndWeightTransportWeightOFoil,DimensionsAndWeightTransportWeightofCore,DimensionsAndWeightTransportTotalWeight,SanctionedLoad,MaximumLoad,FeederID33KvId,SubstationId")] TblPhasePowerTransformer tblPhasePowerTransformer)
        {
            string findId = _context.TblPhasePowerTransformer.Where(i => i.SubstationId == tblPhasePowerTransformer.SubstationId).OrderBy(u => u.PhasePowerTransformerId).Select(u => u.PhasePowerTransformerId).LastOrDefault();

            if (findId == null)
            {
                findId = tblPhasePowerTransformer.SubstationId + "001";
            }
            else
            {
                findId = (Convert.ToInt64(findId) + 1).ToString();
            }

            if (ModelState.IsValid)
            {
                tblPhasePowerTransformer.PhasePowerTransformerId = findId;
                _context.Add(tblPhasePowerTransformer);
                await _context.SaveChangesAsync();

                //return RedirectToAction(nameof(Index));
                TempData["statuMessageSuccess"] = "Phase Power Transformer has been added Successfully under substation id: " + tblPhasePowerTransformer.SubstationId;
                return(RedirectToAction("Index", "TblSubstations"));
            }
            ViewData["FeederID33KvId"] = new SelectList(_context.TblFeederLine.Where(i => i.FeederLineToRoute.RouteToSubstation.SubstationId == tblPhasePowerTransformer.SubstationId), "FeederLineId", "FeederName", tblPhasePowerTransformer.FeederID33KvId);
            ViewData["SubstationId"]   = new SelectList(_context.TblSubstation.Where(i => i.SubstationId == tblPhasePowerTransformer.SubstationId), "SubstationId", "SubstationName", tblPhasePowerTransformer.SubstationId);
            return(View(tblPhasePowerTransformer));
        }
コード例 #2
0
        public async Task <IActionResult> Create([Bind("PoleMountedDofCutOutFuseLinkId,Standard,General,Installation,TypeorModel,Construction,Application,NominalRatedVoltage,MaximumSystemVoltage,SystemFrequency,TypeofSystem,ContinuousCurrentRating,InterruptingCapacityoftheCutOutMin,FuseHolderType,FuseLinkRatedCurrentContinuous,BasicInsulationLevelBIL,FuseLinkType,PoleId")] TblPoleMountedDofCutOutFuseLink tblPoleMountedDofCutOutFuseLink)
        {
            string fuseLinkId = tblPoleMountedDofCutOutFuseLink.PoleId;

            bool has = _context.TblPoleMountedDofCutOutFuseLink.Any(cus => cus.PoleMountedDofCutOutFuseLinkId == tblPoleMountedDofCutOutFuseLink.PoleId + "_1");

            if (has)
            {
                tblPoleMountedDofCutOutFuseLink.PoleMountedDofCutOutFuseLinkId = fuseLinkId + "_2";
                has = _context.TblPoleMountedDofCutOutFuseLink.Any(cus => cus.PoleMountedDofCutOutFuseLinkId == tblPoleMountedDofCutOutFuseLink.PoleId);
                if (has)
                {
                    tblPoleMountedDofCutOutFuseLink.PoleMountedDofCutOutFuseLinkId = fuseLinkId + "_3";
                }
            }
            else
            {
                tblPoleMountedDofCutOutFuseLink.PoleMountedDofCutOutFuseLinkId = fuseLinkId + "_1";
            }


            if (ModelState.IsValid)
            {
                _context.Add(tblPoleMountedDofCutOutFuseLink);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["PoleId"] = new SelectList(_context.TblPole, "PoleId", "PoleId", tblPoleMountedDofCutOutFuseLink.PoleId);
            return(View(tblPoleMountedDofCutOutFuseLink));
        }
コード例 #3
0
        public async Task <IActionResult> Create([Bind("MeteringPanelId,SubstationId,ManufacturersNameCountryOfOrigin,ManufacturersModelNo,SystemNominalVoltage,MaximumSystemVoltage,RatedFrequency,DifferentialRelayIdForTransformer,RestrictedEarthFaultRelayIdForTransformer,IdmtOverCurrentAndEarthFaultRelayIdForTransformer,AuxiliaryFlagRelayIdForTransformer,TripCircuitSupervisionRelayIdForTransformer,TripRelayIdForTransformer,AnnuciatorIdForTransformer,ControlSwitchIdForTransformer,IdmtOverCurrentAndEarthFaultRelayIdForFeeder,TripCircuitSupervisionRelayIdForFeeder,TripRelayIdForFeeder,AnnuciatorIdForFeeder,ControlSwitchIdForFeeder,KWHandkVARHMeterId,VoltMeterId,AmpereMeterId,MegaWattMeterId,MegaVarMeterId,DimensionAndWeightId")] TblMeteringPanel tblMeteringPanel)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tblMeteringPanel);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["AmpereMeterId"]                                     = new SelectList(_context.LookUpDifferentMeter, "DifferentMeterId", "DifferentMeterId", tblMeteringPanel.AmpereMeterId);
            ViewData["AnnuciatorIdForFeeder"]                             = new SelectList(_context.LookupAnnuciator, "AnnuciatorId", "Annunciator", tblMeteringPanel.AnnuciatorIdForFeeder);
            ViewData["AnnuciatorIdForTransformer"]                        = new SelectList(_context.LookupAnnuciator, "AnnuciatorId", "Annunciator", tblMeteringPanel.AnnuciatorIdForTransformer);
            ViewData["AuxiliaryFlagRelayIdForTransformer"]                = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.AuxiliaryFlagRelayIdForTransformer);
            ViewData["ControlSwitchIdForFeeder"]                          = new SelectList(_context.LookupControlSwitch, "ControlSwitchId", "ControlSwitch", tblMeteringPanel.ControlSwitchIdForFeeder);
            ViewData["ControlSwitchIdForTransformer"]                     = new SelectList(_context.LookupControlSwitch, "ControlSwitchId", "ControlSwitch", tblMeteringPanel.ControlSwitchIdForTransformer);
            ViewData["DifferentialRelayIdForTransformer"]                 = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.DifferentialRelayIdForTransformer);
            ViewData["IdmtOverCurrentAndEarthFaultRelayIdForFeeder"]      = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.IdmtOverCurrentAndEarthFaultRelayIdForFeeder);
            ViewData["IdmtOverCurrentAndEarthFaultRelayIdForTransformer"] = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.IdmtOverCurrentAndEarthFaultRelayIdForTransformer);
            ViewData["KWHandkVARHMeterId"]                                = new SelectList(_context.LookUpDifferentMeter, "DifferentMeterId", "DifferentMeterId", tblMeteringPanel.KWHandkVARHMeterId);
            ViewData["MegaVarMeterId"]                                    = new SelectList(_context.LookUpDifferentMeter, "DifferentMeterId", "DifferentMeterId", tblMeteringPanel.MegaVarMeterId);
            ViewData["MegaWattMeterId"]                                   = new SelectList(_context.LookUpDifferentMeter, "DifferentMeterId", "DifferentMeterId", tblMeteringPanel.MegaWattMeterId);
            ViewData["DimensionAndWeightId"]                              = new SelectList(_context.LookUpDimensionAndWeight, "DimensionAndWeightId", "WeightIncludingCircuitBreaker", tblMeteringPanel.DimensionAndWeightId);
            ViewData["SubstationId"] = new SelectList(_context.TblSubstation, "SubstationId", "SubstationName", tblMeteringPanel.SubstationId);
            ViewData["RestrictedEarthFaultRelayIdForTransformer"]   = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.RestrictedEarthFaultRelayIdForTransformer);
            ViewData["TripCircuitSupervisionRelayIdForFeeder"]      = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.TripCircuitSupervisionRelayIdForFeeder);
            ViewData["TripCircuitSupervisionRelayIdForTransformer"] = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.TripCircuitSupervisionRelayIdForTransformer);
            ViewData["TripRelayIdForFeeder"]      = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.TripRelayIdForFeeder);
            ViewData["TripRelayIdForTransformer"] = new SelectList(_context.LookUpDifferentRelay, "DifferentRelayId", "DifferentTypesOfRelay", tblMeteringPanel.TripRelayIdForTransformer);
            ViewData["VoltMeterId"] = new SelectList(_context.LookUpDifferentMeter, "DifferentMeterId", "DifferentMeterId", tblMeteringPanel.VoltMeterId);

            return(View(tblMeteringPanel));
        }
コード例 #4
0
 public async Task<IActionResult> Create([Bind("ConnectionTypeId,ConnectionTypeName")] LookUpConnectionType lookUpConnectionType)
 {
     if (ModelState.IsValid)
     {
         _context.Add(lookUpConnectionType);
         await _context.SaveChangesAsync();
         return RedirectToAction(nameof(Index));
     }
     return View(lookUpConnectionType);
 }
コード例 #5
0
        public async Task <IActionResult> Create([Bind("CircuitBreakerId,Type,RatedVoltage,RatedCurrent,OperatingCycle,RatedShortCktBreakingCurrent,RatedShortCktMakingCurrent,RatedBreakingTime,OpeningTime,ClosingTime,RatedOperatingSequence,ControlVoltage,MotorVoltageForSpringCharge,ThreePositionDisconnectorSwitch,Type2,RatedVoltage2,RatedCurrent2,SwitchPositions,ElectricalAndMechanicalInterlock")] LookUpCircuitBreaker lookUpCircuitBreaker)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpCircuitBreaker);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpCircuitBreaker));
        }
コード例 #6
0
        public async Task <IActionResult> Create([Bind("CurrentTransformerId,RatedVoltage,AccuracyClassMetering,AccuracyClassOCEFProtection,AccuracyClassDifferentialProtection,RatedCurrentRatio,Burden,RatedFrequency")] LookUpCurrentTransformer lookUpCurrentTransformer)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpCurrentTransformer);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpCurrentTransformer));
        }
コード例 #7
0
        public async Task <IActionResult> Create([Bind("Sf6SafetyAndLifeId,SF6Pressure,RatedPressureAt20C,MinimumfunctionalpressureAt20C,BurstingPressure,GasLeakageRate,SafetyIndication,CapacitiveVoltageIndicatorEUJapanUSAOrigin,GasPressureManometer,BusBarGasPressureManometer,LifeEnduranceOfSwitchgear,CircuitBreakers,DisconnectorsAndEarthingSwitches")] LookupSf6SafetyAndLife lookupSf6SafetyAndLife)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookupSf6SafetyAndLife);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookupSf6SafetyAndLife));
        }
コード例 #8
0
        public async Task <IActionResult> Create([Bind("VoltageCategoryId,VoltageCategoryName")] LookUpVoltageCategory lookUpVoltageCategory)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpVoltageCategory);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpVoltageCategory));
        }
コード例 #9
0
        public async Task <IActionResult> Create([Bind("ComplainStatusId,ComplainStatus")] LookUpComplainStatus lookUpComplainStatus)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpComplainStatus);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpComplainStatus));
        }
コード例 #10
0
        public async Task <IActionResult> Create([Bind("DimensionAndWeightId,Height,Width,Depth,WeightIncludingCircuitBreaker")] LookUpDimensionAndWeight lookUpDimensionAndWeight)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpDimensionAndWeight);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpDimensionAndWeight));
        }
コード例 #11
0
        public async Task <IActionResult> Create([Bind("PhasingCodeId,PhasingCodeName")] LookUpPhasingCodeType lookUpPhasingCodeType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpPhasingCodeType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpPhasingCodeType));
        }
コード例 #12
0
        public async Task <IActionResult> Create([Bind("AnnuciatorId,Annunciator,ManufacturesName,CountryofOrigin,ManufacturesModelNo")] LookupAnnuciator lookupAnnuciator)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookupAnnuciator);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookupAnnuciator));
        }
        public async Task <IActionResult> Create([Bind("AutoCircuitReCloserTypeId,AutoCircuitReCloserTypeIdName")] LookUpAutoCircuitReCloserType lookUpAutoCircuitReCloserType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpAutoCircuitReCloserType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpAutoCircuitReCloserType));
        }
        public async Task <IActionResult> Create([Bind("SpecificationsOfMountBracketTypeId,SpecificationsOfMountBracketTypeName")] LookUpSpecificationsOfMountBracketType lookUpSpecificationsOfMountBracketType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpSpecificationsOfMountBracketType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpSpecificationsOfMountBracketType));
        }
コード例 #15
0
        public async Task <IActionResult> Create([Bind("ZoneCode,ZoneName,SortingNo")] LookUpZoneInfo lookUpZoneInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpZoneInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpZoneInfo));
        }
コード例 #16
0
        public async Task <IActionResult> Create([Bind("SwitchPositionId,ElectricalAndMechanicalInterlock,CurrentTransformer,RatedVoltage,AccuracyClassMetering,AccuracyClassOCEFProtection,RatedCurrentRatio,Burden,RatedFrequency")] LookUpSwitchPosition lookUpSwitchPosition)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpSwitchPosition);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpSwitchPosition));
        }
        public async Task <IActionResult> Create([Bind("InsulatorShackleOrGuyTypeId,InsulatorShackleOrGuyTypeName")] LookUpInsulatorShackleOrGuyType lookUpInsulatorShackleOrGuyType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpInsulatorShackleOrGuyType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpInsulatorShackleOrGuyType));
        }
コード例 #18
0
        public async Task <IActionResult> Create([Bind("ControlSwitchId,ControlSwitch,ManufacturesNameCountry,ManufacturesModelTypeNo")] LookupControlSwitch lookupControlSwitch)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookupControlSwitch);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookupControlSwitch));
        }
コード例 #19
0
        public async Task <IActionResult> Create([Bind("LocationId,LocationName")] LookUpLocation lookUpLocation)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpLocation);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpLocation));
        }
コード例 #20
0
        public async Task <IActionResult> Create([Bind("OperatingVoltageId,OperatingVoltageName")] LookUpOperatingVoltage lookUpOperatingVoltage)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpOperatingVoltage);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpOperatingVoltage));
        }
コード例 #21
0
        public async Task <IActionResult> Create([Bind("BusBarId,BusBarType,Material,CrossSection,NominalCurrent,Accessories,CableConnection,VoltageTransformer,SurgeArrester")] LookupBusBar lookupBusBar)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookupBusBar);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookupBusBar));
        }
コード例 #22
0
        public async Task <IActionResult> Create([Bind("RelayTypeId,RelayTypeName")] LookUpDifferentTypesOfRelay lookUpDifferentTypesOfRelay)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpDifferentTypesOfRelay);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpDifferentTypesOfRelay));
        }
コード例 #23
0
        public async Task <IActionResult> Create([Bind("SnDCode,SnDName,SortingNo,CircleCode")] LookUpSnDInfo lookUpSnDInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpSnDInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["CircleCode"] = new SelectList(_context.LookUpCircleInfo, "CircleCode", "CircleName", lookUpSnDInfo.CircleCode);
            return(View(lookUpSnDInfo));
        }
コード例 #24
0
        public async Task <IActionResult> Create([Bind("BatteryChargerId,SubstationId,ManufacturersNameAndCompany,ManufacturersModelNo,Rating,RatedInputVoltageRange,RatedFrequency,NoOfPhase,NominalOutputVoltage,ChargingOperatingControl,OutputCurrent,ContinuousCurrentRating,Efficiency,VoltageRegulation")] LookUpBatteryCharger lookUpBatteryCharger)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpBatteryCharger);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SubstationId"] = new SelectList(_context.TblSubstation, "SubstationId", "SubstationId", lookUpBatteryCharger.SubstationId);
            return(View(lookUpBatteryCharger));
        }
        public async Task <IActionResult> Create([Bind("SideLockTieTerminalClampMerlinId,SideLockTieTerminalClampMerlinType,Materials,Standard,UltimateTensileStrength,PoleId")] LookUpSideLockTieTerminalClampMerlin lookUpSideLockTieTerminalClampMerlin)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpSideLockTieTerminalClampMerlin);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["PoleId"] = new SelectList(_context.TblPole, "PoleId", "PoleId", lookUpSideLockTieTerminalClampMerlin.PoleId);
            return(View(lookUpSideLockTieTerminalClampMerlin));
        }
コード例 #26
0
        public async Task <IActionResult> Create([Bind("TerminationKitId,BusBarId,LineCapacity,TypeofTerminationKit,Application,Installation,NominalSystemVoltage,MaximumSystemVoltage,PowerFrequencyWithstandVoltage,NumberofCore,TypeofInsulation,TypeofScreening,TypeofCableBox,SystemNeutralEarthing,ConductorCrossSection,ImpulseWithstandVoltage")] TblTerminationKit tblTerminationKit)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tblTerminationKit);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["BusBarId"] = new SelectList(_context.LookupBusBar, "BusBarId", "BusBarId", tblTerminationKit.BusBarId);
            return(View(tblTerminationKit));
        }
コード例 #27
0
        public async Task <IActionResult> Create([Bind("UpazilaGeoCode,UpazilaName,DistrictGeoCode")] LookUpAdminBndUpazila lookUpAdminBndUpazila)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpAdminBndUpazila);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["DistrictGeoCode"] = new SelectList(_context.LookUpAdminBndDistrict, "DistrictGeoCode", "DistrictGeoCode", lookUpAdminBndUpazila.DistrictGeoCode);
            return(View(lookUpAdminBndUpazila));
        }
コード例 #28
0
        public async Task <IActionResult> Create([Bind("NiCdBattery110vDcId,SubstationId,ManufacturersNameAndAddress,ManufacturersModelNo,Type,OperatingVoltage,NumberOfCells,VoltagePerCell")] LookUpNiCdBattery110vDc lookUpNiCdBattery110vDc)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpNiCdBattery110vDc);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SubstationId"] = new SelectList(_context.TblSubstation, "SubstationId", "SubstationId", lookUpNiCdBattery110vDc.SubstationId);
            return(View(lookUpNiCdBattery110vDc));
        }
        public async Task <IActionResult> Create([Bind("VacumnCircuitBreakerId,SubstationId,ManufacturersNameCountry,ManufacturersModelNo,MaximumRatedVoltage,Frequency,RatedNormalCurrent,NoOfPhase,NoOfBreakPerPhrase,InterruptingMedium,ImpulseWithstandOn1250MsWave,PowerFrequencyTestVoltageDryAt50Hz1Min,ShortTimeWithstandCurrent3SecondRms,SymmetricalRms,AsymmetricalRms,ShortCircuitMakingCurrentPeak,TripCoilCurrent,TripCoilVoltage,OpeningTimeWithoutCurrentAt100OfRatedBreakingcurrent,BreakingTime,ClosingTime,RatedVoltageofSpringWindingMotorforClosing,SpringWindingMotorCurrent,ClosingReleaseCoilCurrent,ClosingReleaseCoilVoltage,NoOfTrippingCoil,CircuitBreakerTerminalConnectors,PressureInVacuumTubeforVCB,AtRatedCurrentSwitching,AtShortCircuitCurrentSwitching,RatedOperatingSequence")] TblOutDoorTypeVacumnCircuitBreaker tblOutDoorTypeVacumnCircuitBreaker)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tblOutDoorTypeVacumnCircuitBreaker);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SubstationId"] = new SelectList(_context.TblSubstation, "SubstationId", "SubstationId", tblOutDoorTypeVacumnCircuitBreaker.SubstationId);
            return(View(tblOutDoorTypeVacumnCircuitBreaker));
        }
コード例 #30
0
        public async Task <IActionResult> Create([Bind("SurgeArrestorId,ManufacturersNameAndAddress,ClassOfDiverterToIEC99To4,RatedVoltage,RatedVoltageRMSkV30,RatedCurrent,NeutralConnection,PowerFreqWithstandVoltageOfHousing,Dry,Wet,Impulse,LightingImpulseResidualVoltage,SteepCurrentImpulseResidualVoltageAt10kAOr1MicrosFrontTime,HighCurrentImpulseWithStandValue4Or10MicroS,SwitchingImpulseResidentialVoltage50Or100MicroS,PressureReliefDeviceFitted,TemporaryOverVoltageCapability,PointOneSeconds,OneSecond,TenSeconds,HunderdSeconds,LeakageCurrentatRatedVoltage,MinimumResetVoltage,TotalCreepageDistance,SurgeMonitor,ConnectingLeadfromLATerminaltoSurgeMonitor,OverallDimensionandWeight,Height,Diameter,TotalWeightofArrester,PhasePowerTransformerId")] TblSurgeArrestor tblSurgeArrestor)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tblSurgeArrestor);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["PhasePowerTransformerId"] = new SelectList(_context.TblPhasePowerTransformer, "PhasePowerTransformerId", "PhasePowerTransformerId", tblSurgeArrestor.PhasePowerTransformerId);
            return(View(tblSurgeArrestor));
        }