You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.9 KiB
72 lines
1.9 KiB
using BBWY.Client.Models.APIModel.Response.PackTask;
|
|
using GalaSoft.MvvmLight.Command;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Text;
|
|
using System.Windows.Input;
|
|
|
|
namespace BBWY.Client.Models.PackTask
|
|
{
|
|
public class PackUser
|
|
{
|
|
/// <summary>
|
|
/// 用户Id
|
|
/// </summary>
|
|
public string Id { get; set; }
|
|
/// <summary>
|
|
/// 用户名
|
|
/// </summary>
|
|
public string UserName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 团队Id
|
|
/// </summary>
|
|
public string DepartmentId { get; set; }
|
|
/// <summary>
|
|
/// 用户名(花名)
|
|
/// </summary>
|
|
public string UserNick { get; set; }
|
|
}
|
|
|
|
|
|
public class PackUserModel:NotifyObject
|
|
{
|
|
|
|
private string selectUserId;
|
|
/// <summary>
|
|
/// Member.userId
|
|
/// </summary>
|
|
public string SelectUserId { get => selectUserId; set { Set(ref selectUserId, value); } }
|
|
|
|
private string memberName;
|
|
public string MemberName { get => memberName; set { Set(ref memberName, value); } }
|
|
|
|
private int taskCount;
|
|
/// <summary>
|
|
/// 任务量
|
|
/// </summary>
|
|
public int TaskCount { get => taskCount; set { Set(ref taskCount, value); } }
|
|
|
|
private ObservableCollection<PackUser> memberList;
|
|
public ObservableCollection<PackUser> MemberList
|
|
{
|
|
get => memberList; set
|
|
{
|
|
Set(ref memberList, value);
|
|
}
|
|
}
|
|
public ICommand DeleteServiceCommand { get; set; }
|
|
|
|
public PackUserModel()
|
|
{
|
|
DeleteServiceCommand = new RelayCommand<object>(DeleteService);
|
|
}
|
|
|
|
private void DeleteService(object obj)
|
|
{
|
|
ObservableCollection<PackUserModel> list = obj as ObservableCollection<PackUserModel>;
|
|
list.Remove(this);
|
|
}
|
|
}
|
|
}
|
|
|