LocationBLL.cs 978 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using WMS.Core._02Entity;
  7. using WMS.Info;
  8. namespace WMS.Core.APPBLL
  9. {
  10. public class LocationBLL : AppCoreBLL
  11. {
  12. public ResInfo ClearLocation(string locationNo)
  13. {
  14. try
  15. {
  16. if (string.IsNullOrWhiteSpace(locationNo))
  17. throw SysExCore.ThrowFailException("位置码不能为空");
  18. using (var ctx = SysDbCore.GetDbCtx())
  19. {
  20. var upd = ctx.Updateable<BASE_POINT>().SetColumns(it => new BASE_POINT()
  21. {
  22. F_status = (int)EPointSatus.Idle,
  23. }).Where(w => w.F_no == locationNo).ExecuteCommand();
  24. }
  25. return SysExCore.GetResSucc();
  26. }
  27. catch (Exception ex)
  28. {
  29. throw ex;
  30. }
  31. }
  32. }
  33. }