private void LoadddlUserTypeID() { try { DropDownListHelper.Bind(DropDownTypeID, EnumHelper.EnumToList <EnumCollection.UserGrpType>(), EnumCollection.ListItemType.UserTypeID); } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadClientTypeDropDownInfo() { try { DropDownListHelper.Bind(dropDownClientType, EnumHelper.EnumToList <EnumCollection.ClientType>()); } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownModule() { try { dropDownModuleName.Items.Add("--Select Module Name--"); DropDownListHelper.Bind(dropDownModuleName, EnumHelper.EnumToList <EnumCollection.ModuleList>()); } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownCategory(Int64 categoryID) { try { List <Category> catagoryList = new List <Category>(); catagoryList = _categoryRT.GetAllParentCategory(); DropDownListHelper.Bind <Category>(ddlCategory, catagoryList, "Name", "IID", EnumCollection.ListItemType.Category); ddlCategory.SelectedValue = categoryID.ToString(); } catch (Exception ex) { LogFileWritten(ex.Message, ex.StackTrace); } }
private void LoadDropDownForCategory() { try { using (CategoryRT aCategoryRt = new CategoryRT()) { var categoryList = aCategoryRt.GetAllSearchedCategory(" "); DropDownListHelper.Bind(dropDownCategory, categoryList, "Description", "IID"); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownForDistrict() { try { using (DistrictRT aDistrictRt = new DistrictRT()) { var districtList = aDistrictRt.GetDistrictByCountryId(Convert.ToInt32(hdCountryID.Value)); DropDownListHelper.Bind(dropdownDistrict, districtList, "Name", "IID"); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownForPoliceStaion() { try { using (PoliceStationRT aPoliceStationRt = new PoliceStationRT()) { var policeStationList = aPoliceStationRt.GetPoliceStationByCountryIdAndDistrictId(Convert.ToInt32(hdCountryID.Value), Convert.ToInt64(dropdownDistrict.SelectedValue)); DropDownListHelper.Bind(dropdownPoliceStation, policeStationList, "Name", "IID"); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownLeavingCause() { try { using (DeactivateRT receverTransfer = new DeactivateRT()) { List <LeavingCause> LeavingCouseList = new List <LeavingCause>(); //if (countryID != null) //{ // countryList.Add(receverTransfer.GetCountryByIID((int)countryID)); //} //else LeavingCouseList = receverTransfer.GetLeavingCouseAll(); DropDownListHelper.Bind <LeavingCause>(ddlLeavingCause, LeavingCouseList, "Name", "IID"); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownUrlList(Int32?urlWFListID) { try { using (UrlWFListRT receverTransfer = new UrlWFListRT()) { List <UrlWFList> urlList = new List <UrlWFList>(); if (urlWFListID != null) { urlList.Add(receverTransfer.GetUrlWFListByID((Int32)urlWFListID)); } else { urlList = receverTransfer.GetUrlWFListAll(); } DropDownListHelper.Bind <DAL.UrlWFList>(dropDownListURLList, urlList, "ModuleName", "IID", EnumCollection.ListItemType.UrlList); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void LoadDropDownUserGroup(Int32?userGroupID) { try { using (UserGroupRT receverTransfer = new UserGroupRT()) { List <UserGroup> userGroupList = new List <UserGroup>(); if (userGroupID != null) { userGroupList.Add(receverTransfer.GetUserGroupByIID((Int32)userGroupID)); } else { userGroupList = receverTransfer.GetUserGroupAll(); } DropDownListHelper.Bind <UserGroup>(dropDownListGroupName, userGroupList, "Name", "IID", EnumCollection.ListItemType.UserGroup); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
private void GetVisitorWebBrowser() { System.Web.HttpBrowserCapabilities browser = Request.Browser; string s = "" + browser.Browser + "\n"; #region need later /* * "Browser Capabilities\n" + "Type = " + browser.Type + "\n" + "Version = " + browser.Version + "\n" + "Major Version = " + browser.MajorVersion + "\n" + "Minor Version = " + browser.MinorVersion + "\n" + "Platform = " + browser.Platform + "\n" + "Is Beta = " + browser.Beta + "\n" + "Is Crawler = " + browser.Crawler + "\n" + "Is AOL = " + browser.AOL + "\n" + "Is Win16 = " + browser.Win16 + "\n" + "Is Win32 = " + browser.Win32 + "\n" + "Supports Frames = " + browser.Frames + "\n" + "Supports Tables = " + browser.Tables + "\n" + "Supports Cookies = " + browser.Cookies + "\n" + "Supports VBScript = " + browser.VBScript + "\n" + "Supports JavaScript = " + + browser.EcmaScriptVersion.ToString() + "\n" + "Supports Java Applets = " + browser.JavaApplets + "\n" + "Supports ActiveX Controls = " + browser.ActiveXControls + "\n" + "Supports JavaScript Version = " + + browser["JavaScriptVersion"] + "\n"; + */ #endregion try { DropDownListHelper.Bind(DropDownBrowser, EnumHelper.EnumToList <EnumCollection.Browsers>()); if (s.Contains("Chrome")) { var browsersID = Convert.ToInt32(EnumCollection.Browsers.Chrome); txtBrowserID.Text = browsersID.ToString(); var browserName = EnumCollection.Browsers.Chrome.ToString(); txtBrowserNameID.Text = browserName; } else if (s.Contains("Firefox")) { var browsersID = Convert.ToInt32(EnumCollection.Browsers.Firefox); txtBrowserID.Text = browsersID.ToString(); var browserName = EnumCollection.Browsers.Firefox.ToString(); txtBrowserNameID.Text = browserName; } else if (s.Contains("InternetExplorer")) { var browsersID = Convert.ToInt32(EnumCollection.Browsers.InternetExplorer); txtBrowserID.Text = browsersID.ToString(); var browserName = EnumCollection.Browsers.InternetExplorer.ToString(); txtBrowserNameID.Text = browserName; } else if (s.Contains("Safari")) { var browsersID = Convert.ToInt32(EnumCollection.Browsers.Safari); txtBrowserID.Text = browsersID.ToString(); var browserName = EnumCollection.Browsers.Safari.ToString(); txtBrowserNameID.Text = browserName; } else if (s.Contains("Opera")) { var browsersID = Convert.ToInt32(EnumCollection.Browsers.Opera); txtBrowserID.Text = browsersID.ToString(); var browserName = EnumCollection.Browsers.Opera.ToString(); txtBrowserNameID.Text = browserName; } else { var browsersID = Convert.ToInt32(EnumCollection.Browsers.Other); txtBrowserID.Text = s.ToString(); //var browserName = EnumCollection.Browsers.Other.ToString(); txtBrowserNameID.Text = s; } } catch (Exception ex) { throw new Exception(ex.Message, ex); } }