1 | |
---|
2 | // Padres Acciones de verificar (Firmar Documento && Reporte de la firma) |
---|
3 | $("li #SignDocument").on('click', function() { |
---|
4 | $("li #ReportSign").attr("class","list-group-item list-group-item-success collapsed"); |
---|
5 | $("li #ReportSign").attr("aria-expanded","false"); |
---|
6 | $("ul#CheckSign").attr("class","nav collapse").attr("aria-expanded","false").attr("style","height: 0px;"); |
---|
7 | $("#Cuerpo_Sign").show(); |
---|
8 | $("#Cuerpo_check").hide(); |
---|
9 | |
---|
10 | }); |
---|
11 | |
---|
12 | $("li #ReportSign").on('click', function() { |
---|
13 | $("li #SignDocument").attr("class","list-group-item list-group-item-success collapsed"); |
---|
14 | $("li #SignDocument").attr("aria-expanded","false"); |
---|
15 | $("ul#firma_visible").attr("class","nav collapse").attr("aria-expanded","false").attr("style","height: 0px;"); |
---|
16 | $("#Cuerpo_Sign").hide(); |
---|
17 | $("#Cuerpo_check").show(); |
---|
18 | }); |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | // Segundo nivel (Formato PDF && BDOC) |
---|
23 | $("li #formato_Pdf").on('click', function() { |
---|
24 | $("li #formato_Bdoc").attr("class","list-group-item list-group-item-info collapsed"); |
---|
25 | $("li #formato_Bdoc").attr("aria-expanded","false"); |
---|
26 | $("ul#bdoc").attr("class","nav collapse").attr("aria-expanded","false").attr("style","height: 0px;"); |
---|
27 | $("#myJsonBDOC_wrapper").hide(); |
---|
28 | |
---|
29 | if (FIRMA_VISIBLE == true){ |
---|
30 | $("#pdf-main-container2").hide(); |
---|
31 | $("#myJsonPDF_NO_VISIBLE_wrapper").hide(); |
---|
32 | if (CONTAINER == true){ |
---|
33 | $("#pdf-main-container").show(); |
---|
34 | $("#myJson_wrapper").hide(); |
---|
35 | |
---|
36 | } |
---|
37 | if (CONTAINER == false){ |
---|
38 | $("#pdf-main-container").hide(); |
---|
39 | $("#myJson_wrapper").show(); |
---|
40 | } |
---|
41 | |
---|
42 | } |
---|
43 | |
---|
44 | if (FIRMA_VISIBLE == false ){ |
---|
45 | $("#pdf-main-container").hide(); |
---|
46 | $("#myJson_wrapper").hide(); |
---|
47 | if (CONTAINER2 == true){ |
---|
48 | $("#pdf-main-container2").show(); |
---|
49 | $("#myJsonPDF_NO_VISIBLE_wrapper").hide(); |
---|
50 | |
---|
51 | } |
---|
52 | if (CONTAINER2 == false){ |
---|
53 | $("#pdf-main-container2").hide(); |
---|
54 | $("#myJsonPDF_NO_VISIBLE_wrapper").show(); |
---|
55 | } |
---|
56 | |
---|
57 | } |
---|
58 | |
---|
59 | }); |
---|
60 | |
---|
61 | $("li #formato_Bdoc").on('click', function() { |
---|
62 | $("li #formato_Pdf").attr("class","list-group-item list-group-item-info collapsed"); |
---|
63 | $("li #formato_Pdf").attr("aria-expanded","false"); |
---|
64 | $("ul#pdf").attr("class","nav collapse").attr("aria-expanded","false").attr("style","height: 0px;"); |
---|
65 | $("#pdf-main-container2").hide(); |
---|
66 | $("#pdf-main-container").hide(); |
---|
67 | $("#myJson_wrapper").hide(); |
---|
68 | $("#myJsonPDF_NO_VISIBLE_wrapper").hide(); |
---|
69 | $("#myJsonBDOC_wrapper").show(); |
---|
70 | }); |
---|
71 | |
---|
72 | |
---|
73 | // Acciones de firmar |
---|
74 | $("li #firm_v").on('click', function() { |
---|
75 | $("li #firm_no_v").attr("class","list-group-item list-group-item-link collapsed"); |
---|
76 | $("li #firm_no_v").attr("aria-expanded","false"); |
---|
77 | $("ul#Formato_Normal").attr("class","nav collapse").attr("aria-expanded","false").attr("style","height: 0px;"); |
---|
78 | $("#pdf-main-container2").hide(); |
---|
79 | $("#myJsonPDF_NO_VISIBLE_wrapper").hide(); |
---|
80 | |
---|
81 | if (CONTAINER == true){ |
---|
82 | $("#pdf-main-container").show(); |
---|
83 | $("#myJson_wrapper").hide(); |
---|
84 | |
---|
85 | } |
---|
86 | if (CONTAINER == false){ |
---|
87 | $("#pdf-main-container").hide(); |
---|
88 | $("#myJson_wrapper").show(); |
---|
89 | } |
---|
90 | |
---|
91 | FIRMA_VISIBLE = true; |
---|
92 | }); |
---|
93 | |
---|
94 | $("li #firm_no_v").on('click', function() { |
---|
95 | $("li #firm_v").attr("class","list-group-item list-group-item-link collapsed"); |
---|
96 | $("li #firm_v").attr("aria-expanded","false"); |
---|
97 | $("ul#Formato_Visible").attr("class","nav collapse").attr("aria-expanded","false").attr("style","height: 0px;"); |
---|
98 | $("#pdf-main-container").hide(); |
---|
99 | $("#myJson_wrapper").hide(); |
---|
100 | if (CONTAINER2 == true){ |
---|
101 | $("#pdf-main-container2").show(); |
---|
102 | $("#myJsonPDF_NO_VISIBLE_wrapper").hide(); |
---|
103 | console.log("siiiii"); |
---|
104 | } |
---|
105 | if (CONTAINER2 == false){ |
---|
106 | $("#pdf-main-container2").hide(); |
---|
107 | $("#myJsonPDF_NO_VISIBLE_wrapper").show(); |
---|
108 | console.log("noooooooo"); |
---|
109 | } |
---|
110 | |
---|
111 | FIRMA_VISIBLE = false; |
---|
112 | }); |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | |
---|
117 | $("li #SignMultiples").on('click', function() { |
---|
118 | |
---|
119 | $("#Cuerpo_Sign").hide(); |
---|
120 | $("#Cuerpo_check").hide(); |
---|
121 | $("#Cuerpo_signMultiples").show(); |
---|
122 | }); |
---|
123 | |
---|
124 | |
---|
125 | |
---|
126 | |
---|