private void DoBindGridview() { List <PhoneCallHistoryData> result = SearchLeadBiz.SearchPhoneCallHistory(txtCitizenId.Text.Trim(), txtTelNo1.Text.Trim()); BindGridview((COC.Application.Shared.GridviewPageController)pcTop, result.ToArray(), 0); upResult.Update(); }
private void DoBindGridview() { List <NoteHistoryData> result = SearchLeadBiz.SearchNoteHistory(txtTicketID.Text.Trim()); BindGridview((COC.Application.Shared.GridviewPageController)pcTop, result.ToArray(), 0); cbNoteFlag.Enabled = gvNoteHistory.Rows.Count > 0 ? true : false; upResult.Update(); }
private void GetCampaignList() { try { List <CampaignWSData> cList = SearchLeadBiz.GetCampaignFinalList(txtTicketID.Text.Trim()); lbSum.Text = "<font class='hilightGreen'><b>" + cList.Count.ToString("#,##0") + "</b></font>"; gvCampaign.DataSource = cList; gvCampaign.DataBind(); } catch (Exception ex) { throw ex; } }
public void GetOwnerLogingList(string ticketId) { try { txtTicketId.Text = ticketId; List <OwnerLoggingData> result = SearchLeadBiz.SearchOwnerLogging(ticketId); BindGridview((COC.Application.Shared.GridviewPageController)pcTop, result.ToArray(), 0); upResult.Update(); } catch (Exception ex) { throw ex; } }
public void GetExistingProductList(string citizenId) { try { txtCitizenId.Text = citizenId; List <ExistingProductData> result = SearchLeadBiz.SearchExistingProduct(txtCitizenId.Text.Trim()); BindGridview((COC.Application.Shared.GridviewPageController)pcTop, result.ToArray(), 0); upResult.Update(); } catch (Exception ex) { throw ex; } }
protected void PageSearchChange(object sender, EventArgs e) { try { List <OwnerLoggingData> result = SearchLeadBiz.SearchOwnerLogging(txtTicketId.Text.Trim()); var pageControl = (COC.Application.Shared.GridviewPageController)sender; BindGridview(pageControl, result.ToArray(), pageControl.SelectedPageIndex); } catch (Exception ex) { string message = ex.InnerException != null ? ex.InnerException.Message : ex.Message; _log.Debug(message); AppUtil.ClientAlert(Page, message); } }
private void GetLeadData() { try { lead = SearchLeadBiz.GetLeadInfo(txtTicketID.Text.Trim()); if (lead != null) { tabLeadInfo.GetLeadData(lead); txtstatus.Text = lead.StatusName; txtFirstname.Text = lead.Name; txtFirstname.ToolTip = lead.Name; txtLastname.Text = lead.LastName; txtLastname.ToolTip = lead.LastName; txtCampaignId.Text = lead.CampaignId; txtCampaignName.Text = lead.CampaignName; txtCampaignName.ToolTip = lead.CampaignName; txtInterestedProd.Text = lead.InterestedProd; txtInterestedProd.ToolTip = lead.InterestedProd; txtCitizenId.Text = lead.CitizenId; txtChannelId.Text = lead.ChannelId; txtTelNo1.Text = lead.TelNo_1; if (lead.ContactLatestDate != null) { txtContactLatestDate.Text = lead.ContactLatestDate.Value.ToString("dd/MM/") + lead.ContactLatestDate.Value.Year.ToString() + " " + lead.ContactLatestDate.Value.ToString("HH:mm:ss"); } if (lead.AssignedDateView != null) { txtAssignDate.Text = lead.AssignedDateView.Value.ToString("dd/MM/") + lead.AssignedDateView.Value.Year.ToString() + " " + lead.AssignedDateView.Value.ToString("HH:mm:ss"); } if (lead.ContactFirstDate != null) { txtContactFirstDate.Text = lead.ContactFirstDate.Value.ToString("dd/MM/") + lead.ContactFirstDate.Value.Year.ToString() + " " + lead.ContactFirstDate.Value.ToString("HH:mm:ss"); } if (lead.CocAssignedDate != null) { txtCOCAssignDate.Text = lead.CocAssignedDate.Value.ToString("dd/MM/") + lead.CocAssignedDate.Value.Year.ToString() + " " + lead.CocAssignedDate.Value.ToString("HH:mm:ss"); } txtOwnerLead.Text = lead.OwnerName; txtOwnerLead.ToolTip = lead.OwnerName; txtDelegateLead.Text = lead.DelegateName; txtDelegateLead.ToolTip = lead.DelegateName; txtDelegateBranch.Text = lead.DelegatebranchName; txtDelegateBranch.ToolTip = lead.DelegatebranchName; txtOwnerBranch.Text = lead.OwnerBranchName; txtOwnerBranch.ToolTip = lead.OwnerBranchName; txtTelNo_1.Text = lead.TelNo_1; txtTelNo2.Text = lead.TelNo_2; txtExt2.Text = lead.Ext_2; txtTelNo3.Text = lead.TelNo_3; txtExt3.Text = lead.Ext_3; txtMarketingOwner.Text = lead.MarketingOwnerName; txtMarketingOwner.ToolTip = lead.MarketingOwnerName; txtLastOwner.Text = lead.LastOwnerName; txtLastOwner.ToolTip = lead.LastOwnerName; txtCocTeam.Text = lead.CocTeam; txtCocTeam.ToolTip = lead.CocTeam; txtCocStatus.Text = lead.CocStatusDesc; txtCocStatus.ToolTip = lead.CocStatusDesc; GetCampaignList(); } } catch (Exception ex) { throw ex; } }