Пример #1
0
        public List <RoomModelQuery> GetMeetRoomUseStatus(string roomCode, string begin, string end, LoadType lt)
        {
            List <RoomModelQuery> list  = new List <RoomModelQuery>();
            List <RoomModelQuery> list2 = new List <RoomModelQuery>();

            list = new ConferenceManageDAL(new SqlConnection(FunctionRule.GetConnectionString())).GetRoomUseStatus(roomCode, begin, end);
            if ((list != null) && (list.Count != 0))
            {
                foreach (RoomModelQuery query in list)
                {
                    query.RoomCode     = int.Parse(roomCode);
                    query.RoomName     = GetMeetRoomName(roomCode);
                    query.TimeAge      = this.ChangeTimeArea(query.TimeAge);
                    query.ChaterMember = this.GetUserName(query.ChaterMember);
                    if (lt.Equals(LoadType.Search))
                    {
                        query.Message = string.Format("<a href=\"#\" onclick=\"OpenLargeWindow('../RmsOA/XZ_Conference.aspx?Code={0}&Type=Read','')\">{1}</a>", query.MeetCode, query.ChaterMember);
                    }
                    else
                    {
                        query.Message = query.ChaterMember;
                    }
                    list2.Add(query);
                }
            }
            return(list2);
        }
Пример #2
0
 private void LoadAction(LoadType type)
 {
     if (type.Equals(LoadType.LOAD))
     {
         LoadFromFile();
         FillData();
     }
     else if (type.Equals(LoadType.PREVIOUS))
     {
         Properties.Settings.Default.Reload();
         Thread.Sleep(1000);
         if (Properties.Settings.Default["LastFile"].ToString() == "")
         {
             LoadFromFile();
             FillData();
         }
         else
         {
             save = saveEditor.Load(Properties.Settings.Default["LastFile"].ToString());
             FillData();
         }
     }
 }