1. Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies. En savoir plus.
  2. Bonjour tout le monde ! Veillez consulter la Politique de forum pour comprendre nos règles, Merci a vous !
    Rejeter la notice

AIDE Procédure stockée et tâche planifiée

Discussion dans 'Base de donnés & HFSQL' créé par thomassoegiarto, Avr 16, 2021.

  1. thomassoegiarto

    thomassoegiarto New Member

    Inscrit:
    Avr 14, 2021
    Messages:
    3
    J'aime reçus:
    0
    hai semuanya .. saya mencoba melakukan tugas terjadwal untuk mengirim pemberitahuan setiap 10 menit di pusat kendali HFSQL. Prosedur yang disimpan telah diuji dan berfungsi. Tidak ada kesalahan juga terjadi selama pengujian. Tetapi ketika saya menjalankan tugas terjadwal ini di HFSQL, ia bahkan tidak dapat mengirim satu pemberitahuan pun. Apakah ada seseorang yang bisa membantu saya?

    prosedur tersimpan seperti ini
    [windev]
    JIKA TIDAK HFileExist (sm_paramedic) MAKA
    JIKA TIDAK HDeclareExternal (". \ Sm_paramedic.fic", "paramedic") MAKA
    HASIL HErrorInfo ()
    AKHIR
    AKHIR
    HDeclareExternal (". \ Sm_paramedic.fic", "paramedic")
    JIKA ErrorOccurred = True MAKA
    HASIL (HErrorInfo ())
    AKHIR

    JIKA TIDAK HFileExist (NotificationDoctor) LALU
    JIKA TIDAK HDeclareExternal (". \ NotificationDoctor.FIC", "NotifDoctor") MAKA
    HASIL HErrorInfo ()
    AKHIR
    AKHIR
    HDeclareExternal (". \ NotificationDoctor.FIC", "NotifDoctor")
    JIKA ErrorOccurred = True MAKA
    // Error saat mendeklarasikan file, menampilkan error
    HASIL (HErrorInfo ())
    AKHIR

    HReadSeek (sm_paramedic, sm_paramedicID, 178)
    ExpDate adalah string = DateToString (sm_paramedic.sm_paramedicSTRExpDate, "DD / MM / YYYY")
    NotificationDoctor.sm_paramedicID = sm_paramedic.sm_paramedicID
    NotificationDoctor.Subject = "STR Kedaluwarsa dalam 1 bulan"
    NotificationDoctor.Description = "STR Expiration on" + ExpDate + ". Notifikasi ini hanya untuk memperingatkan Anda agar memperbarui lisensi Anda!"
    NotificationDoctor.DateCreated = Hari Ini ()
    NotificationDoctor.TimeCreated = Sekarang ()
    HAdd (NotificationDoctor)
    [/ windev]
     
    Tags:
  2. Wikeos

    Wikeos Active Member

    Inscrit:
    Fev 27, 2020
    Messages:
    167
    J'aime reçus:
    165
    Bonjour, tu es sur un forum Français, tu pourrais faire l'effort d'au moins traduire ta demande si tu veux qu'on t'aide.
     
    Gemini1961 apprécie ceci.
  3. thomassoegiarto

    thomassoegiarto New Member

    Inscrit:
    Avr 14, 2021
    Messages:
    3
    J'aime reçus:
    0
    Salut à tous. J'essaye de faire une tâche planifiée pour envoyer une notification toutes les 10 minutes dans le centre de contrôle HFSQL. Procédure testée et fonctionnelle. Aucune erreur n'a été jugée survenue pendant le test. Mais lorsque j'exécute cette tâche planifiée sur HFSQL, il ne peut même pas envoyer une seule notification. Y a-t-il quelqu'un qui peut m'aider?

    [windev]
    IF NOT HFileExist(sm_paramedic) THEN
    IF NOT HDeclareExternal(".\sm_paramedic.fic", "paramedic") THEN
    RESULT HErrorInfo()
    END
    END
    HDeclareExternal(".\sm_paramedic.fic", "paramedic")
    IF ErrorOccurred = True THEN
    RESULT(HErrorInfo())
    END

    IF NOT HFileExist(NotificationDoctor) THEN
    IF NOT HDeclareExternal(".\NotificationDoctor.FIC", "NotifDoctor") THEN
    RESULT HErrorInfo()
    END
    END
    HDeclareExternal(".\NotificationDoctor.FIC", "NotifDoctor")
    IF ErrorOccurred = True THEN
    // Error while declaring the file, display the error
    RESULT(HErrorInfo())
    END

    HReadSeek(sm_paramedic,sm_paramedicID,178)
    ExpDate is string = DateToString(sm_paramedic.sm_paramedicSTRExpDate, "DD/MM/YYYY")
    NotificationDoctor.sm_paramedicID = sm_paramedic.sm_paramedicID
    NotificationDoctor.Subject = "STR Expiry in 1 months"
    NotificationDoctor.Description = "STR Expiration on " + ExpDate + ". This notification just to warn you to renew your license!"
    NotificationDoctor.DateCreated = Today()
    NotificationDoctor.TimeCreated = Now()
    HAdd(NotificationDoctor)
    [/windev]
     

Partager cette page

Chargement...