iotgateway/IoTGateway/Areas/BasicData/Views/DeviceVariable/SetValue.cshtml
2022-08-21 22:01:32 +08:00

27 lines
958 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using IoTGateway.ViewModel.BasicData.DeviceVariableVMs
@model IoTGateway.ViewModel.BasicData.DeviceVariableVMs.SetValueVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model" Url="/BasicData/DeviceVariable/DoSetValue">
<wt:row items-per-row="ItemsPerRowEnum.One">
@if (@Model.SetValues.Any())
{
foreach (var setValue in @Model.SetValues)
{
<hr class="layui-border-blue">
<wt:quote>@setValue.DeviceName/@setValue.Name【原值@setValue.RawValue】=>【计算值:@setValue.Value】</wt:quote>
<div style="display: none">
<wt:textbox field=@setValue.ID />
</div>
<wt:textbox field=@setValue.SetRawValue/>
}
}
</wt:row>
<wt:row align="AlignEnum.Right">
<wt:submitbutton text="下发" />
<wt:closebutton text="取消" />
</wt:row>
</wt:form>