template.component.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <mat-toolbar class="toolbar" (window:resize)="onResize()">
  2. <mat-toolbar-row class="p-0">
  3. <div class="toolbar-row">
  4. <div class="menu-items">
  5. <h1 style="color: #e0e0e0; margin: 0;">{{ title }}</h1>
  6. <div class="example-spacer">
  7. <div *ngIf="maintenanceActivated" class="time-counter">
  8. {{ timeLeft }}
  9. </div>
  10. </div>
  11. <button mat-button class="white_font animated fadeIn" *ngIf="!isLoading && !maintenanceMode" (click)="modulesActivated = !modulesActivated">
  12. <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon> MÓDULOS
  13. </button>
  14. <button mat-button [matMenuTriggerFor]="menuA" class="white_font animated fadeIn" *ngIf="!isLoading && !maintenanceMode">
  15. <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon> {{ userName }}
  16. </button>
  17. <mat-menu #menuA="matMenu">
  18. <button mat-menu-item><mat-icon>person</mat-icon> Mi perfil</button>
  19. <button mat-menu-item><mat-icon>help</mat-icon> Ayuda</button>
  20. <button mat-menu-item><mat-icon>key</mat-icon> Cambiar contraseña</button>
  21. <button mat-menu-item (click)="logoutTemp()"><mat-icon>logout</mat-icon> Cerrar sesión</button>
  22. </mat-menu>
  23. <span class="m-8"></span>
  24. <div class="search-mat-form-field animated fadeIn" *ngIf="!isLoading && !maintenanceMode">
  25. <mat-icon class="prefix">search</mat-icon>
  26. <input type="text" class="input" placeholder="Buscar ubicaciones, archivos, etc..." #input>
  27. <button mat-icon-button [disabled]="input.value === ''">
  28. <mat-icon class="suffix">close</mat-icon>
  29. </button>
  30. </div>
  31. </div>
  32. <div class="icon-modules-container" [ngClass]="{
  33. hidden: !modulesActivated, animate_hide: modulesActivated
  34. }">
  35. <div class="row-container">
  36. <div class="row-item" *ngFor="let item of menuItems" (click)="navigate(item.IDMODULO)">
  37. <mat-icon>{{ item.ICONOMODULO }}</mat-icon>
  38. <p>{{ item.NOMBREMODULO }}</p>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </mat-toolbar-row>
  44. </mat-toolbar>
  45. <mat-drawer-container class="example-container" autosize>
  46. <mat-drawer #drawer class="example-sidenav" mode="side">
  47. <div style="margin-top: 30px;">
  48. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  49. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  50. <mat-expansion-panel-header>
  51. <mat-panel-title style="color: #808080;">
  52. <mat-icon style="margin-right: 5px; color: #F78F1E;">add_shopping_cart</mat-icon> Módulo de
  53. Adquisiciones
  54. </mat-panel-title>
  55. <mat-panel-description>
  56. </mat-panel-description>
  57. </mat-expansion-panel-header>
  58. <div>
  59. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  60. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  61. <mat-expansion-panel-header>
  62. <mat-panel-title style="color: #808080">
  63. <mat-icon style="color: #F78F1E; margin-right: 10px;">local_grocery_store</mat-icon>
  64. Adquisiciones
  65. </mat-panel-title>
  66. <mat-panel-description>
  67. </mat-panel-description>
  68. </mat-expansion-panel-header>
  69. <div class="divBotones">
  70. <button mat-button style="color: #808080" [routerLink]="['/sam/formulario-adquisicion']">
  71. <mat-icon style="color: #F78F1E;">app_registration</mat-icon> Registro de Adquisiciones
  72. </button>
  73. </div>
  74. <div class="divBotones">
  75. <button mat-button style="color: #808080" [routerLink]="['/sam/seguimiento']">
  76. <mat-icon style="color: #F78F1E;">local_shipping</mat-icon>
  77. Seguimiento de Pedidos
  78. </button>
  79. </div>
  80. <div class="divBotones">
  81. <button mat-button style="color: #808080" [routerLink]="['/sam/seguimiento-ordenes']">
  82. <mat-icon style="color: #F78F1E;">sell</mat-icon>
  83. Seguimiento de Ordenes de Compra
  84. </button>
  85. </div>
  86. <div class="divBotones">
  87. <button mat-button style="color: #808080" [routerLink]="['/sam/requests-fields']">
  88. <mat-icon style="color: #F78F1E;">rate_review</mat-icon>
  89. Solicitudes de formulario
  90. </button>
  91. </div>
  92. </mat-expansion-panel>
  93. </div>
  94. <div>
  95. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  96. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  97. <mat-expansion-panel-header>
  98. <mat-panel-title style="color: #808080">
  99. <mat-icon style="color: #F78F1E; margin-right: 10px;">groups</mat-icon> Proveedores
  100. </mat-panel-title>
  101. <mat-panel-description>
  102. </mat-panel-description>
  103. </mat-expansion-panel-header>
  104. <div class="divBotones">
  105. <button mat-button style="color: #808080" [routerLink]="['/sam/lista_proveedores']">
  106. <mat-icon style="color: #F78F1E;">find_in_page</mat-icon> Consulta Proveedores
  107. </button>
  108. </div>
  109. <div class="divBotones">
  110. <button mat-button style="color: #808080" [routerLink]="['/sam/catalogos']">
  111. <mat-icon style="color: #F78F1E;">view_list</mat-icon> Catálogo de Proveedores
  112. </button>
  113. </div>
  114. <div class="divBotones">
  115. <button mat-button style="color: #808080" [routerLink]="['/sam/proveedores-articulos']">
  116. <mat-icon style="color: #F78F1E;">manage_accounts</mat-icon> Gestión Proveedores por
  117. Artículo
  118. </button>
  119. </div>
  120. <div class="divBotones">
  121. <button mat-button style="color: #808080" [routerLink]="['/sam/solicitud-precios']">
  122. <mat-icon style="color: #F78F1E;">attach_money</mat-icon> Solicitar Precio
  123. </button>
  124. </div>
  125. </mat-expansion-panel>
  126. </div>
  127. <div>
  128. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  129. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  130. <mat-expansion-panel-header>
  131. <mat-panel-title style="color: #808080">
  132. <mat-icon style="color: #F78F1E; margin-right: 10px;">local_shipping</mat-icon> Despacho
  133. </mat-panel-title>
  134. <mat-panel-description>
  135. </mat-panel-description>
  136. </mat-expansion-panel-header>
  137. <div class="divBotones">
  138. <button mat-button style="color: #808080" [routerLink]="['/sam/recepcion-pedidos']">
  139. <mat-icon style="color: #F78F1E;">inventory</mat-icon> Recepción de Pedidos
  140. </button>
  141. </div>
  142. <div class="divBotones">
  143. <button mat-button style="color: #808080" [routerLink]="['/sam/seguimiento-problemas']">
  144. <mat-icon style="color: #F78F1E;">report_problem</mat-icon> Seguimiento de Problemas
  145. </button>
  146. </div>
  147. <div class="divBotones">
  148. <button mat-button style="color: #808080" [routerLink]="['/sam/retrasos-entrega']">
  149. <mat-icon style="color: #F78F1E;">analytics</mat-icon> Análisis de Retrasos
  150. </button>
  151. </div>
  152. <div class="divBotones">
  153. <button mat-button style="color: #808080" [routerLink]="['/sam/entregas-parciales']">
  154. <mat-icon style="color: #F78F1E;">incomplete_circle</mat-icon> Entregas Parciales
  155. </button>
  156. </div>
  157. </mat-expansion-panel>
  158. </div>
  159. <div>
  160. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  161. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  162. <mat-expansion-panel-header>
  163. <mat-panel-title style="color: #808080">
  164. <mat-icon style="color: #F78F1E; margin-right: 10px;">receipt</mat-icon> Facturas
  165. </mat-panel-title>
  166. <mat-panel-description>
  167. </mat-panel-description>
  168. </mat-expansion-panel-header>
  169. <div class="divBotones">
  170. <button mat-button style="color: #808080" [routerLink]="['/sam/consultar-facturas']">
  171. <mat-icon style="color: #F78F1E;">list_alt</mat-icon> Consultar Facturas
  172. </button>
  173. </div>
  174. <div class="divBotones">
  175. <button mat-button style="color: #808080" [routerLink]="['/sam/facturas-pendientes']">
  176. <mat-icon style="color: #F78F1E;">receipt_long</mat-icon> Facturas Pendientes
  177. </button>
  178. </div>
  179. </mat-expansion-panel>
  180. </div>
  181. </mat-expansion-panel>
  182. </div>
  183. <div>
  184. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  185. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  186. <mat-expansion-panel-header>
  187. <mat-panel-title style="color: #808080">
  188. <mat-icon style="margin-right: 5px; color: #F78F1E;">account_circle </mat-icon> Módulo de
  189. Usuarios
  190. </mat-panel-title>
  191. <mat-panel-description>
  192. </mat-panel-description>
  193. </mat-expansion-panel-header>
  194. <div class="divBotones">
  195. <button mat-button style="color: #808080" (click)="openViewUsersAdmin()">
  196. <mat-icon style="color: #F78F1E;">person_add</mat-icon> Registrar Usuario
  197. </button>
  198. </div>
  199. <div class="divBotones">
  200. <button mat-button style="color: #808080" (click)="openViewProfilesAdmin()">
  201. <mat-icon style="color: #F78F1E;">account_box</mat-icon> Perfil de Usuario
  202. </button>
  203. </div>
  204. </mat-expansion-panel>
  205. </div>
  206. <div>
  207. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  208. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  209. <mat-expansion-panel-header>
  210. <mat-panel-title style="color: #808080">
  211. <mat-icon style="margin-right: 5px;color: #F78F1E;">fact_check</mat-icon> Módulo de Gestión de
  212. Stock
  213. </mat-panel-title>
  214. <mat-panel-description>
  215. </mat-panel-description>
  216. </mat-expansion-panel-header>
  217. </mat-expansion-panel>
  218. </div>
  219. <div>
  220. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  221. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  222. <mat-expansion-panel-header>
  223. <mat-panel-title style="color: #808080">
  224. <mat-icon style="margin-right: 5px;color: #F78F1E;">handyman</mat-icon> Módulo de Mantenimiento
  225. Preventivo
  226. </mat-panel-title>
  227. <mat-panel-description>
  228. </mat-panel-description>
  229. </mat-expansion-panel-header>
  230. </mat-expansion-panel>
  231. </div>
  232. <div>
  233. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  234. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  235. <mat-expansion-panel-header>
  236. <mat-panel-title style="color: #808080">
  237. <mat-icon style="margin-right: 5px; color: #F78F1E;">warning</mat-icon> Módulo de Mantenimiento
  238. Correctivo
  239. </mat-panel-title>
  240. <mat-panel-description>
  241. </mat-panel-description>
  242. </mat-expansion-panel-header>
  243. </mat-expansion-panel>
  244. </div>
  245. <div>
  246. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  247. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  248. <mat-expansion-panel-header>
  249. <mat-panel-title style="color: #808080">
  250. <mat-icon style="margin-right: 5px; color: #F78F1E;">build</mat-icon> Módulo de Gestión de
  251. Equipamiento
  252. </mat-panel-title>
  253. <mat-panel-description>
  254. </mat-panel-description>
  255. </mat-expansion-panel-header>
  256. </mat-expansion-panel>
  257. </div>
  258. <div>
  259. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  260. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  261. <mat-expansion-panel-header>
  262. <mat-panel-title style="color: #808080">
  263. <mat-icon style="margin-right: 5px; color: #F78F1E;">request_quote</mat-icon> Módulo de
  264. Contadores y Activadores
  265. </mat-panel-title>
  266. <mat-panel-description>
  267. </mat-panel-description>
  268. </mat-expansion-panel-header>
  269. </mat-expansion-panel>
  270. </div>
  271. <div>
  272. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  273. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  274. <mat-expansion-panel-header>
  275. <mat-panel-title style="color: #808080">
  276. <mat-icon style="margin-right: 5px; color: #F78F1E;">schema </mat-icon> Módulo de Gestión de los
  277. procesos
  278. (Workflow)
  279. </mat-panel-title>
  280. <mat-panel-description>
  281. </mat-panel-description>
  282. </mat-expansion-panel-header>
  283. <div class="divBotones">
  284. <button mat-button style="color: #808080" [routerLink]="['/sam/workflow']">
  285. <mat-icon style="color: #F78F1E;">analytics</mat-icon> Consultar workflows
  286. </button>
  287. </div>
  288. </mat-expansion-panel>
  289. </div>
  290. <div>
  291. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  292. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  293. <mat-expansion-panel-header>
  294. <mat-panel-title style="color: #808080">
  295. <mat-icon style="margin-right: 5px; color: #F78F1E;">assessment</mat-icon> Módulo de Análisis de
  296. Fallas
  297. </mat-panel-title>
  298. <mat-panel-description>
  299. </mat-panel-description>
  300. </mat-expansion-panel-header>
  301. </mat-expansion-panel>
  302. </div>
  303. <div>
  304. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  305. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  306. <mat-expansion-panel-header>
  307. <mat-panel-title style="color: #808080">
  308. <mat-icon style="margin-right: 5px; color: #F78F1E;">data_thresholding</mat-icon> Módulo de
  309. Panel de Control
  310. </mat-panel-title>
  311. <mat-panel-description>
  312. </mat-panel-description>
  313. </mat-expansion-panel-header>
  314. </mat-expansion-panel>
  315. </div>
  316. <div>
  317. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  318. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  319. <mat-expansion-panel-header>
  320. <mat-panel-title style="color: #808080">
  321. <mat-icon style="margin-right: 5px; color: #F78F1E;">engineering</mat-icon> Módulo de Gestión
  322. del Personal de
  323. Mantenimiento
  324. </mat-panel-title>
  325. <mat-panel-description>
  326. </mat-panel-description>
  327. </mat-expansion-panel-header>
  328. </mat-expansion-panel>
  329. </div>
  330. <div>
  331. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  332. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  333. <mat-expansion-panel-header>
  334. <mat-panel-title style="color: #808080">
  335. <mat-icon style="margin-right: 5px; color: #F78F1E;">paid</mat-icon> Módulo de Presupuestos
  336. </mat-panel-title>
  337. <mat-panel-description>
  338. </mat-panel-description>
  339. </mat-expansion-panel-header>
  340. </mat-expansion-panel>
  341. </div>
  342. <div>
  343. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  344. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  345. <mat-expansion-panel-header>
  346. <mat-panel-title style="color: #808080">
  347. <mat-icon style="margin-right: 5px; color: #F78F1E;">picture_as_pdf</mat-icon> Módulo de Gestión
  348. Documental
  349. Electrónica
  350. </mat-panel-title>
  351. <mat-panel-description>
  352. </mat-panel-description>
  353. </mat-expansion-panel-header>
  354. </mat-expansion-panel>
  355. </div>
  356. <div>
  357. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  358. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  359. <mat-expansion-panel-header>
  360. <mat-panel-title style="color: #808080">
  361. <mat-icon style="margin-right: 5px; color: #F78F1E;">table_chart</mat-icon> Módulo de Gestión de
  362. Tablas
  363. </mat-panel-title>
  364. </mat-expansion-panel-header>
  365. <div class="divBotones">
  366. <button mat-button style="color: #808080" [routerLink]="['/sam/getbgt']" (click)="drawer.toggle()">
  367. <mat-icon style="color: #F78F1E;">grid_on</mat-icon> Gestionar Tablas de Base de Datos
  368. </button>
  369. </div>
  370. <div class="divBotones">
  371. <button mat-button style="color: #808080" [routerLink]="['/sam/getbgm']" (click)="drawer.toggle()">
  372. <mat-icon style="color: #F78F1E;">auto_awesome_mosaic</mat-icon> Gestión de Módulos
  373. </button>
  374. </div>
  375. <div class="divBotones">
  376. <button mat-button style="color: #808080" [routerLink]="['/sam/getbsb']" (click)="drawer.toggle()">
  377. <mat-icon style="color: #F78F1E;">dashboard</mat-icon> Gestión de Submódulos
  378. </button>
  379. </div>
  380. <div class="divBotones">
  381. <button mat-button style="color: #808080" [routerLink]="['/sam/getbme']" (click)="drawer.toggle()">
  382. <mat-icon style="color: #F78F1E;">web_stories</mat-icon> Gestión de Menús
  383. </button>
  384. </div>
  385. <div class="divBotones">
  386. <a mat-button style="color: #808080" [routerLink]="['/sam/getbfo']" (click)="drawer.toggle()">
  387. <mat-icon style="color: #F78F1E;">sticky_note_2</mat-icon> Gestión de Formularios
  388. </a>
  389. </div>
  390. <div class="divBotones">
  391. <button mat-button style="color: #808080" [routerLink]="['/sam/getbtb']" (click)="drawer.toggle()">
  392. <mat-icon style="color: #F78F1E;">table_chart</mat-icon> Gestión de Tablas Dinámicas
  393. </button>
  394. </div>
  395. </mat-expansion-panel>
  396. </div>
  397. <div>
  398. <mat-expansion-panel (opened)="panelOpenState = true" (closed)="panelOpenState = false"
  399. class="mat-expansion-panel ng-tns-c191-1 ng-star-inserted mat-expanded">
  400. <mat-expansion-panel-header>
  401. <mat-panel-title style="color: #808080">
  402. <mat-icon style="color: #F78F1E;">bug_report</mat-icon>
  403. Plantillas Test
  404. </mat-panel-title>
  405. <mat-panel-description>
  406. </mat-panel-description>
  407. </mat-expansion-panel-header>
  408. <div class="divBotones">
  409. <button mat-button style="color: #808080" [routerLink]="['/sam/template-menu']" (click)="drawer.toggle()">
  410. <mat-icon style="color: #F78F1E;">web_stories</mat-icon> Menú
  411. </button>
  412. </div>
  413. <div class="divBotones">
  414. <button mat-button style="color: #808080" [routerLink]="['/sam/template-table']" (click)="drawer.toggle()">
  415. <mat-icon style="color: #F78F1E;">table_chart</mat-icon> Consulta tablas
  416. </button>
  417. </div>
  418. <div class="divBotones">
  419. <button mat-button style="color: #808080" [routerLink]="['/sam/tamplate-form']" (click)="drawer.toggle()">
  420. <mat-icon style="color: #F78F1E;">sticky_note_2</mat-icon> Formulario
  421. </button>
  422. </div>
  423. </mat-expansion-panel>
  424. </div>
  425. </mat-drawer>
  426. <div style="height: 100%; box-sizing: border-box; overflow: hidden;">
  427. <router-outlet></router-outlet>
  428. </div>
  429. </mat-drawer-container>
  430. <footer style="height: 48px;"></footer>