Esempio n. 1
0
        /// <summary>
        /// Set Policy for the selected Role
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>
        /// Author:			PhatLT. FPTSS.
        /// Created date:	14/02/2011
        /// </remarks>
        private void btnPolicy_Click(object sender, System.EventArgs e)
        {
            if (_manager == null || _manager.Position < 0)
            {
                return;
            }
            DataRowView rview = (DataRowView)_manager.Current;
            DataRow     row   = rview.Row;

            if (row.RowState == DataRowState.Added)
            {
                MessageBox.Show(clsResources.GetMessage("warnings.policy"), clsResources.GetMessage("warnings.general"), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            string       uRoleID = row["UROLE_ID"].ToString();
            frmAutPolicy frm     = new frmAutPolicy(uRoleID);

            clsFormManager.ShowMDIChild(frm, this);
        }
Esempio n. 2
0
        /// <summary>
        /// Set Policy for the selected Role
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>
        /// Author:			PhatLT. FPTSS.
        /// Created date:	14/02/2011
        /// </remarks>
        private void btnPolicy_Click(object sender, System.EventArgs e)
        {
            if(_manager == null || _manager.Position < 0)
                return;
            DataRowView rview = (DataRowView)_manager.Current;
            DataRow row = rview.Row;
            if(row.RowState == DataRowState.Added)
            {
                MessageBox.Show(clsResources.GetMessage("warnings.policy"), clsResources.GetMessage("warnings.general"), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            string uRoleID = row["UROLE_ID"].ToString();
            frmAutPolicy frm = new frmAutPolicy(uRoleID);
            clsFormManager.ShowMDIChild(frm, this);
        }