Ejemplo n.º 1
0
 public MainForm(string userID, UserLoginForm userLoginForm)
 {
     user       = usersBusinessLogic.GetUserByID(userID);
     loginform  = new UserLoginForm();
     loginform  = userLoginForm;
     view_Group = view_GroupBusinessLogic.GetView_GroupByUserID(userID);
     InitializeComponent();
     //根据用户组别view_Group.GroupName或者view_Group.Remark移除菜单中不属于该用户的功能
     if (view_Group.Remark == "班组")
     {
         tvMenu.Nodes.Remove(tvMenu.Nodes[4]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[3]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[2].Nodes[3]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[2].Nodes[2]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[2].Nodes[1]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[1]);
     }
     if (view_Group.Remark == "采购组")
     {
         tvMenu.Nodes.Remove(tvMenu.Nodes[6]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[2].Nodes[0]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[1]);
     }
     if (view_Group.Remark == "验收组")
     {
         tvMenu.Nodes.Remove(tvMenu.Nodes[6]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[2].Nodes[0]);
         tvMenu.Nodes.Remove(tvMenu.Nodes[1]);
     }
     this.tvMenu.ExpandAll();//启动时将treeview菜单节点全部展开
 }
Ejemplo n.º 2
0
 public BanzuOrderListForm1(string userID)
 {
     user = usersBusinessLogic.GetUserByID(userID);
     InitializeComponent();
     loadOrderList();
     setColumn();
 }
Ejemplo n.º 3
0
 public OrderSearch(string userID)
 {
     InitializeComponent();
     user = usersBusinessLogic.GetUserByID(userID);
     loadOrderList();
     SetdgvOrderListColumns();
 }
Ejemplo n.º 4
0
 public ApplyForm_Form(string userID)
 {
     InitializeComponent();
     dgvload();
     user                = usersBusinessLogic.GetUserByID(userID);
     view_Group          = view_GroupBusinessLogic.GetView_GroupByUserID(userID);
     txbDepartment.Text  = view_Group.GroupName;
     txbCreater.Text     = user.RealName;
     txbOrderDate.Text   = DateTime.Now.ToString();
     txbOrderNumber.Text = "PQ-" + DateTime.Now.ToString("yyyy-MM-dd-HHmmss");
 }
Ejemplo n.º 5
0
        public UpdataUsersForm(string KeyID)
        {
            InitializeComponent();

            user             = userBusinessLogic.GetUserByID(KeyID);
            txbUserName.Text = user.UserName;
            //txbPassword.Text = user.Password;
            txbRealName.Text = user.RealName;
            txbSex.Text      = user.Sex;
            dtpBirthday.Text = user.Birthday.ToString();
            txbMobile.Text   = user.Mobile;
            txbRemark.Text   = user.Remark;
        }
Ejemplo n.º 6
0
 public BanzuForm(string userID)
 {
     user       = usersBusinessLogic.GetUserByID(userID);
     view_Group = view_GroupBusinessLogic.GetView_GroupByUserID(userID);
     InitializeComponent();
     loadMenu();
     //loadMenuProvider();
     setColumn();
     //SetdgvMenuProvider_RColumns();
     SetdgvNoPassOrderColumns();
     txbGroup.Text   = view_Group.GroupName;
     txbCreator.Text = user.RealName;
 }
Ejemplo n.º 7
0
 public UpdataPasswordForm(string userID)
 {
     InitializeComponent();
     user = userbusinessLogic.GetUserByID(userID);
     Console.WriteLine(user.Password);
 }