2023-10-15
This commit is contained in:
@@ -595,25 +595,47 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
|
||||
var col24 = Convert.ToString(pds[i].Z);
|
||||
if (col24!=null)
|
||||
{
|
||||
try
|
||||
{
|
||||
// var Thickness = Convert.ToDecimal(col24);
|
||||
decimal Thickness = 0;
|
||||
string thickness = col24.ToString();
|
||||
if (thickness.Contains("Sch") || thickness.Contains("SCH"))
|
||||
{
|
||||
var Thickness = Convert.ToDecimal(col24);
|
||||
pipeline.Thickness = Thickness;
|
||||
//是否根据壁厚计算达因
|
||||
//Model.Project_Sys_Set thicknessSet = BLL.Project_SysSetService.GetSysSetBySetId("7", this.CurrUser.LoginProjectId);
|
||||
//if (thicknessSet != null && thicknessSet.IsAuto == true)
|
||||
//{
|
||||
// if (pipeline.Size != null)
|
||||
// {
|
||||
// pipeline.Size = Convert.ToDecimal(BLL.WeldJointService.GetSizeByThickness(pipeline.Size, Thickness));
|
||||
// }
|
||||
//}
|
||||
if (rbDiaType.SelectedValue == "1")//外径
|
||||
{
|
||||
Thickness = (decimal)BLL.Base_DNCompareService.GetThicknessByDia(pipeline.Dia,thickness);
|
||||
pipeline.Thickness = Thickness;
|
||||
}
|
||||
else //DN直径
|
||||
{
|
||||
Thickness = (decimal)BLL.Base_DNCompareService.GetThicknessByDNDia(int.Parse( pipeline.DNDia.Replace("DN","")), thickness);
|
||||
pipeline.Thickness = Thickness;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
else
|
||||
{
|
||||
result.Add("第" + (i + 1).ToString() + "行," + "壁厚格式输入有误" + "|") ;
|
||||
try
|
||||
{
|
||||
|
||||
Thickness = Convert.ToDecimal(col24);
|
||||
pipeline.Thickness = Thickness;
|
||||
//是否根据壁厚计算达因
|
||||
//Model.Project_Sys_Set thicknessSet = BLL.Project_SysSetService.GetSysSetBySetId("7", this.CurrUser.LoginProjectId);
|
||||
//if (thicknessSet != null && thicknessSet.IsAuto == true)
|
||||
//{
|
||||
// if (pipeline.Size != null)
|
||||
// {
|
||||
// pipeline.Size = Convert.ToDecimal(BLL.WeldJointService.GetSizeByThickness(pipeline.Size, Thickness));
|
||||
// }
|
||||
//}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result.Add("第" + (i + 1).ToString() + "行," + "壁厚格式输入有误" + "|");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user