Esempio n. 1
0
    private void BindServiceTypes()
    {
        try
        {
            LPWeb.BLL.ServiceTypes st = new ServiceTypes();
            ddlServiceType.DataSource = st.GetList(" Enabled=1 order by Name");
            ddlServiceType.DataBind();

            var item = new ListItem("All Service Types", "0")
            {
                Selected = true
            };
            ddlServiceType.Items.Insert(0, item);
        }
        catch
        { }
    }
Esempio n. 2
0
    private void BindDDL()
    {
        try
        {
            ServiceTypes type = new ServiceTypes();
            DataSet      ds   = type.GetList(" Enabled=1 ORDER BY ServiceType ASC");
            ddlServiceTypes.DataTextField  = "ServiceType";
            ddlServiceTypes.DataValueField = "ServiceType";
            ddlServiceTypes.DataSource     = ds;
            ddlServiceTypes.DataBind();

            ddlServiceTypes.Items.Insert(0, new ListItem("All", "0"));
        }
        catch
        { }

        try
        {
            ContactRoles roles = new ContactRoles();
            DataSet      ds    = roles.GetList(" Name <> 'Borrower' AND Name <> 'CoBorrower' ORDER BY [Name] ASC");
            ddlContactRole.DataValueField = "ContactRoleID";
            ddlContactRole.DataTextField  = "Name";
            ddlContactRole.DataSource     = ds;
            ddlContactRole.DataBind();
        }
        catch
        { }

        try
        {
            LPWeb.Model.Loans model = new LPWeb.Model.Loans();
            Loans             loans = new Loans();
            model = loans.GetModel(CurrentFileId);
            if (model == null)
            {
                return;
            }

            //lbPointFile.Text
            lbProperty.Text = model.PropertyAddr + " " + model.PropertyCity + " " + model.PropertyState + " " + model.PropertyZip;
        }
        catch
        {
        }
    }
Esempio n. 3
0
 private void BindServiceType()
 {
     try
     {
         ServiceTypes type = new ServiceTypes();
         DataSet      ds   = type.GetList("Enabled=1");
         ddlServiceTypes.DataTextField  = "ServiceType";
         ddlServiceTypes.DataValueField = "ServiceTypeId";
         ddlServiceTypes.Items.Add(new ListItem("-- select --", "0"));
         ddlServiceTypes.SelectedIndex = 0;
         if (ds == null || ds.Tables[0].Rows.Count == 0)
         {
             return;
         }
         foreach (DataRow dr in ds.Tables[0].Rows)
         {
             ddlServiceTypes.Items.Add(new ListItem(dr["ServiceType"].ToString(), dr["ServiceTypeId"].ToString()));
         }
     }
     catch
     { }
 }