Hima 5 years ago
parent
commit
cd320daffe

+ 2 - 2
src/app/dashboard/print-card-trainee/print-card-trainee-add/print-card-trainee-add.component.html

@@ -16,8 +16,8 @@
 
           <div class="col-12 col-md-12 col-lg-6">
             <div class="card">
-              <h2>تعليمات</h2>
-              <p>في حاله فقدان هذه البطاقه أو انتهاء خدمات المتدرب أو العثور عليها تسليمها أو ابلاغ إداره الإمن والسلامه بمجمع الملك فيصل الطبي بصحه الطائف </p>        
+              <h2 class="infoPrint">تعليمات</h2>
+              <p class="parPrint">في حاله فقدان هذه البطاقه أو انتهاء خدمات المتدرب أو العثور عليها تسليمها أو ابلاغ إداره الإمن والسلامه بمجمع الملك فيصل الطبي بصحه الطائف </p>        
               <div class="card-body" style="margin-top:60px;">
                 <p>  التخصص : <span>{{ requestCardData.specialization_name ? requestCardData.specialization_name : 'لايوجد' }}</span></p>
                 <p>التخصص الدقيق : <span>{{ requestCardData.specific_specialization ? requestCardData.specific_specialization : 'لايوجد' }}</span></p>

+ 46 - 1
src/app/dashboard/print-card-trainee/print-card-trainee-add/print-card-trainee-add.component.ts

@@ -240,7 +240,52 @@ export class PrintCardTraineeAddComponent implements OnInit {
         <head>
           <title> طباعه بطاقه المتدرب</title>
           <style>
-          //........Customized style.......
+            .infoPrint {
+              text-align:center
+            }
+            .parPrint {
+              text-align: right;
+            }
+
+            .card {
+              width: 350px;
+              height: 350px;
+              display: inline-block;
+              padding: 20px 15px;
+              margin: 50px auto;
+              border: 1px solid #ccc;
+              box-shadow: 0 1px 3px 1px #ccc;
+          }
+
+          .imgCard-w {
+            width: 150px;
+            height: 150px;
+            border: 1px solid #ccc;
+            margin: 10px auto;
+        }
+        
+        .imgCard-w img{
+            width: 100%;
+            height: 100%;
+            border: 1px solid #ccc;
+        }
+
+        .card-body p {
+          text-align: right;
+        }
+        
+        .card-body p span {
+            color: #007a71;
+            font-weight: bold;
+        } 
+        .userForm-w {
+            width: 100%;
+            padding: 20px 0;
+            margin-top: -6px;
+            direction: rtl;
+            font-family: 'Cairo', sans-serif;
+        }
+
           </style>
         </head>
     <body onload="window.print();window.close()">${printContents}</body>

+ 1 - 1
src/app/dashboard/supervisor/supervisor-add/supervisor-add.component.html

@@ -62,7 +62,7 @@
 
                                   <div class="col-12 col-sm-12 col-md-4" *ngIf="superDeaprt.supervisor_id != ''">
                                     <div class="form-group">
-                                      <label for="supervisor" style="float: right; margin-right: 5px">المشرف<span class="spanReqired-w">*</span></label>
+                                      <label for="supervisor" style="float: right; margin-right: 5px">المشرف<span class="spanReqired-w">*</span></label><br>
                                       <select class="form-control" id="supervisor" name="supervisor_id" [ngModel]="superDeaprt.supervisor_id" required>
                                         <option *ngFor="let supervisor of supervisorList" [value]="supervisor.id">{{supervisor.name}}</option>
                                       </select>

+ 23 - 21
src/app/dashboard/supervisor/supervisor-add/supervisor-add.component.ts

@@ -107,7 +107,7 @@ export class SupervisorAddComponent implements OnInit {
         console.log(responce);
         this.supervisorList = responce['users'];
         if(this.supervisorList.length == 0) {
-          this.toastr.warning('  القسم ليس لديه مستخدمين !');
+          this.toastr.warning('  القسم ليس لديه مشرفين !');
         }
       },
       (error) => {
@@ -135,29 +135,31 @@ export class SupervisorAddComponent implements OnInit {
     )
   }
 
+
+
   onSubmitted(form: NgForm) {
     this.formData = form.value;
-    if(this.supervisorId){
-      this.formData['department_id'] = this.superDeaprt.department_id;
-    }
+    // if(this.supervisorId){
+    //   this.formData['department_id'] = this.superDeaprt.department_id;
+    // }
     console.log(this.formData);
-    this.dashboardService.addItem(this.formData, 'supervisor').subscribe(
-      (responce) => {
-        console.log(responce);
-        this.checkSaveClick = false;
-        if(this.supervisorId) {
-          this.toastr.success('تمت التعديل بنجاح');
-        } else {
-          this.toastr.success('تمت الاضافه بنجاح');
-        }
-        this.location.back();
-      },
-      (error) => {
-        console.log(error);
-        this.checkSaveClick = false;
-        this.toastr.error('خطأ في الحفظ !');
-      }
-    );
+    // this.dashboardService.addItem(this.formData, 'supervisor').subscribe(
+    //   (responce) => {
+    //     console.log(responce);
+    //     this.checkSaveClick = false;
+    //     if(this.supervisorId) {
+    //       this.toastr.success('تمت التعديل بنجاح');
+    //     } else {
+    //       this.toastr.success('تمت الاضافه بنجاح');
+    //     }
+    //     this.location.back();
+    //   },
+    //   (error) => {
+    //     console.log(error);
+    //     this.checkSaveClick = false;
+    //     this.toastr.error('خطأ في الحفظ !');
+    //   }
+    // );
   }
 
 }

+ 1 - 1
src/app/dashboard/vehicle-movement-report/vehicle-movement-report/vehicle-movement-report.component.html

@@ -90,7 +90,7 @@
                       <td>{{mainten.start_date}}</td>
                       <td>{{mainten.delivery_date}}</td>
                       <td>{{mainten.maintenance_notes}}</td>
-                      <td>{{mainten.is_maintained == '0' ? 'تم الصيانة' : mainten.is_maintained == '1' ? 'لم تنتهي' : 'not fouind'  }}</td>     
+                      <td>{{mainten.is_maintained == '1' ? 'تم الصيانة' : mainten.is_maintained == '0' ? 'لم تنتهي' : 'not fouind'  }}</td>     
                   </tr>
                 </tbody>
               </table>