Browse Source

修改入库逻辑,远伸货位是物料,申请空托盘垛入库允许放在近端货位,修改出库倒库bug

master
lenovo 1 month ago
parent
commit
148f50e405
  1. 1
      SiaSun.LMS.Implement/Control/ControlBase.cs
  2. 33
      SiaSun.LMS.Implement/Manage/ManageOut.cs
  3. 23
      SiaSun.LMS.Implement/S_CellService.cs
  4. 2
      SiaSun.LMS.WCFHost/HouseMap.config
  5. 2
      SiaSun.LMS.WCFHost/SiaSun.LMS.WCFHost.csproj
  6. 1
      SiaSun.LMS.WPFClient/@Files/Default/FieldDescription.xml
  7. 2
      SiaSun.LMS.WPFClient/SiaSun.LMS.WPFClient.csproj

1
SiaSun.LMS.Implement/Control/ControlBase.cs

@ -98,7 +98,6 @@ namespace SiaSun.LMS.Implement
bool bResult = true;
sResult = string.Empty;
string mesout = string.Empty;
IList<SiaSun.LMS.Model.IO_CONTROL_APPLY> lsIO_CONTROL_APPLY = this._P_IO_CONTROL_APPLY.GetList(0);
foreach (SiaSun.LMS.Model.IO_CONTROL_APPLY mIO_CONTROL_APPLY in lsIO_CONTROL_APPLY)

33
SiaSun.LMS.Implement/Manage/ManageOut.cs

