Exemplo n.º 1
0
        private void LoadType()
        {
            this.tvType.Nodes.Clear();

            IBLL.IOper bll  = new BLL.OperBLL();
            var        list = bll.GetOperTypeList();

            foreach (var type in list)
            {
                TreeNode n = new TreeNode(type.type_name + "[" + type.oper_type + "]");
                n.Tag = type;
                this.tvType.Nodes.Add(n);
            }
        }
Exemplo n.º 2
0
        public void LoadCb()
        {
            //角色
            IBLL.IOper bll = new BLL.OperBLL();
            var        lis = bll.GetOperTypeList();

            this.cbType.DisplayMember = "type_name";
            this.cbType.ValueMember   = "oper_type";
            this.cbType.DataSource    = lis;

            //机构
            IBLL.IBranch brbll  = new BLL.BranchBLL();
            var          branch = brbll.GetAllList("");

            this.txtBranch.Bind(branch, 300, 150, "branch_no", "branch_no:机构编码:80,branch_name:机构名称:150", "branch_no/branch_name->Text");
        }
Exemplo n.º 3
0
        private void LoadTv()
        {
            this.tv.Nodes.Clear();

            TreeNode tn = new TreeNode("全部操作员");

            tn.Tag = "";

            IBLL.IOper bll  = new BLL.OperBLL();
            var        list = bll.GetOperTypeList();

            foreach (var type in list)
            {
                TreeNode n = new TreeNode(type.type_name + "[" + type.oper_type + "]");
                n.Tag = type;
                tn.Nodes.Add(n);
            }

            this.tv.Nodes.Add(tn);
            this.tv.ExpandAll();
        }