1、索引项目中,删除英文,保留中文;
2、尾项管理中,筛选条件调整; 3、尾项管理中,支持点击图片预览; 4、增加尾项统计表中的完成比例; 5、更新管道表的表格(增加焊接信息、试压包状态、电伴热和保温/冷信息); 6、更新移交统计表(补充管道试压包其他信息统计); 7、删除索引项目中的地管和消防2个项目;
This commit is contained in:
@@ -79,7 +79,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
{
|
||||
#region 加载尾项完成统计表(30天以内)
|
||||
var nowDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd"));
|
||||
for (var i = nowDate.AddDays(-30); i <= nowDate; i=i.AddDays(1))
|
||||
for (var i = nowDate.AddDays(-30); i <= nowDate; i = i.AddDays(1))
|
||||
{
|
||||
//i是日期
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
DateTime startTime = Convert.ToDateTime(i.ToString("yyyy-MM-dd") + " 00:00:00");
|
||||
DateTime endTime = Convert.ToDateTime(i.ToString("yyyy-MM-dd") + " 23:59:59");
|
||||
//当天计划完成量
|
||||
var dtjhwcl= forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count();
|
||||
var dtjhwcl = forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count();
|
||||
wcl1 += "'" + dtjhwcl + "',";
|
||||
//当天实际完成量
|
||||
var dtsjwcl = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count();
|
||||
@@ -96,12 +96,12 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
var ljjhwcl = forms.Where(x => x.Required_Date <= endTime).Count();
|
||||
wcl3 += "'" + ljjhwcl + "',";
|
||||
//累计实际完成量
|
||||
var ljsjwcl= forms.Where(x => x.Actual_Date <= endTime).Count();
|
||||
var ljsjwcl = forms.Where(x => x.Actual_Date <= endTime).Count();
|
||||
wcl4 += "'" + ljsjwcl + "',";
|
||||
|
||||
AllxDate += "'"+ d + "',";
|
||||
AllxDate += "'" + d + "',";
|
||||
}
|
||||
if (AllxDate.Length>0)
|
||||
if (AllxDate.Length > 0)
|
||||
{
|
||||
AllxDate = AllxDate.Substring(0, AllxDate.Length - 1);
|
||||
wcl1 = wcl1.Substring(0, wcl1.Length - 1);
|
||||
@@ -403,7 +403,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]);
|
||||
cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]);
|
||||
//
|
||||
Cat_A_Countf+= Convert.ToInt32(row["Cat_A_Countf"]);
|
||||
Cat_A_Countf += Convert.ToInt32(row["Cat_A_Countf"]);
|
||||
Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]);
|
||||
Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]);
|
||||
|
||||
@@ -604,7 +604,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
|
||||
protected void TabStrip1_TabIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (TabStrip1.ActiveTabIndex ==0)
|
||||
if (TabStrip1.ActiveTabIndex == 0)
|
||||
{
|
||||
ddlSystemNo.Hidden = true;
|
||||
ddlDateType.Hidden = true;
|
||||
@@ -636,7 +636,8 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
BtnAnalyse.Hidden = false;
|
||||
BindGrid3();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
this.AnalyseData();
|
||||
ddlSystemNo.Hidden = false;
|
||||
ddlDateType.Hidden = false;
|
||||
@@ -667,14 +668,14 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
|
||||
strSql.AppendLine(@" select System_No,
|
||||
cast(0 as decimal(18, 2)) Cat_A_Count,
|
||||
cast(0 as decimal(18, 2)) Cat_A_Countf, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF,
|
||||
cast(0 as decimal(18, 2)) Cat_A_Countf,cast(0 as decimal(18, 2)) Cat_A_CountPercent, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF,
|
||||
cast(0 as decimal(18, 2)) Cat_B_Count,
|
||||
cast(0 as decimal(18, 2)) Cat_B_Countf, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF,
|
||||
cast(0 as decimal(18, 2)) Cat_B_Countf,cast(0 as decimal(18, 2)) Cat_B_CountPercent, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF,
|
||||
cast(0 as decimal(18, 2)) Cat_C_Count,
|
||||
cast(0 as decimal(18, 2)) Cat_C_Countf, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF,
|
||||
cast(0 as decimal(18, 2)) Cat_C_Countf,cast(0 as decimal(18, 2)) Cat_C_CountPercent, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF,
|
||||
cast(0 as decimal(18, 2)) Cat_D_Count,
|
||||
cast(0 as decimal(18, 2)) Cat_D_Countf, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF,
|
||||
cast(0 as decimal(18, 2)) allCount, cast(0 as decimal(18, 2)) allfinshedCount, cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF
|
||||
cast(0 as decimal(18, 2)) Cat_D_Countf,cast(0 as decimal(18, 2)) Cat_D_CountPercent, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF,
|
||||
cast(0 as decimal(18, 2)) allCount,cast(0 as decimal(18, 2)) allfinshedCount,cast(0 as decimal(18, 2)) allCountPercent,cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF
|
||||
INTO #PunchlistFromProgressTemp
|
||||
from #AllPunchlistFromProgressTemp Group by System_No; ");
|
||||
strSql.AppendLine(@" update a set
|
||||
@@ -710,7 +711,14 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
from #PunchlistFromProgressTemp a;");
|
||||
|
||||
|
||||
|
||||
strSql.AppendLine(@" update a set
|
||||
a.Cat_A_CountPercent=(case ISNULL(a.Cat_A_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_A_Countf,0)*1.0/ISNULL(a.Cat_A_Count,0))) end ),
|
||||
a.Cat_B_CountPercent=(case ISNULL(a.Cat_B_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_B_Countf,0)*1.0/ISNULL(a.Cat_B_Count,0))) end ),
|
||||
a.Cat_C_CountPercent=(case ISNULL(a.Cat_C_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_C_Countf,0)*1.0/ISNULL(a.Cat_C_Count,0))) end ),
|
||||
a.Cat_D_CountPercent=(case ISNULL(a.Cat_D_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_D_Countf,0)*1.0/ISNULL(a.Cat_D_Count,0))) end ),
|
||||
a.allCountPercent=(case ISNULL(a.allCount,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.allfinshedCount,0)*1.0/ISNULL(a.allCount,0))) end )
|
||||
from #PunchlistFromProgressTemp a; ");
|
||||
|
||||
strSql.AppendLine(" select * from #PunchlistFromProgressTemp ");
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
@@ -734,13 +742,14 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
Cat_C_Countf = 0, Cat_C_CountWUH = 0, Cat_C_CountBASF = 0,
|
||||
Cat_D_Countf = 0, Cat_D_CountWUH = 0, Cat_D_CountBASF = 0,
|
||||
allCount = 0, allfinshedCount = 0, allWUH = 0, allBASF = 0;
|
||||
|
||||
foreach (DataRow row in tb.Rows)
|
||||
{
|
||||
cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]);
|
||||
cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]);
|
||||
cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]);
|
||||
cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]);
|
||||
//
|
||||
|
||||
Cat_A_Countf += Convert.ToInt32(row["Cat_A_Countf"]);
|
||||
Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]);
|
||||
Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]);
|
||||
@@ -763,6 +772,11 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
allBASF += Convert.ToInt32(row["allBASF"]);
|
||||
}
|
||||
|
||||
var Cat_A_CountPercent = 100 * ((float)Cat_A_Countf / (float)cat_A_Count);
|
||||
var Cat_B_CountPercent = 100 * ((float)Cat_B_Countf / (float)cat_B_Count);
|
||||
var Cat_C_CountPercent = 100 * ((float)Cat_C_Countf / (float)cat_C_Count);
|
||||
var Cat_D_CountPercent = 100 * ((float)Cat_D_Countf / (float)cat_D_Count);
|
||||
var allCountPercent = 100 * ((float)allfinshedCount / (float)allCount);
|
||||
|
||||
JObject summary = new JObject();
|
||||
summary.Add("System_No", "合计");
|
||||
@@ -772,27 +786,31 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
summary.Add("Cat_D_Count", cat_D_Count.ToString());
|
||||
|
||||
summary.Add("Cat_A_Countf", Cat_A_Countf.ToString());
|
||||
summary.Add("Cat_A_CountPercent", Cat_A_CountPercent.ToString("F2"));
|
||||
summary.Add("Cat_A_CountWUH", Cat_A_CountWUH.ToString());
|
||||
summary.Add("Cat_A_CountBASF", Cat_A_CountBASF.ToString());
|
||||
|
||||
summary.Add("Cat_B_Countf", Cat_B_Countf.ToString());
|
||||
summary.Add("Cat_B_CountPercent", Cat_B_CountPercent.ToString("F2"));
|
||||
summary.Add("Cat_B_CountWUH", Cat_B_CountWUH.ToString());
|
||||
summary.Add("Cat_B_CountBASF", Cat_B_CountBASF.ToString());
|
||||
|
||||
summary.Add("Cat_C_Countf", Cat_C_Countf.ToString());
|
||||
summary.Add("Cat_C_CountPercent", Cat_C_CountPercent.ToString("F2"));
|
||||
summary.Add("Cat_C_CountWUH", Cat_C_CountWUH.ToString());
|
||||
summary.Add("Cat_C_CountBASF", Cat_C_CountBASF.ToString());
|
||||
|
||||
summary.Add("Cat_D_Countf", Cat_D_Countf.ToString());
|
||||
summary.Add("Cat_D_CountPercent", Cat_D_CountPercent.ToString("F2"));
|
||||
summary.Add("Cat_D_CountWUH", Cat_D_CountWUH.ToString());
|
||||
summary.Add("Cat_D_CountBASF", Cat_D_CountBASF.ToString());
|
||||
|
||||
summary.Add("allCount", allCount.ToString());
|
||||
summary.Add("allfinshedCount", allfinshedCount.ToString());
|
||||
summary.Add("allCountPercent", allCountPercent.ToString("F2"));
|
||||
summary.Add("allWUH", allWUH.ToString());
|
||||
summary.Add("allBASF", allBASF.ToString());
|
||||
|
||||
|
||||
Grid3.SummaryData = summary;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user