2022-11-23 材料导入删除修改

This commit is contained in:
2022-11-23 18:22:46 +08:00
parent 7994db8452
commit 4255cacbe9
4 changed files with 59 additions and 6 deletions
@@ -1,4 +1,5 @@
using BLL;
using FineUIPro.Web.HJGL.WeldingManage;
using System;
using System.Collections.Generic;
using System.Data;
@@ -87,7 +88,7 @@ namespace FineUIPro.Web.HJGL.DataImport
{
foreach (var q in unitWork1)
{
int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId select x).Count();
int a = (from x in PipelineService.hJGL_Pipelines where x.UnitWorkId == q.UnitWorkId select x).Count();
var u = BLL.UnitService.GetUnitByUnitId(q.UnitId);
TreeNode tn1 = new TreeNode();
tn1.NodeID = q.UnitWorkId;
@@ -110,7 +111,7 @@ namespace FineUIPro.Web.HJGL.DataImport
{
foreach (var q in unitWork2)
{
int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId select x).Count();
int a = (from x in PipelineService.hJGL_Pipelines where x.UnitWorkId == q.UnitWorkId select x).Count();
var u = BLL.UnitService.GetUnitByUnitId(q.UnitId);
TreeNode tn2 = new TreeNode();
tn2.NodeID = q.UnitWorkId;
@@ -261,7 +262,7 @@ namespace FineUIPro.Web.HJGL.DataImport
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(pipelineId))
{
strSql += " and pipe.PipelineId=@PipelineId ";
strSql += " and pipe.PipelineId=@PipelineId order by PrefabricatedComponents";
listStr.Add(new SqlParameter("@PipelineId", pipelineId));
}
@@ -430,6 +431,32 @@ namespace FineUIPro.Web.HJGL.DataImport
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
protected void btnDelMatGrid1_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_WeldJointMenuId, Const.BtnDelete))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
return;
}
foreach (string rowID in Grid1.SelectedRowIDArray)
{
BLL.PipelineMatService.DeletePipeLineMat(rowID);
ShowNotify("删除成功!", MessageBoxIcon.Success);
}
//this.BindGrid1(this.Grid1.SelectedRowID);
}
else
{
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
#endregion
#endregion
@@ -860,5 +887,7 @@ namespace FineUIPro.Web.HJGL.DataImport
{
}
#endregion
}
}