Exemple #1
0
        //更新塔库配置参数
        protected void UpdateTowerPara(out string waring)
        {
            waring = "";

            StrData upIndStr, midIndStr, dnIndStr, grdStr, upJumpStr, midJumpStr, dnJumpStr;

            if (TowerParas.UpIndStrDataName != null && TowerParas.UpIndStrDataName != "")
            {
                upIndStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.UpIndStrDataName);
            }
            else
            {
                upIndStr = new StrData();
                waring  += "上相导线串 ";
            }

            if (TowerParas.MidIndStrDataName != null && TowerParas.MidIndStrDataName != "")
            {
                midIndStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.MidIndStrDataName);
            }
            else
            {
                midIndStr = new StrData();
                waring   += "中相导线串 ";
            }

            if (TowerParas.DnIndStrDataName != null && TowerParas.DnIndStrDataName != "")
            {
                dnIndStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.DnIndStrDataName);
            }
            else
            {
                dnIndStr = new StrData();
                waring  += "下相导线串 ";
            }

            if (TowerParas.GrdStrDataName != null && TowerParas.GrdStrDataName != "")
            {
                grdStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.GrdStrDataName);
            }
            else
            {
                grdStr  = new StrData();
                waring += "地线线串 ";
            }

            if (TowerParas.UpJumpStrDataName != null && TowerParas.UpJumpStrDataName != "")
            {
                upJumpStr = globalInst.GetLocalStrDataByName("硬跳线", TowerParas.UpJumpStrDataName);
            }
            else
            {
                upJumpStr = new StrData();
                waring   += "上相跳线串 ";
            }

            if (TowerParas.MidJumpStrDataName != null && TowerParas.MidJumpStrDataName != "")
            {
                midJumpStr = globalInst.GetLocalStrDataByName("硬跳线", TowerParas.MidJumpStrDataName);
            }
            else
            {
                midJumpStr = new StrData();
                waring    += "中相跳线串 ";
            }

            if (TowerParas.DnJumpStrDataName != null && TowerParas.DnJumpStrDataName != "")
            {
                dnJumpStr = globalInst.GetLocalStrDataByName("硬跳线", TowerParas.DnJumpStrDataName);
            }
            else
            {
                dnJumpStr = new StrData();
                waring   += "下相跳线串 ";
            }

            StrDatas = new ElecCalsStrDatas();
            StrDatas.UpIndStr.SetIGPara(upIndStr.Weight, upIndStr.LNum, upIndStr.PieceNum, upIndStr.PieceLength, upIndStr.GoldPieceNum,
                                        upIndStr.FitLength, upIndStr.DampLength);
            StrDatas.MidIndStr.SetIGPara(midIndStr.Weight, midIndStr.LNum, midIndStr.PieceNum, midIndStr.PieceLength, midIndStr.GoldPieceNum,
                                         midIndStr.FitLength, midIndStr.DampLength);
            StrDatas.DnIndStr.SetIGPara(dnIndStr.Weight, dnIndStr.LNum, dnIndStr.PieceNum, dnIndStr.PieceLength, dnIndStr.GoldPieceNum,
                                        dnIndStr.FitLength, dnIndStr.DampLength);
            StrDatas.GrdStr.SetIGPara(grdStr.Weight, grdStr.LNum, grdStr.PieceNum, grdStr.PieceLength, grdStr.GoldPieceNum,
                                      grdStr.FitLength, grdStr.DampLength);

            StrDatas.UpJumpStr.SetJumPara(upJumpStr.Weight, upJumpStr.LNum, upJumpStr.PieceNum, upJumpStr.GoldPieceNum, upJumpStr.SoftLineLen,
                                          upJumpStr.JGBNum, upJumpStr.SuTubleLen, TowerParas.SuTubleDia, TowerParas.SuTubleWei);
            StrDatas.MidJumpStr.SetJumPara(midJumpStr.Weight, midJumpStr.LNum, midJumpStr.PieceNum, midJumpStr.GoldPieceNum, midJumpStr.SoftLineLen,
                                           midJumpStr.JGBNum, midJumpStr.SuTubleLen, TowerParas.SuTubleDia, TowerParas.SuTubleWei);
            StrDatas.DnJumpStr.SetJumPara(dnJumpStr.Weight, dnJumpStr.LNum, dnJumpStr.PieceNum, dnJumpStr.GoldPieceNum, dnJumpStr.SoftLineLen,
                                          dnJumpStr.JGBNum, dnJumpStr.SuTubleLen, TowerParas.SuTubleDia, TowerParas.SuTubleWei);

            Wire jump;

            if (TowerParas.JumpName != null && TowerParas.JumpName != "")
            {
                jump = globalInst.GetLocalWireByName(true, TowerParas.JumpName);
            }
            else
            {
                jump    = new Wire();
                waring += "跳线 ";
            }

            JumpWirePara = new ElecCalsWire(jump.ModelSpecification, 1, jump.SectionArea, jump.ExternalDiameter, jump.UnitLengthMass, jump.ModulusElasticity,
                                            jump.LineCoefficient, jump.RatedBreakingForce, 0, 0, TowerParas.JumpDevideNum);
        }