Measure_Cloud.dpr 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. program Measure_Cloud;
  2. uses
  3. Windows,
  4. ShareMem,
  5. Forms,
  6. Controls,
  7. HttpApp,
  8. MainFrm in '..\..\Forms\MainFrm.pas' {MainForm},
  9. ProjectManagerFme in '..\..\Frames\ProjectManagerFme.pas' {ProjectManagerFrame: TFrame},
  10. UtilMethods in '..\..\Units\UtilMethods.pas',
  11. ProjectManagerDm in '..\..\DataModules\ProjectManagerDm.pas' {ProjectManagerData: TDataModule},
  12. Connections in '..\..\Units\Connections.pas',
  13. TransFile in '..\..\Units\TransFile.pas',
  14. ZhAPI in '..\..\Units\ZhAPI.pas',
  15. CompactDB in '..\..\Units\CompactDB.pas',
  16. OpenProjectManager in '..\..\Units\OpenProjectManager.pas',
  17. ProjectData in '..\..\Units\ProjectData.pas',
  18. UpdateDataBase in '..\..\Units\UpdateDataBase.pas',
  19. DataBaseTables in '..\..\Units\DataBaseTables.pas',
  20. ConfigDoc in '..\..\Units\ConfigDoc.pas',
  21. SupportUnit in '..\..\Units\SupportUnit.pas',
  22. StandardLibs in '..\..\Units\StandardLibs.pas',
  23. StandardLib in '..\..\Units\StandardLib.pas',
  24. NewProjectFrm in '..\..\Forms\NewProjectFrm.pas' {NewProjectForm},
  25. ProjectFme in '..\..\Frames\ProjectFme.pas' {ProjectFrame: TFrame},
  26. StandardBillsDm in '..\..\DataModules\StandardBillsDm.pas' {StandardBillsData: TDataModule},
  27. StandardBillsFme in '..\..\Frames\StandardBillsFme.pas' {StandardBillsFrame: TFrame},
  28. StandardLibsFme in '..\..\Frames\StandardLibsFme.pas' {StandardLibsFrame: TFrame},
  29. BillsDm in '..\..\DataModules\BillsDm.pas' {BillsData: TDataModule},
  30. Globals in '..\..\Units\Globals.pas',
  31. StageDm in '..\..\DataModules\StageDm.pas' {StageData: TDataModule},
  32. ExcelImport in '..\..\Units\ExcelImport.pas',
  33. CacheTree in '..\..\Units\CacheTree.pas',
  34. MCacheTree in '..\..\Units\MCacheTree.pas',
  35. ProjectPropertiesFrm in '..\..\Forms\ProjectPropertiesFrm.pas' {ProjectPropertiesForm},
  36. ProjectProperty in '..\..\Units\ProjectProperty.pas',
  37. FormulaCalc in '..\..\Units\FormulaCalc.pas',
  38. BillsCommand in '..\..\Units\BillsCommand.pas',
  39. PhaseData in '..\..\Units\PhaseData.pas',
  40. PhaseProperty in '..\..\Units\PhaseProperty.pas',
  41. BillsClipboard in '..\..\Units\BillsClipboard.pas',
  42. BillsTree in '..\..\Units\BillsTree.pas',
  43. ProjectCommands in '..\..\Units\ProjectCommands.pas',
  44. PhaseCompareDm in '..\..\DataModules\PhaseCompareDm.pas' {PhaseCompareData: TDataModule},
  45. PhaseCompareFme in '..\..\Frames\PhaseCompareFme.pas' {PhaseCompareFrame: TFrame},
  46. OptionFrm in '..\..\Forms\OptionFrm.pas' {OptionForm},
  47. DealPaymentDm in '..\..\DataModules\DealPaymentDm.pas' {DealPaymentData: TDataModule},
  48. DealPaymentFme in '..\..\Frames\DealPaymentFme.pas' {DealPaymentFrame: TFrame},
  49. PhasePayDm in '..\..\DataModules\PhasePayDm.pas' {PhasePayData: TDataModule},
  50. ZJJLDm in '..\..\DataModules\ZJJLDm.pas' {ZJJLData: TDataModule},
  51. BillsGatherDm in '..\..\DataModules\BillsGatherDm.pas' {BillsGatherData: TDataModule},
  52. BillsGatherFme in '..\..\Frames\BillsGatherFme.pas' {BillsGatherFrame: TFrame},
  53. LoginFrm in '..\..\Forms\LoginFrm.pas' {LoginFrm},
  54. PHPWebDm in '..\..\DataModules\PHPWebDm.pas' {PHPWeb: TDataModule},
  55. MD5Unit in '..\..\Units\MD5Unit.pas',
  56. ConstUnit in '..\..\Units\ConstUnit.pas',
  57. ExportExcel in '..\..\Units\ExportExcel.pas',
  58. mEncryptEditions in '..\..\Encrypt\mEncryptEditions.pas',
  59. mEncryptUnit in '..\..\Encrypt\mEncryptUnit.pas',
  60. CryptUtils in '..\..\Encrypt\CryptUtils.pas',
  61. EncryptDog in '..\..\Encrypt\EncryptDog.pas',
  62. mEncryptPWD in '..\..\Encrypt\mEncryptPWD.pas',
  63. mEncryptTypes in '..\..\Encrypt\mEncryptTypes.pas',
  64. mR1Encrypt in '..\..\Encrypt\mR1Encrypt.pas',
  65. mS4Utils in '..\..\Encrypt\mS4Utils.pas',
  66. mSNSEncrypt in '..\..\Encrypt\mSNSEncrypt.pas',
  67. Rockey1 in '..\..\Encrypt\Rockey1.pas',
  68. mConnectEncrypt in '..\..\Encrypt\NetClient\mConnectEncrypt.pas',
  69. FindUserFrm in '..\..\Forms\FindUserFrm.pas' {FindUserForm},
  70. CslJson in '..\..\Units\CslJson.pas',
  71. OrderCheckerFme in '..\..\Frames\OrderCheckerFme.pas' {OrderCheckerFrame: TFrame},
  72. CheckerFme in '..\..\Frames\CheckerFme.pas' {CheckerFrame: TFrame},
  73. WebNewTenderFrm in '..\..\Forms\WebNewTenderFrm.pas' {WebNewTenderForm},
  74. ScFileArchiver in '..\..\Encrypt\ScFileArchiver.pas',
  75. SearchDm in '..\..\DataModules\SearchDm.pas' {SearchData: TDataModule},
  76. DealBillsDm in '..\..\DataModules\DealBillsDm.pas' {DealBillsData: TDataModule},
  77. BGLDm in '..\..\DataModules\BGLDm.pas' {BGLData: TDataModule},
  78. StaffDm in '..\..\DataModules\StaffDm.pas' {StaffData: TDataModule},
  79. BillsCompileDm in '..\..\DataModules\BillsCompileDm.pas' {BillsCompileData: TDataModule},
  80. BillsMeasureDm in '..\..\DataModules\BillsMeasureDm.pas' {BillsMeasureData: TDataModule},
  81. ReportManager in '..\..\Units\ReportManager.pas',
  82. BGLSelectFrm in '..\..\Forms\BGLSelectFrm.pas' {BGLSelectForm},
  83. BillsCompileFme in '..\..\Frames\BillsCompileFme.pas' {BillsCompileFrame: TFrame},
  84. BillsMeasureFme in '..\..\Frames\BillsMeasureFme.pas' {BillsMeasureFrame: TFrame},
  85. BatchReplaceBillsFrm in '..\..\Forms\BatchReplaceBillsFrm.pas' {BatchReplaceBillsForm},
  86. ZJJLFme in '..\..\Frames\ZJJLFme.pas' {ZJJLFrame: TFrame},
  87. BGLFme in '..\..\Frames\BGLFme.pas' {BGLFrame: TFrame},
  88. MergeTextFrm in '..\..\Forms\MergeTextFrm.pas' {MergeTextForm},
  89. ReportsFrm in '..\..\Forms\ReportsFrm.pas' {ReportsForm},
  90. ReportAdjustFrm in '..\..\Forms\ReportAdjustFrm.pas' {ReportAdjustForm},
  91. SearchFme in '..\..\Frames\SearchFme.pas' {SearchFrame: TFrame},
  92. AuthFrm in '..\..\Forms\AuthFrm.pas' {AuthorizeForm},
  93. AboutFrm in '..\..\Forms\AboutFrm.pas' {AboutForm},
  94. ImportExcelHintFrm in '..\..\Forms\ImportExcelHintFrm.pas' {ImportExcelHintForm},
  95. PasswordInputFrm in '..\..\Forms\PasswordInputFrm.pas' {PasswordInputForm},
  96. BatchInsertBillsFrm in '..\..\Forms\BatchInsertBillsFrm.pas' {BatchInsertBillsForm},
  97. MainDataListDm in '..\..\DataModules\MainDataListDm.pas' {MainListData: TDataModule},
  98. mProgressFrm in '..\..\Forms\mProgressFrm.pas' {mProgress},
  99. rmGclBillsBGDm in '..\..\DataModules\ReportMemoryDm\rmGclBillsBGDm.pas' {rmGclBillsBGData: TDataModule},
  100. rmGclBillsCompareDm in '..\..\DataModules\ReportMemoryDm\rmGclBillsCompareDm.pas' {rmGclBillsCompareData: TDataModule},
  101. rmBGLExecutionDm in '..\..\DataModules\ReportMemoryDm\rmBGLExecutionDm.pas' {rmBGLExecutionData: TDataModule},
  102. rmBillsGatherDm in '..\..\DataModules\ReportMemoryDm\rmBillsGatherDm.pas' {rmBillsGatherData: TDataModule},
  103. rmFxBillsAddDm in '..\..\DataModules\ReportMemoryDm\rmFxBillsAddDm.pas' {rmFxBillsAddData: TDataModule},
  104. rmFxBillsCompareDm in '..\..\DataModules\ReportMemoryDm\rmFxBillsCompareDm.pas' {rmFxBillsCompareData: TDataModule},
  105. rmGclBillsAddDm in '..\..\DataModules\ReportMemoryDm\rmGclBillsAddDm.pas' {rmGclBillsAddData: TDataModule},
  106. rmGridHeaderDm in '..\..\DataModules\ReportMemoryDm\rmGridHeaderDm.pas' {rmGridHeaderData: TDataModule},
  107. rmCacheData in '..\..\DataModules\ReportMemoryDm\rmCacheData.pas',
  108. rmSelectProjectFrm in '..\..\Forms\rmSelectProjectFrm.pas' {ProjectSelectForm},
  109. ConditionalDefines in '..\..\Units\ConditionalDefines.pas',
  110. ProgressHintFrm in '..\..\Forms\ProgressHintFrm.pas' {ProgressHintForm},
  111. CheckAndClearFrm in '..\..\Forms\CheckAndClearFrm.pas' {CheckAndClearForm},
  112. rmGclBillsAuditCompareDm in '..\..\DataModules\ReportMemoryDm\rmGclBillsAuditCompareDm.pas' {rmGclBillsAuditCompareData: TDataModule},
  113. rmTestFrm in '..\..\DataModules\ReportMemoryDm\rmTestFrm.pas' {rmTestForm},
  114. DealBillsFrm in '..\..\Forms\DealBillsFrm.pas' {DealBillsForm},
  115. TenderBackupFrm in '..\..\Forms\TenderBackupFrm.pas' {TenderBackupForm},
  116. TenderBackupDm in '..\..\DataModules\TenderBackupDm.pas' {TenderBackupData: TDataModule},
  117. BillsBookmarkDm in '..\..\DataModules\BillsBookmarkDm.pas' {BillsBookmarkData: TDataModule},
  118. BookmarkFme in '..\..\Frames\BookmarkFme.pas' {BookmarkFrame: TFrame},
  119. rmDealInfosDm in '..\..\DataModules\ReportMemoryDm\rmDealInfosDm.pas' {rmDealInfosData: TDataModule},
  120. rmXmjBGLDetailDm in '..\..\DataModules\ReportMemoryDm\rmXmjBGLDetailDm.pas' {rmXmjBGLDetailData: TDataModule},
  121. WelcomeFrm in '..\..\Forms\WelcomeFrm.pas' {WelcomeForm},
  122. rmOtherReport1Dm in '..\..\DataModules\ReportMemoryDm\rmOtherReport1Dm.pas' {rmOtherReport1Data: TDataModule},
  123. CheckerMemoFrm in '..\..\Forms\CheckerMemoFrm.pas' {CheckerMemoForm},
  124. CslHint in '..\..\Units\CslHint.pas',
  125. IPFrm in '..\..\Forms\IPFrm.pas' {IPForm},
  126. TenderBackupManager in '..\..\Units\TenderBackupManager.pas',
  127. UpFileManageUnit in '..\..\Units\UpFileManageUnit.pas',
  128. UpFileFrame in '..\..\Forms\UpFileFrame.pas',
  129. UpFileManageFrame in '..\..\Forms\UpFileManageFrame.pas',
  130. SheetSelectFrm in '..\..\Forms\SheetSelectFrm.pas' {SheetSelectForm},
  131. ReportInteractInfo in '..\..\Units\ReportInteractInfo.pas',
  132. Checker in '..\..\Units\Checker.pas',
  133. AuditSelectFrm in '..\..\Forms\ReportInteractFrms\AuditSelectFrm.pas' {AuditSelctForm},
  134. DealBillsFme in '..\..\Frames\DealBillsFme.pas' {DealBillsFrame: TFrame},
  135. rmGclBillsPlaneDm in '..\..\DataModules\ReportMemoryDm\rmGclBillsPlaneDm.pas' {rmGclBillsPlaneData: TDataModule},
  136. StageCompareDm in '..\..\DataModules\StageCompareDm.pas' {StageCompareData: TDataModule},
  137. mDataRecord in '..\..\Units\mDataRecord.pas',
  138. BGLClipboard in '..\..\Units\BGLClipboard.pas',
  139. rmMentalCustomized1Dm in '..\..\DataModules\ReportMemoryDm\rmMentalCustomized1Dm.pas' {rmMentalCustomized1Data: TDataModule},
  140. rmGcl_XmjBillsDm in '..\..\DataModules\ReportMemoryDm\rmGcl_XmjBillsDm.pas' {rmGcl_XmjBillsData: TDataModule},
  141. rmCustomized2Dm in '..\..\DataModules\ReportMemoryDm\rmCustomized2Dm.pas' {rmCustomized2Data: TDataModule},
  142. CalcDecimal in '..\..\Units\CalcDecimal.pas',
  143. BillsPasteSelectFrm in '..\..\Forms\BillsPasteSelectFrm.pas' {BillsPasteSelectForm},
  144. DetailExcelImport in '..\..\Units\DetailExcelImport.pas',
  145. GclBillsGatherModel in '..\..\Units\GclBillsGatherModel.pas',
  146. PriceMarginBillsDm in '..\..\DataModules\PriceMarginBillsDm.pas' {PriceMarginBillsData: TDataModule},
  147. ProjectGLDm in '..\..\DataModules\ProjectGLDm.pas' {ProjectGLData: TDataModule},
  148. PriceMarginBillsFme in '..\..\Frames\PriceMarginBillsFme.pas' {PriceMarginBillsFrame: TFrame},
  149. PriceMarginFme in '..\..\Frames\PriceMarginFme.pas' {PriceMarginFrame: TFrame},
  150. ProjectGLFme in '..\..\Frames\ProjectGLFme.pas' {ProjectGLFrame: TFrame},
  151. DetailGLDm in '..\..\DataModules\DetailGLDm.pas' {DetailGLData: TDataModule},
  152. rmHaBaiCustomizedDm in '..\..\DataModules\ReportMemoryDm\rmHaBaiCustomizedDm.pas' {rmHaBaiCustomizedData: TDataModule},
  153. BaseClipboard in '..\..\Units\BaseClipboard.pas',
  154. SelectDetailGLsFrm in '..\..\Forms\SelectDetailGLsFrm.pas' {SelectDetailGLsForm},
  155. DealPayPlanFrm in '..\..\Forms\DealPayPlanFrm.pas' {DealPayPlanForm},
  156. mProgressProFrm in '..\..\Forms\mProgressProFrm.pas' {ProgressProForm},
  157. tpMainFrm in '..\..\TenderPartition\tpMainFrm.pas' {tpMainForm},
  158. tpBaseGatherData in '..\..\TenderPartition\tpBaseGatherData.pas',
  159. tpGatherGcl in '..\..\TenderPartition\tpGatherGcl.pas',
  160. tpGatherTree in '..\..\TenderPartition\tpGatherTree.pas',
  161. tpMainData in '..\..\TenderPartition\tpMainData.pas',
  162. tpNoPegDm in '..\..\TenderPartition\tpNoPegDm.pas' {tpNoPegData: TDataModule},
  163. tpPartTender in '..\..\TenderPartition\tpPartTender.pas',
  164. tpPartTenderFme in '..\..\TenderPartition\tpPartTenderFme.pas' {tpPartTenderFrame: TFrame},
  165. tpPartTenderSet in '..\..\TenderPartition\tpPartTenderSet.pas',
  166. tpPartTenderSetFme in '..\..\TenderPartition\tpPartTenderSetFme.pas' {tpPartTenderSetFrame: TFrame},
  167. tpPeg in '..\..\TenderPartition\tpPeg.pas',
  168. tpPeg_GclDm in '..\..\TenderPartition\tpPeg_GclDm.pas' {tpPeg_GclData: TDataModule},
  169. tpPeg_GclFme in '..\..\TenderPartition\tpPeg_GclFme.pas' {tpPeg_GclFrame: TFrame},
  170. tpPegBlock in '..\..\TenderPartition\tpPegBlock.pas',
  171. tpPegGclGatherDm in '..\..\TenderPartition\tpPegGclGatherDm.pas' {tpPegGclGatherData: TDataModule},
  172. tpPegGclGatherFme in '..\..\TenderPartition\tpPegGclGatherFme.pas' {tpPegGclGatherFrame: TFrame},
  173. tpPegPartSettingFrm in '..\..\TenderPartition\tpPegPartSettingFrm.pas' {tpPegPartSettingForm},
  174. tpPricePartSettingFrm in '..\..\TenderPartition\tpPricePartSettingFrm.pas' {tpPricePartSettingForm},
  175. tpSelectTenderDm in '..\..\TenderPartition\tpSelectTenderDm.pas' {tpSelectTenderData: TDataModule},
  176. tpSelectTenderNode in '..\..\TenderPartition\tpSelectTenderNode.pas',
  177. tpSelectTendersFrm in '..\..\TenderPartition\tpSelectTendersFrm.pas' {SelectTendersForm},
  178. tpTrialPegInputFrm in '..\..\TenderPartition\tpTrialPegInputFrm.pas' {TrialPegInputForm},
  179. mPegFilter in '..\..\Units\mPegFilter.pas',
  180. MScrollBox in '..\..\..\SmartCost\Components\MBaseControl\Source\MScrollBox.pas',
  181. ClientService in '..\..\Encrypt\NetClient\ClientService.pas',
  182. CfgPort in '..\..\Encrypt\NetClient\CfgPort.pas',
  183. CorrespondClient in '..\..\Encrypt\NetClient\CorrespondClient.pas',
  184. EnctyptClientData in '..\..\Encrypt\NetClient\EnctyptClientData.pas',
  185. ColVisibleManager in '..\..\Units\ColVisibleManager.pas',
  186. ReportPrepare in '..\..\Report\ReportPrepare.pas',
  187. rdpBillsGatherDm in '..\..\Report\DataPrepare\rdpBillsGatherDm.pas' {rdpBillsGatherData: TDataModule},
  188. rdpTables in '..\..\Report\DataPrepare\rdpTables.pas',
  189. ReportConnection in '..\..\Report\ReportConnection.pas',
  190. rgpGatherControl in '..\..\Report\ProjGather\rgpGatherControl.pas',
  191. rpgBillsCalcDm in '..\..\Report\ProjGather\rpgBillsCalcDm.pas' {rpgBillsCalcData: TDataModule},
  192. rpgBillsDm in '..\..\Report\ProjGather\rpgBillsDm.pas' {rpgBillsData: TDataModule},
  193. rpgGatherControl in '..\..\Report\ProjGather\rpgGatherControl.pas',
  194. rpgGatherData in '..\..\Report\ProjGather\rpgGatherData.pas',
  195. rpgGatherProjDm in '..\..\Report\ProjGather\rpgGatherProjDm.pas' {rpgGatherProjData: TDataModule},
  196. rProjGatherTables in '..\..\Report\ProjGather\rProjGatherTables.pas',
  197. ProjGather in '..\..\ProjGather\ProjGather.pas',
  198. GatherProjInfo in '..\..\ProjGather\GatherProjInfo.pas',
  199. ProjGatherCalcData in '..\..\ProjGather\ProjGatherCalcData.pas',
  200. ProjGatherSelectFrm in '..\..\ProjGather\ProjGatherSelectFrm.pas' {ProjGatherSelectForm},
  201. ProjGatherTree in '..\..\ProjGather\ProjGatherTree.pas',
  202. CalcData in '..\..\Units\CalcData.pas',
  203. DealBillsExcelImport in '..\..\Units\DealBillsExcelImport.pas',
  204. ExcelImport_Bills in '..\..\Units\ExcelImport_Bills.pas',
  205. ExcelImport_GclBills in '..\..\Units\ExcelImport_GclBills.pas',
  206. UpFileSelectOnLineFrm in '..\..\Forms\UpFileSelectOnLineFrm.pas' {UpFileSelectOnLineForm},
  207. FileDownLoadFrm in '..\..\Forms\FileDownLoadFrm.pas' {FileDownLoadForm},
  208. DebugUsers in '..\..\Units\DebugUsers.pas',
  209. ScReportHelperUnit in '..\..\..\SmartCost\Reports\UI\ScReportHelperUnit.pas',
  210. DbTreeImport in '..\..\Units\DbTreeImport.pas',
  211. DbTreeDm in '..\..\DataModules\DbTreeDm.pas',
  212. OtherMeasurePhaseDm in '..\..\DataModules\OtherMeasurePhaseDm.pas' {OtherMeasurePhaseData: TDataModule},
  213. OtherMeasureOnceDm in '..\..\DataModules\OtherMeasureOnceDm.pas' {OtherMeasureOnceData: TDataModule},
  214. OMPhaseRecord in '..\..\Units\DataRecord\OMPhaseRecord.pas',
  215. OtherMeasureFme in '..\..\Frames\OtherMeasureFme.pas' {OtherMeasureFrame: TFrame},
  216. ProjGatherSelectFme in '..\..\ProjGather\ProjGatherSelectFme.pas' {ProjGatherSelectFrame: TFrame},
  217. rpgZoneGatherControl in '..\..\Report\ProjGather\Zone\rpgZoneGatherControl.pas',
  218. rpgZoneProjGatherSelectFrm in '..\..\Report\ProjGather\Zone\rpgZoneProjGatherSelectFrm.pas' {rpgZoneProjGatherSelectForm};
  219. {$R *.res}
  220. var
  221. Mutex: THandle;
  222. IPForm: TIPForm;
  223. vFDForm: TFileDownLoadForm;
  224. sInfo, sURL, sName: string;
  225. begin
  226. Mutex := CreateMutex(nil, True, G_AppHandleName);
  227. if GetLastError = ERROR_ALREADY_EXISTS then
  228. Application.MessageBox('程序正在运行, 请勿重复打开该软件!', '系统提示', MB_OK + MB_ICONINFORMATION)
  229. else
  230. begin
  231. Application.CreateHandle;
  232. Application.Initialize;
  233. Application.Title := '纵横公路工程结算决算计量一体化软件云版';
  234. {$IFDEF _mCloud}
  235. IPForm := TIPForm.Create(nil);
  236. try
  237. if not IPForm.HasIP then
  238. begin
  239. IPForm.ShowModal;
  240. if IPForm.ModalResult <> mrOK then
  241. begin
  242. Application.Terminate;
  243. Exit;
  244. end;
  245. end;
  246. finally
  247. IPForm.Free;
  248. end;
  249. {$IFDEF _mLoginNoPW}
  250. sName := PHPWeb.GetNameFromURLProtocol(ParamStr(1));
  251. if sName[1] = '%' then
  252. sName := UTF8Decode(HttpDecode(sName));
  253. if sName = '' then // 表示手工运行的
  254. begin
  255. Application.MessageBox('请从 项目管理信息平台 打开软件。', '系统提示', MB_OK + MB_ICONINFORMATION);
  256. Application.Terminate;
  257. end
  258. else
  259. begin
  260. // For Test only!
  261. // Application.MessageBox(PChar(ParamStr(1) + #10#13 + sName), '系统提示', MB_OK + MB_ICONINFORMATION);
  262. // Application.Terminate;
  263. case PHPWeb.Login(sName, '', 2, sInfo, sURL) of
  264. ltLoginFail:
  265. begin
  266. Application.MessageBox('该用户尚未注册不能登录!', '操作提醒', MB_OK + MB_ICONWARNING);
  267. Application.Terminate;
  268. end;
  269. ltUpdate: // 升级
  270. begin
  271. if Application.MessageBox(PChar(sInfo), '系统提示', MB_OKCANCEL + MB_ICONQUESTION) = ID_OK then
  272. begin
  273. vFDForm := TFileDownLoadForm.Create(nil);
  274. try
  275. vFDForm.URL := sURL;
  276. vFDForm.ShowModal;
  277. finally
  278. vFDForm.Free;
  279. end;
  280. end;
  281. end;
  282. ltDisCon:
  283. begin
  284. Application.MessageBox('网络错误,请稍后重试!', '操作提醒', MB_OK + MB_ICONWARNING);
  285. Application.Terminate;
  286. end;
  287. else
  288. ;
  289. end;
  290. end;
  291. {$ELSE}
  292. if not LoginForm then
  293. begin
  294. Application.Terminate;
  295. Exit;
  296. end;
  297. {$ENDIF}
  298. {$ENDIF}
  299. if CheckDogExists then
  300. begin
  301. Application.CreateForm(TMainForm, MainForm);
  302. end;
  303. Application.Run;
  304. end;
  305. ReleaseMutex(Mutex);
  306. end.