代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
using BLL;
|
||||
using FastReport.Editor;
|
||||
using MiniExcelLibs;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
@@ -15,7 +11,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
|
||||
public partial class WeldMatMatchGet : PageBase
|
||||
{
|
||||
public static List <string> pipelinecode=new List<string>();
|
||||
public static List<string> pipelinecode = new List<string>();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -23,11 +19,11 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
var UnitWorkId = Request.Params["UnitWorkId"];
|
||||
var PipeArea = Request.Params["PipeArea"];
|
||||
// txtProgressBar.Text = "20";
|
||||
// txtProgressBar.Text = "20";
|
||||
GetStockNum(UnitWorkId, PipeArea);
|
||||
}
|
||||
}
|
||||
public void GetStockNum(string UnitWorkId,string PipeArea)
|
||||
public void GetStockNum(string UnitWorkId, string PipeArea)
|
||||
{
|
||||
var pipeline = (from x in Funs.DB.HJGL_Pipeline
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == UnitWorkId && x.PipeArea == PipeArea
|
||||
@@ -52,8 +48,9 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
string path = Funs.RootPath + @"File\Excel\Temp\weldMatchGet.xlsx";
|
||||
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 ,流水段=x.FlowingSection,匹配率="100%",计划安装日期=x.PlanStartDate }).ToList();
|
||||
var b = (from x in Funs.DB.HJGL_Pipeline
|
||||
where pipelinecode.Contains(x.PipelineCode)
|
||||
select new { 管线号 = x.PipelineCode, 流水段 = x.FlowingSection, 匹配率 = "100%", 计划安装日期 = x.PlanStartDate }).ToList();
|
||||
MiniExcel.SaveAs(path, b);
|
||||
|
||||
string fileName = "材料匹配100%管线.xlsx";
|
||||
|
||||
Reference in New Issue
Block a user