*/}}

elarp.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * eLaRP: A small ERP utility program
  3. * Copyright (C) 2024 Wu Yiming
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include "elarp.h"
  19. int main(int argc, char *argv[]){
  20. laGetReady();
  21. erpRegisterEverything();
  22. erpInit();
  23. laRefreshUDFRegistries();
  24. laEnsureUserPreferences();
  25. //laAddRootDBInst("basket");
  26. if(!MAIN.Windows.pFirst){
  27. laWindow* w = laDesignWindow(-1,-1,600,600);
  28. laLayout* l = laDesignLayout(w, "Default Layout");
  29. laBlock* b = l->FirstBlock;
  30. laPanel* p=laCreatePanel(b, "erp_panel_orders");
  31. laStartWindow(w);
  32. }
  33. laMainLoop();
  34. }