20230221焊接修改
This commit is contained in:
@@ -53,7 +53,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
|
||||
var a = (from x in pipelinecode select new { PipelineCode = x }).ToList();
|
||||
var b=(from x in Funs.DB .HJGL_Pipeline where pipelinecode.Contains(x.PipelineCode)
|
||||
select new {管线号=x.PipelineCode ,匹配率="100%",计划安装日期=x.PlanStartDate }).ToList();
|
||||
select new {管线号=x.PipelineCode ,流水段=x.FlowingSection,匹配率="100%",计划安装日期=x.PlanStartDate }).ToList();
|
||||
MiniExcel.SaveAs(path, b);
|
||||
|
||||
string fileName = "材料匹配100%管线.xlsx";
|
||||
@@ -70,9 +70,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
}
|
||||
void BindGrid()
|
||||
{
|
||||
var a =( from x in pipelinecode select new { PipelineCode = x }).ToList();
|
||||
var a = (from x in pipelinecode select new { PipelineCode = x }).ToList();
|
||||
var b = (from x in Funs.DB.HJGL_Pipeline
|
||||
where pipelinecode.Contains(x.PipelineCode)
|
||||
select new { PipelineCode = x.PipelineCode, FlowingSection = x.FlowingSection, MatchingRate = "100%", PlanStarDate = x.PlanStartDate }).ToList();
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
this.Grid1.DataSource = a;
|
||||
this.Grid1.DataSource = b;
|
||||
this.Grid1.DataBind();
|
||||
Grid1.RecordCount = a.Count();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user