锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.5 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using ICSSoft.Frame.Data.DAL;
  6. using ICSSoft.Frame.Data.Entity;
  7. using System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSKODFOLDERBLL
  11. {
  12. public static void Edit(Sys_DataBase dbinfo, ICSKODFOLDER info, string dsconn)
  13. {
  14. ICSKODFOLDERDAL.Edit(dbinfo, info, dsconn);
  15. }
  16. public static KODFolder SelectFolderInfo(string wp, string dsconn)
  17. {
  18. DataTable dt= ICSKODFOLDERDAL.SelectFolderInfo(wp, dsconn);
  19. if (dt.Rows.Count == 0)
  20. {
  21. throw new Exception("可道云api未配置");
  22. }
  23. if (string.IsNullOrEmpty(dt.Rows[0]["ID"].ToString().Trim()))
  24. {
  25. throw new Exception("可道云api,图纸对应文件夹未配置");
  26. }
  27. KODFolder Kod = new KODFolder();
  28. Kod.URL = dt.Rows[0]["DBIpAddress"].ToString();
  29. Kod.NAME = dt.Rows[0]["DBSourceName"].ToString();
  30. Kod.PATH = dt.Rows[0]["DBName"].ToString();
  31. Kod.USER = dt.Rows[0]["DBUser"].ToString();
  32. Kod.PWD = dt.Rows[0]["DBPwd"].ToString();
  33. Kod.General = dt.Rows[0]["General"].ToString();
  34. Kod.OP = dt.Rows[0]["OP"].ToString();
  35. Kod.Cutters = dt.Rows[0]["Cutters"].ToString();
  36. Kod.SOP = dt.Rows[0]["SOP"].ToString();
  37. Kod.SIP = dt.Rows[0]["SIP"].ToString();
  38. return Kod;
  39. }
  40. }
  41. }