feat(clgl): 支持历史出库数据导入
历史出库数据需要批量补录并同步形成出库申请单、出库单和库存扣减。 新增出库申请历史导入入口,按仓库、材料编码、炉号、批号、数量、 出库时间和领用单位校验模板数据,并按材料单位拆分管段/管件单据。
This commit is contained in:
@@ -413,6 +413,26 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnHistoryImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.Tw_OutPlanMasterMenuId, Const.BtnAdd))
|
||||
{
|
||||
if (string.IsNullOrEmpty(tvControlItem.SelectedNodeID))
|
||||
{
|
||||
Alert.ShowInTop("请选择单位工程!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("OutPlanMasterHistoryImport.aspx?UnitWorkId={0}", tvControlItem.SelectedNodeID)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnMenuInOutPlanMasterDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.Tw_OutPlanMasterMenuId, Const.BtnDelete))
|
||||
@@ -680,6 +700,7 @@ namespace FineUIPro.Web.CLGL
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
this.btnHistoryImport.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
@@ -703,4 +724,4 @@ namespace FineUIPro.Web.CLGL
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user