Exemplo n.º 1
0
        private void SetCondition()
        {
            DataRow dataRow   = BaseInterfaceLogic.GetDataGridViewEntity(this.grdTable);
            string  tableName = dataRow[BaseTableColumnsEntity.FieldTableCode].ToString();
            FrmTableScopeConstraint frmTableScopeCondition = new FrmTableScopeConstraint(this.ResourceCategory, this.ResourceId, tableName);

            if (frmTableScopeCondition.ShowDialog(this) == DialogResult.OK)
            {
                this.FormOnLoad();
            }
        }
 private void tvModulePermissionItem_DoubleClick(object sender, EventArgs e)
 {
     if (this.tvModulePermissionItem.SelectedNode != null)
     {
         if (this.tvModulePermissionItem.SelectedNode.ImageIndex != 14)
         {
             BaseModuleEntity moduleEntity = (BaseModuleEntity)(this.tvModulePermissionItem.SelectedNode.Tag);
             if (!string.IsNullOrEmpty(moduleEntity.PermissionScopeTables))
             {
                 string resourceCategory = BaseUserEntity.TableName;
                 string resourceId       = this.ucUser.SelectedId;
                 string tableName        = moduleEntity.PermissionScopeTables;
                 FrmTableScopeConstraint frmTableScopeConstraint = new FrmTableScopeConstraint(resourceCategory, resourceId, tableName);
                 frmTableScopeConstraint.ShowDialog();
             }
         }
     }
 }
 private void tvModulePermissionItem_DoubleClick(object sender, EventArgs e)
 {
     if (this.tvModulePermissionItem.SelectedNode != null)
     {
         if (this.tvModulePermissionItem.SelectedNode.ImageIndex != 14)
         {
             BaseModuleEntity moduleEntity = (BaseModuleEntity)(this.tvModulePermissionItem.SelectedNode.Tag);
             if (!string.IsNullOrEmpty(moduleEntity.PermissionScopeTables))
             {
                 string resourceCategory = BaseUserEntity.TableName;
                 string resourceId = this.ucUser.SelectedId;
                 string tableName = moduleEntity.PermissionScopeTables;
                 FrmTableScopeConstraint frmTableScopeConstraint = new FrmTableScopeConstraint(resourceCategory, resourceId, tableName);
                 frmTableScopeConstraint.ShowDialog();
             }
         }
     }
 }
Exemplo n.º 4
0
 private void SetCondition()
 {
     DataRow dataRow = BaseInterfaceLogic.GetDataGridViewEntity(this.grdTable);
     string tableName = dataRow[BaseTableColumnsEntity.FieldTableCode].ToString();
     FrmTableScopeConstraint frmTableScopeCondition = new FrmTableScopeConstraint(this.ResourceCategory, this.ResourceId, tableName);
     if (frmTableScopeCondition.ShowDialog(this) == DialogResult.OK)
     {
         this.FormOnLoad();
     }
 }