代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
@@ -14,11 +9,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
public string PackagingManageId
|
||||
{
|
||||
get
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["PackagingManageId"];
|
||||
}
|
||||
set
|
||||
set
|
||||
{
|
||||
ViewState["PackagingManageId"] = value;
|
||||
}
|
||||
@@ -34,7 +29,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
drpTypeInt.DataValueField = "Value";
|
||||
drpTypeInt.DataSource = HJGLPackagingmanageService.TypeIntMap;
|
||||
drpTypeInt.DataBind();
|
||||
|
||||
|
||||
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
if (!string.IsNullOrEmpty(PackagingManageId))
|
||||
@@ -43,16 +38,16 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
drpTypeInt.Enabled = false;
|
||||
txtPackagingCode.Text = model.PackagingCode;
|
||||
dropPipelineComponentCode.Values = model.PipelineComponentId?.Split(',');
|
||||
txtStackingPosition.Text = model.StackingPosition;
|
||||
txtStackingPosition.Text = model.StackingPosition;
|
||||
drpTrainNumber.SelectedValue = model.TrainNumberId;
|
||||
drpTypeInt.SelectedValue = model.TypeInt.ToString();
|
||||
if (model.State== HJGLPackagingmanageService.state_0)
|
||||
if (model.State == HJGLPackagingmanageService.state_0)
|
||||
{
|
||||
btnSave.Hidden = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
drpTypeInt.Enabled = true;
|
||||
btnSave.Hidden = false;
|
||||
txtPackagingCode.Text = HJGLPackagingmanageService.GetNewPackagingCode(this.CurrUser.LoginProjectId);
|
||||
@@ -66,17 +61,17 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
Grid1.DataSource = HJGL_PipelineComponentService.GetAcceptedPipelineComponent(CurrUser.LoginProjectId,
|
||||
txtpipelineCode.Text.Trim(), txtpipelineComponentCode.Text.Trim(), txtflowingSection.Text.Trim());
|
||||
Grid1 .DataBind();
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
private void BindGrid2(string PackagingManageId)
|
||||
{
|
||||
{
|
||||
Grid2.DataSource = HJGLPackagingmanagedetailService.GetPackagingData(PackagingManageId);
|
||||
Grid2.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
Save();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
@@ -105,7 +100,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
}
|
||||
BLL.HJGLPackagingmanageService.AddHJGL_PackagingManage(table);
|
||||
|
||||
PackagingManageId= table.PackagingManageId;
|
||||
PackagingManageId = table.PackagingManageId;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -120,11 +115,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
//table.ContactPhone =txtContactPhone.Text;
|
||||
table.TrainNumberId = drpTrainNumber.SelectedValue;
|
||||
table.TypeInt = int.Parse(drpTypeInt.SelectedValue);
|
||||
if (drpTypeInt.SelectedValue ==((int)HJGLPackagingmanageService.TypeInt.预制组件).ToString())
|
||||
if (drpTypeInt.SelectedValue == ((int)HJGLPackagingmanageService.TypeInt.预制组件).ToString())
|
||||
{
|
||||
table.PipelineComponentId = string.Join(",", dropPipelineComponentCode.Values);
|
||||
|
||||
var newDetailList= new List<Model.HJGL_PackagingManageDetail>();
|
||||
var newDetailList = new List<Model.HJGL_PackagingManageDetail>();
|
||||
foreach (var item in dropPipelineComponentCode.Values)
|
||||
{
|
||||
var ComponentModel = BLL.HJGL_PipelineComponentService.GetPipelineComponentById(item);
|
||||
@@ -135,11 +130,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
Id = SQLHelper.GetNewID(),
|
||||
PackagingManageId = this.PackagingManageId,
|
||||
PipelineId = ComponentModel.PipelineId,
|
||||
PipelineComponentId = item,
|
||||
PipelineComponentId = item,
|
||||
CreateTime = DateTime.Now,
|
||||
CreateUser = this.CurrUser.PersonId,
|
||||
};
|
||||
newDetailList.Add(model);
|
||||
newDetailList.Add(model);
|
||||
}
|
||||
}
|
||||
HJGLPackagingmanagedetailService.DeleteByPackagingManageId(this.PackagingManageId);
|
||||
@@ -203,20 +198,20 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
if (drpTypeInt.SelectedValue == ((int)HJGLPackagingmanageService.TypeInt.预制组件).ToString())
|
||||
{
|
||||
dropPipelineComponentCode.Hidden=false;
|
||||
Grid2.Hidden=true;
|
||||
dropPipelineComponentCode.Hidden = false;
|
||||
Grid2.Hidden = true;
|
||||
BindGrid();
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
dropPipelineComponentCode.Hidden = true;
|
||||
Grid2.Hidden = false;
|
||||
btnSelect.Hidden = false;
|
||||
//btnSelectStock.Hidden = true;
|
||||
BindGrid2(this.PackagingManageId);
|
||||
BindGrid2(this.PackagingManageId);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
protected void Grid2_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user