代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using BLL;
|
||||
using MiniExcelLibs;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -14,7 +13,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId);
|
||||
// ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId);
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -72,8 +71,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
|
||||
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
|
||||
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
|
||||
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
|
||||
//}
|
||||
if (unitWork1.Count() > 0)
|
||||
{
|
||||
@@ -124,7 +123,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
foreach (var item in p)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = item.WeldingDailyCode+"("+BLL.UnitService.getUnitNamesUnitIds(item.UnitId)+")";
|
||||
newNode.Text = item.WeldingDailyCode + "(" + BLL.UnitService.getUnitNamesUnitIds(item.UnitId) + ")";
|
||||
newNode.NodeID = item.WeldingDailyId;
|
||||
newNode.EnableClickEvent = true;
|
||||
newNode.CommandName = "WeldingDaily";
|
||||
@@ -212,7 +211,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
var SumDia = tb.AsEnumerable().Sum(x => x.Field<decimal>("Size"));
|
||||
var WelderCount = tb.AsEnumerable().Select(x => x.Field<string>("CoverWelderCode")).ToList().Distinct().Count();
|
||||
txtSumSize.Text= SumDia.ToString();
|
||||
txtSumSize.Text = SumDia.ToString();
|
||||
txtTeam.Text = WelderCount.ToString();
|
||||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
@@ -534,7 +533,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
case "UnitWork":
|
||||
value = BLL.WeldingDailyService.GetFileOutValueByUnitWorkId(this.tvControlItem.SelectedNodeID, this.txtMonth.Text.Trim());
|
||||
var unitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
filename = "焊接日报-" + unitWork.UnitWorkName+ this.txtMonth.Text.Trim()+ ".xlsx";
|
||||
filename = "焊接日报-" + unitWork.UnitWorkName + this.txtMonth.Text.Trim() + ".xlsx";
|
||||
break;
|
||||
case "WeldingDaily":
|
||||
value = WeldingDailyService.GetFileOutValueById(this.tvControlItem.SelectedNodeID);
|
||||
@@ -545,10 +544,10 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
}
|
||||
string path = Funs.RootPath + @"File\Excel\Temp\焊接日报.xlsx";
|
||||
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
|
||||
if (value.Count>0)
|
||||
if (value.Count > 0)
|
||||
{
|
||||
MiniExcel.SaveAs(path, value);
|
||||
|
||||
|
||||
FileInfo info = new FileInfo(path);
|
||||
long fileSize = info.Length;
|
||||
System.Web.HttpContext.Current.Response.Clear();
|
||||
@@ -569,13 +568,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
|
||||
protected void btnMenuDeleteDetail_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string .IsNullOrEmpty(Grid1.SelectedRowID))
|
||||
if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
|
||||
{
|
||||
string errlog= BLL.WeldingDailyService.DeleteWeldingDailyItemByweldJointId(Grid1.SelectedRowID);
|
||||
if (string.IsNullOrEmpty(errlog) )
|
||||
string errlog = BLL.WeldingDailyService.DeleteWeldingDailyItemByweldJointId(Grid1.SelectedRowID);
|
||||
if (string.IsNullOrEmpty(errlog))
|
||||
{
|
||||
BindGrid();
|
||||
ShowNotify("删除明细成功",MessageBoxIcon.Success);
|
||||
ShowNotify("删除明细成功", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -583,7 +582,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user