// //////////////////////////////////////////////////////////////////////// // 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; } }
/// <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; }
// <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; }