Archive
Python: Simple Ticket System
Subject: Writing a Simple Ticket System Application
Learning : Python, SQL, Logeic
Introduction:
A Ticket System serves is a tool for managing and tracking customer support interactions or internal task requests efficiently. It offers a centralized platform where users can submit their issues, questions, or requests, known as Tickets, and designated personnel can address them promptly. This article outlines the structure and functionality of a Ticket System, emphasizing the importance of organization, efficiency, and accountability in handling various requests.
In coming weeks I will work to create Python “Simple Ticket System”, using DataBase to store the data,I will try to publish the code and documentation about this project. In this post I will draft-down a brain-storming session with myself of what may we need in this system, tables and functions. So points may not be consistent and organized and ordered in the right way.
Notes:
- Anything in this articale concidered as draft and may changed later.
- Functions and Tables in coming lines are not in order
- creation of the database will not be in one time, so we will use ALTER many times to add or change the tables.
- All the data will be as test and not real.
Functions:
Main Functions in the system to add and manage the data and interact with the Database and records.
- 1. Tickets:
- 2. Priority.
- 3. Department.
- 4. Status.
- 5. Category.
Add, Edit, Delete and Show Tickets in the system.
Add, Edit, Delete and Show Priorety in the system.
Add, Edit, Delete and Show Department in the system.
Add, Edit, Delete and Show Status in the system.
Add, Edit, Delete and Show Category in the system.
Helping Functions:
Functions that will help to perform some action within the system or other main function.
- 1. Show List:
- 2. Export to Excle:
- 3. Check Availability:
To list/show the data we have in a lookup table.
Exporting the data to an excel file.[Backup]
To check if the user input is exist in the lookup table or not.
Tables:
All the Tables Names and fields are subject of change during the implementation.
1. Staff Table (staff):
- s_id (Staff ID)
- name
- mobile
- position (manager, technical, etc.)
2. Ticket Table (ticket):
- t_id (Ticket ID)
- dep_id (Department ID)
- date (Creation Date)
- asignto (Assigned To: s_id)
- description
- priority_id (High, Medium, Low)
- status_id (Open, In Progress, Resolved, Closed)
- updated_date
- category
3. Category Table:
- c_id (Category ID)
- cat_name (Category Name)
4. Ticket Notes Table (t_notes):
5.Priority Table (priority):
- pr_id (Priority ID)
- pri_level (Priority Level: High, Medium, Low)
6.Status Table (status):
- stat_id (Status ID)
- stat (Status: Open, In Progress, Resolved, Closed)
7.Staff Job Table (staff_job):
- sj_id (Job ID)
- job_id
- received_date
- finished_date
- status_id
- note_id
8.Departments Table (departments):
Versions Policy:
In this system i will create version 1 and will be released with all esintial functions to perform and work, however there will be some ideas to enhance the data entry and reporting also some validations that will be done later in version 2.
Part 1:
in Part1 we will do the folloeing:
- Define the Tables and their fields initially.
- Write the code to create the database and selected tables.
- Writing the code to insert initial data in selected tables .
- Initial naming of functions.
- Create the Main Menu
- Create the Menu for the Lookups Table
:: Ticket System ::
| Intorduction | Part 1 | Part 2 | Part 3 |
..:: Have Fun with Coding ::.. 🙂
To Download my Python code (.py) files Click-Here
By: Ali Radwani
Python: Expenditure App
Expenditure Application
In this post, we will go through the case study of our application.
‘ The Case’
We want to build an application to store and retrieve some data regard our expenditure, we will go as simple as two keys (date and amount), and we will save the data in a json file. So to view the data we need some functions to do some operations on the data such as Add, Delete, retrieve and change.
I will use the @pycharm to write the code and test it, but any other code editors can be used. Also, I assume we have Python and json installed in your PC.
HTML,ASP, .NET Codes ….. P1
- HTML page auto refresh
- Pass info from page to another in ASP
URL is the target web page
_________________________________________________________________________________
Example of if you click a LINK, it will jump to page2.asp with some info(name=ali-asp)
—- the code:
under the asp tag or in normal html:
open a (<) tag
write: a href="page2.asp?namr=ali-asp"
then close the tag (>)
then open the same tag (<) write : a then close the tag (>)
All red to be in one line
in the other page: page2.asp
dim myvar
myvar=request.querystring("name")
or
response.write(request.querystring("name"))
Follow me on Twitter..

