Jump to content

Which files should be distributed? - Help


herculanojs

Recommended Posts

Hello friends

What are the folders that are to be distributed with the application?

Ja copied ext-4.2.5.1763, touch-2.4.2-complete, uni-0.99.95.1309, unim-0.99.95.1309, unipackages

 

And my application still does not boot.

The documentation does not say anything about it.

These path is a big mess.

 

ExtRoot =.\[ext]\

UniRoot =.\[uni]\

UniMobileroot =.\[unim]\

uniguiversion = 0.99.95.1309

 

The mentioned folders are where this ISAPI DLL.

I do not know what to do.

Link to comment
Share on other sites

  • 2 weeks later...
unit ServerModule;

 

interface

 

uses

  Classes, SysUtils, uniGUIServer, uniGUIMainModule, uniGUIApplication, uIdCustomHTTPServer,

  uniGUITypes;

 

type

  TUniServerModule = class(TUniGUIServerModule)

    procedure UniGUIServerModuleBeforeInit(Sender: TObject);

  private

    { Private declarations }

  protected

    procedure FirstInit; override;

  public

    FFmtFormatoBR      : TFormatSettings;

 

  end;

 

function UniServerModule: TUniServerModule;

 

implementation

 

{%CLASSGROUP 'Vcl.Controls.TControl'}

 

{$R *.dfm}

 

uses

  UniGUIVars;

 

function UniServerModule: TUniServerModule;

begin

  Result:=TUniServerModule(UniGUIServerInstance);

end;

 

procedure TUniServerModule.FirstInit;

begin

  InitServerModule(Self);

end;

 

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);

begin

  //Configurando Caminhos Pastas

  self.CacheFolder   := UniServerModule.StartPath+'ArqCache\';

  self.ExtRoot       := UniServerModule.StartPath+'ArqApp\ext-4.2.5.1763\';

  self.FilesFolder   := UniServerModule.StartPath+'ArqApp\';

  self.TempFolder    := UniServerModule.StartPath+'ArqTemp\';

  self.UniMobileRoot := UniServerModule.StartPath+'ArqApp\unim-0.99.95.1304\';

  self.UniRoot       := UniServerModule.StartPath+'ArqApp\uni-0.99.95.1304\';

  self.CustomFiles.Clear;

  self.CustomFiles.add('\ArqApp\unipackages\themes\resources\ext-theme-uni_win10\ext-theme-uni_win10-all.css');

 

  //Configurando Configurações Regionais

  FFmtFormatoBR                   := TFormatSettings.Create;

  FFmtFormatoBR.ThousandSeparator := '.';

  FFmtFormatoBR.DecimalSeparator  := ',';

  FFmtFormatoBR.CurrencyDecimals  := 2;

  FFmtFormatoBR.DateSeparator     := '/';

  FFmtFormatoBR.ShortDateFormat   := 'dd/mm/yyyy';

  FFmtFormatoBR.LongDateFormat    := 'dd/mm/yyyy';

  FFmtFormatoBR.TimeSeparator     := ':';

  FFmtFormatoBR.TimeAMString      := 'AM';

  FFmtFormatoBR.TimePMString      := 'PM';

  FFmtFormatoBR.ShortTimeFormat   := 'hh:mm';

  FFmtFormatoBR.LongTimeFormat    := 'hh:mm:ss';

  FFmtFormatoBR.CurrencyString    := 'R$ ';

  System.SysUtils.FormatSettings  := FFmtFormatoBR;

end;

 

initialization

  RegisterServerModuleClass(TUniServerModule);

end.

  • Upvote 1
Link to comment
Share on other sites

×
×
  • Create New...