-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.py
145 lines (110 loc) · 2.76 KB
/
Constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
FNAME = "الإسم الشخصي"
FNAME_Y = 150
NAME_Y = 160
FMNAME = "الإسم الشخصي واسم الأب"
FMNAME_Y = 175
FLNAME = "الإسم الشخصي واسم العائلة"
FLNAME_Y = 200
LNAME = "إسم العائلة"
LNAME_Y = 225
ALL_NAME = "الإسم الثلاثي"
ALL_NAME_Y = 250
ID_SEARCH_Y = 275
GENDER = ":الجنس"
GENDERS = ["ذكر", "أنثى"]
GENDER_Y = 160
GENDER_LBL_X = 640
GENDER_WDG_X = 640
ID = ":رقم الهوية"
ID_Y = 160
ID_LBL_X = 830
ID_WDG_X = 825
# BIRTH_Y = 180
# COME_Y = 300
# ABSENT_Y = 340
# DONE_Y = 380
SERIAL = ":الرقم التسلسلي"
SERIAL_YEAR = "سنة الرقم التسلسلي"
SERIAL_Y = 160
SERIAL_YEAR_LBL_X = 180
SERIAL_YEAR_WDG_X = 175
SLASH_LBL_X = 120
SERIAL_WDG_X = 117
HEALTH = ":الصحة"
HEALTH_Y = 200
COME_DATES = ":تواريخ القدوم"
DATES_Y = 240
DESCRIPTION = ":وصف الحالة"
DESCRIPTION_Y = 314
DIAGNOSIS = ":التشخيص"
DIAGNOSIS_Y = 370
THERAPY = ":العلاج"
THERAPY_Y = 435
STATUS = ":الحالة"
SOCIALS = ["أعزب", "متزوج", "مطلّق", "أرمل"]
SOCIAL_Y = 160
SOCIAL_LBL_X = 520
SOCIAL_WDG_X = 520
AGE = ":العمر"
AGE_Y = 160
AGE_LBL_X = 380
AGE_WDG_X = 370
CHILDREN = ":أولاد"
CHILDREN_Y = 200
CHILDREN_LBL_X = 230
CHILDREN_WDG_X = 220
PRAYER = ":صلاة"
PRAYER_Y = 200
PRAYER_LBL_X = 100
PRAYER_WDG_X = 90
LABELS_X = 1110
WIDGETS_X = 1100
WORK = ":العمل"
WORK_Y = 200
WORK_LBL_X = 820
WORK_WDG_X = 810
COMPANION = ":المرافق"
COMPANION_Y = 200
COMPANION_LBL_X = 510
COMPANION_WDG_X = 500
CITY = ":البلد"
CITY_Y = 240
CITY_LBL_X = 1110
CITY_WDG_X = 1100
PHONE = ":الهاتف"
PHONE_Y = 240
PHONE_LBL_X = 810
PHONE_WDG_X = 800
TITLE = "بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمْ"
SUBJECT = "بطاقة علاج"
# FIRST = "الأول"
# SECOND = "الثاني"
# THIRD = "الثالث"
# FOURTH = "الرابع"
# FIFTH = "الخامس"
# SIXTH = "السادس"
# SEVENTH = "السابع"
# EIGHTH = "الثامن"
#
# THERAPYS_NUMS = [FIRST, SECOND, THIRD, FOURTH,
# FIFTH, SIXTH, SEVENTH, EIGHTH]
#
# THERAPYS = [THERAPY[1:] + f" {THERAPYS_NUMS[i]}" for i in range(8)]
ALL_DATA = [ALL_NAME, ID[1:], GENDER[1:], STATUS[1:], AGE[1:], SERIAL[1:], SERIAL_YEAR, CHILDREN[1:], PRAYER[1:], HEALTH[1:], WORK[1:],
COMPANION[1:], CITY[1:], PHONE[1:], DESCRIPTION[1:], DIAGNOSIS[1:], THERAPY[1:]]
NAME_SEARCH = FNAME[1:]
NAME_SEARCH_X = WIDGETS_X - 450
ID_SEARCH = ID[1:]
NAME_NOT_EXISTS = "!لا يمكن إيجاد الإسم"
ID_NOT_EXISTS = "!لا يمكن إيجاد رقم الهوية"
SEARCH = "البحث"
SEARCH_Y = 150
RESULTS = ":النتائج"
RESULTS_Y = 150
IGNORE = "تجاهل"
IGNORE_X = 5
IGNORE_Y = 700
SAVE = "حفظ"
SAVE_X = 75
SAVE_Y = 700
DONE = "تم"