PaintRoom4.cshtml.g.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. #pragma checksum "E:\Ropin\svn\SH_HB\Source_SQ\Ropin.Inspection.Api\Ropin.Environmentally.WebScada\Views\Device\PaintRoom4.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6f2f9f128dcbc4c210f0d3be102cfc119abc4fdd"
  2. // <auto-generated/>
  3. #pragma warning disable 1591
  4. [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Device_PaintRoom4), @"mvc.1.0.view", @"/Views/Device/PaintRoom4.cshtml")]
  5. namespace AspNetCore
  6. {
  7. #line hidden
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Threading.Tasks;
  12. using Microsoft.AspNetCore.Mvc;
  13. using Microsoft.AspNetCore.Mvc.Rendering;
  14. using Microsoft.AspNetCore.Mvc.ViewFeatures;
  15. [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6f2f9f128dcbc4c210f0d3be102cfc119abc4fdd", @"/Views/Device/PaintRoom4.cshtml")]
  16. #nullable restore
  17. public class Views_Device_PaintRoom4 : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Ropin.Environmentally.WebScada.DeviceValueModel>
  18. #nullable disable
  19. {
  20. #line hidden
  21. #pragma warning disable 0649
  22. private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
  23. #pragma warning restore 0649
  24. private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
  25. #pragma warning disable 0169
  26. private string __tagHelperStringValueBuffer;
  27. #pragma warning restore 0169
  28. private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
  29. private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
  30. {
  31. get
  32. {
  33. if (__backed__tagHelperScopeManager == null)
  34. {
  35. __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
  36. }
  37. return __backed__tagHelperScopeManager;
  38. }
  39. }
  40. private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
  41. #pragma warning disable 1998
  42. public async override global::System.Threading.Tasks.Task ExecuteAsync()
  43. {
  44. __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6f2f9f128dcbc4c210f0d3be102cfc119abc4fdd2653", async() => {
  45. WriteLiteral("\r\n <div class=\"breadcrumb\" id=\"div-canvas\" style=\"position:relative; top:0px;left:0px; background-color:White;\">\r\n <div id=\"app\">\r\n");
  46. WriteLiteral(" <img style=\"border-width:0px;width:1024px;height:768px; z-index:0; position:absolute;left:0px;top:0px;\"\r\n src=\"https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/qinengjichang.jpg\"\r\n id=\"ccc\" />\r\n");
  47. #nullable restore
  48. #line 15 "E:\Ropin\svn\SH_HB\Source_SQ\Ropin.Inspection.Api\Ropin.Environmentally.WebScada\Views\Device\PaintRoom4.cshtml"
  49. //<div v-if="device.value19 === '1'" style="z-index:1; position:absolute;left:0px;top:0px;">
  50. // <img src="https://shyp.yunzutai.com:22744/Uploads/Files/2021/12/10/115e6854e0ac4449ba453714d6d4a2a4.svg" alt="Smiley face" width="64" height="64">
  51. // </div>
  52. // <div v-if="device.value19 === '0'" style="z-index:2; position:absolute;left:0px;top:0px;">
  53. // <img src="https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/hui.svg" alt="Smiley face" width="64" height="64">
  54. // </div>
  55. #line default
  56. #line hidden
  57. #nullable disable
  58. WriteLiteral(@" <div style=""z-index:1; position:absolute;left:0px;top:0px;"">
  59. <img v-if=""device.valueD19 === '1'"" src=""https://shyp.yunzutai.com:22744/Uploads/Files/2021/12/10/115e6854e0ac4449ba453714d6d4a2a4.svg"" alt=""Smiley face"" width=""64"" height=""64"">
  60. <img v-else src=""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/hui.svg"" alt=""Smiley face"" width=""64"" height=""64"">
  61. </div>
  62. ");
  63. WriteLiteral(@" <div style=""z-index:1; position:absolute;left:70px;top:0px;"">
  64. <img v-if=""device.valueD17 === '1'"" src=""https://shyp.yunzutai.com:22744/Uploads/Files/2021/12/10/3e6ba57ec6ef4c299524094e2e26e4f3.svg"" alt=""Smiley face"" width=""64"" height=""64"">
  65. <img v-else src=""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/hui.svg"" alt=""Smiley face"" width=""64"" height=""64"">
  66. </div>
  67. ");
  68. WriteLiteral(@" <input name=""RichTextBox110"" type=""text"" id=""RichTextBox110"" v-model=""device.valueD"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 820px;left:761px;font-size:32px; "" />
  69. <span id=""Lable123"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 840px;left:0px;font-size:32px;"">{{device.NameD}}</span>
  70. <input name=""RichTextBox111"" type=""text"" id=""RichTextBox111"" v-model=""device.valueD10"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 920px;left:761px;font-size:32px;"" />
  71. <span id=""Lable124"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 930px;left:0px;font-size:32px;"">{{device.NameD10}}</span>
  72. <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD11"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1020px;left:761px;font-size:32px;"" />
  73. <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1030px;left:0px;font-s");
  74. WriteLiteral("ize:32px;\">{{device.NameD11}}</span>\r\n");
  75. WriteLiteral(@" <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD12"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1120px;left:761px;font-size:32px;"" />
  76. <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1130px;left:0px;font-size:32px;"">{{device.NameD12}}</span>
  77. <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD17"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1220px;left:761px;font-size:32px;"" />
  78. <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1230px;left:0px;font-size:32px;"">{{device.NameD17}}</span>
  79. <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD18"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1320px;left:761px;font-size:32px;"" />
  80. <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1330px;left:0px;");
  81. WriteLiteral(@"font-size:32px;"">{{device.NameD18}}</span>
  82. <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD13"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1420px;left:700px;font-size:32px;"" />
  83. <span id=""Lable125"" style=""width:300px;height: 63px;z-index:126;position:absolute;top: 1430px;left:0px;font-size:32px;"">{{device.NameD15}}</span>
  84. <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD14"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1420px;left:470px;font-size:32px;"" />
  85. <span id=""Lable125"" style=""width:40px;height: 63px;z-index:126;position:absolute;top: 1430px;left:390px;font-size:32px;"">天</span>
  86. <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueD15"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1420px;left:200px;font-size:32px;"" />
  87. <span id=""Lable125"" style=""width:40px;height: 63px;z-index:126;position:abs");
  88. WriteLiteral("olute;top: 1430px;left:640px;font-size:32px;\">时</span>\r\n <span id=\"Lable125\" style=\"width:40px;height: 63px;z-index:126;position:absolute;top: 1430px;left:880px;font-size:32px;\">分</span>\r\n");
  89. WriteLiteral(@" <div style=""top: 1600px;"">
  90. <div class=""button3 btn1"" >
  91. <span>巡检</span>
  92. </div>
  93. <div class=""button3 btn2"" >
  94. <span>维保</span>
  95. </div>
  96. <div class=""button3 btn3"" >
  97. <span>维修</span>
  98. </div>
  99. </div>
  100. </div>
  101. ");
  102. WriteLiteral("\r\n");
  103. WriteLiteral("</div>\r\n");
  104. }
  105. );
  106. __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
  107. __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
  108. await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
  109. if (!__tagHelperExecutionContext.Output.IsContentModified)
  110. {
  111. await __tagHelperExecutionContext.SetOutputContentAsync();
  112. }
  113. Write(__tagHelperExecutionContext.Output);
  114. __tagHelperExecutionContext = __tagHelperScopeManager.End();
  115. WriteLiteral(@"
  116. <script src=""https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js""></script>
  117. <script src=""https://unpkg.com/axios/dist/axios.min.js""></script>
  118. <script src=""../wwwroot/signalr/signalr.js""></script>
  119. <script src=""../wwwroot/signalr/hubs""></script>
  120. <script>
  121. var app = new Vue({
  122. el: ""#app"",
  123. created: function () {
  124. //document.getElementById(""sendButton"").disabled = true; http://114.115.174.174:80/DigitalEnvironmentallyWebScadaTest/
  125. this.connection = new signalR.HubConnectionBuilder()
  126. .withUrl(""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/myhub"",{
  127. skipNegotiation: true, // 关键
  128. transport: signalR.HttpTransportType.WebSockets // 关键
  129. })
  130. //.withUrl(""http://localhost:5000/myhub"")
  131. .build();
  132. this.connection.on(""showmsg"", this.ShowMsg);
  133. this.connection.on(""updatedata"", this.UpdateData);
  134. this.connection.on(""updatedevice");
  135. WriteLiteral(@"data"", this.UpdateDeviceData);
  136. this.connection.start();
  137. //this.connection.start().then(function () {
  138. // document.getElementById(""sendButton"").disabled = false;
  139. //}).catch(function (err) {
  140. // document.getElementById(""sendButton"").disabled = false;
  141. // return console.error(err.toString());
  142. //});
  143. },
  144. data: {
  145. flageRed:true,
  146. flageGreen:true,
  147. device: {
  148. valueD: ""123456789"", NameD: ""前处理过滤箱电子差压计D3实际值"",
  149. valueD10: ""123456789"", NameD10: ""前处理过滤箱电子差压计D3实际值"",
  150. valueD11: ""123456789"", NameD11: ""前处理过滤箱电子差压计D3实际值"",
  151. valueD12: ""123456789"", NameD12: ""前处理过滤箱电子差压计D3实际值"",
  152. valueD13: ""123456789"", NameD13: ""前处理过滤箱电子差压计D3实际值"",
  153. valueD14: ""123456789"", NameD14: ""前处理过滤箱电子差压计D3实际值"",
  154. valueD15: ""123456789"", NameD15: ""前处理过滤箱电子差压计D3实际值"",
  155. valueD16: ""123456789"", NameD16: ""前处理过滤箱电子差压计D3实际值"",
  156. valueD17");
  157. WriteLiteral(@": ""123456789"", NameD17: ""前处理过滤箱电子差压计D3实际值"",
  158. valueD18: ""123456789"", NameD18: ""前处理过滤箱电子差压计D3实际值"",
  159. valueD19: ""123456789"", NameD19: ""前处理过滤箱电子差压计D3实际值"",
  160. value20: ""123456789"", Name20: ""前处理过滤箱电子差压计D3实际值"",
  161. value10: ""123456789"", Name10: ""前处理过滤箱电子差压计D3实际值"",
  162. value21: ""123456789"", Name21: ""前处理过滤箱电子差压计D3实际值"",
  163. value22: ""123456789"", Name22: ""前处理过滤箱电子差压计D3实际值"",
  164. value23: ""123456789"", Name23: ""前处理过滤箱电子差压计D3实际值"",
  165. value24: ""123456789"", Name24: ""前处理过滤箱电子差压计D3实际值"",
  166. value25: ""123456789"", Name25: ""前处理过滤箱电子差压计D3实际值"",
  167. value26: ""123456789"", Name26: ""前处理过滤箱电子差压计D3实际值"",
  168. value27: ""123456789"", Name27: ""前处理过滤箱电子差压计D3实际值"",
  169. value28: ""123456789"", Name28: ""前处理过滤箱电子差压计D3实际值"",
  170. value29: ""123456789"", Name29: ""前处理过滤箱电子差压计D3实际值""
  171. },
  172. message: ""HelloVue"",
  173. connection: null,
  174. ");
  175. WriteLiteral(@" msgs: [],
  176. dataInfo: { status1: ""off"", status2: ""off"" },
  177. pushContent: """"
  178. },
  179. methods: {
  180. ShowMsg: function (msgInfo) {
  181. //this.message = msgInfo.title + "":"" + msgInfo.msgContent;
  182. //this.msgs.push(this.message);
  183. },
  184. PushMsg: function () {
  185. that = this;
  186. axios.get('http://localhost:5000/WeatherForecast/PushMsg',
  187. { params: { content: that.pushContent } })
  188. .then(function (response) {
  189. console.log(response);
  190. })
  191. .catch(function (error) {
  192. console.log(error);
  193. });
  194. },
  195. UpdateDeviceData: function (dataMsg) {
  196. this.device.valueD = dataMsg.valueD;
  197. this.device.NameD = dataMsg.nameD;
  198. this.device.valueD10 = dataMsg.valueD10;
  199. this.device.Nam");
  200. WriteLiteral(@"eD10 = dataMsg.nameD10;
  201. this.device.valueD11 = dataMsg.valueD11;
  202. this.device.NameD11 = dataMsg.nameD11;
  203. this.device.valueD12 = dataMsg.valueD12;
  204. this.device.NameD12 = dataMsg.nameD12;
  205. this.device.valueD13 = dataMsg.valueD13;
  206. this.device.NameD13 = dataMsg.nameD13;
  207. this.device.valueD14 = dataMsg.valueD14;
  208. this.device.NameD14 = dataMsg.nameD14;
  209. this.device.valueD15 = dataMsg.valueD15;
  210. this.device.NameD15 = dataMsg.nameD15;
  211. this.device.valueD16 = dataMsg.valueD16;
  212. this.device.NameD16 = dataMsg.nameD16;
  213. this.device.valueD17 = dataMsg.valueD17;
  214. this.device.NameD17 = dataMsg.nameD17;
  215. this.device.valueD18 = dataMsg.valueD18;
  216. this.device.NameD18 = dataMsg.nameD18;
  217. this.device.valueD19 = dataMsg.valueD19;
  218. this.device.N");
  219. WriteLiteral(@"ameD19 = dataMsg.nameD19;
  220. this.device.value20 = dataMsg.value20;
  221. this.device.Name20 = dataMsg.name20;
  222. this.device.value21 = dataMsg.value21;
  223. this.device.Name21 = dataMsg.name21;
  224. this.device.value22 = dataMsg.value22;
  225. this.device.Name22 = dataMsg.name22;
  226. this.device.value23 = dataMsg.value23;
  227. this.device.Name23 = dataMsg.name23;
  228. this.device.value24 = dataMsg.value24;
  229. this.device.Name24 = dataMsg.name24;
  230. this.device.value25 = dataMsg.value25;
  231. this.device.Name25 = dataMsg.name25;
  232. this.device.value26 = dataMsg.value26;
  233. this.device.Name26 = dataMsg.name26;
  234. this.device.value27 = dataMsg.value27;
  235. this.device.Name27 = dataMsg.name27;
  236. this.device.value28 = dataMsg.value28;
  237. this.device.Name28 = dataMsg.name28;
  238. ");
  239. WriteLiteral(@" this.device.value29 = dataMsg.value29;
  240. this.device.Name29 = dataMsg.name29;
  241. },
  242. UpdateData: function (dataMsg) {
  243. //alert(DeviceValueModel);
  244. //this.dataInfo = dataMsg;
  245. //this.device = DeviceValueModel;
  246. //this.device.Value = dataMsg.Value;
  247. //this.device.Name = dataMsg.Name;
  248. //this.message = dataMsg;
  249. }
  250. }
  251. });
  252. </script>
  253. <style>
  254. .breadcrumb{
  255. font-size: 33px;
  256. }
  257. .button3 {
  258. z-index:126;
  259. position:absolute;
  260. top: 1600px;
  261. /*left:0px;*/
  262. width: 200px;
  263. height: 70px;
  264. line-height: 60px;
  265. background-color: #2e82ff;
  266. color: #ffffff;
  267. font-size: 50px;
  268. text-align: center;
  269. border-radius: 27px;
  270. position: relative;
  271. }
  272. .button3::before {
  273. /*left: 0px;*/
  274. content: """";
  275. position: absolute;
  276. width: 100%;
  277. height: 100%;
  278. bac");
  279. WriteLiteral(@"kground-image:
  280. linear-gradient(to right, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
  281. background-size: 200%;
  282. animation: wipes 1s infinite;
  283. }
  284. .btn1 { position: absolute;top: 1600px;left:10px; }
  285. .btn2 { position: absolute;top: 1600px;left:380px;}
  286. .btn3 { position: absolute;top: 1600px;left:760px; }
  287. ");
  288. WriteLiteral("@keyframes wipes {\r\n 0% {\r\n background-position: 0 0;\r\n }\r\n 100% {\r\n background-position: 100% 0;\r\n }\r\n}\r\n </style>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n");
  289. }
  290. #pragma warning restore 1998
  291. #nullable restore
  292. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  293. public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
  294. #nullable disable
  295. #nullable restore
  296. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  297. public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
  298. #nullable disable
  299. #nullable restore
  300. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  301. public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
  302. #nullable disable
  303. #nullable restore
  304. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  305. public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
  306. #nullable disable
  307. #nullable restore
  308. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  309. public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Ropin.Environmentally.WebScada.DeviceValueModel> Html { get; private set; } = default!;
  310. #nullable disable
  311. }
  312. }
  313. #pragma warning restore 1591