Browse Source

五楼回库如果下任务不成功,删除之前生成的库存

master
lenovo 1 month ago
parent
commit
16ac156d98
  1. 4
      SiaSun.LMS.WPFClient/App.config
  2. 4
      SiaSun.LMS.WPFClient/MANAGE/MANAGE_BACK.xaml.cs

4
SiaSun.LMS.WPFClient/App.config

@ -5,8 +5,8 @@
<!--连接数据库类型-->
<add key="Provider" value="sqlserver"/>
<!--WCF服务地址-->
<add key="SiaSunSrvUrl" value="http://localhost:8002/Service"/>
<!--<add key="SiaSunSrvUrl" value="http://192.168.0.202:8002/Service" />-->
<!--<add key="SiaSunSrvUrl" value="http://localhost:8002/Service"/>-->
<add key="SiaSunSrvUrl" value="http://192.168.0.202:8002/Service" />
<!--<add key="SiaSunSrvUrl" value="http://10.94.9.212:8002/Service" />-->
<!--启用声音报警提示-->
<add key="VoiceAlarm" value="0"/>

4
SiaSun.LMS.WPFClient/MANAGE/MANAGE_BACK.xaml.cs

@ -25,6 +25,7 @@ namespace SiaSun.LMS.WPFClient.MANAGE
{
bool bResult = true;
string sResult = string.Empty;
string sOutResult = string.Empty;
if (string.IsNullOrEmpty(this.tbStock_barcode.Text))
{
MessageBox.Show("托盘条码为空");
@ -150,8 +151,11 @@ namespace SiaSun.LMS.WPFClient.MANAGE
}
else
{
MainApp._I_BaseService.ExecuteNonQuery_ReturnVoid($"delete from storage_list where goods_property1 = '{sGoodsBarcode}'");
MainApp._I_BaseService.ExecuteNonQuery_ReturnVoid($"delete from storage_main where stock_barcode = '{this.tbStock_barcode.Text}'");
MessageBox.Show(sResult);
return;
}
}

Loading…
Cancel
Save