Exemple #1
0
        public SystemWorkTaskVM()
        {
            IsForMeOnlySelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(false);

            IsForMyDepartmentOnlySelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(false);

            IsForDefaultSystemRoleGroupSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(false);

            IsUsedInMenuSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(true);

            HasShortCutLinkItemSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(false);

            HasTileLinkItemSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(false);
        }
Exemple #2
0
        public SystemWorkTaskVM(SystemWorkTask bo)
        {
            ID                          = bo.ID;
            Name                        = bo.Name;
            Description                 = bo.Description;
            SortCode                    = bo.SortCode;
            ControllerName              = bo.ControllerName;
            ControllerMethod            = bo.ControllerMethod;
            ControllerMethodParameter   = bo.ControllerMethodParameter;
            BusinessEntityName          = bo.BusinessEntityName;
            IconName                    = bo.IconName;
            IsForMeOnly                 = bo.IsForMeOnly;
            IsForMyDepartmentOnly       = bo.IsForMyDepartmentOnly;
            IsForDefaultSystemRoleGroup = bo.IsForDefaultSystemRoleGroup;
            IsUsedInMenu                = bo.IsUsedInMenu;
            HasShortCutLinkItem         = bo.HasShortCutLinkItem;
            HasTileLinkItem             = bo.HasTileLinkItem;

            IsForMeOnlyString                 = bo.IsForMeOnly ? "是" : "否";
            IsForMyDepartmentOnlyString       = bo.IsForMyDepartmentOnly ? "是" : "否";
            IsForDefaultSystemRoleGroupString = bo.IsForDefaultSystemRoleGroup ? "是" : "否";
            IsUsedInMenuString                = bo.IsUsedInMenu ? "是" : "否";
            HasShortCutLinkItemString         = bo.HasShortCutLinkItem ? "是" : "否";
            HasTileLinkItemString             = bo.HasTileLinkItem ? "是" : "否";

            IsForMeOnlySelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(bo.IsForMeOnly);

            IsForMyDepartmentOnlySelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(bo.IsForMyDepartmentOnly);

            IsForDefaultSystemRoleGroupSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(bo.IsForDefaultSystemRoleGroup);

            IsUsedInMenuSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(bo.IsUsedInMenu);

            HasShortCutLinkItemSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(bo.HasShortCutLinkItem);

            HasTileLinkItemSelector = PlainFacadeItemFactory <SystemWorkTask> .GetByBool(bo.HasTileLinkItem);
        }
Exemple #3
0
        public DepartmentVM(Department bo)
        {
            Id                 = bo.Id;
            Name               = bo.Name;
            Description        = bo.Description;
            BussinessCode      = bo.BussinessCode;
            IsActiveDepartment = bo.IsActiveDepartment;
            if (bo.IsActiveDepartment)
            {
                IsActiveDepartmentString = "是";
            }
            else
            {
                IsActiveDepartmentString = "否";
            }

            if (bo.ParentDepartment != null)
            {
                ParentItemId = bo.ParentDepartment.Id.ToString();
                ParentItem   = SelfReferentialItemFactory <Department> .Get(bo);
            }

            IsActiveDepartmentSelector = PlainFacadeItemFactory <Department> .GetByBool(bo.IsActiveDepartment);
        }
Exemple #4
0
 public DepartmentVM()
 {
     IsActiveDepartmentSelector = PlainFacadeItemFactory <Department> .GetByBool();
 }