@ -1326,18 +1326,41 @@ namespace SiaSun.LMS.Implement
ORDER BY cell_y ASC, cell_x,cell_z", mWH_CELL.DEVICE_CODE, CellHeight));
if (ManageMoveCellNormal.Rows.Count == 0)
{
ManageMoveCellDouble = this.GetList(string.Format(@"select * from V_WH_CELL_DOUBLE_TO_NORMAL
where cell_model ='{1}' and cell_status = 'Nohave' and device_code = '{0}' and run_status = 'Enable' and
cell_status_near = 'Nohave' and run_status_near = 'Enable'
ORDER BY cell_y ASC, cell_x,cell_z", mWH_CELL.DEVICE_CODE, CellHeight));
rangeAry = new int[ManageMoveCellDouble.Rows.Count];
for (int i = 0; i < ManageMoveCellDouble.Rows.Count; i++)
if (ManageMoveCellDouble.Rows.Count ==0)
{
range = Math.Abs(mWH_CELL.CELL_X - Convert.ToInt32(ManageMoveCellDouble.Rows[i]["CELL_X"])) + Math.Abs(mWH_CELL.CELL_Y - Convert.ToInt32(ManageMoveCellDouble.Rows[i]["CELL_Y"]));
rangeAry[i] = range;
ManageMoveCellNormal = this.GetList(string.Format(@"select *from V_WH_CELL_DOUBLE_TO_NORMAL
where cell_model ='{1}' and cell_status ='Full' and run_status in ('Enable','Disable')
and device_code = '{0}' and cell_status_near = 'Nohave' and run_status_near = 'Enable'
ORDER BY cell_y ASC, cell_x,cell_z", mWH_CELL.DEVICE_CODE, CellHeight));
if (ManageMoveCellNormal.Rows.Count > 0)
{
rangeAry = new int[ManageMoveCellNormal.Rows.Count];
for (int i = 0; i < ManageMoveCellNormal.Rows.Count; i++)
{
range = Math.Abs(mWH_CELL.CELL_X - Convert.ToInt32(ManageMoveCellNormal.Rows[i]["CELL_X_NEAR"])) + Math.Abs(mWH_CELL.CELL_Y - Convert.ToInt32(ManageMoveCellNormal.Rows[i]["CELL_Y_NEAR"]));
rangeAry[i] = range;
}
rangemin = SiaSun.LMS.Common.StringUtil.CheckMin(rangeAry);
}
}
rangemin = SiaSun.LMS.Common.StringUtil.CheckMin(rangeAry);
else
{
rangeAry = new int[ManageMoveCellDouble.Rows.Count];
for (int i = 0; i < ManageMoveCellDouble.Rows.Count; i++)
{
range = Math.Abs(mWH_CELL.CELL_X - Convert.ToInt32(ManageMoveCellDouble.Rows[i]["CELL_X"])) + Math.Abs(mWH_CELL.CELL_Y - Convert.ToInt32(ManageMoveCellDouble.Rows[i]["CELL_Y"]));
rangeAry[i] = range;
}
rangemin = SiaSun.LMS.Common.StringUtil.CheckMin(rangeAry);
}
}
else
{

23
SiaSun.LMS.Implement/S_CellService.cs

@ -877,10 +877,25 @@ namespace SiaSun.LMS.Implement
dtCELL = this.GetList(strSQL);
if (dtCELL.Rows.Count == 0)
{
bResult = false;
sResult = "当前双申巷道空货位货位不足,请查看!";
END_CELL_ID = 0;
return bResult;
strSQL = string.Format(@"SELECT top 1 * FROM V_WH_CELL_DOUBLE_TO_NORMAL WHERE RUN_STATUS = 'Enable' AND CELL_STATUS = 'Full'
AND RUN_STATUS_NEAR = 'Enable' AND CELL_STATUS_NEAR ='Nohave' AND DEVICE_CODE = {0}
ORDER BY {1}CELL_Y,CELL_X", DEVICE_CODE, sOrderSQL);
dtCELL = this.GetList(strSQL);
if (dtCELL.Rows.Count == 0)
{
bResult = false;
sResult = "当前双申巷道空货位货位不足,请查看!";
END_CELL_ID = 0;
return bResult;
}
else
{
END_CELL_ID = Convert.ToInt32(dtCELL.Rows[0]["CELL_ID_NEAR"].ToString());
SiaSun.LMS.Model.WH_CELL mEND_WH_CELL = this._P_WH_CELL.GetModel(END_CELL_ID);
mEND_WH_CELL.RUN_STATUS = Enum.RUN_STATUS.Selected.ToString();
this._P_WH_CELL.Update(mEND_WH_CELL);
return true;
}
}
else
{

2
SiaSun.LMS.WCFHost/HouseMap.config

@ -8,7 +8,7 @@
<database>
<provider name="sqlServer2.0"/>
<!--<dataSource name="SqlMap" connectionString="server=192.168.0.203;database=WMS_YCHYRAW;uid=sa;pwd=`123qwe"/>-->
<dataSource name="SqlMap" connectionString="server=.;database=WMS_YCHYRAW;uid=sa;pwd=`123qwe"/>
<dataSource name="SqlMap" connectionString="server=.;database=WMS_YCHYRAW;uid=sa;pwd=1"/>
<!--<provider name="oracleClient1.0"/>-->
<!--<dataSource name="SqlMap" connectionString=" data source= (DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = YUBINBIN_VM_XP)(PORT = 1521))(CONNECT_DATA=(SERVER = YUBINBIN_VM_XP)(SERVICE_NAME = orcl)));User ID=test;Password=1;Unicode=true;Pooling=true;"/>-->

2
SiaSun.LMS.WCFHost/SiaSun.LMS.WCFHost.csproj

@ -65,7 +65,7 @@
<TargetZone>LocalIntranet</TargetZone>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
<GenerateManifests>false</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>

1
SiaSun.LMS.WPFClient/@Files/Default/FieldDescription.xml

@ -249,6 +249,7 @@
<Field Column="MANAGE_ERROR_TEXT" DbType="String" Header="错误信息" ControlType="TextBox" DefaultValue="" ReadOnly="1" Validation="" DataBind="" Remark="" Order="8" AllowQuery="0" QueryOperation="" />
<Field Column="CONTROL_APPLY_PARA02" DbType="String" Header="二维码" ControlType="TextBox" DefaultValue="" ReadOnly="0" Validation="" DataBind="" Remark="" Order="7" AllowQuery="0" QueryOperation="" />
<Field Column="CONTROL_APPLY_PARA03" DbType="String" Header="重量" ControlType="TextBox" DefaultValue="" ReadOnly="1" Validation="" DataBind="" Remark="" Order="7" AllowQuery="0" QueryOperation="" />
<Field Column="CONTROL_ERROR_TEXT" DbType="String" Header="错误信息1" ControlType="TextBox" DefaultValue="" ReadOnly="0" Validation="" DataBind="" Remark="" Order="1" AllowQuery="0" QueryOperation="" />
</Table>
<Table Name="IO_CONTROL_APPLY_HIS">
<Field Column="CONTROL_APPLY_ID" DbType="Int32" Header="申请指令编号" ControlType="TextBox" DefaultValue="" ReadOnly="0" Validation="" DataBind="" Remark="" Order="1" AllowQuery="0" QueryOperation="" />

2
SiaSun.LMS.WPFClient/SiaSun.LMS.WPFClient.csproj

@ -77,7 +77,7 @@
<ManifestKeyFile>SiaSun.LMS.WPFClient_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
<GenerateManifests>false</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>

Loading…
Cancel
Save