试压包导入
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -313,7 +314,32 @@ namespace BLL
|
||||
}
|
||||
return isoRate;
|
||||
}
|
||||
|
||||
public static int countBaseWeldJointCode(string pipelineId)
|
||||
{
|
||||
string sql = "select count(1) from Pipeline_WeldJoint where PipelineId=@PipelineId";
|
||||
SqlParameter[] parameters = new SqlParameter[] {
|
||||
new SqlParameter("@PipelineId",pipelineId)
|
||||
};
|
||||
int count = SQLHelper.getIntValue(sql, parameters);
|
||||
return count;
|
||||
}
|
||||
public static int countWeldJointCode(string pipelineId)
|
||||
{
|
||||
string sql = @"select WeldJointCode=(stuff((select ','+ WeldJonintCode from PTP_PipelineList where PipelineId=@PipelineId and isALL=0 for xml path('')),1,1,''))";
|
||||
SqlParameter[] parameters = new SqlParameter[] {
|
||||
new SqlParameter("@PipelineId",pipelineId)
|
||||
};
|
||||
string strCode = SQLHelper.GetStr(sql, parameters);
|
||||
if (!string.IsNullOrEmpty(strCode))
|
||||
{
|
||||
string[] arr = strCode.Split(',');
|
||||
return arr == null ? 0 : arr.Length;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user