예제 #1
0
 private void InitUI()
 {
     //初始化ComboBoxEdit
     ComboBoxEdit[] edits =
     {
         this.comboBoxEdit1,
         this.comboBoxEdit2
     };
     SetupCombox(edits, false);
     this.ListViewButton.Appearance.BackColor = SEL_BACK_COLOR;
     //设置电脑状态Combox
     foreach (string name in Enum.GetNames(typeof(COMPUTERSTATUS)))
     {
         this.comboBoxEdit1.Properties.Items.Add(name);
     }
     //刷新区域
     RefreshAreaCombox();
     //添加视图UI
     AddHomePageListView();
     //添加刷新区域下拉
     HomePageMessageManage.AddRefreshAreaComBox(RefreshAreaCombox);
     //添加消息回调
     HomePageMessageManage.Manage().AddMsgNumDelegate(null, null, UpdateStatusNum);
     //获取账户信息
     ManagerManage.Manage().GetAccountInfo(GetAccountInfoResult);
 }
예제 #2
0
        //进行登录
        private void LoginButtonClick(object sender, EventArgs e)
        {
            //TODO:测试打开
            //LoginMainView();
            //return;

            string userName = this.comboBoxEdit1.Text;
            string ps       = this.textEdit2.Text;

            if (userName.Equals("") || ps.Equals(""))
            {
                MessageBox.Show("请输入用户名或密码");
                return;
            }

            if (this.comboBoxEdit1.SelectedIndex >= 0)
            {
                ManagerManage.Manage().AccountId = this.staffs[this.comboBoxEdit1.SelectedIndex].Guid;
            }
            ManagerNetOperation.ManagerLogin(ManagerLoginBlock, userName, ps);
        }
예제 #3
0
        private void simpleButton5_Click(object sender, EventArgs e)
        {
            //接班人
            string receive = this.comboBoxEdit1.Text;
            string ps1     = this.textEdit1.Text;
            //交班人
            string ps2 = this.textEdit3.Text;

            if (receive.Equals("") || ps1.Equals("") || ps2.Equals("") || (!this.checkEdit1.Checked && !this.checkEdit2.Checked))
            {
                MessageBox.Show("请将信息填写完整");
                return;
            }
            int    ischecked = this.checkEdit1.Checked ? 1 : 0;
            string remark    = this.textBox1.Text;

            if (this.comboBoxEdit1.SelectedIndex >= 0)
            {
                ManagerManage.Manage().AccountId = this.staffs[this.comboBoxEdit1.SelectedIndex].Guid;
            }
            HomePageNetOperation.AddChangeStaff(AddChangeStaffResult, ps2, receive, ps1, ischecked, remark);
        }
예제 #4
0
        private void ShowView(HomePageNodeModel nodeModel)
        {
            if (!ManagerManage.Manage().IsRightUse(nodeModel.nodeid))
            {
                return;
            }
            RootUserControlView view = null;
            TreeNodeTag         tag  = (TreeNodeTag)Enum.Parse(typeof(TreeNodeTag), nodeModel.nodeTag);

            switch (tag)
            {
            case TreeNodeTag.None:

                break;

                #region 首页
            case TreeNodeTag.HomePage:
            {
            }
            break;
                #endregion

                #region  网用户
            case TreeNodeTag.MemberManage:         //会员管理
                view = new MemberManageView();
                break;
                #endregion

                #region 商品管理
            case TreeNodeTag.ProductManage:         //商品管理
                view = new ProductManageView();
                break;

            case TreeNodeTag.ProductSellRank:       //商品销售排行
                view = new ProductSellRankView();
                break;
                #endregion

                #region 费率管理管理
            case TreeNodeTag.RataManage:         //费率管理
                view = new RateManageView();
                break;

            case TreeNodeTag.OtherCostManage:         //其他费用管理
                view = new OtherCostView();
                break;

            case TreeNodeTag.IntegralManage:       //积分管理
                view = new IntegralManageView();
                break;

            case TreeNodeTag.AwardManage:       //奖励管理
                view = new AwardManageView();
                break;
                #endregion

                #region 营收管理
            case TreeNodeTag.DayInCome:       //日营收
                view = new DayInComeView();
                break;

            case TreeNodeTag.MonthInCome:       //月营收
                view = new MonthInComeView();
                break;

            case TreeNodeTag.YearInCome:       //年营收
                view = new YearInComeView();
                break;
                #endregion

                #region 系统查询

            case TreeNodeTag.ChangeShiftsRecord:       //交接班记录查询
                view = new ChangeShiftsRecordView();
                break;

            case TreeNodeTag.UserPayedRecord:       //用户充值记录查询
                view = new UserRechargeView();
                break;

            case TreeNodeTag.UserNetRecord:       //用户上网记录查询
                view = new UserNetRecordView();
                break;

            case TreeNodeTag.UserConsumeRecord:       //用户消费记录查询
                view = new UserConsumeRecordView();
                break;

            case TreeNodeTag.OpenMemberRecord:       //会员办理查询
                view = new OpenMemberRecordView();
                break;

            case TreeNodeTag.ProductIndent:       //商品订单查询
                view = new ProductIndentView();
                break;

            case TreeNodeTag.AttendanceSearch:       //上座率查询
                view = new AttendanceSearchView();
                break;

            case TreeNodeTag.UserDrawBackRecord:
                view = new UserDrawBackRecordView();
                break;
                #endregion

                #region 绩效考核
            case TreeNodeTag.JXInspect:       //绩效考核
                view = new JXInspectView();
                break;
                #endregion

                #region 评价管理
            case TreeNodeTag.NetBarEvaluate:            //管理人员添加
                view = new NetBarEvaluateView();
                break;

            case TreeNodeTag.StaffEvaluate:         //管理人员
                view = new StaffEvaluateView();
                break;
                #endregion

                #region 系统管理
            case TreeNodeTag.NetPassWord:       //上网密码设置
                view = new NetPassWordView();
                break;

            case TreeNodeTag.StaffMoney:       //员工提成
                                               // view = new StaffMoneyView();
                break;

            case TreeNodeTag.MemberLevManage:       //会员等级
                view = new MemberLevManageView();
                break;

            case TreeNodeTag.ProductType:       //商品类别
                view = new ProductTypeManageView();
                break;

            case TreeNodeTag.AreaManage:       //区域设置
                view = new AreaManageView();
                break;

            case TreeNodeTag.ClientManage:       //客户端设置
                view = new ClientManageView();
                break;

            case TreeNodeTag.BackUpManage:       //备份设置
                view = new BackUpManageView();
                break;

            case TreeNodeTag.SmsManage:       //短信设置
                view = new SmsManageView();
                break;
                #endregion

                #region 员工账号管理
            case TreeNodeTag.StaffList:            //管理人员添加
                view = new StaffListView();
                break;

            case TreeNodeTag.ManagerManage:         //管理人员
                view = new ManagerManageView();
                break;
                #endregion

                #region 日志管理
            case TreeNodeTag.LogManage:         //日志管理
                view = new LogManageView();
                break;
                #endregion

                #region 设备信息管理
            case TreeNodeTag.EquipmentInfo:
                view = new SoftwareMsgManageView();
                break;

                #endregion

            default:
                break;
            }

            MainViewManage.ShowView(view);
        }