예제 #1
0
    protected void GetlocationInfo()
    {
        LOCATION lOCATION = new LOCATION();

        lOCATION = LOCATIONManager.GetLOCATIONByID(int.Parse(ddlLoction.SelectedItem.Value.ToString()));
        if (lOCATION != null)
        {
            txtCountry.Text = lOCATION.COUNTRY.ToString();
            txtCity.Text    = lOCATION.CITY.ToString();
            txtBranch.Text  = lOCATION.BRANCH.ToString();
            loadFoodItem(LOCATIONMAPPINGManager.GetLOCATIONMAPPINGByLOCATIONID(int.Parse(ddlLoction.SelectedItem.Value.ToString()))[0].LOCATIONGROUPID);
        }
    }
예제 #2
0
    protected void GetlocationInfo()
    {
        LOCATION lOCATION = new LOCATION();

        lOCATION = LOCATIONManager.GetLOCATIONByID(int.Parse(ddlLoction.SelectedItem.Value.ToString()));
        if (lOCATION != null)
        {
            txtCountry.Text = lOCATION.COUNTRY.ToString();
            txtCity.Text    = lOCATION.CITY.ToString();
            txtBranch.Text  = lOCATION.BRANCH.ToString();


            //if (txtCity.Text == "GUI-FOOD")
            //{
            loadFoodItem(LOCATIONMAPPINGManager.GetLOCATIONMAPPINGByLOCATIONID(int.Parse(ddlLoction.SelectedItem.Value.ToString()))[0].LOCATIONGROUPID);
            //}
            //else
            //{
            //    loadFoodItem(1);
            //}

            Session["snFoodlocationID"] = ddlLoction.SelectedItem.Value.ToString();
        }
    }