材料管理修改

This commit is contained in:
2024-11-07 16:22:03 +08:00
parent 693c914869
commit e5c44d6dc2
25 changed files with 434 additions and 111 deletions
@@ -242,7 +242,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// </summary>
private void BindGrid()
{
string strSql = @" SELECT distinct com.PipelineComponentId,com.PipelineComponentCode,com.BoxNumber,
string strSql = @" SELECT distinct com.PipelineComponentId,com.PipelineComponentCode,com.BoxNumber,com.Remark,
com.PipelineId, punit.UnitName AS PreUnit,aunit.UnitName AS AssembleUnit,com.IsPrint,
com.QRCode,com.State,com.ProductionState,pipe.PlanStartDate,pipe.FlowingSection,com.DrawingName,com.ReceiveDate,
person.PersonName
@@ -642,6 +642,30 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
}
protected void btnRectification_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIDArray.Length > 0)
{
foreach (var item in Grid1.SelectedRowIDArray)
{
var model = HJGL_PipelineComponentService.GetPipelineComponentById(item);
if (model.State == HJGL_PipelineComponentService.StatePenRec)
{
model.State = HJGL_PipelineComponentService.StateRec;
HJGL_PipelineComponentService.UpdatePipelineComponent(model);
}
}
ShowNotify("操作成功", MessageBoxIcon.Success);
BindGrid();
}
else
{
ShowNotify("请选择需要整改的数据", MessageBoxIcon.Warning);
}
}
protected void btnOut_Click(object sender, EventArgs e)
{