Exemplo n.º 1
0
 /// <summary>
 /// 更新参数
 /// </summary>
 /// <param name="weaData"></param>
 /// <param name="commPara">通用系数</param>
 /// <param name="wirePara">导线参数</param>
 public void UpdataPara(ElecCalsWeaRes weaData, ElecCalsCommRes commPara, ElecCalsSideRes sideParas, string towerType)
 {
     WeatherParas = XmlUtils.Clone(weaData);
     CommParas    = commPara;
     SideParas    = sideParas;
     UpdateTensinPara(towerType, SideParas.IceArea);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 配置计算数据,并刷新导线相关参数等
 /// </summary>
 /// <param name="WeathSor"></param>
 /// <param name="IndWireSor"></param>
 /// <param name="GrdWireSor"></param>
 /// <param name="OPGWWrieSor"></param>
 /// <param name="JumWireSor"></param>
 /// <param name="SideParaSor"></param>
 /// <param name="ComParaSor"></param>
 public void UpdataSor(ElecCalsWeaRes WeathSor, ElecCalsWire IndWireSor, ElecCalsWire GrdWireSor, ElecCalsWire OPGWWrieSor,
                       ElecCalsWire JumWireSor, ElecCalsSideRes SideParaSor, ElecCalsCommRes ComParaSor)
 {
     Weather   = XmlUtils.Clone(WeathSor);
     IndWire   = XmlUtils.Clone(IndWireSor);
     GrdWire   = XmlUtils.Clone(GrdWireSor);
     OPGWWire  = XmlUtils.Clone(OPGWWrieSor);
     JumWire   = XmlUtils.Clone(JumWireSor);
     SideParas = SideParaSor;
     CommParas = ComParaSor;
 }
Exemplo n.º 3
0
        public override void CheckLoStr(List <LoadThrDe> anLoads, ElecCalsCommRes commPara)
        {
            foreach (var nameWd in WireWorkConditionNames)
            {
                int index = LoadList.FindIndex(item => item.GKName == nameWd);
                if (index < 0)
                {
                    continue;
                }
                double loStr = LoadList[index].LoStr;

                var    loadAn  = anLoads.Where(item => item.GKName == nameWd).FirstOrDefault();
                double loStrAd = loadAn == null ? 0 : loadAn.LoStr;

                if (loStr > loStrAd)
                {
                    LoadList[index].LoStrCheckStr = Math.Round(loStr, 0).ToString();
                }
                else
                {
                    double loStrCheck;
                    if (nameWd == "安装情况")
                    {
                        if (WireData.bGrd == 0)
                        {
                            loStrCheck = Math.Round(loStr / commPara.InstMaxPara / commPara.IndExMaxPara * commPara.InstMinPara * commPara.IndExMinPara, 0);
                        }
                        else
                        {
                            loStrCheck = Math.Round(loStr / commPara.InstMaxPara / commPara.GrdExMaxPara * commPara.InstMinPara * commPara.GrdExMinPara, 0);
                        }
                    }
                    else
                    {
                        loStrCheck = Math.Round(loStr / commPara.BuildMaxPara * commPara.BuildMinPara);
                    }
                    LoadList[index].LoStrCheckStr = Math.Round(loStr, 0).ToString() + "/(" + loStrCheck.ToString() + ")";
                }

                if (nameWd == "断线" || nameWd == "不均匀冰I" || nameWd == "不均匀冰II" || nameWd == "断线(导线+5mm)" || nameWd == "不均匀冰I(导线+5mm)" || nameWd == "不均匀冰II(导线+5mm)")
                {
                    if (loStr > loStrAd)
                    {
                        LoadList[index].LoStrCheck2 = Math.Round(loStr, 0);
                    }
                    else
                    {
                        LoadList[index].LoStrCheck2 = Math.Round(loStr / commPara.BuildMaxPara * commPara.BuildMinPara);
                    }
                }
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// 更新参数
 /// </summary>
 /// <param name="weaData">工况参数</param>
 public void UpdataPara(ElecCalsCommRes commData, ElecCalsWeaRes weaData, ElecCalsWeaRes anWeaData)
 {
     CommPara       = commData;
     WeaParas       = weaData;
     WeaAnSideParas = anWeaData;
 }
Exemplo n.º 5
0
 public virtual void CheckLoStr(List <LoadThrDe> anLoads, ElecCalsCommRes commPara)
 {
 }