using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ropin.Inspection.Common.Helper { public class WebScadaHelper { public static string GetRichTextBoxWebScadaById(int index) { int baseTop = 820; int top = baseTop + index * 100; string strIndex = index.ToString(); 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; ' /> <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>"; return webScada; } } }