diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx
index 7c0a664..59e66d5 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx
@@ -31,9 +31,9 @@
LabelAlign="Right" Width="280px">
-
+
-
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx.cs
index 4f4842a..6fc24ce 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationReport.aspx.cs
@@ -48,9 +48,9 @@ namespace FineUIPro.Web.WeldingProcess.PMI
WorkAreaCode,
PipelineCode,
PMINum,
- (convert(float,PMIBySNum)/NULLIF(convert(float,PMINum),0)*100) as RateBys,
+ isnull((convert(float,PMIBySNum)/NULLIF(convert(float,PMINum),0)*100),0) as RateBys,
PMIBySNum,
- (convert(float,PMIByFNum)/NULLIF(convert(float,PMINum),0)*100) as RateByf,
+ isnull( (convert(float,PMIByFNum)/NULLIF(convert(float,PMINum),0)*100),0) as RateByf,
PMIByFNum
from (
select
@@ -79,7 +79,7 @@ namespace FineUIPro.Web.WeldingProcess.PMI
left join Project_Installation as b on a.InstallationId=b.InstallationId
left join Project_WorkArea as c on a.WorkAreaId=c.WorkAreaId
) as t
- ) as H where projectId=@projectId and RateBys>0 ";
+ ) as H where projectId=@projectId ";
List listStr = new List();
listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
@@ -92,9 +92,9 @@ namespace FineUIPro.Web.WeldingProcess.PMI
sql += " and WorkAreaId=@workAreaId";
listStr.Add(new SqlParameter("@workAreaId", this.drpWorkAreaId.SelectedValue));
}
- if (this.drpIsALl.SelectedValue!="全部")
+ if (this.drpIsALl.SelectedValue=="报警")
{
- sql += " and RateBys<=2";
+ sql += " and RateBys>0 and RateBys<=2";
}
if (!string.IsNullOrEmpty(this.txtPipelineCode.Text))
{
@@ -139,7 +139,7 @@ namespace FineUIPro.Web.WeldingProcess.PMI
if (itemLable !=null && !string.IsNullOrEmpty(itemLable.Text))
{
itemLable.Text = rates.ToString() + "%";
- if (rates <= 2)
+ if (rates>0 && rates <= 2)
{
itemLable.ForeColor = Color.Red;
}
@@ -148,7 +148,7 @@ namespace FineUIPro.Web.WeldingProcess.PMI
if(labRateByf!=null && !string.IsNullOrEmpty(labRateByf.Text))
{
labRateByf.Text= ratef.ToString() + "%";
- if (ratef <= 2)
+ if (ratef>0 && ratef <= 2)
{
labRateByf.ForeColor = Color.Red;
}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx
index 1e4efae..ee90a50 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx
@@ -7,83 +7,89 @@
查找管线焊口信息
+
-