private SearchLeadCondition GetSearchCondition()
        {
            SearchLeadCondition data = new SearchLeadCondition();

            data.TicketId        = txtTicketID.Text.Trim();
            data.Firstname       = txtFirstname.Text.Trim();
            data.Lastname        = txtLastname.Text.Trim();
            data.CardType        = cmbCardType.Items.Count > 0 ? cmbCardType.SelectedItem.Value : string.Empty; //ประเภทบุคคล
            data.CitizenId       = txtCitizenId.Text.Trim();
            data.CampaignId      = cmbCampaign.SelectedItem.Value;
            data.ChannelId       = cmbChannel.SelectedItem.Value;
            data.OwnerUsername   = cmbOwnerLeadSearch.Items.Count > 0 ? cmbOwnerLeadSearch.SelectedItem.Value : string.Empty;           //Owner Lead
            data.OwnerBranch     = cmbOwnerBranchSearch.Items.Count > 0 ? cmbOwnerBranchSearch.SelectedItem.Value : string.Empty;       //Owner Branch
            data.DelegateBranch  = cmbDelegateBranchSearch.Items.Count > 0 ? cmbDelegateBranchSearch.SelectedItem.Value : string.Empty; //Delegate Branch
            data.DelegateLead    = cmbDelegateLeadSearch.Items.Count > 0 ? cmbDelegateLeadSearch.SelectedItem.Value : string.Empty;     //Delegate Lead
            data.CreateByBranch  = cmbCreatebyBranchSearch.Items.Count > 0 ? cmbCreatebyBranchSearch.SelectedItem.Value : string.Empty; //CreateBy Branch
            data.CreateBy        = cmbCreatebySearch.Items.Count > 0 ? cmbCreatebySearch.SelectedItem.Value : string.Empty;             //CreateBy
            data.CreatedDate     = tdmCreateDate.DateValue;
            data.AssignedDate    = tdmAssignDate.DateValue;
            data.StatusList      = GetStatusList();
            data.PageIndex       = pcTop.SelectedPageIndex > -1 ? pcTop.SelectedPageIndex : 0;
            data.StaffType       = SlmScr003Biz.GetStaffType(HttpContext.Current.User.Identity.Name);
            data.SortExpression  = SortExpressionProperty;
            data.SortDirection   = SortDirectionProperty.ToString();
            data.AdvancedSearch  = txtAdvanceSearch.Text.Trim() == "Y" ? true : false;
            data.ContractNoRefer = txtContractNoRefer.Text.Trim();
            return(data);
        }
Exemple #2
0
        private SearchLeadCondition GetSearchCondition()
        {
            SearchLeadCondition data = new SearchLeadCondition();

            data.TicketId        = txtTicketID.Text.Trim();
            data.Firstname       = txtFirstname.Text.Trim();
            data.Lastname        = txtLastname.Text.Trim();
            data.CardType        = cmbCardType.Items.Count > 0 ? cmbCardType.SelectedItem.Value : string.Empty; //ประเภทบุคคล
            data.CitizenId       = txtCitizenId.Text.Trim();
            data.CampaignId      = cmbCampaign.SelectedItem.Value;
            data.ChannelId       = cmbChannel.SelectedItem.Value;
            data.OwnerUsername   = cmbOwnerLeadSearch.Items.Count > 0 ? cmbOwnerLeadSearch.SelectedItem.Value : string.Empty;           //Owner Lead
            data.OwnerBranch     = cmbOwnerBranchSearch.Items.Count > 0 ? cmbOwnerBranchSearch.SelectedItem.Value : string.Empty;       //Owner Branch
            data.DelegateBranch  = cmbDelegateBranchSearch.Items.Count > 0 ? cmbDelegateBranchSearch.SelectedItem.Value : string.Empty; //Delegate Branch
            data.DelegateLead    = cmbDelegateLeadSearch.Items.Count > 0 ? cmbDelegateLeadSearch.SelectedItem.Value : string.Empty;     //Delegate Lead
            data.CreateByBranch  = cmbCreatebyBranchSearch.Items.Count > 0 ? cmbCreatebyBranchSearch.SelectedItem.Value : string.Empty; //CreateBy Branch
            data.CreateBy        = cmbCreatebySearch.Items.Count > 0 ? cmbCreatebySearch.SelectedItem.Value : string.Empty;             //CreateBy
            data.CreatedDate     = tdmCreateDate.DateValue;
            data.AssignedDate    = tdmAssignDate.DateValue;
            data.StatusList      = GetStatusList();
            data.PageIndex       = pcTop.SelectedPageIndex > -1 ? pcTop.SelectedPageIndex : 0;
            data.PageSize        = SLMConstant.GridviewPageSize;
            data.SortExpression  = SortExpressionProperty;
            data.SortDirection   = SortDirectionProperty.ToString();
            data.AdvancedSearch  = txtAdvanceSearch.Text.Trim() == "Y" ? true : false;
            data.ContractNoRefer = txtContractNoRefer.Text.Trim();
            data.ScreenCode      = "SLM_SCR_003";
            //2016-12-26 --> SR:5905-123
            data.SubStatus        = txtSubStatus.Text.Trim();
            data.ChangeStatusDate = tdmChangeStatusDate.DateValue;
            //Login Staff Info
            data.StaffType       = txtStaffTypeId.Text.Trim() != "" ? (decimal?)decimal.Parse(txtStaffTypeId.Text.Trim()) : null;
            data.StaffBranchCode = txtStaffBranchCode.Text.Trim();

            return(data);
        }
Exemple #3
0
 SetValue(SortDirectionProperty, value);
Exemple #4
0
 set => this.SetValue(SortDirectionProperty, value);