private void LoadData() { IList <ALRD_OrganizationInfoEntity> itemList = new List <ALRD_OrganizationInfoEntity>(); try { LocalDataStore = ALRD_OrganizationInfoService.GetService().GetAll(new ALRD_OrganizationInfoEntity { SortExpression = "DESCRIPT ASC" }).ToList(); if (LocalDataStore != null && LocalDataStore.Count > 0) { this.lsv_SetupPage.DataSource = LocalDataStore; } else { this.lsv_SetupPage.EditIndex = -1; this.lsv_SetupPage.InsertItemPosition = InsertItemPosition.FirstItem; this.lsv_SetupPage.DataSource = new List <ALRD_OrganizationInfoEntity>(); } this.lsv_SetupPage.DataBind(); } catch (Exception ex) { throw ex; } }
private void LoadCombo() { try { LoadComboRef(ref ddlOrgName, ALRD_OrganizationInfoService.GetService().GetAll(new ALRD_OrganizationInfoEntity()).ToList(), CommonFunctions.GetPropertyName((ALRD_OrganizationInfoEntity x) => x.DESCRIPT), CommonFunctions.GetPropertyName((ALRD_OrganizationInfoEntity x) => x.COMPID)); LoadComboRef(ref ddlDivision, ALRD_DivisionInfoService.GetService().GetAll(new ALRD_DivisionInfoEntity()).ToList(), CommonFunctions.GetPropertyName((ALRD_DivisionInfoEntity x) => x.DESCRIPT), CommonFunctions.GetPropertyName((ALRD_DivisionInfoEntity x) => x.COMPID)); } catch (Exception ex) { throw ex; } }
private void LoadCombo() { try { LoadComboRef(ref ddlOrgName, ALRD_OrganizationInfoService.GetService().GetAll(new ALRD_OrganizationInfoEntity()).ToList(), CommonFunctions.GetPropertyName((ALRD_OrganizationInfoEntity x) => x.DESCRIPT), CommonFunctions.GetPropertyName((ALRD_OrganizationInfoEntity x) => x.COMPID)); LoadComboRef(ref ddlDivision, ALRD_DivisionInfoService.GetService().GetAll(new ALRD_DivisionInfoEntity()).ToList(), CommonFunctions.GetPropertyName((ALRD_DivisionInfoEntity x) => x.DESCRIPT), CommonFunctions.GetPropertyName((ALRD_DivisionInfoEntity x) => x.COMPID)); DateTime currentDate = DateTime.Now; ddlYear.SelectedValue = currentDate.Year.ToString(); ddlMonth.SelectedValue = currentDate.Month.ToString(); } catch (Exception ex) { throw ex; } }