ProcSM.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:3k
源码类别:

交通/航空行业

开发平台:

Visual C++

  1. // ProcSM.h: interface for the CProcSM class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PROCSM_H__4D900422_58AD_11D8_B7C7_00E01808A228__INCLUDED_)
  5. #define AFX_PROCSM_H__4D900422_58AD_11D8_B7C7_00E01808A228__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "GpsScDoc.h"
  10. #include "DlgAsCenterDlg.h"
  11. #include "DlgAsNormaldlg.h"
  12. class CProcSM : public CObject  
  13. {
  14. public:
  15. CProcSM();
  16. virtual ~CProcSM();
  17. // Functions
  18. public:
  19. void BeginThread(); //begin the thread
  20. void DealSystemMsg(CString strReceived);
  21. void JudgeReceivedMsg(CString strReceived);
  22. void SetStr2Send(CString sSendStr);
  23. CString ConstructSendstr(CString strOrder,CString strVehicleNumber,CString strSMConttent);
  24. long WriteComPort(CString str2Write,CGpsSCDoc *pDoc);
  25. long ReadComPort(WPARAM wParam,CGpsSCDoc *pDoc);
  26. void SetDocPointer(CGpsSCDoc *pDoc);
  27. void WriteToFile(CString FileName,CString sInfo);
  28. void ChangLGAndLt(CString &strLongitude,CString &strLatitude,CString &strVehicleNO,CString &strTelNumber);
  29. void OnOpenlock(CString strItemText = "");
  30. void OnGetvehicleposition(CString strItemText = "");
  31. void OnSetlock(CString strItemText = "");
  32. void OnShutoil(CString strItemText = "");
  33. void AutoMonitor(CString strItemText = "");
  34. void GetHelp(CString strItemText = "");
  35. void CanceLautoMonitor(CString strItemText = "");
  36. void HoseChangePassWord();
  37. void SelectUserType();
  38. BOOL CheckMonitorCar();
  39. void SetMonitorCar(CString VehicleID);
  40. void SetMessageType(CString strVehicleNumber ,CString strSMConttent);
  41. BOOL GetSubData(char * ReceData,CString *strLongitude,CString *strLatitude);
  42. CString GetString(char *pData, int *pos);
  43. void SimulatorDriver(); //模拟车主
  44. BOOL SystermInite(void * pView);
  45. CString NewSMIndication(CString strReceived);
  46. CString GetNewSMData(CString strReceived,CString &sMessage);
  47. CString GetLenStr(CString DstStr,BYTE pos,BYTE Len);
  48. CString GetSpecialStr(CString sSrcStr,long pos1,long pos2);
  49. void ProcShortMessage(CString sMessage);
  50. void SendMessageResult(CString strReceived);
  51. void ClearStrList();
  52. CString AnsiStr2UnicodeStr(CString sAnsiStr);
  53. WORD GetUnicodeFromTable(WORD wGB);
  54. CString UnicodeStr2AnsiStr(CString UnicodeStr);
  55. WORD GetAnsiFromTable(WORD lTemp);
  56. long LongNEtoLong(CString LongNE);
  57. BYTE CharToNum(char chr);
  58. void ClearVehicleList();
  59. bool CheckVehicleMonitorNow(CString sVehicleID);
  60. void AddTheMonitorVehicle(CString sVehicleID);
  61. void DeleteTheMonitorVehicle(CString sVehicleID);
  62. //the varaible
  63. public:
  64. CString strCommonUserPassWord;
  65. BOOL m_bWaveComInite;
  66. BYTE m_nUserType; //0 表示中心,1 表示普通用户
  67. CString  m_strMonitorTimeSpan;
  68. CString m_strPassWord;
  69. CString m_sCurrMonitorCar;
  70. CString m_sGetPositionCar;
  71. BOOL m_bSysTemInit;
  72. CDlgAsCenterDlg m_dlgAsCenter;
  73. CDlgAsNormalDlg m_dlgAsNormal;
  74. CString m_strDriverNumber;
  75. CStringList m_lCurrMonitorVehicle;
  76. //variable of shortmessge
  77. CString m_sVehicleNumber;   //将要监控的汽车车号
  78. void *m_pView;
  79. };
  80. #endif // !defined(AFX_PROCSM_H__4D900422_58AD_11D8_B7C7_00E01808A228__INCLUDED_)