Esempio n. 1
0
        public virtual bool HasUserActioned(string username, AuditRecord.AuditAction action)
        {
            BusiBlocks.ConnectionParameters parameters = ConnectionParameters.Create("DefaultDB");

            using (BusiBlocks.TransactionScope transaction = new BusiBlocks.TransactionScope(parameters))
            {
                AuditDataStore store = new AuditDataStore(transaction);
                return(store.AuditRecordExist(username, Id, action.ToString()));
            }
        }
Esempio n. 2
0
    protected void btCreate_Click(object sender, EventArgs e)
    {
        BusiBlocks.ConnectionParameters connection = BusiBlocks.ConnectionParameters.Create(cmbConnections.SelectedValue);

        GenericGenerator generator = new GenericGenerator(connection);

        foreach (ListItem item in list.Items)
        {
            if (item.Selected)
            {
                generator.CreateSchemaTable(item.Value);
            }
        }

        LoadListAdvanced(true);

        lblStatus.InnerText = "Schema created!";
    }
Esempio n. 3
0
    private void LoadListAdvanced(bool checkStatus)
    {
        list.Items.Clear();

        BusiBlocks.ConnectionParameters connection = BusiBlocks.ConnectionParameters.Create(cmbConnections.SelectedValue);

        GenericGenerator generator = new GenericGenerator(connection);

        foreach (string section in generator.GetSchemaCategories())
        {
            ListItem item = new ListItem();
            item.Text = section.ToString();
            if (checkStatus)
            {
                item.Text += " - " + generator.GetStatus(section).ToString();
            }
            item.Value = section;

            list.Items.Add(item);
        }
    }