代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using MiniExcelLibs;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -8,10 +9,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using MiniExcelLibs;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
|
||||
namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
@@ -82,9 +80,9 @@ namespace FineUIPro.Web.CLGL
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
}
|
||||
|
||||
if (!string .IsNullOrEmpty(tvControlItem.SelectedNodeID))
|
||||
if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID))
|
||||
{
|
||||
table.UnitWorkId=tvControlItem.SelectedNodeID;
|
||||
table.UnitWorkId = tvControlItem.SelectedNodeID;
|
||||
}
|
||||
var tb = BLL.TwOutputmasterService.GetListData(table, Grid1);
|
||||
Grid1.RecordCount = TwOutputmasterService.Count;
|
||||
@@ -105,14 +103,14 @@ namespace FineUIPro.Web.CLGL
|
||||
for (int i = 0; i < Grid2.Rows.Count; i++)
|
||||
{
|
||||
var model = Grid2.Rows[i].DataItem as Model.Tw_InOutDetailOutput;
|
||||
if (model.ActNum> model.PlanNum)
|
||||
if (model.ActNum > model.PlanNum)
|
||||
{
|
||||
Grid2.Rows[i].RowCssClass = "yellow";
|
||||
}
|
||||
else if (model.ActNum < model.PlanNum)
|
||||
{
|
||||
Grid2.Rows[i].RowCssClass = "red";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -183,11 +181,11 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
foreach (var q in unitWork1)
|
||||
{
|
||||
|
||||
|
||||
var unitNamesUnitIds = BLL.UnitService.getUnitNamesUnitIds(q.UnitId);
|
||||
TreeNode tn1 = new TreeNode();
|
||||
tn1.NodeID = q.UnitWorkId;
|
||||
tn1.Text = q.UnitWorkName ;
|
||||
tn1.Text = q.UnitWorkName;
|
||||
tn1.ToolTip = "施工单位:" + unitNamesUnitIds;
|
||||
tn1.EnableClickEvent = true;
|
||||
rootNode1.Nodes.Add(tn1);
|
||||
@@ -197,11 +195,11 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
foreach (var q in unitWork2)
|
||||
{
|
||||
|
||||
|
||||
var unitNamesUnitIds = BLL.UnitService.getUnitNamesUnitIds(q.UnitId);
|
||||
TreeNode tn2 = new TreeNode();
|
||||
tn2.NodeID = q.UnitWorkId;
|
||||
tn2.Text = q.UnitWorkName ;
|
||||
tn2.Text = q.UnitWorkName;
|
||||
tn2.ToolTip = "施工单位:" + unitNamesUnitIds;
|
||||
tn2.EnableClickEvent = true;
|
||||
rootNode2.Nodes.Add(tn2);
|
||||
@@ -226,7 +224,7 @@ namespace FineUIPro.Web.CLGL
|
||||
/// <param name="e"></param>
|
||||
protected void btnTreeFind_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -237,7 +235,7 @@ namespace FineUIPro.Web.CLGL
|
||||
if (e.RowIndex >= 0)
|
||||
{
|
||||
string ID = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||
BindDetailGrid(ID);
|
||||
BindDetailGrid(ID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,8 +317,8 @@ namespace FineUIPro.Web.CLGL
|
||||
return;
|
||||
}
|
||||
|
||||
string message= TwInOutplanmasterService.GenPlanMasterByOutputMasterId(Grid1.SelectedRowID, TwConst.TypeInt.退料入库);
|
||||
if (string .IsNullOrEmpty(message))
|
||||
string message = TwInOutplanmasterService.GenPlanMasterByOutputMasterId(Grid1.SelectedRowID, TwConst.TypeInt.退料入库);
|
||||
if (string.IsNullOrEmpty(message))
|
||||
{
|
||||
ShowNotify("生成通知单成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
@@ -537,11 +535,11 @@ namespace FineUIPro.Web.CLGL
|
||||
if (buttonList.Count > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
{
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
// this.btnPrint.Hidden = false;
|
||||
{
|
||||
// this.btnPrint.Hidden = false;
|
||||
//this.btnMenuInOutPlanMasterEdit.Hidden = false;
|
||||
this.btnGenInPlanMaster.Hidden = false;
|
||||
this.btnGenOutPlanMaster.Hidden = false;
|
||||
@@ -578,7 +576,7 @@ namespace FineUIPro.Web.CLGL
|
||||
List<Model.Tw_PrintDetail> tw_PrintDetails = new List<Model.Tw_PrintDetail>();
|
||||
Model.Tw_PrintMaster printMaster = new Model.Tw_PrintMaster
|
||||
{
|
||||
|
||||
|
||||
ReqUnitName = result.ReqUnitName,
|
||||
CusBillCode = result.CusBillCode,
|
||||
CreateDate = result.CreateDate.Value.ToString("yyyy-MM-dd"),
|
||||
@@ -679,7 +677,7 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
["出库明细"] = TwOutputdetailService.GetPrintListByOutputMasterIds(Grid1.SelectedRowIDArray.ToList()),
|
||||
["管线材料明细"] = TwInoutplandetailRelationService.GetPrintListByOutputMasterIds(Grid1.SelectedRowIDArray.ToList())
|
||||
};
|
||||
};
|
||||
string path = Funs.RootPath + @"File\Excel\Temp\OutputDetail.xlsx";
|
||||
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user