Form1.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Dongke.IBOSS.PRD.Basics.DataAccess;
  10. using Dongke.IBOSS.PRD.Service.SAPHegiiDataService;
  11. namespace SAPTest
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. DataManager.ConnectionString = string.Format(DataManager.ConnectionStringFormat,
  19. "172.18.32.51",
  20. "1521",
  21. "hgmes",
  22. "hgiboss",
  23. "dongke"
  24. );
  25. }
  26. private void button1_Click(object sender, EventArgs e)
  27. {
  28. try
  29. {
  30. //SAPDataLogic.SetFP60_800(DateTime.Now, 1);
  31. // 2021-11-30 批量报损后手动同步报损数据
  32. //int logid = 257089;
  33. //SAPDataLogic.HGSAPDK_SyncSap(DateTime.Now, "50", 0, logid);
  34. SAPDataLogic.SetFP60_240(DateTime.Now, 1);
  35. }
  36. catch (Exception ex)
  37. {
  38. }
  39. }
  40. }
  41. }