WebScadaHelper.cs 925 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ropin.Inspection.Common.Helper
  7. {
  8. public class WebScadaHelper
  9. {
  10. public static string GetRichTextBoxWebScadaById(int index)
  11. {
  12. int baseTop = 820;
  13. int top = baseTop + index * 100;
  14. string strIndex = index.ToString();
  15. string webScada = @"<input name='RichTextBox'"+ strIndex + @" type='text' id='RichTextBox'" + strIndex + @" v-model='device.value" + strIndex + @"' style='width:160px;height: 80px;z-index:129;position:absolute;top: " + top + @"px;left:761px;font-size:32px; ' />
  16. <span id='Lable'" + strIndex + @" style='width:700px;height: 63px;z-index:126;position:absolute;top: " + strIndex + 10 + @"px;left:0px;font-size:32px;'>{{device.Name" + strIndex + @"}}</span>";
  17. return webScada;
  18. }
  19. }
  20. }