示例#1
0
        private void BindDataToUnSelectOperation()
        {
            if (clbUnSelectStore.Items.Count > 0)
            {
                clbUnSelectStore.Items.Clear();
            }
            DataSet dsUnSelectStore = new DataSet();

            dsUnSelectStore = privilegeEntity.GetStoreOfRole("UNSELECT");
            if (privilegeEntity.ErrorMsg == "")
            {
                if (dsUnSelectStore.Tables.Count > 0)
                {
                    for (int i = 0; i < dsUnSelectStore.Tables[0].Rows.Count; i++)
                    {
                        string operationName = dsUnSelectStore.Tables[0].Rows[i][RBAC_ROLE_OWN_STORE_FIELDS.FIELD_STORE_NAME].ToString();
                        clbUnSelectStore.Items.Add(operationName);
                    }
                }
            }
            else
            {
                MessageService.ShowError("${res:FanHai.Hemera.Addins.Msg.ReadFailed}");
            }
        }