Example #1
0
        ///// <summary>
        ///// 授权
        ///// </summary>
        //public void RightSetup()
        //{
        //    FrmProjectSelect frm = new FrmProjectSelect();
        //    frm.groupno = treeView1.SelectedNode.Name;
        //    frm.groupname = treeView1.SelectedNode.Text;
        //    frm.ShowDialog();

        //}

        /// <summary>
        /// 授权
        /// </summary>
        public void RightSetup()
        {
            //管理员和项目创建人可以用
            //系统管理员
            bool   canuse = false;
            string strsql = "Groupno='SystemManage' and Userid='" + MIS.UserNumber + "'";
            IList  list   = GroupService.GetList("SelectSmugroupByWhere", strsql);

            if (list.Count > 0)
            {
                canuse = true;
            }
            else if (MIS.ProgUserID == MIS.UserNumber)
            {
                canuse = true;
            }

            if (canuse)
            {
                FrmGroupRights dlg = new FrmGroupRights();
                dlg.Groupno     = treeView1.SelectedNode.Name;;
                dlg.ProjectUID  = MIS.ProgUID;
                dlg.ProjectName = MIS.ProgName;
                dlg.ShowDialog();
            }
        }
Example #2
0
        ///// <summary>
        ///// 授权
        ///// </summary>
        //public void RightSetup()
        //{
        //    FrmProjectSelect frm = new FrmProjectSelect();
        //    frm.groupno = treeView1.SelectedNode.Name;
        //    frm.groupname = treeView1.SelectedNode.Text;
        //    frm.ShowDialog();

        //}

        /// <summary>
        /// 授权
        /// </summary>
        public void RightSetup()
        {
            FrmProjectSelect frm = new FrmProjectSelect();

            frm.groupno   = treeView1.SelectedNode.Name;
            frm.groupname = treeView1.SelectedNode.Text;
            frm.ShowDialog();

            FrmGroupRights dlg = new FrmGroupRights();

            dlg.Groupno     = treeView1.SelectedNode.Name;;
            dlg.ProjectUID  = MIS.ProgUID;
            dlg.ProjectName = MIS.ProgName;
            dlg.ShowDialog();
        }
Example #3
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (treeList1.FocusedNode == null)
            {
                return;
            }
            if (treeList1.FocusedNode["ProjectManager"] == null)
            {
                MessageBox.Show("请选择卷授权!");
                return;
            }

            FrmGroupRights dlg = new FrmGroupRights();

            dlg.Groupno     = groupno;
            dlg.ProjectUID  = treeList1.FocusedNode["UID"].ToString();
            dlg.ProjectName = treeList1.FocusedNode["ProjectName"].ToString();;
            dlg.ShowDialog();
        }
Example #4
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (treeList1.FocusedNode == null)
            {
                return;
            }
            if (treeList1.FocusedNode["ProjectManager"] == null)
            {
                MessageBox.Show("��ѡ�����Ȩ��");
                return;
            }

            FrmGroupRights dlg = new FrmGroupRights();
            dlg.Groupno = groupno;
            dlg.ProjectUID = treeList1.FocusedNode["UID"].ToString();
            dlg.ProjectName = treeList1.FocusedNode["ProjectName"].ToString(); ;
            dlg.ShowDialog();
        }
Example #5
0
        ///// <summary>
        ///// ��Ȩ
        ///// </summary>
        //public void RightSetup()
        //{
        //    FrmProjectSelect frm = new FrmProjectSelect();
        //    frm.groupno = treeView1.SelectedNode.Name;
        //    frm.groupname = treeView1.SelectedNode.Text;
        //    frm.ShowDialog();
        //}
        /// <summary>
        /// ��Ȩ
        /// </summary>
        public void RightSetup()
        {
            //����Ա����Ŀ�����˿�����
            //ϵͳ����Ա
            bool canuse = false;
            string strsql = "Groupno='SystemManage' and Userid='" + MIS.UserNumber + "'";
            IList list = GroupService.GetList("SelectSmugroupByWhere", strsql);
            if (list.Count > 0)
            {
                canuse = true;
            }
            else if (MIS.ProgUserID==MIS.UserNumber)
            {
                canuse = true;
            }

            if (canuse)
            {
                FrmGroupRights dlg = new FrmGroupRights();
                dlg.Groupno = treeView1.SelectedNode.Name; ;
                dlg.ProjectUID = MIS.ProgUID;
                dlg.ProjectName = MIS.ProgName;
                dlg.ShowDialog();
            }
        }
Example #6
0
        ///// <summary>
        ///// ��Ȩ
        ///// </summary>
        //public void RightSetup()
        //{
        //    FrmProjectSelect frm = new FrmProjectSelect();
        //    frm.groupno = treeView1.SelectedNode.Name;
        //    frm.groupname = treeView1.SelectedNode.Text;
        //    frm.ShowDialog();
        //}
        /// <summary>
        /// ��Ȩ
        /// </summary>
        public void RightSetup()
        {
            FrmProjectSelect frm = new FrmProjectSelect();
            frm.groupno = treeView1.SelectedNode.Name;
            frm.groupname = treeView1.SelectedNode.Text;
            frm.ShowDialog();

            FrmGroupRights dlg = new FrmGroupRights();
            dlg.Groupno = treeView1.SelectedNode.Name; ;
            dlg.ProjectUID = MIS.ProgUID;
            dlg.ProjectName = MIS.ProgName;
            dlg.ShowDialog();
        }
Example #7
0
 public void RightSetup(string projectUID,string projectName)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         ListViewItem item = listView1.SelectedItems[0];
         string id = item.SubItems[0].Text;
         if (showType == ShowType.Group)
         {
             FrmGroupRights dlg = new FrmGroupRights();
             dlg.Groupno = id;
             dlg.ProjectUID = projectUID;
             dlg.ProjectName = projectName;
             dlg.ShowDialog();
         }
         else if (showType == ShowType.User)
         {
             FrmUserGroup dlg = new FrmUserGroup();
             dlg.UserNo = id;
             dlg.UserName = item.SubItems[1].Text;
             if(dlg.ShowDialog()==DialogResult.OK)
                 MsgBox.Show("����ɹ�");
         }
     }
 }