SupportStaff.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. #include "pch.h"
  3. #include <vector>
  4. #include <afxinet.h>
  5. // SupportStaff 对话框
  6. class SupportStaff : public CDialogEx
  7. {
  8. DECLARE_DYNAMIC(SupportStaff)
  9. public:
  10. SupportStaff(CWnd* pParent = nullptr); // 标准构造函数
  11. virtual ~SupportStaff();
  12. // 对话框数据
  13. #ifdef AFX_DESIGN_TIME
  14. enum { IDD = IDD_SUPPORTSTAFF };
  15. #endif
  16. protected:
  17. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  18. DECLARE_MESSAGE_MAP()
  19. public:
  20. virtual BOOL OnInitDialog();
  21. void LoadProvince();
  22. void OnTimer(UINT_PTR nIDEvent);
  23. void OnPaint();
  24. int GetSelectedFileCount(CFileDialog& fileDlg);
  25. //BOOL FTP_MKDIR(CString ftpip, CString username, CString passwd, CString path);
  26. //BOOL UploadFileToFTP(const CString& strFtpServer, const CString& strUserName,const CString& strPassword,const CString& strLocalFilePath,const CString& strRemoteFilePaht);
  27. afx_msg void OnSelchangeProvince();
  28. afx_msg void OnSelchangeCity();
  29. afx_msg void OnBnClickedLoadimage();
  30. afx_msg void OnBnClickedCreateTicket();
  31. //BOOL FTP_Upload(CString szHostName, CString szUserName, CString szPassword, CString szUrlPath, CString FilePath);
  32. afx_msg void OnBnClickedButton1();
  33. BOOL ConnectFtpServer(CString ServerIP, CString UserName,CString PassWord);
  34. //BOOL CreateDirectory();
  35. CComboBox ProItem;
  36. CString ProValue;
  37. CComboBox CityItem;
  38. CString CityValue;
  39. CComboBox CountyItem;
  40. CString CountyValue;
  41. CImage Image[4];
  42. int fileNum;
  43. std::vector<CString> FilePath;
  44. CString ErrorDescription;
  45. HINTERNET hConnected;
  46. CInternetSession* pInternetSession;
  47. CFtpConnection* pFtpConnection;
  48. CString CompanyName;
  49. CString ContactNumber;
  50. CString Linkman;
  51. };