1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.MultipleFileImport
- {
- public partial class frmMultipleSelectWindows : LYFZ.ComponentLibrary.BaseContentsFormMain
- {
- public frmMultipleSelectWindows()
- {
- try
- {
- this.IsShadow = false;
- #region 获取OSS信息;
- Model.Model_Config config = new Model.Model_Config();
- BLL.BLL_Config BllConfig = new BLL.BLL_Config();
- config = BllConfig.GetModelSysConfig();
- if (config.IsRemoteCloudClient)
- {
- frmAliyunOssDetail dlg = new frmAliyunOssDetail();
- dlg.ShowDialog();
- this.Close();
- }
- else
- {
- bool useOss = false;
- List<Model.OssBranch> listbranch = null;
- if (Network.OssOperation.OssProcess.GetOssBranchList(LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.TcpClient.Client, out listbranch, ref useOss))
- {
- if (useOss)
- {
- frmAliyunOssDetail dlg = new frmAliyunOssDetail();
- dlg.ShowDialog();
- this.Close();
- }
- else
- {
- frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
- dlgFtp.ShowDialog();
- this.Close();
- }
- }
- else
- {
- frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
- dlgFtp.ShowDialog();
- this.Close();
- }
- }
- #if IGNORE
- bool useOss = false;
- List<AliyunOssLibrary.Model.SimplifyBranch> listbranch = null;
- if (Network.OssOperation.OssProcess.GetOssBranchList(out listbranch, ref useOss))
- {
- if (useOss)
- {
- frmAliyunOssDetail dlg = new frmAliyunOssDetail();
- dlg.ShowDialog();
- this.Close();
- }
- else
- {
- frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
- dlgFtp.ShowDialog();
- this.Close();
- }
- }
- else
- {
- frmFTPFileImprot dlgFtp = new frmFTPFileImprot();
- dlgFtp.ShowDialog();
- this.Close();
- }
- #endif
- #endregion
- }
- catch
- {
- this.Close();
- }
- }
- }
- }
|