Example #1
0
        public static bool GetTicketIdPrivilege(string ticketId, string username, decimal?staffType)
        {
            SearchLeadModel         search = new SearchLeadModel();
            List <SearchLeadResult> list   = search.SearchLeadData(ticketId, "", "", "", "", "", "", "", "", "", "", username, staffType, "", "", "", "", "", "", SLMConstant.SearchOrderBy.None);

            return(list.Count > 0 ? true : false);
        }
        public static List <SearchLeadResult> SearchLeadData(SearchLeadCondition data, string username, string orderByFlag)
        {
            SearchLeadModel search     = new SearchLeadModel();
            string          createDate = data.CreatedDate.Year != 1 ? data.CreatedDate.Year + data.CreatedDate.ToString("-MM-dd") : string.Empty;
            string          assignDate = data.AssignedDate.Year != 1 ? data.AssignedDate.Year + data.AssignedDate.ToString("-MM-dd") : string.Empty;

            return(search.SearchLeadData(data.TicketId, data.Firstname, data.Lastname, data.CardType, data.CitizenId, data.CampaignId, data.ChannelId, data.OwnerUsername,
                                         createDate, assignDate, data.StatusList, username, data.StaffType, data.OwnerBranch, data.DelegateBranch, data.DelegateLead, data.ContractNoRefer, data.CreateByBranch, data.CreateBy, orderByFlag));
        }
Example #3
0
        public static LeadData GetLeadData(string ticketid)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchSCR004Data(ticketid));
        }
Example #4
0
        public static List <ExistingProductData> SearchExistingProduct(string citizenId)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchExistingProduct(citizenId));
        }
        public static List <SearchLeadResult> GetUserMonitoringMKTListByUser(string productId, string campaign, string branchcode, string assignDateFrom, string assignDateTo, string username, string statuscode)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.GetUserMonitoringMKTListByUser(productId, campaign, branchcode, assignDateFrom, assignDateTo, username, statuscode));
        }
        public static List <SearchLeadResult> SearchUserMonitoringList(string username)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.GetUserMonitoringList(username));
        }
        public static List <UserMonitoringMKTData> SearchUserMonitoringMKT(string userList, string productId, string campaign, string branchcode, string active, string assignDateFrom, string assignDateTo)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchUserMonitoringMKT(userList, productId, campaign, branchcode, active, assignDateFrom, assignDateTo));
        }
        public static List <UserMonitoringData> SearchUserMonitoring(string userList, string active, string assignDateFrom, string assignDateTo)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchUserMonitoring(userList, active, assignDateFrom, assignDateTo));
        }
        public static List <SearchLeadResult> GetUnassignLeadList(string username)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.GetUnassignLeadList(username));
        }
Example #10
0
        public static string GetNumOfUnassignLead(string username, decimal?stafftype)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.GetNumOfUnassignLead(username, stafftype));
        }
Example #11
0
        public static List <NoteHistoryData> SearchNoteHistory(string ticketId)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchNoteHistory(ticketId));
        }
Example #12
0
        public static List <CampaignWSData> GetCampaignFinalData(string ticketid)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.GetCampaignFinalList(ticketid));
        }
Example #13
0
        public static List <OwnerLoggingData> SearchOwnerLogging(string txtTicketId)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchOwnerLogging(txtTicketId));
        }
Example #14
0
        public static LeadDataForAdam GetLeadDataForAdam(string ticketId)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.GetLeadDataForAdam(ticketId));
        }
Example #15
0
        //public static List<ControlListData> GetLeadStatusForActivity(string optionType)
        //{
        //    KKSlmMsOptionModel option = new KKSlmMsOptionModel();
        //    return option.GetOptionListForActivity(optionType);
        //}

        public static List <PhoneCallHistoryData> SearchPhoneCallHistory(string citizenId, string ticketid, bool thisLead)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchPhoneCallHistory(citizenId, ticketid, thisLead));
        }
Example #16
0
        public static List <SearchLeadResult> SearchExistingLead(string citizenId, string ticketId)
        {
            SearchLeadModel search = new SearchLeadModel();

            return(search.SearchExistingLead(citizenId, ticketId));
        }