protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             uid    = Session["Value"].ToString().Split('@')[0];
             status = Session["Value"].ToString().Split('@')[1];
         }
         catch (Exception ex)
         {
             Response.Redirect("~/GlobalForm/StartPage.aspx");
         }
         Loans1Function l = new Loans1Function();
         fill(l.pageLoad(uid));
     }
 }
        protected void Submit1_Click(object sender, EventArgs e)
        {
            try
            {
                Loans1Function function = new Loans1Function();
                string         list1    = "";
                string         list2    = "";

                if (CcorporationE.Checked)
                {
                    list1 = "C Corporation";
                }
                if (SCorporationE.Checked)
                {
                    list1 = "S Corporation";
                }
                if (LLCE.Checked)
                {
                    list1 = "Limited Liability";
                }
                if (businessIndividualE.Checked)
                {
                    list1 = "Business Individual";
                }
                if (NonProfitE.Checked)
                {
                    list1 = "Non-Profit";
                }
                if (soleProprietorE.Checked)
                {
                    list1 = "Sole Proprietor";
                }
                if (limitedPartnershipE.Checked)
                {
                    list1 = "Limited Partnership";
                }
                if (generalPartnershipE.Checked)
                {
                    list1 = "General Partnership";
                }
                if (LLPE.Checked)
                {
                    list1 = "LLP";
                }
                if (otherE1.Checked)
                {
                    list1 = othertxtE1.Text;
                }

                if (manufacturingE.Checked)
                {
                    list2 = "Manufacturing";
                }
                if (wholesaleE.Checked)
                {
                    list2 = "Wholesale";
                }
                if (retailE.Checked)
                {
                    list2 = "Retail";
                }
                if (serviceE.Checked)
                {
                    list2 = "Service";
                }
                if (agriculturalE.Checked)
                {
                    list2 = "Agricultural";
                }
                if (constructionE.Checked)
                {
                    list2 = "Construction";
                }
                if (other2E.Checked)
                {
                    list2 = othertxt2E.Text;
                }
                function.Submit(new Loans1(BusinessLegalNameE.Text, dbaNameE.Text, PrimaryContactE.Text, taxidE.Text, sstxtE.Text, telephoneE.Text, emailAddressE.Text, AddressE.Text, ownE.Checked, cityE.Text, stateE.Text, zipE.Text, mailAddressE.Text, mailCityE.Text, mailStateE.Text, mailZipE.Text, list1, monthE.Text + "/" + yearE.Text, incorporationStateE.Text, employeesNumE.Text, explainE.Text, list2, listCompaniesE.Text, uid), status, uid);
                Session["Value"] = status;
                ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('The Application Was Approved'); window.location = '" + Page.ResolveUrl("~/ManagerFolder/ClientManagment.aspx") + "';", true);
            }
            catch (Exception ex)
            {
                message.Text = ex.Message;
            }
        }
示例#3
0
        protected void Submit1_Click(object sender, EventArgs e)
        {
            try
            {
                Loans1Function function = new Loans1Function();
                string         list1    = "";
                string         list2    = "";

                if (Ccorporation.Checked)
                {
                    list1 = "C Corporation";
                }
                if (SCorporation.Checked)
                {
                    list1 = "S Corporation";
                }
                if (LLC.Checked)
                {
                    list1 = "Limited Liability";
                }
                if (businessIndividual.Checked)
                {
                    list1 = "Business Individual";
                }
                if (NonProfit.Checked)
                {
                    list1 = "Non-Profit";
                }
                if (soleProprietor.Checked)
                {
                    list1 = "Sole Proprietor";
                }
                if (limitedPartnership.Checked)
                {
                    list1 = "Limited Partnership";
                }
                if (generalPartnership.Checked)
                {
                    list1 = "General Partnership";
                }
                if (LLP.Checked)
                {
                    list1 = "LLP";
                }
                if (other.Checked)
                {
                    list1 = othertxt.Text;
                }

                if (manufacturing.Checked)
                {
                    list2 = "Manufacturing";
                }
                if (wholesale.Checked)
                {
                    list2 = "Wholesale";
                }
                if (retail.Checked)
                {
                    list2 = "Retail";
                }
                if (service.Checked)
                {
                    list2 = "Service";
                }
                if (agricultural.Checked)
                {
                    list2 = "Agricultural";
                }
                if (construction.Checked)
                {
                    list2 = "Construction";
                }
                if (other2.Checked)
                {
                    list2 = othertxt2.Text;
                }
                function.Submit(new Loans1(BusinessLegalName.Text, dbaName.Text, PrimaryContact.Text, taxid.Text, sstxt.Text, telephone.Text, emailAddress.Text, Address.Text, own.Checked, city.Text, state.Text, zip.Text, mailAddress.Text, mailCity.Text, mailState.Text, mailZip.Text, list1, month.Text + "/" + year.Text, incorporationState.Text, employeesNum.Text, explain.Text, list2, listCompanies.Text, uid), status, uid);
            }
            catch (Exception ex)
            {
                message.Text = ex.Message;
            }
        }