Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Clone the code to your local folder.

The code can be found at https://dev.azure.com/transport-canada/DSD-CIVAV Support/_git/CAMIS Report Generator.

...

Open the project in Visual Studio.

...

Open frmSelectUtilFunction.vb file and update line 1902 to the file path for your folder.

Code Block
Dim directoryPath As String = "C:\Users\lemi\Desktop\CAMIS Auto-Generated Reports\" + DateTime.Now.ToString("yyyyMMdd")

...

Run the application.

  • If you are getting errors building the project, you may be missing some files that can be found here: \tc4s0a\Groups\AARA\AARAD\CAMIS\CAMIS Report Generator

Make sure you get no compile error.

From some developer’s experience: Cloning the code inside C:\user\{userId} will cause errors. It is recommended to clone the code outside ‘user’ folder such as C:\Projects\CAMIS_autoweekly\

  1. Open the project in Visual Studio.

  2. Run the application.

  3. Select Production User Database. Click Next.

  4. Keep the defaults in “Step 2: Select Util function” (don’t change anything). Click Next.

  5. Navigate to the folder specified in step 2 and into the folder for today’s date. Click Save.

  6. Popup

    Image Added

  7. The app will automatically create a folder, with the current date, in the “c:\Users” folder for your account:
    Example: C:\Users\dertinn\OneDrive - TC TC\_AAIR_2 (5)\CAMIS Auto-Generated Reports

  8. Wait while the script runs again for the all regions (total of 7 regions).

  9. A popup saying that the “Incoming eMER report and auto-accept script done!” should appear. Click OK,

  10. Wait while the script runs again for the next region (total of 7 regions).

  11. Repeat steps 6-8 until “done” popup appears.

  12. You should now have 7 Excel files in the folder as well as 7 scripts that have opened up.

  13. Run each script using CAMIS_DATA_ADMIN@CAMISP, making sure to commit the changes after running each script. Also make sure you don’t run a script twice.

  14. Send an encrypted email to the clients to let them know, choose “Protected B”, replace the signature in the template with your own info.

12. Backup the files to the shared location, similar to the example, but with its own corresponding task #

to \\Tc4s0a\groups\AARA\AARAD\CAMIS\developer documents\CAMIS_Weekly_Auto-Accept\


Example:
\\Tc4s0a\groups\AARA\AARAD\CAMIS\developer documents\CAMIS_Weekly_Auto-Accept\261463

13. Permanently delete the files from your local drive.

View file
name2022mmdd Weekly Auto-Accept eMER completed.msg