WebScada.cshtml.g.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. #pragma checksum "E:\Ropin\svn\SH_HB\Source_SQ\Ropin.Inspection.Api\Ropin.Environmentally.WebScada\Views\Device\WebScada.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9683442f8713a4a79f807eb981c3906c16197b61"
  2. // <auto-generated/>
  3. #pragma warning disable 1591
  4. [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Device_WebScada), @"mvc.1.0.view", @"/Views/Device/WebScada.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", @"9683442f8713a4a79f807eb981c3906c16197b61", @"/Views/Device/WebScada.cshtml")]
  16. #nullable restore
  17. public class Views_Device_WebScada : 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, "9683442f8713a4a79f807eb981c3906c16197b612643", async() => {
  45. WriteLiteral("\r\n \r\n \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. #nullable restore
  47. #line 12 "E:\Ropin\svn\SH_HB\Source_SQ\Ropin.Inspection.Api\Ropin.Environmentally.WebScada\Views\Device\WebScada.cshtml"
  48. //<button @@click="change()">点击改变背景颜色</button>
  49. // <div class="nav-tabs">
  50. //<a href="javascript:void(0);" :class="{current: isShowAccountLogin }">帐号登录</a>
  51. //<span class="line"></span>
  52. //<a href="javascript:void(0);" :class="{current: !isShowAccountLogin }">扫码登录</a>
  53. //</div>
  54. #line default
  55. #line hidden
  56. #nullable disable
  57. WriteLiteral("\r\n");
  58. WriteLiteral(@"
  59. <div class=""app"" style=""background-color={{bgc}}""></div>
  60. <div :style=""{backgroundColor:bgc}"">{{bgc}}</div>
  61. <input name=""RichTextBox110"" type=""text"" id=""RichTextBox110"" v-model=""device.valueD"" :style=""{backgroundColor:device.ColourD}"" style=""width:160px;height: 80px;z-index:129;position:absolute;top: 820px;left:761px;font-size:32px; "" />
  62. <div style=""top: 1600px;"">
  63. <div class=""button3 btn1"" >
  64. <span>巡检</span>
  65. </div>
  66. <div class=""button3 btn2"" >
  67. <span>维保</span>
  68. </div>
  69. <div style=""background-color: {{bgc}}"">{{bgc}}</div>
  70. <div style=""background-color={{bgc}}"" class=""button3 btn3"" >
  71. <span>维修</span>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. ");
  77. }
  78. );
  79. __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
  80. __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
  81. await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
  82. if (!__tagHelperExecutionContext.Output.IsContentModified)
  83. {
  84. await __tagHelperExecutionContext.SetOutputContentAsync();
  85. }
  86. Write(__tagHelperExecutionContext.Output);
  87. __tagHelperExecutionContext = __tagHelperScopeManager.End();
  88. WriteLiteral(@"
  89. <script src=""https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js""></script>
  90. <script src=""https://unpkg.com/axios/dist/axios.min.js""></script>
  91. <script src=""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/signalr/signalr.js""></script>
  92. <script src=""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/wwwroot/signalr/hubs""></script>
  93. <script>
  94. var app = new Vue({
  95. el: ""#app"",
  96. created: function () {
  97. //document.getElementById('#demo').style.width = '100%';
  98. this.connection = new signalR.HubConnectionBuilder()
  99. .withUrl(""https://www.ropiniot.com/DigitalEnvironmentallyWebScadaTest/myhub"",{
  100. skipNegotiation: true, // 关键
  101. transport: signalR.HttpTransportType.WebSockets // 关键
  102. })
  103. //.withUrl(""http://localhost:5000/myhub"")
  104. .build();
  105. this.connection.on(""showmsg"", this.ShowMsg);
  106. this.connection.on(""updatedata"", this.UpdateData);
  107. ");
  108. WriteLiteral(@" this.connection.on(""updatedevicedata"", this.UpdateDeviceData);
  109. this.connection.start();
  110. this.connection.start().then(function () {
  111. //document.getElementById(""demo"").innerHTML=""Hello World"";
  112. //document.getElementById(""RichTextBox110"").disabled = false;
  113. //document.getElementById('RichTextBox110').style.color='#f00';
  114. //document.getElementById('#demo').style.width = '100%';
  115. }).catch(function (err) {
  116. //document.getElementById(""sendButton"").disabled = false;
  117. return console.error(err.toString());
  118. });
  119. },
  120. data: {
  121. bgc: ""red"",
  122. isShowAccountLogin: true,
  123. //动态背景图片
  124. leftStyle: { background: ""#AF7F3F"" },
  125. flageRed:true,
  126. flageGreen:true,
  127. device: {
  128. valueD: ""123456789"", NameD: ""前处理过滤箱电子差压计D3实际值"",ColourD:""Red"",
  129. valueD10: ""123456789"", NameD10: ""前处理过滤箱电子差压计D3实际值"",
  130. valueD11: ""123456789"", NameD11: ""前处理过滤箱电子差压计D");
  131. WriteLiteral(@"3实际值"",
  132. valueD12: ""123456789"", NameD12: ""前处理过滤箱电子差压计D3实际值"",
  133. valueD13: ""123456789"", NameD13: ""前处理过滤箱电子差压计D3实际值"",
  134. valueD14: ""123456789"", NameD14: ""前处理过滤箱电子差压计D3实际值"",
  135. valueD15: ""123456789"", NameD15: ""前处理过滤箱电子差压计D3实际值"",
  136. valueD16: ""123456789"", NameD16: ""前处理过滤箱电子差压计D3实际值"",
  137. valueD17: ""123456789"", NameD17: ""前处理过滤箱电子差压计D3实际值"",
  138. valueD18: ""123456789"", NameD18: ""前处理过滤箱电子差压计D3实际值"",
  139. valueD19: ""123456789"", NameD19: ""前处理过滤箱电子差压计D3实际值"",
  140. value20: ""123456789"", Name20: ""前处理过滤箱电子差压计D3实际值"",
  141. value10: ""123456789"", Name10: ""前处理过滤箱电子差压计D3实际值"",
  142. value21: ""123456789"", Name21: ""前处理过滤箱电子差压计D3实际值"",
  143. value22: ""123456789"", Name22: ""前处理过滤箱电子差压计D3实际值"",
  144. value23: ""123456789"", Name23: ""前处理过滤箱电子差压计D3实际值"",
  145. value24: ""123456789"", Name24: ""前处理过滤箱电子差压计D3实际值"",
  146. value25: ""123456789"", Name25: ""前");
  147. WriteLiteral(@"处理过滤箱电子差压计D3实际值"",
  148. value26: ""123456789"", Name26: ""前处理过滤箱电子差压计D3实际值"",
  149. value27: ""123456789"", Name27: ""前处理过滤箱电子差压计D3实际值"",
  150. value28: ""123456789"", Name28: ""前处理过滤箱电子差压计D3实际值"",
  151. value29: ""123456789"", Name29: ""前处理过滤箱电子差压计D3实际值""
  152. },
  153. message: ""HelloVue"",
  154. connection: null,
  155. msgs: [],
  156. dataInfo: { status1: ""off"", status2: ""off"" },
  157. pushContent: """"
  158. },
  159. methods: {
  160. change() {
  161. let bgc = this.bgc == ""red"" ? ""blue"" : ""red"";
  162. this.bgc = bgc;
  163. },
  164. click_account_login () {
  165. this.isShowAccountLogin = true;
  166. },
  167. click_code_login () {
  168. this.isShowAccountLogin = false;
  169. },
  170. ShowMsg: function (msgInfo) {
  171. //this.message = msgInfo.title + "":"" + msgInfo.msgContent;
  172. //this.msgs.push(this.message);
  173. },
  174. PushMsg: function () {
  175. that = thi");
  176. WriteLiteral(@"s;
  177. axios.get('http://localhost:5000/WeatherForecast/PushMsg',
  178. { params: { content: that.pushContent } })
  179. .then(function (response) {
  180. console.log(response);
  181. })
  182. .catch(function (error) {
  183. console.log(error);
  184. });
  185. },
  186. UpdateDeviceData: function (dataMsg) {
  187. this.device.valueD = dataMsg.valueD;
  188. this.device.NameD = dataMsg.nameD;
  189. this.device.valueD10 = dataMsg.valueD10;
  190. this.device.NameD10 = dataMsg.nameD10;
  191. this.device.valueD11 = dataMsg.valueD11;
  192. this.device.NameD11 = dataMsg.nameD11;
  193. this.device.valueD12 = dataMsg.valueD12;
  194. this.device.NameD12 = dataMsg.nameD12;
  195. this.device.valueD13 = dataMsg.valueD13;
  196. this.device.NameD13 = dataMsg.nameD13;
  197. ");
  198. WriteLiteral(@" this.device.valueD14 = dataMsg.valueD14;
  199. this.device.NameD14 = dataMsg.nameD14;
  200. this.device.valueD15 = dataMsg.valueD15;
  201. this.device.NameD15 = dataMsg.nameD15;
  202. this.device.valueD16 = dataMsg.valueD16;
  203. this.device.NameD16 = dataMsg.nameD16;
  204. this.device.valueD17 = dataMsg.valueD17;
  205. this.device.NameD17 = dataMsg.nameD17;
  206. this.device.valueD18 = dataMsg.valueD18;
  207. this.device.NameD18 = dataMsg.nameD18;
  208. this.device.valueD19 = dataMsg.valueD19;
  209. this.device.NameD19 = dataMsg.nameD19;
  210. this.device.value20 = dataMsg.value20;
  211. this.device.Name20 = dataMsg.name20;
  212. this.device.value21 = dataMsg.value21;
  213. this.device.Name21 = dataMsg.name21;
  214. this.device.value22 = dataMsg.value22;
  215. this.device.Name22 = dataMsg.name22;
  216. this");
  217. WriteLiteral(@".device.value23 = dataMsg.value23;
  218. this.device.Name23 = dataMsg.name23;
  219. this.device.value24 = dataMsg.value24;
  220. this.device.Name24 = dataMsg.name24;
  221. this.device.value25 = dataMsg.value25;
  222. this.device.Name25 = dataMsg.name25;
  223. this.device.value26 = dataMsg.value26;
  224. this.device.Name26 = dataMsg.name26;
  225. this.device.value27 = dataMsg.value27;
  226. this.device.Name27 = dataMsg.name27;
  227. this.device.value28 = dataMsg.value28;
  228. this.device.Name28 = dataMsg.name28;
  229. this.device.value29 = dataMsg.value29;
  230. this.device.Name29 = dataMsg.name29;
  231. //this.document.getElementById(""#RichTextBox110"").style.background=""blue"";
  232. // document.getElementById('#demo').style.width = '100%';
  233. // document.getElementById(""demo"").innerHTML=""Hello World"";
  234. let bgc = thi");
  235. WriteLiteral(@"s.bgc == ""red"" ? ""blue"" : ""red"";
  236. this.bgc = bgc;
  237. },
  238. UpdateData: function (dataMsg) {
  239. //alert(DeviceValueModel);
  240. //this.dataInfo = dataMsg;
  241. //this.device = DeviceValueModel;
  242. //this.device.Value = dataMsg.Value;
  243. //this.device.Name = dataMsg.Name;
  244. //this.message = dataMsg;
  245. }
  246. }
  247. });
  248. </script>
  249. <style>
  250. .breadcrumb{
  251. font-size: 33px;
  252. }
  253. .button3 {
  254. z-index:126;
  255. position:absolute;
  256. top: 1600px;
  257. /*left:0px;*/
  258. width: 200px;
  259. height: 70px;
  260. line-height: 60px;
  261. background-color: #2e82ff;
  262. color: #ffffff;
  263. font-size: 50px;
  264. text-align: center;
  265. border-radius: 27px;
  266. position: relative;
  267. }
  268. .button3::before {
  269. /*left: 0px;*/
  270. content: """";
  271. position: absolute;
  272. width: 100%;
  273. height: 100%;
  274. background-image:
  275. linear-gradi");
  276. WriteLiteral(@"ent(to right, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
  277. background-size: 200%;
  278. animation: wipes 1s infinite;
  279. }
  280. .btn1 { position: absolute;top: 1600px;left:10px; }
  281. .btn2 { position: absolute;top: 1600px;left:380px;}
  282. .btn3 { position: absolute;top: 1600px;left:760px; }
  283. ");
  284. WriteLiteral(@"@keyframes wipes {
  285. 0% {
  286. background-position: 0 0;
  287. }
  288. 100% {
  289. background-position: 100% 0;
  290. }
  291. }
  292. </style>
  293. <style lang=""less"" scoped>
  294. .app {
  295. width: 100%;
  296. height: 300px;
  297. border:1px soild;
  298. }
  299. </style>
  300. ");
  301. }
  302. #pragma warning restore 1998
  303. #nullable restore
  304. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  305. public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
  306. #nullable disable
  307. #nullable restore
  308. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  309. public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
  310. #nullable disable
  311. #nullable restore
  312. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  313. public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
  314. #nullable disable
  315. #nullable restore
  316. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  317. public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
  318. #nullable disable
  319. #nullable restore
  320. [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
  321. public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Ropin.Environmentally.WebScada.DeviceValueModel> Html { get; private set; } = default!;
  322. #nullable disable
  323. }
  324. }
  325. #pragma warning restore 1591