Пример #1
0
    private void LoadQuoteDetails(string strQuoteNo)
    {
        QuoteDetailsHandler objQuoteHandler = new QuoteDetailsHandler();
        QuoteDetails        objQuote        = objQuoteHandler.GetQuotesByNumber(strQuoteNo);

        Session["QuoteID"] = objQuote.ID;

        lblEffective.Text  = objQuote.Effective_Date.ToString("dd/MM/yyyy");
        lblQuote.Text      = Convert.ToString(objQuote.QuoteNo);
        lblExpiration.Text = objQuote.Expiration_Date.ToString("dd/MM/yyyy");

        ddlState.SelectedValue = Convert.ToString(objQuote.Home_State_ID);
        txtZip.Text            = Convert.ToString(objQuote.ZipCode);

        string strQuoteMode = Convert.ToString(Session["QuoteMode"]);

        //string strQuoteNo = Convert.ToString(Session["QuoteNo"]);
        if (strQuoteMode == "EDIT")
        {
            int quoteID = Convert.ToInt32(Session["QuoteID"]);
            vwClassDetailsHandler objvwClsHandler = new vwClassDetailsHandler();
            vwClassDetails        objvwCls        = objvwClsHandler.GetClassDetailsByQuoteID(quoteID);
            try
            {
                ddlTerritory.SelectedValue = Convert.ToString(objvwCls.Territory_ID);
            }
            catch
            { }
        }
    }
Пример #2
0
    private void LoadQuoteDetails(string strQuoteNo)
    {
        QuoteDetailsHandler objQuoteHandler = new QuoteDetailsHandler();
        QuoteDetails        objQuote        = objQuoteHandler.GetQuotesByNumber(strQuoteNo);

        Session["QuoteID"] = objQuote.ID;

        lblEffective.Text  = objQuote.Effective_Date.ToString("dd/MM/yyyy");
        lblQuote.Text      = Convert.ToString(objQuote.QuoteNo);
        lblExpiration.Text = objQuote.Expiration_Date.ToString("dd/MM/yyyy");

        ddlState.SelectedValue = Convert.ToString(objQuote.Home_State_ID);
        txtZip.Text            = Convert.ToString(objQuote.ZipCode);
        txtCity.Text           = Convert.ToString(objQuote.City);
        txtAddress1.Text       = Convert.ToString(objQuote.Mailing_Address1);
        txtAddress2.Text       = Convert.ToString(objQuote.Mailing_Address2);
        ddlState.SelectedValue = Convert.ToString(objQuote.Home_State_ID);
        int quoteID = Convert.ToInt32(Session["QuoteID"]);
        //string strQuoteMode = Convert.ToString(Session["QuoteMode"]);
        //string strQuoteNo = Convert.ToString(Session["QuoteNo"]);
        //if (strQuoteMode == "EDIT")
        //{
        //    vwPropertyHandler objPropertyhandler = new vwPropertyHandler();

        //    vwProperty objvwProperty = objPropertyhandler.GetDetailsByQuoteNo(strQuoteNo);
        //    if (objvwProperty != null)
        //    {

        //    }
        //}
    }