protected void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         gvCustomerReport.DataSource = objBL.SearchReportByBank(ddlCustomerName.SelectedItem.Text, ddlCreditCardNumber.SelectedItem.Text, ddlAccountNumber.SelectedItem.Text, txtEmailId.Text);
         gvCustomerReport.DataBind();
     }
     catch (Exception Ex)
     {
     }
     finally
     {
         objBL = null;
     }
 }
예제 #2
0
 protected void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         gvCustomerReport.DataSource = objBL.SearchReportByBank(Convert.ToInt32(Session["CustomerId"].ToString()), ddlBank.SelectedValue);
         gvCustomerReport.DataBind();
     }
     catch (Exception Ex)
     {
     }
     finally
     {
         objBL = null;
     }
 }
예제 #3
0
 private void BindData()
 {
     try
     {
         Session["CardDetails"]         = objService.SearchCardDetails(ddlCustomerName.SelectedItem.Text, ddlCreditCardNumber.SelectedItem.Text, ddlAccountNumber.SelectedItem.Text, ddlBankID.SelectedItem.Text);
         gvSearchInvalidated.DataSource = Session["CardDetails"];
         gvSearchInvalidated.DataBind();
     }
     catch (Exception Ex)
     {
     }
     finally
     {
         objBL = null;
     }
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="strValue"></param>
        /// <param name="vtType"></param>
        /// <returns></returns>
        public static StringDictionary getSettings(string strValue,clsCommonBL.FindBy vtType)
        {
            StringDictionary lstProperties = new StringDictionary();
            try
            {


                string strFindBy = vtType == clsCommonBL.FindBy.BySiteUrl ? "SiteUrl" : "SiteId";

                //string strPath = @"/_layouts/SP.GlobalTopMenu/Data/GlobalNav.xml";
                XDocument xDoc = GetXDocument(XMLType.XMLGLOBALNAV); // XDocument.Load(System.Web.HttpContext.Current.Server.MapPath(XMLGLOBALNAVPATH));

                if (xDoc.Elements("GlobalNav").Elements("Item").Count() > 0)
                {
                    var q = from c in xDoc.Elements("GlobalNav").Elements("Item")
                            where (string)c.Element(strFindBy) == strValue
                            select new
                            {
                                position = (string)c.Element("Position"),
                                groupId = (string)c.Element("GroupId"),
                                globalNav = (string)c.Element("GlobalNav"),
                                footer = (string)c.Element("Footer"),
                                parentId = (string)c.Element("ParentId"),
                                siteId = (string)c.Element("SiteId"),
                                Title = (string)c.Element("SiteTitle"),
                                NewTitle = (string)c.Element("NewTitle"),
                                description = (string)c.Element("SiteDescription"),
                                url = (string)c.Element("SiteUrl")
                            };

                    if (q.Count() > 0)
                    {

                        //,
                        //Convert.ToInt16(string.IsNullOrEmpty(strdChildSettings["Position"].ToString().Trim()) ? "0" : strdChildSettings["Position"].ToString().Trim()))
                        lstProperties.Add("siteId", q.Single().siteId.ToString() != null ? q.Single().siteId.ToString() : "");
                        lstProperties.Add("position", string.IsNullOrEmpty(q.Single().position.ToString().Trim()) ? "" : q.Single().position.ToString().Trim());
                        lstProperties.Add("groupId", string.IsNullOrEmpty(q.Single().groupId.ToString().Trim()) ? "" : q.Single().groupId.ToString().Trim());
                        lstProperties.Add("globalNav", q.Single().globalNav);
                        lstProperties.Add("footer", q.Single().footer);
                        lstProperties.Add("parentId", q.Single().parentId.ToString() != null ? q.Single().parentId.ToString() : "");
                        lstProperties.Add("title", !string.IsNullOrEmpty(q.Single().NewTitle) ? q.Single().NewTitle.ToString() : (q.Single().Title.ToString() != null ? q.Single().Title.ToString() : ""));
                        lstProperties.Add("description", q.Single().description.ToString() != null ? q.Single().description.ToString() : "");
                        lstProperties.Add("url", q.Single().url.ToString() != null ? q.Single().url.ToString() : "");
                        lstProperties.Add("newtitle", !string.IsNullOrEmpty(q.Single().NewTitle) ? q.Single().NewTitle.ToString() : string.Empty);

                        return lstProperties;
                    }
                    else
                        return null;
                }
                else
                    return null;
            }
            catch (Exception ex)
            {

                throw;

                //return lstProperties;
            }
        }