예제 #1
0
    private void SetTreeTypeasDefault(int TreeTypeId)
    {
        BookingChartServices bookingChartServices = null;

        bookingChartServices = new BookingChartServices();
        bookingChartServices.SetDefaultTreeType(TreeTypeId);
    }
예제 #2
0
    private void FillTreeType()
    {
        //tblMaster = new Table();
        BookingChartServices bookingChartServices = new BookingChartServices();
        ListItem             l = null;

        ddlTreeType.Items.Insert(0, "Choose Tree Type");
        TreeTypeDTO[] oTreeTypeData = null;
        oTreeTypeData = bookingChartServices.GetTreeTypes();

        if (oTreeTypeData != null)
        {
            for (int i = 0; i < oTreeTypeData.Length; i++)
            {
                l       = new ListItem();
                l.Value = oTreeTypeData[i].TreeTypeId.ToString();
                l.Text  = oTreeTypeData[i].Description;
                ddlTreeType.Items.Insert(i + 1, l);
                if (oTreeTypeData[i].Selected == true)
                {
                    lblTreeType.Text = oTreeTypeData[i].Description;
                }
            }
        }
        ddlTreeType.SelectedIndex = 0;
    }