/// <summary>
        /// 根据权限设置功能列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void contextMenuStrip_DataGridViewRow_Opening(object sender, CancelEventArgs e)
        {
            this.toolStripMenuItem_DataGridViewRowAdd.Enabled    = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Add);
            this.toolStripMenuItem_DataGridViewRowModify.Enabled = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Modify);
            this.toolStripMenuItem_DataGridViewRowDelete.Enabled = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Delete);
            //this.toolStripMenuItem_DataGridViewRowExportToExcel.Enabled = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Print);
            this.toolStripMenuItem_RowLockOut.Enabled = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.LockOut);

            if (this.myEventArgs_ShipClassification.bool_GXTheory)
            {
                if (Class_GXTheoryIssue.CheckFinished(this.dataGridView_Data.CurrentRow.Cells["IssueNo"].Value.ToString()))
                {
                    this.toolStripMenuItem_DataGridViewRowModify.Enabled = false;
                    this.toolStripMenuItem_DataGridViewRowDelete.Enabled = false;
                }
            }
            else
            {
                if (Class_Issue.CheckFinished(this.dataGridView_Data.CurrentRow.Cells["IssueNo"].Value.ToString()))
                {
                    this.toolStripMenuItem_DataGridViewRowModify.Enabled = false;
                    this.toolStripMenuItem_DataGridViewRowDelete.Enabled = false;
                }
            }
        }
示例#2
0
        /// <summary>
        /// 根据权限设置功能列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void contextMenuStrip_DataGridViewRow_Opening(object sender, CancelEventArgs e)
        {
            bool bool_Finished;

            if (this.myEventArgs_Issue.bool_GXTheory)
            {
                bool_Finished = Class_GXTheoryIssue.CheckFinished(this.myEventArgs_Issue.str_IssueNo);
            }
            else
            {
                bool_Finished = Class_Issue.CheckFinished(this.myEventArgs_Issue.str_IssueNo);
            }

            this.toolStripMenuItem_DataGridViewRowAdd.Enabled           = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Add) && !bool_Finished;
            this.toolStripMenuItem_DataGridViewRowModify.Enabled        = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Modify) && !bool_Finished;
            this.toolStripMenuItem_DataGridViewRowDelete.Enabled        = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Delete) && !bool_Finished;
            this.toolStripMenuItem_DataGridViewRowExportToExcel.Enabled = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Print);
        }
示例#3
0
        /// <summary>
        /// 根据权限设置功能列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void contextMenuStrip_DataGridView_Opening(object sender, CancelEventArgs e)
        {
            if (this.myEventArgs_Issue == null)
            {
                return;
            }
            bool bool_Finished;

            if (this.myEventArgs_Issue.bool_GXTheory)
            {
                bool_Finished = Class_GXTheoryIssue.CheckFinished(this.myEventArgs_Issue.str_IssueNo);
            }
            else
            {
                bool_Finished = Class_Issue.CheckFinished(this.myEventArgs_Issue.str_IssueNo);
            }

            this.toolStripMenuItem_DataGridViewAdd.Enabled      = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Add) && !bool_Finished;
            this.toolStripMenuItem_DataGridViewAddBatch.Enabled = Class_CustomUser.GetSecurity(Class_zwjPublic.myClass_CustomUser.UserGUID, Class_CustomSecurity.GetSecurityGUID("考试权限"), Enum_zwjKindofUpdate.Add) && !bool_Finished;
        }