Beispiel #1
0
 /// <summary>
 /// DisplayName, Count
 /// </summary>
 /// <returns></returns>
 public static IDataReader GetMostActiveGroupsByToDoReport(DateTime FromDate, DateTime ToDate)
 {
     return(DbHelper2.RunSpDataReader("ReportMostActiveGroupsByToDo",
                                      DbHelper2.mp("@FromDate", SqlDbType.DateTime, FromDate),
                                      DbHelper2.mp("@ToDate", SqlDbType.DateTime, ToDate)));
 }
Beispiel #2
0
 public static int CheckChildren(int GroupId)
 {
     return(DbHelper2.RunSpInteger("GroupCheckChildren",
                                   DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId)));
 }
Beispiel #3
0
 /// <summary>
 /// Reader returns fields:
 ///		GroupId, GroupName, Level
 /// </summary>
 public static IDataReader GetListGroupsAsTreeForIBN()
 {
     return(DbHelper2.RunSpDataReader("GroupsGetAsTree2"));
 }
Beispiel #4
0
 /// <summary>
 /// Reader returns fields:
 ///		GroupId, GroupName, HasChildren
 /// </summary>
 public static IDataReader GetListChildGroups(int GroupId)
 {
     return(DbHelper2.RunSpDataReader("GroupsGetByParent",
                                      DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId)));
 }
Beispiel #5
0
 /// <summary>
 /// Reader returns fields:
 ///		GroupId, GroupName
 /// </summary>
 public static IDataReader GetListAvailableGroups()
 {
     return(DbHelper2.RunSpDataReader("GroupsGetAvailable"));
 }
Beispiel #6
0
 public BasePlanSlotRow(int BasePlanSlotId)
 {
     using (IDataReader reader = DbHelper2.RunSpDataReader("mc_BasePlanSlotSelect", DbHelper2.mp("@BasePlanSlotId", SqlDbType.Int, BasePlanSlotId)))
     {
         if (reader.Read())
         {
             Load(reader);
         }
         else
         {
             throw new Exception(String.Format("Record with {0}.{1}={2} not found", "BasePlanSlot", "BasePlanSlotId", BasePlanSlotId));
         }
     }
 }
Beispiel #7
0
 /// <summary>
 /// Reader returns fields:
 ///		UserId, Login, FirstName, LastName, Email, IMGroupId, CreatedBy, Activity, IsExternal
 /// </summary>
 public static IDataReader GetListAllUsersIn2Group(int Group1Id, int Group2Id)
 {
     return(DbHelper2.RunSpDataReader("UsersGetBy2GroupAll",
                                      DbHelper2.mp("@Group1Id", SqlDbType.Int, Group1Id),
                                      DbHelper2.mp("@Group2Id", SqlDbType.Int, Group2Id)));
 }
Beispiel #8
0
 public static void ReplaceUnchangeableUser(int FromUserId, int ToUserId)
 {
     DbHelper2.RunSp("ReportsReplaceUnchangeableUser",
                     DbHelper2.mp("@FromUserId", SqlDbType.Int, FromUserId),
                     DbHelper2.mp("@ToUserId", SqlDbType.Int, ToUserId));
 }
Beispiel #9
0
 public static IDataReader GetQDictionary(string query)
 {
     return(DbHelper2.RunTextDataReader(query));
 }
Beispiel #10
0
 public static IDataReader GetUsersByCompany()
 {
     return(DbHelper2.RunSpDataReader("ASP_GET_USERS_BY_COMPANY"));
 }
Beispiel #11
0
 public static int CheckForUnchangeableRoles(int UserId)
 {
     return(DbHelper2.RunSpInteger("ReportsCheckForUnchangeableRoles",
                                   DbHelper2.mp("@UserId", SqlDbType.Int, UserId)));
 }
Beispiel #12
0
 public static IDataReader GetReportBinaryData(int ReportItemId)
 {
     return(DbHelper2.RunSpDataReaderBlob("ReportGetBinaryData",
                                          DbHelper2.mp("@ReportItemId", SqlDbType.Int, ReportItemId)));
 }
Beispiel #13
0
 /// <summary>
 /// Reader contains fields:
 /// UserId, FirstName, LastName, FullName, FullName2
 /// </summary>
 /// <returns></returns>
 public static IDataReader GetListReportsModifiers()
 {
     return(DbHelper2.RunSpDataReader("ReportGetModifiers"));
 }
Beispiel #14
0
 /// <summary>
 /// Reader contains fields:
 /// UserId, FirstName, LastName, FullName, FullName2
 /// </summary>
 /// <returns></returns>
 public static IDataReader GetListReportsCreators()
 {
     return(DbHelper2.RunSpDataReader("ReportGetAuthors"));
 }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PendingEMailMessageRow"/> class.
 /// </summary>
 /// <param name="PendingEMailMessageId">The pending E mail message id.</param>
 public PendingEMailMessageRow(int PendingEMailMessageId)
 {
     using (IDataReader reader = DbHelper2.RunSpDataReader("mc_PendingEMailMessageSelect", DbHelper2.mp("@PendingEMailMessageId", SqlDbType.Int, PendingEMailMessageId)))
     {
         if (reader.Read())
         {
             Load(reader);
         }
         else
         {
             throw new Exception(String.Format("Record with {0}.{1}={2} not found", "PendingEMailMessage", "PendingEMailMessageId", PendingEMailMessageId));
         }
     }
 }
Beispiel #16
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public static void DeleteReportTemplate(int TemplateId)
 {
     DbHelper2.RunSp("ReportTemplateDelete",
                     DbHelper2.mp("@TemplateId", SqlDbType.Int, TemplateId));
 }
Beispiel #17
0
 public static void Delete(int BasePlanSlotId)
 {
     DbHelper2.RunSp("mc_BasePlanSlotDelete", DbHelper2.mp("@BasePlanSlotId", SqlDbType.Int, BasePlanSlotId));
 }
Beispiel #18
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public static void DeleteReportItem(int ReportItemId)
 {
     DbHelper2.RunSp("ReportHistoryDelete",
                     DbHelper2.mp("@ReportItemId", SqlDbType.Int, ReportItemId));
 }
Beispiel #19
0
 /// <summary>
 /// Reader returns fields:
 ///		UserId, Login, FirstName, LastName, Email, IMGroupId, CreatedBy
 /// </summary>
 public static DataTable GetListActiveUsersInGroupDataTable(int GroupId)
 {
     return(DbHelper2.RunSpDataTable("UsersGetActiveByGroup",
                                     DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId)));
 }
Beispiel #20
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public static void DeleteTemporaryTemplates()
 {
     DbHelper2.RunSp("ReportTemplateDeleteTemporary");
 }
Beispiel #21
0
 /// <summary>
 /// Reader returns fields:
 ///		UserId, Login, FirstName, LastName, Email, IMGroupId, CreatedBy, Activity, IsExternal
 /// </summary>
 public static IDataReader GetListAllActiveUsersInGroup(int GroupId)
 {
     return(DbHelper2.RunSpDataReader("UsersGetActiveByGroupAll",
                                      DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId)));
 }
Beispiel #22
0
 public static int GetOnlineUsersCount()
 {
     return(DbHelper2.RunSpInteger("ASP_REP_GET_ONLINE_USERS_COUNT"));
 }
Beispiel #23
0
 /// <summary>
 /// Reader returns fields:
 ///		GroupId, GroupName, IMGroupId, ContactUid, OrgUid
 /// </summary>
 public static IDataReader GetListGroups()
 {
     return(DbHelper2.RunSpDataReader("GroupGet",
                                      DbHelper2.mp("@PrincipalId", SqlDbType.Int, 0)));
 }
Beispiel #24
0
 public static int GetGroupsCount()
 {
     return(DbHelper2.RunSpInteger("ASP_REP_GET_TOTAL_GROUPS"));
 }
Beispiel #25
0
 /// <summary>
 /// Reader returns fields:
 ///		GroupId, GroupName
 /// </summary>
 public static IDataReader GetListGroupsForMove(int GroupId)
 {
     return(DbHelper2.RunSpDataReader("GroupsGetForMove",
                                      DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId)));
 }
Beispiel #26
0
 public static int GetUsersCount()
 {
     return(DbHelper2.RunSpInteger("ASP_REP_GET_TOTAL_USERS"));
 }
Beispiel #27
0
 public static void Delete(int GroupId)
 {
     DbHelper2.RunSp("GroupDelete",
                     DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId));
 }
Beispiel #28
0
 /// <summary>
 /// Deletes the by E mail message id.
 /// </summary>
 /// <param name="EMailMessageId">The E mail message id.</param>
 public static void DeleteByEMailMessageId(int EMailMessageId)
 {
     DbHelper2.RunSp("mc_PendingEMailMessageDeleteByEMailMessageId", DbHelper2.mp("@EMailMessageId", SqlDbType.Int, EMailMessageId));
 }
Beispiel #29
0
 public static void DeletePartnerGroup(int PartnerId, int GroupId)
 {
     DbHelper2.RunSp("PartnerGroupDelete",
                     DbHelper2.mp("@PartnerId", SqlDbType.Int, PartnerId),
                     DbHelper2.mp("@GroupId", SqlDbType.Int, GroupId));
 }
Beispiel #30
0
 /// <summary>
 /// IMLogins, MessSent, MessReceived, IMGroups
 /// </summary>
 /// <returns></returns>
 public static IDataReader GetUsageStats()
 {
     return(DbHelper2.RunSpDataReader("ASP_REP_GET_USAGE_STATS"));
 }