Jump to content

Yetki durumuna göre 2 ayrı formu görüntüleme


muttalip65

Recommended Posts

yetki 1 ya da 2 ise UniForm1 görüntüleniyor. Fakat yetki 3 olduğunda UniForm11 görüntülenemiyor hata veriyor. Yetki=3 de UniForm11 yerine UniForm1 i koyup denediğimde yine hata alıyorum. Hata kodunu ekteki dosyaya koydum. Sorun ne olabilir acaba. Çalışan Unigui versiyonu 1.10.0.1461. 

 

          if yetki in [1,2] then  // admin ve birim yöneticisi
          begin
             sorguAyarla;
             siteSayac(1); // siteye giriş yapıldı
             UniForm1.Parent:=MainForm;
             UniForm1.Show();   // admin ve birim yöneticisi
          end;

 

          if yetki=3 then // teknik eleman ise
          begin
            sorguAyarla;
            siteSayac(1); // siteye giriş yapıldı
            UniForm11.Parent:=MainForm;
            UniForm11.Show();   // TEKNİK ELEMAN
          end;

 

 

 

 

post-3544-0-75028800-1527676156_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...