FlowUserView.cs 806 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace YLShipBuildLandMap.Entity.ViewModel.SystemSetting.Workflow
  5. {
  6. public class FlowUserView
  7. {
  8. public Guid fuserid{ get; set; }
  9. public string fusername{ get; set; }
  10. public string frolename{ get; set; }
  11. public string Mobile{ get; set; }
  12. public Guid? DPID{ get; set; }
  13. public string DPName{ get; set; }
  14. public void FillUserInfo(UserView user, string roleName)
  15. {
  16. if (!user.UserID.HasValue)
  17. {
  18. return;
  19. }
  20. fuserid = user.UserID.Value;
  21. fusername = user.Name;
  22. frolename = roleName;
  23. DPID = user.DepartmentID;
  24. DPName = user.DepartmentName;
  25. }
  26. }
  27. }