文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Project/01-project/00-ViewModel/ProjectViewModel.cs 修改 |
| | |
| | | 锘縰sing HStation.BLL; |
| | | using HStation.Dto; |
| | | using HStation.Xhs; |
| | | 锘縰sing HStation.Dto; |
| | | using Yw.Dto; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs.Project |
| | | { |
| | | public class ProjectViewModel : XhsProjectDto |
| | | public class XhsProjectViewModel : XhsProjectDto |
| | | { |
| | | public ProjectViewModel() |
| | | public XhsProjectViewModel() |
| | | { |
| | | } |
| | | |
| | | public ProjectViewModel(XhsProjectDto rhs) |
| | | public XhsProjectViewModel(XhsProjectDto rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | |
| | | this.CreateUserDisplayName = rhs.CreateUserDisplayName; |
| | | } |
| | | |
| | | public void Reset(ProjectViewModel rhs) |
| | | public void Reset(XhsProjectViewModel rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | |
| | | this.CreateUserDisplayName = rhs.CreateUserDisplayName; |
| | | } |
| | | |
| | | public async Task<ProjectViewModel> SetUploadStatusAsync(ProjectViewModel model) |
| | | public async Task<XhsProjectViewModel> SetUploadStatusAsync(XhsProjectViewModel model) |
| | | { |
| | | var modelbll = new BLL.XhsProjectItemModel(); |
| | | var result = await modelbll.GetByPrjID(model.ID); |
| | |
| | | return model; |
| | | } |
| | | |
| | | public async Task<ProjectViewModel> SetUploadStatusAsync(XhsProjectDto model) |
| | | public async Task<XhsProjectViewModel> SetUploadStatusAsync(XhsProjectDto model) |
| | | { |
| | | var prjviewmodel = new ProjectViewModel(model); |
| | | var prjviewmodel = new XhsProjectViewModel(model); |
| | | var modelbll = new BLL.XhsProjectItemModel(); |
| | | var result = await modelbll.GetByPrjID(model.ID); |
| | | var select = result.Find(x => x.UseStatus == 1); |