Пример #1
0
 public bool CanRenameSession(string SessionId, int UserId)
 {
     Functions F = new Functions();
     bool response = F.CanRenameSession(SessionId,UserId);
     F.Dispose();
     return response;
 }
Пример #2
0
 public void AddStreamingEncoder(int StreamingEncoderId)
 {
     try
     {
         Functions F = new Functions();
         F.AddStreamingEncoder(StreamingEncoderId,mvarID);
         F.Dispose();
     }
     catch(Exception Err)
     {
         throw new ApplicationException(Err.Message,Err.InnerException);
     }
 }
Пример #3
0
 public void RemoveRecording(int RecordingId)
 {
     try
     {
         Functions F = new Functions();
         F.RemoveRecordingFromGroup(RecordingId,mvarID);
         F.Dispose();
     }
     catch(Exception Err)
     {
         throw new ApplicationException(Err.Message,Err.InnerException);
     }
 }
Пример #4
0
 public VideoStorageServer GetVideoStorageServerById(int Id)
 {
     Functions F = new Functions();
     VideoStorageServer X = F.GetVideoStorageServer(Id);
     F.Dispose();
     return X;
 }
Пример #5
0
 public void InsertSectionType(int PrevSectionTypeId,string SectionTypeDescription,string CreatesSectionTypeDescription)
 {
     OysterClassLibrary.Functions F = new Functions();
     F.InsertSectionType(PrevSectionTypeId,SectionTypeDescription,CreatesSectionTypeDescription);
     F.Dispose();
 }
Пример #6
0
 public string GetSystemName()
 {
     Functions F = new Functions();
     string SystemName = F.GetSystemName();
     F.Dispose();
     return SystemName;
 }
Пример #7
0
 public User GetUserByCardNumberRaw(string CardNumber)
 {
     string FCardNumber = FormatCardNumber(CardNumber);
     Functions F = new Functions();
     User U = F.GetUser(FCardNumber);
     F.Dispose();
     return U;
 }
Пример #8
0
 /// <summary>
 /// Retrieves either all Current Groups or only the Public Access Groups in the System based on the supplied boolean parameter
 /// </summary>
 /// <param name="PublicOnly"></param>
 /// <returns></returns>
 public Groups GetALLGroups(bool PublicOnly)
 {
     Functions F = new Functions();
     Groups G = F.GetGroups(PublicOnly);
     F.Dispose();
     return G;
 }
Пример #9
0
 public CardReader GetCardReaderById(int Id)
 {
     Functions F =new Functions();
     CardReader X = F.GetCardReader(Id);
     F.Dispose();
     return X;
 }
Пример #10
0
 public Recording CreateRecording(string RecordingName,string DisplayName,int OwnerID,int VideoStorageServerID,int StreamingEncoder, string SessionID, string SessionName)
 {
     Functions F = new Functions();
     Recording R = F.CreateARecording(RecordingName,DisplayName,OwnerID,VideoStorageServerID,StreamingEncoder,SessionID,SessionName);
     F.Dispose();
     return R;
 }
Пример #11
0
 public void DeleteRecordingById(int RecordingId)
 {
     try
     {
         Functions F = new Functions();
         F.DeleteRecording(RecordingId);
         F.Dispose();
     }
     catch(Exception Err)
     {
         throw new Exception(Err.Message);
     }
 }
Пример #12
0
 public bool CheckLoginNameUnique(string LoginName)
 {
     Functions F = new Functions();
     bool response = F.IsLoginNameUnique(LoginName);
     F.Dispose();
     return response;
 }
Пример #13
0
 public bool CheckCardNumberUnique(string CardNumber)
 {
     Functions F = new Functions();
     bool response = F.IsCardNumberUnique(CardNumber);
     F.Dispose();
     return response;
 }
Пример #14
0
 public bool CheckAddressPortPair(string Address, int Port)
 {
     Functions F = new Functions();
     bool response = F.IsAddressUnique(Address,Port);
     F.Dispose();
     return response;
 }
Пример #15
0
 public Recordings GetSessionById(string Id)
 {
     Functions F = new Functions();
     Recordings X = F.GetSessionById(Id);
     F.Dispose();
     return X;
 }
