Esempio n. 1
0
        private void BindDataToSelectOperation()
        {
            if (clbSelectOperation.Items.Count > 0)
            {
                clbSelectOperation.Items.Clear();
            }
            DataSet dsSelectOperation = new DataSet();

            dsSelectOperation = privilegeEntity.GetOperationOwnedByRole();
            if (privilegeEntity.ErrorMsg == "")
            {
                if (dsSelectOperation.Tables.Count > 0)
                {
                    selectOperationTable = dsSelectOperation.Tables[0];
                    for (int i = 0; i < dsSelectOperation.Tables[0].Rows.Count; i++)
                    {
                        string operationName = dsSelectOperation.Tables[0].Rows[i][RBAC_ROLE_OWN_OPERATION_FIELDS.FIELD_OPERATION_NAME].ToString();
                        clbSelectOperation.Items.Add(operationName);
                    }
                }
            }
        }