private void simpleButton1_Click(object sender, EventArgs e)
        {
            ma.SetVariable <bool>(SecurityVarName.ReportView, checkEdit1.Checked);

            ma.SetVariable <bool>(SecurityVarName.ReportPrint, checkEdit12.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportDesignPrint, checkEdit11.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportSave, checkEdit10.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportLayoutSave, checkEdit4.Checked);
        }
示例#2
0
        //Simpan
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            ma.SetVariable <bool>(SecurityVarName.DocumentView, checkEdit5.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportView, checkEdit6.Checked);

            ma.SetVariable <bool>(SecurityVarName.DocumentNew, checkEdit1.Checked);
            ma.SetVariable <bool>(SecurityVarName.DocumentEdit, checkEdit2.Checked);
            ma.SetVariable <bool>(SecurityVarName.DocumentDelete, checkEdit3.Checked);
            ma.SetVariable <bool>(SecurityVarName.DocumentPrint, checkEdit7.Checked);
            ma.SetVariable <bool>(SecurityVarName.DocumentDesignPrint, checkEdit8.Checked);

            ma.SetVariable <bool>(SecurityVarName.ReportPrint, checkEdit12.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportDesignPrint, checkEdit11.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportSave, checkEdit10.Checked);
            ma.SetVariable <bool>(SecurityVarName.ReportLayoutSave, checkEdit4.Checked);

            string CurrentDataField = comboBoxEdit1.Text;

            AllDocumentData = checkEdit14.Checked;

            foreach (ModuleDataField mdf in ma.ListDataField)
            {
                ListKey[mdf.DataFieldName].Clear();
                if (mdf.DataFieldName == CurrentDataField)
                {
                    foreach (CheckedListBoxItem lbItem in checkedListBoxControl1.Items)
                    {
                        if (lbItem.CheckState == CheckState.Checked)
                        {
                            ListKey[mdf.DataFieldName].Add((string)lbItem.Value);
                        }
                    }
                }
                else
                {
                    List <Item> ListItem = ListDataField[mdf.DataFieldName];
                    foreach (Item Item in ListItem)
                    {
                        if (Item.Pilih)
                        {
                            ListKey[mdf.DataFieldName].Add(Item.ItemName);
                        }
                    }
                }
            }
        }
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     ma.SetVariable <bool>(SecurityVarName.DocumentView,
                           checkEdit5.Checked);
 }