private void editSelectedDocumentB_Click(object sender, EventArgs e)
        {
            DocumentVO document = documentsBindingSource.Current as DocumentVO;

            if (document != null)
            {
                OperationsManager manager = new OperationsManager();

                //if (document.Type == DocumentVO.DocumentType.FILES)
                //{
                if (manager.HasPermission(OperationsManager.EDIT_DOCS, Library.ConfigurationManager.currUser))
                {
                    EFilesArchivingForm form = new EFilesArchivingForm(document, ArchivingForm.OperationMode.EDIT);
                    form.ShowDialog();
                }
                else
                {
                    Error("أنت لا تمتلك السماحية للقيام بهذه العملية");
                }
                //}
                //else
                //{
                //    if (manager.HasPermission(OperationsManager.EDIT_PAPER_DOCS, Library.ConfigurationManager.currUser))
                //    {
                //        PaperArchivingForm form1 = new PaperArchivingForm(document, ArchivingForm.OperationMode.EDIT);
                //        form1.ShowDialog();
                //    }
                //    else
                //    {
                //        Error("أنت لا تمتلك السماحية للقيام بهذه العملية");
                //    }
                //}
            }
        }
Пример #2
0
        private void ArchiveEDocButton_Click(object sender, EventArgs e)
        {
            EFilesArchivingForm form = new EFilesArchivingForm(null, ArchivingForm.OperationMode.CREATE);

            form.ShowDialog();
        }