protected void btnSearchByDOTNo_Click(object sender, EventArgs e)
        {
            DailyLeadEntity        LeadsData    = leadHelper.GetLeadRecordsByDOTNo(txtDOTNo.Text);
            List <DailyLeadEntity> lstLeadsData = new List <DailyLeadEntity>();

            lstLeadsData.Add(LeadsData);
            lstOfLeads.DataSource = lstLeadsData;
            lstOfLeads.DataBind();

            UpdateLeadStats(lstLeadsData);
        }
Exemplo n.º 2
0
        public static string GetUSDOTDetails(string usdotno)
        {
            MCSaleHelper mcSaleHelper = new MCSaleHelper();
            MCSaleEntity mcSale       = mcSaleHelper.GetMCSaleUSDotNo(usdotno);

            if (mcSale == null)
            {
                DailyLeadsHelper leadHelper = new DailyLeadsHelper();
                DailyLeadEntity  LeadsData  = leadHelper.GetLeadRecordsByDOTNo(usdotno);
                var json = new JavaScriptSerializer().Serialize(LeadsData);
                return(json);
            }
            var jsonSale = new JavaScriptSerializer().Serialize(mcSale);

            return(jsonSale);
        }