Exemplo n.º 1
0
Arquivo: UserBLL.cs Projeto: Ato42/CMS
        } // function LoginIn

        /// <summary>
        /// 查询所有会议
        /// </summary>
        /// <param name="sqlItems">查询的内容</param>
        /// <returns>一组会议信息</returns>
        /// 作者:王宇昊
        /// 创建时间:2014-09-18
        /// 修改时间:
        public List <ConferenceModel> GetConferenceInfo(string sqlItems)
        {
            List <ConferenceModel> ConM   = new List <ConferenceModel>();
            ConferenceDAL          ConDAL = new ConferenceDAL();

            ConM = ConDAL.GetAllRecord(sqlItems);
            return(ConM);
        }// function GetConferenceInfo
Exemplo n.º 2
0
        }// function GetInConMemberRegisterInfo

        /// <summary>
        /// 获取任务单
        /// </summary>
        /// <param name="employee"></param>
        /// <returns></returns>
        /// 作者:王宇昊
        /// 创建时间:2014-09-19
        /// 修改时间:
        public List <TaskModel> GetTask(EmployeeModel employee)
        {
            ConferenceDAL          conDal   = new ConferenceDAL();
            List <ConferenceModel> conModel = new List <ConferenceModel>();
            List <TaskModel>       taskList = new List <TaskModel>();

            conModel = conDal.GetAllRecord(employee.EmId.ToString());

            foreach (ConferenceModel con in conModel)
            {
                if (con.ConStaffMen == employee.EmId)
                {
                    TaskModel task = new TaskModel();
                    task.TaskConference = con; // 获取会议信息
                    //task.TaskConName = con.ConName; //获取会议名称
                    //task.TaskConTime = con.ConStartTime;//获取会议时间

                    BoardroomDAL          BdrDAL        = new BoardroomDAL();
                    List <BoardroomModel> BoardroomList = new List <BoardroomModel>();
                    BoardroomList = BdrDAL.GetAllRecord(con.ConPlace.ToString());

                    BoardroomModel Boardroom = new BoardroomModel();

                    foreach (BoardroomModel Bdr in BoardroomList)
                    {
                        if (Bdr.BdrId == con.ConPlace)
                        {
                            Boardroom = Bdr;
                        }
                    }

                    task.TaskBdrName = Boardroom.BdrName;//获取会议室名称

                    BoardroomDAL   boardroomDal   = new BoardroomDAL();
                    BoardroomModel boardroomModel = new BoardroomModel();

                    ConUseResourceDAL          conUseRscDal  = new ConUseResourceDAL();
                    List <ConUseResourceModel> conUseRscList = new List <ConUseResourceModel> ();
                    task.TaskResource = new ArrayList();
                    conUseRscList     = conUseRscDal.GetUseResource(con.ConId);
                    if (conUseRscList.Count != 0)
                    {
                        foreach (ConUseResourceModel conUseRsc in conUseRscList)
                        {
                            task.TaskResource.Add(conUseRsc.DeviceId);//获取资源ID列表
                        } // end foreach
                    }
                    taskList.Add(task);
                } // end if
            }     // end foreach

            return(taskList);
        }// function GetTask