fromLoginOut.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using com.hnshituo.core.webapp.vo;
  2. using Common;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12. namespace MeterModuleLibrary
  13. {
  14. public partial class fromLoginOut : Form
  15. {
  16. private MeterWorkMonitorService monitor = new MeterWorkMonitorService(); //设备及远程呼叫监控表
  17. public fromLoginOut()
  18. {
  19. InitializeComponent();
  20. }
  21. private void button2_Click(object sender, EventArgs e)
  22. {
  23. this.Close();
  24. }
  25. private void button1_Click(object sender, EventArgs e)
  26. {
  27. if (textBox1.Text.Trim() == "88888888")
  28. {
  29. if (PbCache.sportInfo!=null && !string.IsNullOrEmpty(PbCache.sportInfo.baseSpotNo))
  30. {
  31. RESTfulResult<string> rms = monitor.doUpdateWf(new MeterWorkMonitor
  32. {
  33. pointNo = PbCache.sportInfo.baseSpotNo,
  34. validWgt = "1",
  35. validCarno = "1",
  36. validTareTime = "1",
  37. validMatTime = "1",
  38. validTimeInterval = "1",
  39. validParkStatus = "1",
  40. validExceedWgt = "1",
  41. validPredictionDiff = "1",
  42. validLianda = "1",
  43. validMatClick = "1",
  44. setCar = "",
  45. rfidCar = "",
  46. photoCar = "",
  47. scanCar = "",
  48. editCar = "",
  49. carErr = "0",
  50. wgtErr = "0",
  51. stopOverTime = "0",
  52. msgInfo = "",
  53. isOverWgt = "",
  54. isHelp = "0",
  55. wgt = 0
  56. });
  57. }
  58. System.Environment.Exit(0);
  59. }
  60. else
  61. {
  62. textBox1.Text = "";
  63. label2.Visible = true;
  64. }
  65. }
  66. }
  67. }