LogicHandler.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using UAS_LabelMachine.Entity;
  6. namespace UAS_LabelMachine.PublicMethod
  7. {
  8. class LogicHandler
  9. {
  10. public static DataHelper dh = SystemInf.dh;
  11. public static void GetDataSQL(string iInoutno, string iText, out string oSQL)
  12. {
  13. oSQL = "";
  14. string[] param = new string[] { iInoutno, iText, oSQL };
  15. dh.CallProcedure("SP_GETDATASQL", ref param);
  16. oSQL = param[2];
  17. }
  18. public static void GetExportDataSQL(string iInoutno,string iCustCode,string iType, string iText, out string oSQL)
  19. {
  20. oSQL = "";
  21. string[] param = new string[] { iInoutno, iCustCode, iType, iText, oSQL };
  22. dh.CallProcedure("sp_getexportDataSql", ref param);
  23. oSQL = param[4];
  24. }
  25. public static void GetSinglePrintSQL( string iText, out string oSQL)
  26. {
  27. oSQL = "";
  28. string[] param = new string[] {iText, oSQL };
  29. dh.CallProcedure("sp_GetSinglePrintSQL", ref param);
  30. oSQL = param[1];
  31. }
  32. }
  33. }