Пример #16
0
 public ForwardingServer GetForwardingServerById(int Id)
 {
     Functions F = new Functions();
     ForwardingServer X = F.GetForwardingServer(Id);
     F.Dispose();
     return X;
 }
Пример #17
0
 public StreamingEncoder GetStreamingEncoderById(int Id)
 {
     Functions F = new Functions();
     StreamingEncoder X = F.GetStreamingEncoder(Id);
     F.Dispose();
     return X;
 }
Пример #18
0
 public MediaBufferServer GetMediaBufferServerById(int Id)
 {
     Functions F = new Functions();
     MediaBufferServer X = F.GetMediaBufferServer(Id);
     F.Dispose();
     return X;
 }
Пример #19
0
 public User GetUserByCardNumber(string CardNumber)
 {
     Functions F = new Functions();
     User U = F.GetUser(CardNumber);
     F.Dispose();
     return U;
 }
Пример #20
0
 public Recording GetRecordingById(int Id)
 {
     Functions F = new Functions();
     Recording X = F.GetRecording(Id);
     F.Dispose();
     return X;
 }
Пример #21
0
 public User GetUserById(int Id)
 {
     Functions F = new Functions();
     User U = F.GetUser(Id);
     F.Dispose();
     return U;
 }
Пример #22
0
 public Recording GetRecordingByName(string RecordingName)
 {
     Functions F =  new Functions();
     Recording R = F.GetRecordingByDescription(RecordingName);
     F.Dispose();
     return R;
 }
Пример #23
0
 public void InsertPermission(int SectionTypeId,int PermissionId, int TargetSectionTypeId)
 {
     OysterClassLibrary.Functions F = new Functions();
     F.InsertPermission(SectionTypeId,PermissionId,TargetSectionTypeId);
     F.Dispose();
 }
Пример #24
0
 public Room GetRoomById(int Id)
 {
     Functions F =  new Functions();
     Room X = F.GetRoom(Id);
     F.Dispose();
     return X;
 }
Пример #25
0
 public void AddRoom(int RoomId)
 {
     try
     {
         Functions F = new Functions();
         F.AddRoom(RoomId,mvarID);
         F.Dispose();
     }
     catch(Exception Err)
     {
         throw new ApplicationException(Err.Message,Err.InnerException);
     }
 }
Пример #26
0
 public Section GetSectionById(int Id)
 {
     Functions F = new Functions();
     Section S = F.GetSection(Id);
     F.Dispose();
     return S;
 }
Пример #27
0
 public void AddUser(int UserId)
 {
     try
     {
         Functions F = new Functions();
         F.AddUser(UserId,(double)mvarID);
         F.Dispose();
     }
     catch(Exception Err)
     {
         throw new ApplicationException(Err.Message,Err.InnerException);
     }
 }
Пример #28
0
 public SectionType GetSectionTypeById(int Id)
 {
     Functions F = new Functions();
     SectionType X = F.GetSectionType(Id);
     F.Dispose();
     return X;
 }
Пример #29
0
 public void RemoveUser(int UserId)
 {
     try
     {
         Functions F = new Functions();
         F.RemoveUserFromGroup(UserId,mvarID);
         F.Dispose();
     }
     catch(Exception Err)
     {
         throw new ApplicationException(Err.Message,Err.InnerException);
     }
 }
Пример #30
0
        private void OysterTimer_Tick(object source,System.Timers.ElapsedEventArgs e)
        {
            try
            {
                string sSQL = "UPDATE tblSystem SET SysAdminLastUpdateTime = '" + System.DateTime.Now + "'";
                if((SC == null)||(SC.State == ConnectionState.Closed))
                {

                    Functions F = new Functions();
                    //F.ShareOpenConnection(ref SC);
                    string ConnS = F.GetConnectionString();
                    SC = new SqlConnection(ConnS);
                    F.Dispose();
                    SC.Open();
                }
                SqlCommand cm = new SqlCommand(sSQL,SC);
                int numrecs = cm.ExecuteNonQuery();
                if(numrecs == 0)
                    throw new ApplicationException("Error writing update to System variable!");
            }
            catch(Exception Err)
            {
                throw new ApplicationException(Err.Message);
            }
        }