예제 #1
0
 private void LoadCombo()
 {
     try
     {
         LoadComboRef(ref ddlRoleType, ALRD_SecurityRoleService.GetService().GetAll(new ALRD_SecurityRoleEntity()).ToList(), CommonFunctions.GetPropertyName((ALRD_SecurityRoleEntity x) => x.RoleName), CommonFunctions.GetPropertyName((ALRD_SecurityRoleEntity x) => x.COMPID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 private void LoadCombo()
 {
     try
     {
         LoadComboRef(ref ddlRoleType, ALRD_SecurityRoleService.GetService().GetAll(new ALRD_SecurityRoleEntity()).ToList(), CommonFunctions.GetPropertyName((ALRD_SecurityRoleEntity x) => x.RoleName), CommonFunctions.GetPropertyName((ALRD_SecurityRoleEntity x) => x.COMPID));
         //LoadComboRef(ref ddlPublicUser, Public_User_Basic_InfoService.GetService().GetAll(new Public_User_Basic_InfoEntity()).ToList(), CommonFunctions.GetPropertyName((Public_User_Basic_InfoEntity x) => x.Full_Name), CommonFunctions.GetPropertyName((Public_User_Basic_InfoEntity x) => x.Public_User_ID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
        private void LoadData()
        {
            IList <ALRD_SecurityRoleEntity> itemList = new List <ALRD_SecurityRoleEntity>();

            try
            {
                LocalDataStore = ALRD_SecurityRoleService.GetService().GetAll(new ALRD_SecurityRoleEntity()).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_SecurityRoleEntity>();
                }
                this.lsv_SetupPage.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }