コード例 #1
0
        // ////////////////////////////////////////////////////////////////////////
        // PUBLIC METHODS
        //
        /// <summary>
        /// LoadMyCurrentSupportTicketByCreatedById
        /// </summary>
        /// <param name="createdById">createdById</param>
        /// <param name="companyId">companyId</param>
        public void LoadMyCurrentSupportTicketByCreatedByIdState(int createdById, string state, int companyId)
        {
            DashboardMySupportTicketGateway dashboardMySupportTicketGateway = new DashboardMySupportTicketGateway(Data);

            if (state != "%")
            {
                dashboardMySupportTicketGateway.LoadMyCurrentSupportTicketByCreatedByIdState(createdById, state, companyId);
            }
            else
            {
                dashboardMySupportTicketGateway.Table.Clear();
                dashboardMySupportTicketGateway.ClearBeforeFill = false;
                dashboardMySupportTicketGateway.LoadMyCurrentSupportTicketByCreatedByIdState(createdById, "New", companyId);
                dashboardMySupportTicketGateway.LoadMyCurrentSupportTicketByCreatedByIdState(createdById, "In Progress", companyId);
                dashboardMySupportTicketGateway.LoadMyCurrentSupportTicketByCreatedByIdState(createdById, "Completed", companyId);
                dashboardMySupportTicketGateway.ClearBeforeFill = true;
            }
        }
コード例 #2
0
 /// <summary>
 /// LoadMyCurrentSupportTicketByCreatedById
 /// </summary>
 /// <param name="createdById">createdById</param>
 /// <param name="companyId">companyId</param>
 public void LoadMyNewAndInProgressSupportTicketByCreated(int createdById, int companyId)
 {
     DashboardMySupportTicketGateway dashboardMySupportTicketGateway = new DashboardMySupportTicketGateway(Data);
     dashboardMySupportTicketGateway.Table.Clear();
     dashboardMySupportTicketGateway.ClearBeforeFill = false;
     dashboardMySupportTicketGateway.LoadMyCurrentSupportTicketByCreatedByIdState(createdById, "New", companyId);
     dashboardMySupportTicketGateway.LoadMyCurrentSupportTicketByCreatedByIdState(createdById, "In Progress", companyId);
     dashboardMySupportTicketGateway.ClearBeforeFill = true;
 }
コード例 #3
0
 // <summary>
 /// LoadCurrentSupportTicket
 /// </summary>
 /// <param name="companyId">companyId</param>
 public void LoadNewAndInProgressSupportTicket(int companyId)
 {
     DashboardMySupportTicketGateway dashboardMySupportTicketGateway = new DashboardMySupportTicketGateway(Data);
     dashboardMySupportTicketGateway.Table.Clear();
     dashboardMySupportTicketGateway.ClearBeforeFill = false;
     dashboardMySupportTicketGateway.LoadCurrentSupportTicketByState("New", companyId);
     dashboardMySupportTicketGateway.LoadCurrentSupportTicketByState("In Progress", companyId);
     dashboardMySupportTicketGateway.ClearBeforeFill = true;
 }