Switch warehouse matching to use IDs
This commit is contained in:
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
if (drpWarehouse.SelectedValue != Const._Null)
|
||||
{
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
table.WarehouseId = drpWarehouse.SelectedValue;
|
||||
}
|
||||
var tb = BLL.TwInOutplanmasterService.GetListData(table, Grid1);
|
||||
Grid1.RecordCount = TwInOutplanmasterService.Count;
|
||||
@@ -542,4 +542,4 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
if (drpWarehouse.SelectedValue != Const._Null)
|
||||
{
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
table.WarehouseId = drpWarehouse.SelectedValue;
|
||||
}
|
||||
var tb = BLL.TwInputmasterService.GetListData(table, Grid1);
|
||||
Grid1.RecordCount = TwInputmasterService.Count;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace FineUIPro.Web.CLGL
|
||||
table.PipeLineMatCode = txtMatCode.Text.Trim();
|
||||
if (drpWarehouse.SelectedValue != Const._Null)
|
||||
{
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
table.WarehouseId = drpWarehouse.SelectedValue;
|
||||
}
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
var tb = BLL.TwMaterialstockService.GetListData(table, Grid1);
|
||||
@@ -230,4 +230,4 @@ namespace FineUIPro.Web.CLGL
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
if (drpWarehouse.SelectedValue != Const._Null)
|
||||
{
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
table.WarehouseId = drpWarehouse.SelectedValue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID))
|
||||
{
|
||||
|
||||
@@ -328,7 +328,7 @@ namespace FineUIPro.Web.CLGL
|
||||
private List<Tw_MaterialStockOutput> GetSelectableStockList(Tw_InOutPlanMaster master)
|
||||
{
|
||||
Tw_MaterialStockOutput stockQuery = new Tw_MaterialStockOutput();
|
||||
stockQuery.WarehouseCode = master.WarehouseCode;
|
||||
stockQuery.WarehouseId = master.WarehouseId;
|
||||
stockQuery.ProjectId = CurrUser.LoginProjectId;
|
||||
stockQuery.MaterialUnit = GetRequiredMaterialUnit(master.Category);
|
||||
return TwMaterialstockService.GetTw_MaterialStockByModle(stockQuery);
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace FineUIPro.Web.CLGL
|
||||
txtCreateDate.Text = result.CreateDate.Value.ToString("yyyy-MM-dd");
|
||||
drpReqUnit.SelectedValue = result.ReqUnitId;
|
||||
drpTypeInt.SelectedValue = result.TypeInt.ToString();
|
||||
drpWarehouse.SelectedValue = result.WarehouseCode;
|
||||
drpWarehouse.SelectedValue = result.WarehouseId;
|
||||
drpCategory.SelectedValue = result.Category.ToString();
|
||||
txtRemark.Text = result.Remark;
|
||||
txtCusBillCode.Text = result.CusBillCode;
|
||||
@@ -184,7 +184,8 @@ namespace FineUIPro.Web.CLGL
|
||||
Id = Id,
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
CusBillCode = txtCusBillCode.Text,
|
||||
WarehouseCode = drpWarehouse.SelectedValue,
|
||||
WarehouseId = drpWarehouse.SelectedValue,
|
||||
WarehouseCode = drpWarehouse.SelectedText,
|
||||
WeldTaskId = UnitWorkId,
|
||||
Source = 1,
|
||||
CreateDate = DateTime.Now,
|
||||
@@ -202,7 +203,8 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
var model = TwInOutplanmasterService.GetById(Id);
|
||||
model.CusBillCode = txtCusBillCode.Text;
|
||||
model.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
model.WarehouseId = drpWarehouse.SelectedValue;
|
||||
model.WarehouseCode = drpWarehouse.SelectedText;
|
||||
// model.WeldTaskId = UnitWorkId;
|
||||
model.Source = 1;
|
||||
model.CreateDate = DateTime.Now;
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace FineUIPro.Web.CLGL
|
||||
|
||||
Model.Tw_MaterialStockOutput table = new Model.Tw_MaterialStockOutput();
|
||||
table.PipeLineMatCode = txtMatCode.Text.Trim();
|
||||
table.WarehouseCode = inoutplanmaster.WarehouseCode;
|
||||
table.WarehouseId = inoutplanmaster.WarehouseId;
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (inoutplanmaster.Category == (int)TwConst.Category.管段)
|
||||
{
|
||||
@@ -160,4 +160,4 @@ namespace FineUIPro.Web.CLGL
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
if (drpWarehouse.SelectedValue != Const._Null)
|
||||
{
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
table.WarehouseId = drpWarehouse.SelectedValue;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID))
|
||||
@@ -697,4 +697,4 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user