#pragma checksum "E:\Ropin\svn\SH_HB\Source_SQ\Ropin.Inspection.Api\Ropin.Environmentally.WebScada\Views\Device\PaintRoom3.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c69a6906c618932dc1f6bbc5358570c8eb6bf72c" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Device_PaintRoom3), @"mvc.1.0.view", @"/Views/Device/PaintRoom3.cshtml")] namespace AspNetCore { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c69a6906c618932dc1f6bbc5358570c8eb6bf72c", @"/Views/Device/PaintRoom3.cshtml")] #nullable restore public class Views_Device_PaintRoom3 : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Ropin.Environmentally.WebScada.DeviceValueModel> #nullable disable { #line hidden #pragma warning disable 0649 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; #pragma warning restore 0649 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); #pragma warning disable 0169 private string __tagHelperStringValueBuffer; #pragma warning restore 0169 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager { get { if (__backed__tagHelperScopeManager == null) { __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); } return __backed__tagHelperScopeManager; } } private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper; #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c69a6906c618932dc1f6bbc5358570c8eb6bf72c2653", async() => { 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"); 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"); #nullable restore #line 14 "E:\Ropin\svn\SH_HB\Source_SQ\Ropin.Inspection.Api\Ropin.Environmentally.WebScada\Views\Device\PaintRoom3.cshtml" //<div v-if="device.value19 === '1'" style="z-index:1; position:absolute;left:0px;top:0px;"> // <img src="https://shyp.yunzutai.com:22744/Uploads/Files/2021/12/10/115e6854e0ac4449ba453714d6d4a2a4.svg" alt="Smiley face" width="64" height="64"> // </div> // <div v-if="device.value19 === '0'" style="z-index:2; position:absolute;left:0px;top:0px;"> // <img src="https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/hui.svg" alt="Smiley face" width="64" height="64"> // </div> #line default #line hidden #nullable disable WriteLiteral(@" <div style=""z-index:1; position:absolute;left:0px;top:0px;""> <img v-if=""device.valueC19 === '1'"" src=""https://shyp.yunzutai.com:22744/Uploads/Files/2021/12/10/115e6854e0ac4449ba453714d6d4a2a4.svg"" alt=""Smiley face"" width=""64"" height=""64""> <img v-else src=""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/hui.svg"" alt=""Smiley face"" width=""64"" height=""64""> </div> <div style=""z-index:1; position:absolute;left:70px;top:0px;""> <img v-if=""device.valueC17 === '1'"" src=""https://shyp.yunzutai.com:22744/Uploads/Files/2021/12/10/3e6ba57ec6ef4c299524094e2e26e4f3.svg"" alt=""Smiley face"" width=""64"" height=""64""> <img v-else src=""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/pic/hui.svg"" alt=""Smiley face"" width=""64"" height=""64""> </div> "); WriteLiteral(@" <input name=""RichTextBox110"" type=""text"" id=""RichTextBox110"" v-model=""device.valueC"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 820px;left:761px;font-size:32px; "" /> <span id=""Lable123"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 840px;left:0px;font-size:32px;"">{{device.NameC}}</span> <input name=""RichTextBox111"" type=""text"" id=""RichTextBox111"" v-model=""device.valueC10"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 920px;left:761px;font-size:32px;"" /> <span id=""Lable124"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 930px;left:0px;font-size:32px;"">{{device.NameC10}}</span> <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC11"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1020px;left:761px;font-size:32px;"" /> <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1030px;left:0px;fo"); WriteLiteral("nt-size:32px;\">{{device.NameC11}}</span>\r\n"); WriteLiteral(@" <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC12"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1120px;left:761px;font-size:32px;"" /> <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1130px;left:0px;font-size:32px;"">{{device.NameC12}}</span> <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC17"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1220px;left:761px;font-size:32px;"" /> <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1230px;left:0px;font-size:32px;"">{{device.NameC17}}</span> <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC18"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1320px;left:761px;font-size:32px;"" /> <span id=""Lable125"" style=""width:700px;height: 63px;z-index:126;position:absolute;top: 1330px;left:0px;"); WriteLiteral(@"font-size:32px;"">{{device.NameC18}}</span> <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC13"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1420px;left:700px;font-size:32px;"" /> <span id=""Lable125"" style=""width:300px;height: 63px;z-index:126;position:absolute;top: 1430px;left:0px;font-size:32px;"">{{device.NameC15}}</span> <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC14"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1420px;left:470px;font-size:32px;"" /> <span id=""Lable125"" style=""width:40px;height: 63px;z-index:126;position:absolute;top: 1430px;left:390px;font-size:32px;"">天</span> <input name=""RichTextBox112"" type=""text"" id=""RichTextBox112"" v-model=""device.valueC15"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 1420px;left:200px;font-size:32px;"" /> <span id=""Lable125"" style=""width:40px;height: 63px;z-index:126;position:abs"); 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"); WriteLiteral(@" <div style=""top: 1600px;""> <div class=""button3 btn1"" > <span>巡检</span> </div> <div class=""button3 btn2"" > <span>维保</span> </div> <div class=""button3 btn3"" > <span>维修</span> </div> </div> </div> "); WriteLiteral("\r\n"); WriteLiteral("</div>\r\n"); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral(@" <script src=""https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js""></script> <script src=""https://unpkg.com/axios/dist/axios.min.js""></script> <script src=""../wwwroot/signalr/signalr.js""></script> <script src=""../wwwroot/signalr/hubs""></script> <script> var app = new Vue({ el: ""#app"", created: function () { //document.getElementById(""sendButton"").disabled = true; http://114.115.174.174:80/DigitalEnvironmentallyWebScadaTest/ this.connection = new signalR.HubConnectionBuilder() .withUrl(""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/myhub"",{ skipNegotiation: true, // 关键 transport: signalR.HttpTransportType.WebSockets // 关键 }) //.withUrl(""http://localhost:5000/myhub"") .build(); this.connection.on(""showmsg"", this.ShowMsg); this.connection.on(""updatedata"", this.UpdateData); this.connection.on(""updatedevice"); WriteLiteral(@"data"", this.UpdateDeviceData); this.connection.start(); //this.connection.start().then(function () { // document.getElementById(""sendButton"").disabled = false; //}).catch(function (err) { // document.getElementById(""sendButton"").disabled = false; // return console.error(err.toString()); //}); }, data: { flageRed:true, flageGreen:true, device: { valueC: ""123456789"", NameC: ""前处理过滤箱电子差压计D3实际值"", valueC10: ""123456789"", NameC10: ""前处理过滤箱电子差压计D3实际值"", valueC11: ""123456789"", NameC11: ""前处理过滤箱电子差压计D3实际值"", valueC12: ""123456789"", NameC12: ""前处理过滤箱电子差压计D3实际值"", valueC13: ""123456789"", NameC13: ""前处理过滤箱电子差压计D3实际值"", valueC14: ""123456789"", NameC14: ""前处理过滤箱电子差压计D3实际值"", valueC15: ""123456789"", NameC15: ""前处理过滤箱电子差压计D3实际值"", valueC16: ""123456789"", NameC16: ""前处理过滤箱电子差压计D3实际值"", valueC17"); WriteLiteral(@": ""123456789"", NameC17: ""前处理过滤箱电子差压计D3实际值"", valueC18: ""123456789"", NameC18: ""前处理过滤箱电子差压计D3实际值"", valueC19: ""123456789"", NameC19: ""前处理过滤箱电子差压计D3实际值"", value20: ""123456789"", Name20: ""前处理过滤箱电子差压计D3实际值"", value10: ""123456789"", Name10: ""前处理过滤箱电子差压计D3实际值"", value21: ""123456789"", Name21: ""前处理过滤箱电子差压计D3实际值"", value22: ""123456789"", Name22: ""前处理过滤箱电子差压计D3实际值"", value23: ""123456789"", Name23: ""前处理过滤箱电子差压计D3实际值"", value24: ""123456789"", Name24: ""前处理过滤箱电子差压计D3实际值"", value25: ""123456789"", Name25: ""前处理过滤箱电子差压计D3实际值"", value26: ""123456789"", Name26: ""前处理过滤箱电子差压计D3实际值"", value27: ""123456789"", Name27: ""前处理过滤箱电子差压计D3实际值"", value28: ""123456789"", Name28: ""前处理过滤箱电子差压计D3实际值"", value29: ""123456789"", Name29: ""前处理过滤箱电子差压计D3实际值"" }, message: ""HelloVue"", connection: null, "); WriteLiteral(@" msgs: [], dataInfo: { status1: ""off"", status2: ""off"" }, pushContent: """" }, methods: { ShowMsg: function (msgInfo) { //this.message = msgInfo.title + "":"" + msgInfo.msgContent; //this.msgs.push(this.message); }, PushMsg: function () { that = this; axios.get('http://localhost:5000/WeatherForecast/PushMsg', { params: { content: that.pushContent } }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); }, UpdateDeviceData: function (dataMsg) { this.device.valueC = dataMsg.valueC; this.device.NameC = dataMsg.nameC; this.device.valueC10 = dataMsg.valueC10; this.device.Nam"); WriteLiteral(@"eC10 = dataMsg.nameC10; this.device.valueC11 = dataMsg.valueC11; this.device.NameC11 = dataMsg.nameC11; this.device.valueC12 = dataMsg.valueC12; this.device.NameC12 = dataMsg.nameC12; this.device.valueC13 = dataMsg.valueC13; this.device.NameC13 = dataMsg.nameC13; this.device.valueC14 = dataMsg.valueC14; this.device.NameC14 = dataMsg.nameC14; this.device.valueC15 = dataMsg.valueC15; this.device.NameC15 = dataMsg.nameC15; this.device.valueC16 = dataMsg.valueC16; this.device.NameC16 = dataMsg.nameC16; this.device.valueC17 = dataMsg.valueC17; this.device.NameC17 = dataMsg.nameC17; this.device.valueC18 = dataMsg.valueC18; this.device.NameC18 = dataMsg.nameC18; this.device.valueC19 = dataMsg.valueC19; this.device.N"); WriteLiteral(@"ameC19 = dataMsg.nameC19; this.device.value20 = dataMsg.value20; this.device.Name20 = dataMsg.name20; this.device.value21 = dataMsg.value21; this.device.Name21 = dataMsg.name21; this.device.value22 = dataMsg.value22; this.device.Name22 = dataMsg.name22; this.device.value23 = dataMsg.value23; this.device.Name23 = dataMsg.name23; this.device.value24 = dataMsg.value24; this.device.Name24 = dataMsg.name24; this.device.value25 = dataMsg.value25; this.device.Name25 = dataMsg.name25; this.device.value26 = dataMsg.value26; this.device.Name26 = dataMsg.name26; this.device.value27 = dataMsg.value27; this.device.Name27 = dataMsg.name27; this.device.value28 = dataMsg.value28; this.device.Name28 = dataMsg.name28; "); WriteLiteral(@" this.device.value29 = dataMsg.value29; this.device.Name29 = dataMsg.name29; }, UpdateData: function (dataMsg) { //alert(DeviceValueModel); //this.dataInfo = dataMsg; //this.device = DeviceValueModel; //this.device.Value = dataMsg.Value; //this.device.Name = dataMsg.Name; //this.message = dataMsg; } } }); </script> <style> .breadcrumb{ font-size: 33px; } .button3 { z-index:126; position:absolute; top: 1600px; /*left:0px;*/ width: 200px; height: 70px; line-height: 60px; background-color: #2e82ff; color: #ffffff; font-size: 50px; text-align: center; border-radius: 27px; position: relative; } .button3::before { /*left: 0px;*/ content: """"; position: absolute; width: 100%; height: 100%; bac"); WriteLiteral(@"kground-image: linear-gradient(to right, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 70%); background-size: 200%; animation: wipes 1s infinite; } .btn1 { position: absolute;top: 1600px;left:10px; } .btn2 { position: absolute;top: 1600px;left:380px;} .btn3 { position: absolute;top: 1600px;left:760px; } "); 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"); } #pragma warning restore 1998 #nullable restore [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!; #nullable disable #nullable restore [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!; #nullable disable #nullable restore [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!; #nullable disable #nullable restore [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!; #nullable disable #nullable restore [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Ropin.Environmentally.WebScada.DeviceValueModel> Html { get; private set; } = default!; #nullable disable } } #pragma warning restore 1591