frmMultipleSelectWindows.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. namespace LYFZ.Software.MainBusiness.MultipleFileImport
  10. {
  11. public partial class frmMultipleSelectWindows : LYFZ.ComponentLibrary.BaseContentsFormMain
  12. {
  13. public frmMultipleSelectWindows()
  14. {
  15. try
  16. {
  17. this.IsShadow = false;
  18. #region 获取OSS信息;
  19. Model.Model_Config config = new Model.Model_Config();
  20. BLL.BLL_Config BllConfig = new BLL.BLL_Config();
  21. config = BllConfig.GetModelSysConfig();
  22. if (config.IsRemoteCloudClient)
  23. {
  24. frmAliyunOssDetail dlg = new frmAliyunOssDetail();
  25. dlg.ShowDialog();
  26. this.Close();
  27. }
  28. else
  29. {
  30. bool useOss = false;
  31. List<Model.OssBranch> listbranch = null;
  32. if (Network.OssOperation.OssProcess.GetOssBranchList(LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.TcpClient.Client, out listbranch, ref useOss))
  33. {
  34. if (useOss)
  35. {
  36. frmAliyunOssDetail dlg = new frmAliyunOssDetail();
  37. dlg.ShowDialog();
  38. this.Close();
  39. }
  40. else
  41. {
  42. frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
  43. dlgFtp.ShowDialog();
  44. this.Close();
  45. }
  46. }
  47. else
  48. {
  49. frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
  50. dlgFtp.ShowDialog();
  51. this.Close();
  52. }
  53. }
  54. #if IGNORE
  55. bool useOss = false;
  56. List<AliyunOssLibrary.Model.SimplifyBranch> listbranch = null;
  57. if (Network.OssOperation.OssProcess.GetOssBranchList(out listbranch, ref useOss))
  58. {
  59. if (useOss)
  60. {
  61. frmAliyunOssDetail dlg = new frmAliyunOssDetail();
  62. dlg.ShowDialog();
  63. this.Close();
  64. }
  65. else
  66. {
  67. frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
  68. dlgFtp.ShowDialog();
  69. this.Close();
  70. }
  71. }
  72. else
  73. {
  74. frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
  75. dlgFtp.ShowDialog();
  76. this.Close();
  77. }
  78. #endif
  79. #endregion
  80. }
  81. catch
  82. {
  83. this.Close();
  84. }
  85. }
  86. }
  87. }