116 { dataField: "chiller", lineWidth: 1, displayText: "Chiller", color: '#0000bb' } |
116 { dataField: "chiller", lineWidth: 1, displayText: "Chiller", color: '#0000bb' } |
117 ] |
117 ] |
118 } |
118 } |
119 ] |
119 ] |
120 }; |
120 }; |
121 $("#fermentor_chart").jqxChart(settings); |
121 $("#fermenter_chart").jqxChart(settings); |
122 |
122 |
123 $("#print").click(function () { |
123 $("#print").click(function () { |
124 var content = $("#fermentor_chart")[0].outerHTML; |
124 var content = $("#fermenter_chart")[0].outerHTML; |
125 var newWindow = window.open("", "", "width=865, height=425"), |
125 var newWindow = window.open("", "", "width=865, height=425"), |
126 document = newWindow.document.open(), |
126 document = newWindow.document.open(), |
127 pageContent = |
127 pageContent = |
128 '<!DOCTYPE html>' + |
128 '<!DOCTYPE html>' + |
129 '<html>' + |
129 '<html>' + |
139 }); |
139 }); |
140 $("#print").jqxButton({ template: "info", width: 125, theme: theme }); |
140 $("#print").jqxButton({ template: "info", width: 125, theme: theme }); |
141 |
141 |
142 |
142 |
143 $("#pdfButton").click(function () { |
143 $("#pdfButton").click(function () { |
144 $("#fermentor_chart").jqxChart("saveAsPDF", "vergisting_"+my_code+".pdf", getExportServer()); |
144 $("#fermenter_chart").jqxChart("saveAsPDF", "vergisting_"+my_code+".pdf", getExportServer()); |
145 }); |
145 }); |
146 $("#pdfButton").jqxButton({ template: "info", width: 125, theme: theme }); |
146 $("#pdfButton").jqxButton({ template: "info", width: 125, theme: theme }); |
147 |
147 |
148 $("#pngButton").click(function () { |
148 $("#pngButton").click(function () { |
149 $("#fermentor_chart").jqxChart("saveAsPNG", "vergisting_"+my_code+".png", getExportServer()); |
149 $("#fermenter_chart").jqxChart("saveAsPNG", "vergisting_"+my_code+".png", getExportServer()); |
150 }); |
150 }); |
151 $("#pngButton").jqxButton({ template: "info", width: 125, theme: theme }); |
151 $("#pngButton").jqxButton({ template: "info", width: 125, theme: theme }); |
152 |
152 |
153 $("#Close").jqxButton({ template: "success", width: 125, theme: theme }); |
153 $("#Close").jqxButton({ template: "success", width: 125, theme: theme }); |
154 $("#Close").click(function () { |
154 $("#Close").click(function () { |