Guest User

Untitled

a guest
Jan 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. procedure TFormMain.tmrGeneralRefreshTimer(Sender: TObject);
  2. var
  3. i: Integer;
  4. selectedCase: Integer;
  5. begin
  6. CaseListLocal(FLocalCurrPage);
  7. end;
  8.  
  9.  
  10. procedure TFormMain.CaseListLocal(page: Integer);
  11. var
  12. row : Integer;
  13. totalRow: Integer;
  14. i: Integer;
  15.  
  16. tmpStr: String;
  17.  
  18. betweenFrom: Integer;
  19. betweenTo: Integer;
  20. begin
  21. numberOfLocalCase;
  22. localCaseRecords(page);
  23.  
  24. .
  25. .
  26. .
  27. .
  28. .
  29. .
  30. .
  31.  
  32. procedure numberOfLocalCase;
  33. begin
  34. DataModule4.ADQueryTemp.SQL.Clear;
  35. DataModule4.ADQueryTemp.SQL.Add('SELECT COUNT(fID) FROM tblCase');
  36. DataModule4.ADQueryTemp.Active:= True;
  37. FormMain.FLocalTotalRecords:= DataModule4.ADQueryTemp.Fields[0].AsInteger;
  38. end;
  39.  
  40. LocalizerOnFly.InitReg;
  41. Application.Initialize;
  42. Application.MainFormOnTaskbar := True;
  43. TStyleManager.TrySetStyle('Light');
  44. Application.CreateForm(TFormMain, FormMain);
  45. Application.CreateForm(TFormAddCase, FormAddCase);
  46. Application.CreateForm(TFormImageViewer, FormImageViewer);
  47. Application.CreateForm(TFormLogin, FormLogin);
  48. Application.CreateForm(TShareWithForm, ShareWithForm);
  49. if FormMain.AkasExists then
  50. Application.CreateForm(TDataModule4, DataModule4);
  51. Application.Run;
Add Comment
Please, Sign In to add comment