Tip: INLINE TABLE FUNCTION · Şema: Genel · Modül: MOD-DIGER · Temizlik sınıfı: ACTIVE (kategori A, güven 0) · Kapsam: ERPGOLD_CORE / ALL
Kullanım haritası (13.09.2026)
| Kategori | A — ERPGOLD CORE · A-APP_CODE |
| Güven | 100 |
| Derinlik / kök | 0 · bu nesne (Seviye-0) |
| DependencyPath | ERPGOLD → FrmLoadDocuments → Genel.DokumanListesi |
| Uygulama kullanımı | APP_CODE · FrmLoadDocuments |
Bkz. Database Usage Map · Direct Application Objects. Hiçbir DB değişikliği yapılmadı; SAFETY > CLEANUP.
Temizlik kanıtı
| Kontrol | Sonuç |
|---|---|
| app | YES |
| report | NO |
| config | NO |
| dynamic | NO |
| db_in | NO |
| db_out | YES |
| trigger | NO |
| fk | NO |
| computed | NO |
| crossdb | NO |
| runtime | UNKNOWN |
| external | NO |
Gerekçe: APP
KB-v1 gövdesi (2026-09-10 · kısmi kod kapsamı — kaynağı kadar güvenilir)
Tür: FUNCTION (IF) · Modül: MOD-DIGER · Uzunluk: 8 satır
Özet
[GAP] Kaynakta açıklama yorumu yok; davranış aşağıdaki SQL tanımından ve ilişkilerden okunur.
Parametreler
| # | Parametre | Tip | Çıktı |
|---|---|---|---|
| 1 | @SirketId | int | |
| 2 | @DosyaTipi | int | |
| 3 | @UserId | int |
Bağımlılıklar (bu nesne → hedef)
| İlişki | Hedef | Tip |
|---|---|---|
| CALLS | Genel.DokumanIzinDetay | VIEW |
| READS | Genel.Dokumanlar | TABLE |
| READS | Sistem.Users | TABLE |
SQL tanımı (AS-IMPLEMENTED, örnek DB)
CREATE Function Genel.DokumanListesi (@SirketId int,@DosyaTipi int,@UserId int)
returns Table
as
return
select D.Id,D.InsertDate AS Tarih, D.DosyaTipi,D.DosyaAdi,D.GrupKodu,D.Kategori,D.LastUpdate as SonDegisiklik,U.UserName as Kullanıcı,(Convert(Bit,Case When D.UserId=@UserId then 1 Else P.IsRead End)) as IsRead ,(Convert(Bit,Case When D.UserId=@UserId then 1 Else P.IsWrite End)) as IsWrite from Genel.Dokumanlar D Left Join Sistem.Users U on U.Id =D.UserId
Left Join Genel.DokumanIzinDetay P on P.UserId=@UserId and P.DocId=D.Id
Where D.SirketId=@SirketId And D.IsDeleted='False' And (D.Id in (Select DocId From Genel.DokumanIzinDetay Where Genel.DokumanIzinDetay.UserId=@UserId) or D.UserId=@UserId) And (D.DosyaTipi=@DosyaTipi or @DosyaTipi=-1)
Kaynaklar
- SRC-DB-MODULES —
sys.sql_modulestanımı (salt okunur); gizli sabitler[REDACTED_SECRET]ile değiştirildi.
Bilinmeyenler
- Hangi sürümde eklendiği:
createdDB tarihi bir kurulumun tarihidir, ürün sürümü değil (GAP-VERSION-02).
