authordashboard.component.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <section class="content-header">
  2. <h4 translate>
  3. <span class="fa fa-table"></span>&nbsp;Dashboard
  4. <small> </small>
  5. </h4>
  6. </section>
  7. <section class="content">
  8. <div class="box padding-15 clearfix" style="display: block;">
  9. <div class="row">
  10. <div class="col-sm-9">
  11. <a href="#/dashboard"><i class="fa fa-dashboard"></i> Go back to dashboard</a>
  12. </div>
  13. <div class="col-sm-3 pull-right">
  14. <div class="input-group">
  15. <input type="text" class="form-control" placeholder="Search Text" [(ngModel)]="searchText"
  16. (ngModelChange)="this.searchTextChange.next($event)" aria-label="Search">
  17. <!-- <span class="input-group-append">
  18. <button class="btn btn-primary waves-effect waves-themed btn-sm" type="button">
  19. <span class="fal fa-search"></span>
  20. </button>
  21. </span> -->
  22. <span class="input-group-append">
  23. <button class="btn btn-primary waves-effect waves-themed btn-sm" type="button">
  24. <span class="fal fa-search"></span>
  25. </button>
  26. </span>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="table-responsive">
  31. <table class="table jambo_table table-striped table-condensed table-hover" style="margin-bottom:0 !important;">
  32. <thead>
  33. <tr class="headings">
  34. <th style="width:60px">#</th>
  35. <th *ngIf="(edit==true || delete==true)" style="white-space: nowrap;">
  36. <label style="font-weight:bold;margin-bottom:0px;">Action</label>&nbsp;&nbsp;
  37. </th>
  38. <th class="pointer" (click)="sort('projectname')" style="white-space: nowrap;">
  39. Project Name
  40. <i *ngIf="key =='projectname'" class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i>
  41. </th>
  42. <th class="pointer" (click)="sort('project_subtitle')" style="white-space: nowrap;">
  43. Project Definition Name
  44. <i *ngIf="key =='project_subtitle'" class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i>
  45. </th>
  46. <th class="pointer" (click)="sort('job_name')" style="white-space: nowrap;">
  47. Job Name
  48. <i *ngIf="key =='job_name'" class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i>
  49. </th>
  50. <th class="pointer" (click)="sort('title')" style="white-space: nowrap;">
  51. Chapter Name
  52. <i *ngIf="key =='title'" class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i>
  53. </th>
  54. <th class="pointer" (click)="sort('stagename_alias')">Stage Name <i
  55. class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i>
  56. </th>
  57. <th class="pointer" (click)="sort('lotstatus')">Lot Status <i
  58. class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i>
  59. </th>
  60. <th class="pointer" (click)="sort('lotstatus')">Status <i *ngIf="key =='lotstatus'"
  61. class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i></th>
  62. <th class="pointer" (click)="sort('duedate')" >Due date
  63. <i *ngIf="key =='duedate'"
  64. class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i></th>
  65. <th class="pointer" (click)="sort('iswebapp')">Required Action <i *ngIf="key =='iswebapp'"
  66. class="fa {{reverse==true?'fa-caret-up':'fa-caret-down'}}"></i></th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. <tr
  71. *ngFor="let item of projectDetails| orderBy: key : reverse |filter:searchText|paginate: { itemsPerPage: itemsPerPage, currentPage: p ,totalItems:totalCount};let i = index">
  72. <td>{{itemsPerPage * (p - 1) + i + 1}}</td>
  73. <td *ngIf="(edit==true || delete==true)">
  74. <!-- <span class="glyphicon glyphicon-pencil blue" style="cursor:pointer;"
  75. (click)="openApplicationModal(applicationTemplate,'update',item)" title="Edit"
  76. *ngIf="edit==true"></span>&nbsp;&nbsp;
  77. <span *ngIf="item.active==1 && delete==true" class="img-active" style="cursor:pointer;"
  78. (click)="OpenConfirmTemplate(item)" title="Active"></span>
  79. <span *ngIf="item.active==0 && delete==true" class="img-inactive" style="cursor:pointer;"
  80. (click)="OpenConfirmTemplate(item)" title="Inactive"></span> -->
  81. </td>
  82. <td style="white-space: nowrap;">{{item.projectname}}</td>
  83. <td>{{item.project_subtitle}} </td>
  84. <td>{{item.job_name}} </td>
  85. <td>
  86. <a *ngIf="(item.lotstatus == 'R' || item.lotstatus == 'YTS') && item.holdreason === '0'"
  87. (click)="WorkArea(item.pickedby,item.transactionid,item.weburl,item.projectdefinitionid)" class="badge bg-green">
  88. {{item.title}} <i class="fa fa-angle-double-right" aria-hidden="true"></i>
  89. </a>
  90. <a *ngIf="(item.lotstatus == 'R' || item.lotstatus == 'YTS') && item.holdreason === 1" title="{{item.reassign}}"
  91. (click)="WorkArea(item.pickedby,item.transactionid,item.weburl,item.projectdefinitionid)" class="badge" style="background-color:#a20596">
  92. {{item.title}} <i class="fa fa-angle-double-right" aria-hidden="true"></i>
  93. </a>
  94. <a *ngIf="((item.lotstatus == 'P' || item.lotstatus == 'H') && item.pickedby == userid)" title="Picked by {{item.empname}}"
  95. (click)="WorkArea(item.pickedby,item.transactionid,item.weburl,item.projectdefinitionid)" class="badge bg-yellow">
  96. {{item.title}} <i class="fa fa-angle-double-right" aria-hidden="true"></i>
  97. </a>
  98. <a *ngIf="((item.lotstatus == 'P' || item.lotstatus == 'H') && item.pickedby != userid)" title="Picked by {{item.empname}}"
  99. class="badge bg-yellow" style="cursor:pointer;">
  100. {{item.title}} <i class="fa fa-lock" aria-hidden="true"></i>
  101. </a>
  102. <a *ngIf="item.lotstatus == 'I' && item.pickedby == userid" title="Picked by {{item.empname}}"
  103. (click)="WorkArea(item.pickedby,item.transactionid,item.weburl,item.projectdefinitionid)" class="badge bg-blue">{{item.title}}
  104. <i class="fa fa-angle-double-right" aria-hidden="true"></i></a>
  105. <a *ngIf="item.lotstatus == 'I'&& item.pickedby != userid" title="Picked by {{item.empname}}" class="badge bg-blue" style="cursor: pointer;">
  106. {{item.title}} <i class="fa fa-lock" aria-hidden="true"></i></a>
  107. <label *ngIf="item.lotstatus == 'C'">{{item.title}}</label>
  108. </td>
  109. <!-- <td>
  110. <a *ngIf="(item.lotstatus == 'R' || item.lotstatus == 'YTS') && item.holdreason === '0' " >
  111. Start
  112. </a>
  113. <a *ngIf="(item.lotstatus == 'R' || item.lotstatus == 'YTS') && item.holdreason === '1'" >
  114. Start
  115. </a>
  116. <a *ngIf="item.lotstatus == 'P' || item.lotstatus == 'H'" title="Picked by {{item.empname}}" >
  117. Open
  118. </a>
  119. <a *ngIf="item.lotstatus == 'I'" >Re Open </a>
  120. </td> -->
  121. <td>{{item.stagename_alias}}</td>
  122. <td>{{item.lotstatus}}</td>
  123. <td> {{item.status_notes}}
  124. </td>
  125. <td>{{item.duedate}} </td>
  126. <td> {{item.action_notes}}
  127. </td>
  128. </tr>
  129. <tr *ngIf="projectDetails.length==0 || (projectDetails |filter:searchText).length === 0">
  130. <td colspan="11" style="text-align:center;">No Records Found</td>
  131. </tr>
  132. </tbody>
  133. </table>
  134. </div>
  135. <div *ngIf="projectDetails && projectDetails.length >0" class="row paggination-control">
  136. <div class="col-lg-7 col-md-7 col-sm-12" *ngIf="projectDetails && projectDetails.length >0">
  137. <div class="page_count">
  138. <span style="padding-top:5px; ">
  139. {{(itemsPerPage*p)-itemsPerPage+1}} - {{
  140. itemsPerPage*p > totalCount ? totalCount: itemsPerPage*p
  141. }} of {{totalCount}}
  142. </span>
  143. </div>
  144. <div class="pager_controller">
  145. <pagination-controls (pageChange)="getPage($event)"></pagination-controls>
  146. </div>
  147. </div>
  148. <div class="col-sm-12 col-lg-5 col-md-5">
  149. <div class="pull-right">
  150. <label>Items per page</label>
  151. <select class="form-control page-count-ctrl" style="width: auto; display: inline-block; margin-left: 15px;" name="itemsperpage" [(ngModel)]="itemsPerPage" (change)="changeitemsperpage($event);">
  152. <option [value]="10" selected>10</option>
  153. <option [value]="20">20</option>
  154. <option [value]="50">50</option>
  155. <option [value]="100">100</option>
  156. </select>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </section>
  162. <ngx-spinner bdColor="rgba(255, 255, 255, 0.8)" size="default" type="line-scale-party" [fullScreen]="false">
  163. </ngx-spinner>
  164. <!-- <ng-template #applicationTemplate>
  165. <div class="modal-content" id="mainNgCnt" ngDraggable [handle]="dragHandle">
  166. <div class="modal-header" style="cursor:move" #dragHandle>
  167. <h4 class="modal-title pull-left" *ngIf="operation=='add'"><span class="fa fa-plus"></span>&nbsp;Add New
  168. Application</h4>
  169. <h4 class="modal-title pull-left" *ngIf="operation=='update'"><span class="fa fa-pencil"></span>&nbsp;Edit
  170. Application</h4>
  171. <button type="button" class="close pull-right" aria-label="Close" (click)="applicationModalRef.hide()">
  172. <span aria-hidden="true">&times;</span>
  173. </button>
  174. </div>
  175. <div class="modal-body">
  176. <form [formGroup]="applicationForm" (ngSubmit)="Post(applicationForm.value)">
  177. <input type="hidden" name="applicationid" formControlName="applicationid" />
  178. <div class="form-group">
  179. <label class="col-md-3 control-label">
  180. Application<span style="color:red;">*</span>
  181. </label>
  182. <div class="col-md-9">
  183. <input type="text" trim placeholder="application" name="application" formControlName="application"
  184. class="form-control" />
  185. </div>
  186. </div>
  187. <div class="form-group">
  188. <label class="col-md-3 control-label">
  189. Exe path
  190. </label>
  191. <div class="col-md-9">
  192. <input type="text" trim placeholder="exepath" name="exepath" formControlName="exepath"
  193. class="form-control" />
  194. </div>
  195. </div>
  196. <div class="form-group">
  197. <label class="col-md-3 control-label">
  198. Service url
  199. </label>
  200. <div class="col-md-9">
  201. <input type="text" trim placeholder="serviceurl" name="serviceurl" formControlName="serviceurl"
  202. class="form-control" />
  203. </div>
  204. </div>
  205. <div class="form-group">
  206. <label class="col-md-3 control-label">
  207. App version
  208. </label>
  209. <div class="col-md-9">
  210. <input type="text" trim placeholder="appversion" name="appversion" formControlName="appversion"
  211. class="form-control" />
  212. </div>
  213. </div>
  214. <div class="form-group">
  215. <label class="col-md-3 control-label">
  216. Paramss
  217. </label>
  218. <div class="col-md-9">
  219. <input type="text" trim placeholder="paramss" name="paramss" formControlName="paramss"
  220. class="form-control" />
  221. </div>
  222. </div>
  223. <div class="form-group">
  224. <label class="col-md-3 control-label">
  225. Web url
  226. </label>
  227. <div class="col-md-9">
  228. <input type="text" trim placeholder="weburl" name="weburl" formControlName="weburl" class="form-control" />
  229. </div>
  230. </div>
  231. <div class="row">
  232. <div class="col-md-3"></div>
  233. <div class="col-md-9">
  234. <div class="form-inline row">
  235. <div class="form-group col-md-4">
  236. <label class="control-label">
  237. <input type="checkbox" trim placeholder="isexe" name="isexe" formControlName="isexe" />isexe
  238. </label>
  239. </div>
  240. <div class="form-group col-md-4">
  241. <label class="control-label">
  242. <input type="checkbox" trim placeholder="isservice" name="isservice" formControlName="isservice" />
  243. isservice </label>
  244. </div>
  245. <div class="form-group col-md-4">
  246. <label class="control-label">
  247. <input type="checkbox" trim placeholder="iswebapp" name="iswebapp" formControlName="iswebapp" />
  248. iswebapp </label>
  249. </div>
  250. <div class="form-group col-md-6">
  251. <label>
  252. <input type="checkbox" trim placeholder="isoutlineconfigtemplate" name="isoutlineconfigtemplate"
  253. formControlName="isoutlineconfigtemplate" /> isoutline configtemplate</label>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <div class="form-group" style="padding-top: 20px;">
  259. <label class="col-md-3">
  260. Features
  261. </label>
  262. <div *ngFor="let feature of FeatureselectedItems;let i = index" class="col-md-8">
  263. <div class="scolumn">
  264. <input type="checkbox" [checked]="feature.active" id={{feature.mdata}}
  265. (change)="ChangeActive1($event)" name={{feature.mdata}}>
  266. <label for={{feature.mdata}}>{{feature.mdata}}</label><br>
  267. </div>
  268. </div>
  269. </div>
  270. <div *ngIf="operation=='update'">
  271. <div class="form-group">
  272. <label class="col-md-3">
  273. </label>
  274. <div class="col-md-8">
  275. <input type="checkbox" (change)="ChangeActive()" name="active"
  276. formControlName="active" /><label>Active</label>
  277. </div>
  278. </div>
  279. </div>
  280. <div class="form-group">
  281. <button type="button" class="btn btn-primary pull-right " (click)="clearForm();">Cancel</button>
  282. <button type="submit" *ngIf="(edit==true || add==true)" class="btn-primary btn pull-right"
  283. [disabled]="applicationForm.invalid">
  284. <span *ngIf="operation=='add' && add==true">Add</span>
  285. <span *ngIf="operation!='add' && edit==true">Update</span>
  286. </button>
  287. </div>
  288. </form>
  289. </div>
  290. </div>
  291. </ng-template> -->