修改质量月报
This commit is contained in:
parent
bee1bbd935
commit
4064fac52d
|
@ -154,12 +154,31 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
* @param doc Document对象
|
* @param doc Document对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static Cell CreateCell(String value, Document doc, double cellWidth)
|
public static Cell CreateCell(String value, Document doc, double cellWidth,string cellMerge="")
|
||||||
{
|
{
|
||||||
Cell cell = new Cell(doc);
|
Cell cell = new Cell(doc);
|
||||||
Paragraph p = new Paragraph(doc);
|
Paragraph p = new Paragraph(doc);
|
||||||
|
if (!string.IsNullOrEmpty(cellMerge))
|
||||||
|
{
|
||||||
|
if (cellMerge == "0")
|
||||||
|
{
|
||||||
|
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||||
|
}
|
||||||
|
|
||||||
p.AppendChild(new Run(doc, value));
|
p.AppendChild(new Run(doc, value));
|
||||||
|
|
||||||
cell.CellFormat.Width = cellWidth;
|
cell.CellFormat.Width = cellWidth;
|
||||||
|
|
||||||
|
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
|
||||||
|
|
||||||
cell.AppendChild(p);
|
cell.AppendChild(p);
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
@ -322,6 +341,30 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
{
|
{
|
||||||
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText;
|
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bkmark = doc.Range.Bookmarks["Content8"];
|
||||||
|
if (bkmark != null)
|
||||||
|
{
|
||||||
|
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
|
||||||
|
}
|
||||||
|
|
||||||
|
bkmark = doc.Range.Bookmarks["Content20"];
|
||||||
|
if (bkmark != null)
|
||||||
|
{
|
||||||
|
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText;
|
||||||
|
}
|
||||||
|
|
||||||
|
bkmark = doc.Range.Bookmarks["Content21"];
|
||||||
|
if (bkmark != null)
|
||||||
|
{
|
||||||
|
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
|
||||||
|
}
|
||||||
|
|
||||||
|
bkmark = doc.Range.Bookmarks["Content22"];
|
||||||
|
if (bkmark != null)
|
||||||
|
{
|
||||||
|
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
var ContuructionAllList = db.Report_Construction_Plan.Where(x => x.ReportId == Id).OrderBy(x=>x.UnitOrMajor).ToList();
|
var ContuructionAllList = db.Report_Construction_Plan.Where(x => x.ReportId == Id).OrderBy(x=>x.UnitOrMajor).ToList();
|
||||||
|
@ -610,7 +653,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int i = 1;
|
int i = 1;
|
||||||
var cNProfessionals = from x in Funs.DB.Base_CNProfessional orderby x.SortIndex select x;
|
var cNProfessionals = from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId orderby x.SortIndex select x;
|
||||||
foreach (var item in cNProfessionals)
|
foreach (var item in cNProfessionals)
|
||||||
{
|
{
|
||||||
//专业下所有集合
|
//专业下所有集合
|
||||||
|
@ -891,6 +934,293 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 7.3无损检测管理情况
|
||||||
|
var NondestructiveTestlist = new List<Model.ProcessControl_NondestructiveTest_New>();
|
||||||
|
//加载所有施工分包单位
|
||||||
|
units = from x in Funs.DB.Project_ProjectUnit
|
||||||
|
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
|
where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2)
|
||||||
|
orderby y.UnitCode
|
||||||
|
select new { x.UnitId, y.UnitName };
|
||||||
|
|
||||||
|
int? totalNum0 = 0, totalNum1 = 0;//拍片数量合计
|
||||||
|
|
||||||
|
|
||||||
|
foreach (var item in units)
|
||||||
|
{
|
||||||
|
int? num0 = 0, num1 = 0;//拍片数量小计
|
||||||
|
|
||||||
|
var query = from c in db.ProcessControl_NondestructiveTest_New
|
||||||
|
|
||||||
|
join u in db.Base_Unit on c.UnitId equals u.UnitId
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
|
&& c.CreateDate >= Convert.ToDateTime(startDate) && c.CreateDate <= Convert.ToDateTime(endDate)
|
||||||
|
|
||||||
|
orderby c.CreateDate descending
|
||||||
|
|
||||||
|
select new
|
||||||
|
|
||||||
|
{
|
||||||
|
c.CreateDate,
|
||||||
|
c.ProjectId,
|
||||||
|
u.UnitId,
|
||||||
|
u.UnitName,
|
||||||
|
c.ProfessionalName,
|
||||||
|
c.MonthQuantity,
|
||||||
|
c.TotalQuantity,
|
||||||
|
c.MonthRate,
|
||||||
|
c.TotalRate
|
||||||
|
};
|
||||||
|
if (query.ToList().Count > 0)
|
||||||
|
{
|
||||||
|
//加载工艺管道
|
||||||
|
var gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "工艺管道");
|
||||||
|
var model = new Model.ProcessControl_NondestructiveTest_New();
|
||||||
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
model.CreateMan = item.UnitName;//用作存储施工单位名称
|
||||||
|
model.ProfessionalName = "工艺管道";
|
||||||
|
|
||||||
|
if (gygdModel != null)
|
||||||
|
{
|
||||||
|
model.MonthQuantity = gygdModel.MonthQuantity;
|
||||||
|
model.TotalQuantity = gygdModel.TotalQuantity;
|
||||||
|
model.MonthRate = gygdModel.MonthRate + "%";
|
||||||
|
model.TotalRate = gygdModel.TotalRate + "%";
|
||||||
|
#region 小计和合计
|
||||||
|
//小计
|
||||||
|
num0 += gygdModel.MonthQuantity;
|
||||||
|
num1 += gygdModel.TotalQuantity;
|
||||||
|
|
||||||
|
//合计
|
||||||
|
totalNum0 += gygdModel.MonthQuantity;
|
||||||
|
totalNum1 += gygdModel.TotalQuantity;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
model.MonthQuantity = 0;
|
||||||
|
model.TotalQuantity = 0;
|
||||||
|
model.MonthRate = "0%";
|
||||||
|
model.TotalRate = "0%";
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//地管
|
||||||
|
gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "地管");
|
||||||
|
model = new Model.ProcessControl_NondestructiveTest_New();
|
||||||
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
model.CreateMan = item.UnitName;//用作存储施工单位名称
|
||||||
|
model.ProfessionalName = "地管";
|
||||||
|
|
||||||
|
if (gygdModel != null)
|
||||||
|
{
|
||||||
|
model.MonthQuantity = gygdModel.MonthQuantity;
|
||||||
|
model.TotalQuantity = gygdModel.TotalQuantity;
|
||||||
|
model.MonthRate = gygdModel.MonthRate + "%";
|
||||||
|
model.TotalRate = gygdModel.TotalRate + "%";
|
||||||
|
#region 小计和合计
|
||||||
|
//小计
|
||||||
|
num0 += gygdModel.MonthQuantity;
|
||||||
|
num1 += gygdModel.TotalQuantity;
|
||||||
|
|
||||||
|
//合计
|
||||||
|
totalNum0 += gygdModel.MonthQuantity;
|
||||||
|
totalNum1 += gygdModel.TotalQuantity;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
model.MonthQuantity = 0;
|
||||||
|
model.TotalQuantity = 0;
|
||||||
|
model.MonthRate = "0%";
|
||||||
|
model.TotalRate = "0%";
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//非标
|
||||||
|
gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "非标");
|
||||||
|
model = new Model.ProcessControl_NondestructiveTest_New();
|
||||||
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
model.CreateMan = item.UnitName;//用作存储施工单位名称
|
||||||
|
model.ProfessionalName = "非标";
|
||||||
|
|
||||||
|
if (gygdModel != null)
|
||||||
|
{
|
||||||
|
model.MonthQuantity = gygdModel.MonthQuantity;
|
||||||
|
model.TotalQuantity = gygdModel.TotalQuantity;
|
||||||
|
model.MonthRate = gygdModel.MonthRate + "%";
|
||||||
|
model.TotalRate = gygdModel.TotalRate + "%";
|
||||||
|
#region 小计和合计
|
||||||
|
//小计
|
||||||
|
num0 += gygdModel.MonthQuantity;
|
||||||
|
num1 += gygdModel.TotalQuantity;
|
||||||
|
|
||||||
|
//合计
|
||||||
|
totalNum0 += gygdModel.MonthQuantity;
|
||||||
|
totalNum1 += gygdModel.TotalQuantity;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
model.MonthQuantity = 0;
|
||||||
|
model.TotalQuantity = 0;
|
||||||
|
model.MonthRate = "0%";
|
||||||
|
model.TotalRate = "0%";
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
//小计
|
||||||
|
model = new Model.ProcessControl_NondestructiveTest_New();
|
||||||
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
model.CreateMan = item.UnitName;//用作存储施工单位名称
|
||||||
|
model.ProfessionalName = "小计";
|
||||||
|
model.MonthQuantity = num0;
|
||||||
|
model.TotalQuantity = num1;
|
||||||
|
model.MonthRate = "";
|
||||||
|
model.TotalRate = "";
|
||||||
|
NondestructiveTestlist.Add(model);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (NondestructiveTestlist.Count>0)
|
||||||
|
{
|
||||||
|
isYm = true;
|
||||||
|
whileIndex += 1;
|
||||||
|
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||||
|
//跳过页眉的表头
|
||||||
|
while (isYm)
|
||||||
|
{
|
||||||
|
if (table.Range.Text.Substring(0, 2) != "序号")
|
||||||
|
{
|
||||||
|
whileIndex += 1;
|
||||||
|
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isYm = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
numberIndex = 1;
|
||||||
|
//需要插入的table
|
||||||
|
var Unitname = "";
|
||||||
|
foreach (var item in NondestructiveTestlist)
|
||||||
|
{
|
||||||
|
|
||||||
|
//创建行
|
||||||
|
Row row = new Row(doc);
|
||||||
|
row.Cells.Add(CreateCell((numberIndex).ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width));
|
||||||
|
|
||||||
|
//如果是第一列,或者
|
||||||
|
if (numberIndex==1 || Unitname!= item.CreateMan)
|
||||||
|
{
|
||||||
|
row.Cells.Add(CreateCell(item.CreateMan, doc, table.Rows[0].Cells[1].CellFormat.Width,"0"));
|
||||||
|
Unitname = item.CreateMan;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
row.Cells.Add(CreateCell(item.CreateMan, doc, table.Rows[0].Cells[1].CellFormat.Width, "1"));
|
||||||
|
Unitname = item.CreateMan;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
row.Cells.Add(CreateCell(item.ProfessionalName.ToString(), doc, table.Rows[0].Cells[2].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.MonthQuantity.ToString(), doc, table.Rows[0].Cells[3].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.TotalQuantity.ToString(), doc, table.Rows[0].Cells[4].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.MonthRate.ToString(), doc, table.Rows[0].Cells[5].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.TotalRate.ToString(), doc, table.Rows[0].Cells[6].CellFormat.Width));
|
||||||
|
|
||||||
|
table.Rows.Insert(numberIndex, row);
|
||||||
|
numberIndex += 1;
|
||||||
|
}
|
||||||
|
//自动设置表格样式
|
||||||
|
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||||
|
//创建合计
|
||||||
|
//创建行
|
||||||
|
Row rowhj = new Row(doc);
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[2].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell(totalNum0.ToString(), doc, table.Rows[0].Cells[3].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell(totalNum1.ToString(), doc, table.Rows[0].Cells[4].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[5].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[6].CellFormat.Width));
|
||||||
|
|
||||||
|
table.Rows.Insert(numberIndex, rowhj);
|
||||||
|
|
||||||
|
//自动设置表格样式
|
||||||
|
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 8.设备材料报验管理情况
|
||||||
|
var sbclbyList = ContuructionAllList.Where(x => x.ReType == "6").ToList();
|
||||||
|
if (pqrList.Count > 0)
|
||||||
|
{
|
||||||
|
isYm = true;
|
||||||
|
whileIndex += 1;
|
||||||
|
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||||
|
//跳过页眉的表头
|
||||||
|
while (isYm)
|
||||||
|
{
|
||||||
|
//获取到第一列是序号的列
|
||||||
|
if (table.Range.Text.Substring(0, 2) != "序号")
|
||||||
|
{
|
||||||
|
whileIndex += 1;
|
||||||
|
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isYm = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
numberIndex = 1;
|
||||||
|
int? num1 = 0, num2 = 0;
|
||||||
|
foreach (var item in sbclbyList)
|
||||||
|
{
|
||||||
|
//创建行
|
||||||
|
Row row = new Row(doc);
|
||||||
|
row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.QuaRate.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width));
|
||||||
|
row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width));
|
||||||
|
table.Rows.Insert(numberIndex, row);
|
||||||
|
num1 += item.Quantity1;
|
||||||
|
num2 += item.Quantity2;
|
||||||
|
numberIndex += 1;
|
||||||
|
}
|
||||||
|
//自动设置表格样式
|
||||||
|
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||||
|
//创建合计
|
||||||
|
//创建行
|
||||||
|
Row rowhj = new Row(doc);
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width));
|
||||||
|
rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width));
|
||||||
|
table.Rows.Insert(numberIndex, rowhj);
|
||||||
|
|
||||||
|
//自动设置表格样式
|
||||||
|
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
doc.Save(newUrl);
|
doc.Save(newUrl);
|
||||||
string fileName = Path.GetFileName(newUrl);
|
string fileName = Path.GetFileName(newUrl);
|
||||||
FileInfo info = new FileInfo(newUrl);
|
FileInfo info = new FileInfo(newUrl);
|
||||||
|
|
|
@ -837,20 +837,13 @@
|
||||||
</Rows>
|
</Rows>
|
||||||
</f:Form>
|
</f:Form>
|
||||||
</Items>
|
</Items>
|
||||||
<Toolbars>
|
|
||||||
<f:Toolbar ID="Toolbar4" Position="bottom" ToolbarAlign="left" runat="server" >
|
|
||||||
<Items>
|
<Items>
|
||||||
<f:Button ID="Button5" Icon="Add" runat="server" ToolTip="增加" Text="增加" OnClick="btnAddGrid11_Click">
|
<f:Form ID="Form19" runat="server" ShowBorder="true" BodyPadding="5px" ShowHeader="false" Title="表单">
|
||||||
</f:Button>
|
|
||||||
</Items>
|
|
||||||
</f:Toolbar>
|
|
||||||
</Toolbars>
|
|
||||||
<Items>
|
|
||||||
<f:Form ID="Form19" runat="server" ShowBorder="true" BodyPadding="5px" ShowHeader="false" Title="表单" Hidden="true">
|
|
||||||
<Rows>
|
<Rows>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextArea runat="server" ID="txtAre8" EmptyText="请填写内容" Text="本月报验的主要材料钢筋、水泥、预应力xxx等,其中现场抽检xx批,合格xx批"
|
<f:TextArea runat="server" ID="txtAre8" EmptyText="请填写备注" Text=""
|
||||||
AutoGrowHeight="true" AutoGrowHeightMin="100" AutoGrowHeightMax="600">
|
AutoGrowHeight="true" AutoGrowHeightMin="100" AutoGrowHeightMax="600">
|
||||||
</f:TextArea>
|
</f:TextArea>
|
||||||
</Items>
|
</Items>
|
||||||
|
@ -907,6 +900,19 @@
|
||||||
</Columns>
|
</Columns>
|
||||||
</f:Grid>
|
</f:Grid>
|
||||||
</Items>
|
</Items>
|
||||||
|
|
||||||
|
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="Form26" runat="server" ShowBorder="true" BodyPadding="5px" ShowHeader="false" Title="表单">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Label runat="server" Text="备注:质量巡检指工程师现场质量巡检情况。"></f:Label>
|
||||||
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
</Rows>
|
</Rows>
|
||||||
</f:Form>
|
</f:Form>
|
||||||
|
|
|
@ -187,11 +187,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
|
txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
|
||||||
txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
|
txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
|
||||||
txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
|
txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
|
||||||
if (txtAre8.Text != "本月报验的主要材料钢筋、水泥、预应力xxx等,其中现场抽检xx批,合格xx批")
|
|
||||||
{
|
|
||||||
Form19.Hidden = false;
|
|
||||||
Toolbar4.Hidden = true;
|
|
||||||
}
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
//加载所有grid
|
//加载所有grid
|
||||||
|
@ -781,7 +777,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int i = 1;
|
int i = 1;
|
||||||
var cNProfessionals = from x in Funs.DB.Base_CNProfessional orderby x.SortIndex select x;
|
var cNProfessionals = from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId orderby x.SortIndex select x;
|
||||||
foreach (var item in cNProfessionals)
|
foreach (var item in cNProfessionals)
|
||||||
{
|
{
|
||||||
//专业下所有集合
|
//专业下所有集合
|
||||||
|
@ -1082,9 +1078,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
var query = from c in db.ProcessControl_NondestructiveTest_New
|
var query = from c in db.ProcessControl_NondestructiveTest_New
|
||||||
|
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in db.Base_Unit on c.UnitId equals u.UnitId
|
||||||
|
|
||||||
|
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
|
||||||
|
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
&& c.CreateDate >= Convert.ToDateTime(startDate) && c.CreateDate <= Convert.ToDateTime(endDate)
|
&& c.CreateDate >= Convert.ToDateTime(startDate) && c.CreateDate <= Convert.ToDateTime(endDate)
|
||||||
|
@ -1104,7 +1100,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
c.MonthRate,
|
c.MonthRate,
|
||||||
c.TotalRate
|
c.TotalRate
|
||||||
};
|
};
|
||||||
|
if (query.ToList().Count>0)
|
||||||
|
{
|
||||||
//加载工艺管道
|
//加载工艺管道
|
||||||
var gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "工艺管道");
|
var gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "工艺管道");
|
||||||
var model = new Model.ProcessControl_NondestructiveTest_New();
|
var model = new Model.ProcessControl_NondestructiveTest_New();
|
||||||
|
@ -1221,6 +1218,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
model.TotalRate = "";
|
model.TotalRate = "";
|
||||||
list.Add(model);
|
list.Add(model);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Grid10.DataSource = list;
|
Grid10.DataSource = list;
|
||||||
Grid10.DataBind();
|
Grid10.DataBind();
|
||||||
|
|
|
@ -752,24 +752,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox TextBox6;
|
protected global::FineUIPro.TextBox TextBox6;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Toolbar4 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Toolbar Toolbar4;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Button5 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Button Button5;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Form19 控件。
|
/// Form19 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -833,6 +815,15 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox TextBox11;
|
protected global::FineUIPro.TextBox TextBox11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Form26 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form Form26;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Panel22 控件。
|
/// Panel22 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
PK
|
PK
|
||||||
|