public void LoadMCSale()
        {
            int          MCID   = Convert.ToInt32(Request.QueryString["MCID"]);
            MCSaleEntity mcSale = mcSalesHelper.GetMCSale(MCID);

            Session["MCSaleNo"]     = mcSale.MCSaleNo;
            txtAddressOnCard.Text   = mcSale.AddressOnCard;
            lblSalesPersonName.Text = userHelper.GetComplianceUserByID(Convert.ToInt32(mcSale.SalesPersonID)).Name;
            txtDOT.Text             = mcSale.DotNo;
            txtMC.Text                     = mcSale.MCNo;
            txtCardNo.Text                 = mcSale.CardNo;
            hidCardNo.Value                = mcSale.CardNo;
            txtNameOnCard.Text             = mcSale.NameOnCard;
            txtPhysicalAddress.Text        = mcSale.PhysicalAddress;
            txtRecieptEmail.Text           = mcSale.Email;
            lblMCSaleNo.Text               = mcSale.MCSaleNo;
            txtExpirationDate.Text         = mcSale.ExpirationDate;
            txtCVC.Text                    = mcSale.CVC;
            txtPhoneNo.Text                = mcSale.PhoneNo;
            ulcardtype.Attributes["class"] = mcSale.CardType;
            txtDBA.Text                    = mcSale.DBA;
            txtLegalName.Text              = mcSale.LegalName;
            txtDOTPin.Text                 = mcSale.DotPin;
            foreach (MCServiceSaleEntity item in mcSale.serviceSaleData)
            {
                DocumentEL docEL = new DocumentEL();
                docEL.Description      = item.ServicePrice;
                docEL.DocumentID       = documentDal.GetDocumentTypeByName(item.ServiceName).DocumentTypeID;
                docEL.DocumentTypeName = item.ServiceName;
                serviceListData.Add(docEL);
            }
            Session["services"] = serviceListData;
        }
        public void LoadMCSale()
        {
            int          MCID   = Convert.ToInt32(Request.QueryString["MCID"]);
            MCSaleEntity mcSale = mcSalesHelper.GetMCSale(MCID);

            txtAddressOnCard.Text   = mcSale.AddressOnCard;
            txtDOT.Text             = mcSale.DotNo;
            txtMC.Text              = mcSale.MCNo;
            txtNameOnCard.Text      = mcSale.NameOnCard;
            txtPhysicalAddress.Text = mcSale.PhysicalAddress;
            txtRecieptEmail.Text    = mcSale.Email;
            txtCardNo.Text          = mcSale.CardNo;
            lblMCSaleNo.Text        = mcSale.MCSaleNo;
            txtDBA.Text             = mcSale.DBA;
            txtLegalName.Text       = mcSale.LegalName;
            txtDOTPin.Text          = mcSale.DotPin;
            foreach (MCServiceSaleEntity item in mcSale.serviceSaleData)
            {
                DocumentEL docEL = new DocumentEL();
                docEL.Description      = item.ServicePrice;
                docEL.DocumentID       = documentDal.GetDocumentTypeByName(item.ServiceName).DocumentTypeID;
                docEL.DocumentTypeName = item.ServiceName;
                serviceListData.Add(docEL);
            }
            lstServicesPurchased.DataSource = serviceListData;
            lstServicesPurchased.DataBind();
            Label lblTotal = lstServicesPurchased.FindControl("lblSubTotal") as Label;

            try
            {
                lblTotal.Text = "$" + serviceListData.Sum(p => Convert.ToDouble(p.Description.Replace("$", ""))).ToString();
            }
            catch
            {
            }
        }