diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user index c4484e3e..f8ca7c7a 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true false diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs index c096b319..26f6af68 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs @@ -72,7 +72,7 @@ namespace FineUIPro.Web.Transfer.Chart //查询当前日期中的system的具体数目,去除重复 var list = Funs.DB.View_TransferDetail.Where(x => x.Projectid == ProjectId && x.FDate >= sTime && x.FDate <= eTime).ToList(); - + var SystemList = (from x in list select x.SystemName).Distinct(); //先加载左侧system 树菜单 diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFrom.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFrom.aspx.cs index bd8431ca..4296ebdc 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFrom.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFrom.aspx.cs @@ -62,6 +62,9 @@ namespace FineUIPro.Web.Transfer.Chart dtTime.Columns.Add("A数量", typeof(string)); dtTime.Columns.Add("B数量", typeof(string)); dtTime.Columns.Add("C数量", typeof(string)); + dtTime.Columns.Add("Finished", typeof(string)); + dtTime.Columns.Add("In Progress", typeof(string)); + dtTime.Columns.Add("Not Start", typeof(string)); foreach (var item in list) { DataRow rowTime = dtTime.NewRow(); @@ -72,9 +75,12 @@ namespace FineUIPro.Web.Transfer.Chart rowTime["A数量"] = types.Where(x => x.Category == "A").Count(); rowTime["B数量"] = types.Where(x => x.Category == "B").Count(); rowTime["C数量"] = types.Where(x => x.Category == "C").Count(); + rowTime["Finished"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Finished").Count(); + rowTime["In Progress"] = types.Where(x => x.PUNCH_ITEM_STATUS == "In Progress").Count(); + rowTime["Not Start"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Not Start").Count(); dtTime.Rows.Add(rowTime); } - this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1100, 550, this.ckbShow.Checked)); + this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked)); } else //饼形图 { @@ -90,7 +96,7 @@ namespace FineUIPro.Web.Transfer.Chart rowTime["总数量"] = types.Count(); dtTime.Rows.Add(rowTime); } - this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1130, 550, this.ckbShow.Checked)); + this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked)); } #endregion } @@ -107,6 +113,9 @@ namespace FineUIPro.Web.Transfer.Chart dtTime.Columns.Add("A数量", typeof(string)); dtTime.Columns.Add("B数量", typeof(string)); dtTime.Columns.Add("C数量", typeof(string)); + dtTime.Columns.Add("Finished", typeof(string)); + dtTime.Columns.Add("In Progress", typeof(string)); + dtTime.Columns.Add("Not Start", typeof(string)); foreach (var item in disciplines) { DataRow rowTime = dtTime.NewRow(); @@ -117,10 +126,13 @@ namespace FineUIPro.Web.Transfer.Chart rowTime["A数量"] = types.Where(x => x.Category == "A").Count(); rowTime["B数量"] = types.Where(x => x.Category == "B").Count(); rowTime["C数量"] = types.Where(x => x.Category == "C").Count(); + rowTime["Finished"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Finished").Count(); + rowTime["In Progress"] = types.Where(x => x.PUNCH_ITEM_STATUS == "In Progress").Count(); + rowTime["Not Start"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Not Start").Count(); dtTime.Rows.Add(rowTime); } - this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1100, 550, this.ckbShow.Checked)); + this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked)); } else //饼形图 { @@ -138,7 +150,7 @@ namespace FineUIPro.Web.Transfer.Chart dtTime.Rows.Add(rowTime); } - this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1100, 550, this.ckbShow.Checked)); + this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked)); } #endregion } diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx index 363c2786..43d86694 100644 --- a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx @@ -22,10 +22,11 @@ - - + + + + Width="320px"> @@ -43,6 +44,14 @@ + + + + + + + + @@ -50,33 +59,33 @@ - + - + - + - + - + - + - + - - + - + - + - + diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs index 81f69bd4..111e8a0c 100644 --- a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs @@ -40,6 +40,16 @@ namespace FineUIPro.Web.Transfer strSql += " AND Punch_No like @Punch_No"; listStr.Add(new SqlParameter("@Punch_No", "%" + this.txtPunch_No.Text.Trim() + "%")); } + if (!string.IsNullOrEmpty(this.txtSYSTEM.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSYSTEM.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtSUBSYSTEM.Text.Trim())) + { + strSql += " AND Subsystem like @Subsystem"; + listStr.Add(new SqlParameter("@Subsystem", "%" + this.txtSUBSYSTEM.Text.Trim() + "%")); + } if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) { strSql += " AND PUNCH_ITEM_FINISH_DATE >= @InspectionDateA"; @@ -50,6 +60,26 @@ namespace FineUIPro.Web.Transfer strSql += " AND PUNCH_ITEM_FINISH_DATE <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtTestPackage.Text.Trim())) + { + strSql += " AND Test_Package like @Test_Package"; + listStr.Add(new SqlParameter("@Test_Package", "%" + this.txtTestPackage.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtDiscipline.Text.Trim())) + { + strSql += " AND Discipline like @Discipline"; + listStr.Add(new SqlParameter("@Discipline", "%" + this.txtDiscipline.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtIdentified.Text.Trim())) + { + strSql += " AND Identified like @Identified"; + listStr.Add(new SqlParameter("@Identified", "%" + this.txtIdentified.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtCategory.Text.Trim())) + { + strSql += " AND Category like @Category"; + listStr.Add(new SqlParameter("@Category", "%" + this.txtCategory.Text.Trim() + "%")); + } strSql += " order by Punch_No "; SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs index ac2dc2ef..80f55cb7 100644 --- a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Transfer -{ - - - public partial class PunchlistFrom - { - +namespace FineUIPro.Web.Transfer { + + + public partial class PunchlistFrom { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolSearch 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar ToolSearch; - + /// /// txtPunch_No 控件。 /// @@ -67,7 +65,25 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPunch_No; - + + /// + /// txtSYSTEM 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSYSTEM; + + /// + /// txtSUBSYSTEM 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSUBSYSTEM; + /// /// txtStarTime 控件。 /// @@ -76,7 +92,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStarTime; - + /// /// Label1 控件。 /// @@ -85,7 +101,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label1; - + /// /// txtEndTime 控件。 /// @@ -94,7 +110,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndTime; - + /// /// btnSearch 控件。 /// @@ -103,7 +119,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// btnImport 控件。 /// @@ -112,7 +128,52 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtTest Package 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestPackage; + + /// + /// txtDiscipline 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDiscipline; + + /// + /// txtIdentified 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdentified; + + /// + /// txtCategory 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCategory; + /// /// ToolbarText1 控件。 /// @@ -121,7 +182,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -130,7 +191,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window2 控件。 /// @@ -139,7 +200,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Menu1 控件。 /// @@ -148,7 +209,7 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuDel 控件。 /// diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index 8206b76c..b8efca33 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -77,7 +77,7 @@ - + diff --git a/SGGL/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index 6bc24ada..4edb5e0f 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true