2026-01-06 10:55:05 +08:00
|
|
|
@page "/_Admin/WTM_CONTRACT/Details/{id}"
|
|
|
|
|
@using wtmProject.ViewModel._Admin.WTM_CONTRACTVMs;
|
|
|
|
|
@inherits BasePage
|
|
|
|
|
|
|
|
|
|
<ValidateForm @ref="vform" Model="@Model" >
|
|
|
|
|
<Row ItemsPerRow="ItemsPerRow.Four" RowType="RowType.Normal">
|
|
|
|
|
<Display @bind-Value="@Model.Entity.Year" ShowLabel="true" />
|
|
|
|
|
<Display @bind-Value="@Model.Entity.CustomId" Lookup="@AllWTM_CUSTOMs" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.CustomClass" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.VisitObjectId" Lookup="@AllWTM_CUSTOM_PERSONs" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.MarkManageId" Lookup="@AllFrameworkUsers" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ProjectManageId" Lookup="@AllFrameworkUsers" ShowLabel="true" />
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ProjectId" Lookup="@AllWTM_PROJECTs" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ContractName" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ContractCode" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ERPCode" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ERPName" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.SignDate" FormatString="yyyy-MM-dd" ShowLabel="true" />
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ContractAmount" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ContractCycle" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.FirstBillingAmount" ShowLabel="true" />
|
|
|
|
|
<Display @bind-Value="@Model.Entity.SecondBillingAmount" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.ThreeBillingAmount" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.FourthBillingAmount" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.FifthBillingAmount" ShowLabel="true"/>
|
|
|
|
|
<Display @bind-Value="@Model.Entity.CostAmount" ShowLabel="true" />
|
|
|
|
|
<Display @bind-Value="@Model.Entity.DsfCostAmount" ShowLabel="true" />
|
|
|
|
|
<Display @bind-Value="@Model.Entity.GrossProfitMargin" ShowLabel="true"/>
|
|
|
|
|
<WTUploadFile @bind-Value="@Model.Entity.Files" IsDisabled="true" ShowLabel="true" />
|
|
|
|
|
</Row>
|
|
|
|
|
<div class="modal-footer table-modal-footer">
|
|
|
|
|
<Button Color="Color.Primary" Icon="fa fa-save" Text="@WtmBlazor.Localizer["Sys.Close"]" OnClick="OnClose" />
|
|
|
|
|
</div>
|
|
|
|
|
</ValidateForm>
|
|
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
|
|
|
|
|
private WTM_CONTRACTVM Model = null;
|
|
|
|
|
private ValidateForm vform { get; set; }
|
|
|
|
|
[Parameter]
|
|
|
|
|
public string id { get; set; }
|
|
|
|
|
|
|
|
|
|
private List<SelectedItem> AllWTM_CUSTOMs = new List<SelectedItem>();
|
|
|
|
|
|
|
|
|
|
private List<SelectedItem> AllWTM_CUSTOM_PERSONs = new List<SelectedItem>();
|
|
|
|
|
|
|
|
|
|
private List<SelectedItem> AllFrameworkUsers = new List<SelectedItem>();
|
|
|
|
|
|
|
|
|
|
private List<SelectedItem> AllWTM_PROJECTs = new List<SelectedItem>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
AllWTM_CUSTOMs = await WtmBlazor.Api.CallItemsApi("/api/WTM_CONTRACT/GetWTM_CUSTOMs", placeholder: WtmBlazor.Localizer["Sys.All"]);
|
|
|
|
|
|
|
|
|
|
AllWTM_CUSTOM_PERSONs = await WtmBlazor.Api.CallItemsApi("/api/WTM_CONTRACT/GetWTM_CUSTOM_PERSONs", placeholder: WtmBlazor.Localizer["Sys.All"]);
|
|
|
|
|
|
|
|
|
|
AllFrameworkUsers = await WtmBlazor.Api.CallItemsApi("/api/WTM_CONTRACT/GetFrameworkUsers", placeholder: WtmBlazor.Localizer["Sys.All"]);
|
|
|
|
|
|
|
|
|
|
AllWTM_PROJECTs = await WtmBlazor.Api.CallItemsApi("/api/WTM_CONTRACT/GetWTM_PROJECTs", placeholder: WtmBlazor.Localizer["Sys.All"]);
|
|
|
|
|
|
|
|
|
|
var rv = await WtmBlazor.Api.CallAPI<WTM_CONTRACTVM>($"/api/WTM_CONTRACT/{id}");
|
|
|
|
|
Model = rv.Data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnClose()
|
|
|
|
|
{
|
|
|
|
|
CloseDialog();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|