private void SetTreeTypeasDefault(int TreeTypeId) { BookingChartServices bookingChartServices = null; bookingChartServices = new BookingChartServices(); bookingChartServices.SetDefaultTreeType(TreeTypeId); }
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; }