优化材料和焊接数据页面显示及筛选功能

This commit is contained in:
2022-09-19 09:35:49 +08:00
parent 456be52603
commit 951c54533d
36 changed files with 1728 additions and 90 deletions
+3 -1
View File
@@ -103,7 +103,9 @@ namespace FineUIPro.Web.HJGL.FL
/// </summary>
private void BindGrid()
{
string strSql = @"select *
string strSql = @"select *,
cast((case when c.TestWeldAmount='0' or c.TestWeldAmount='' then 0 when c.OnceQualifiedQuantity='0' or c.OnceQualifiedQuantity='' then 0 else 100.0 * cast(c.OnceQualifiedQuantity as DECIMAL(9,2))/(1.0 * cast(c.TestWeldAmount as DECIMAL(9,2))) end) AS DECIMAL(9,2)) as OneOKRate,
cast((case when c.OneTimeFilmAmount='0' or c.OneTimeFilmAmount='' then 0 when c.OneTimeFilmQualifiedAmount='0' or c.OneTimeFilmQualifiedAmount='' then 0 else 100.0 * cast(c.OneTimeFilmQualifiedAmount as DECIMAL(9,2))/(1.0 * cast(c.OneTimeFilmAmount as DECIMAL(9,2))) end) AS DECIMAL(9,2)) as OneOKFilmRate
from dbo.HJGL_FL_NdtList c
where c.ProjectId=@ProjectId order by c.DeviceName,DeviceNumber,ZoneCode";
List<SqlParameter> listStr = new List<SqlParameter>();