Example #1
0
        private HousesIndexViewModel IndexInit(Guid id, RoadFlow.Data.Model.ElementOrganizeType type)
        {
            HousesIndexViewModel viewModel = new HousesIndexViewModel();

            viewModel.OrganizeID = id;
            viewModel.Type       = type;
            //viewModel.List = bll.GetListByCode("LPMC"); //获取所有楼盘
            RoadFlow.Platform.OrganizeBLL organizeBLL = new RoadFlow.Platform.OrganizeBLL();
            viewModel.Name = organizeBLL.GetByID(id).Name;//当前设置机构名称
            //获取当前用户组织权限用于显示选中
            List <Guid> list = new List <Guid>();

            foreach (DataRow dr in elementOrganizeBLL.GetByTypeAndOrganizeID(type, id).Rows)
            {
                list.Add((Guid)dr["ElementID"]);
            }
            viewModel.Check = list;
            return(viewModel);
        }
 public ElementOrganizeController()
 {
     BLL         = new RoadFlow.Platform.ElementOrganizeBLL();
     OrganizeBLL = new RoadFlow.Platform.OrganizeBLL();
 }