public UserActiveView()
        {
            InitializeComponent();
            this.titleLabel.Text = "用户上机";

            simpleButton2.Enabled = simpleButton3.Enabled = simpleButton1.Enabled = false;
            StructCard.Builder card = new StructCard.Builder()
            {
                Name         = "xx22",
                Gender       = 1,
                Nation       = "2112",
                Number       = ToolsManage.RandomCard,
                Birthday     = "2012-09-01",
                Address      = "海南省",
                Organization = "海南",
                Head         = "#dasdasd#",
                Vld          = "",
            };
            Bitmap b           = Imgs.test;
            string inputString = ToolsManage.BitmapToDataSring(b);

            card.Head = inputString;

            InitUI(card.Build());
            //  MemberNetOperation.MemberInfo(MemberInfoResult, card);
        }
 private void InitUI()
 {
     ToolsManage.SetGridView(this.gridView1, GridControlType.AreaManage, out this.mainDataTable);
     this.gridControl1.DataSource = this.mainDataTable;
     this.panel1.AutoSize         = true;
     //this.MouseWheel += AreaFlowPanel_MouseWheel;
 }
        //初始化UI
        private void InitUI()
        {
            ToolsManage.SetGridView(this.gridView1, GridControlType.NormalAward, out this.table1);
            this.gridControl1.DataSource = this.table1;

            ToolsManage.SetGridView(this.gridView4, GridControlType.MemberDayAward, out this.table2);
            this.gridControl2.DataSource = this.table2;

            //设置两个ComboBox
            this.memberTypes = SysManage.MemberTypes;
            foreach (MemberTypeModel item in memberTypes)
            {
                //if(item.Code != IdTools.TEM_MEMBER_ID)
                //{

                //}
                string type = item.typeName;
                this.comboBoxEdit1.Properties.Items.Add(type);
                this.comboBoxEdit3.Properties.Items.Add(type);
            }
            this.comboBoxEdit1.Properties.TextEditStyle       = TextEditStyles.DisableTextEditor;
            this.popupContainerEdit1.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
            this.comboBoxEdit3.Properties.TextEditStyle       = TextEditStyles.DisableTextEditor;
            this.popupContainerEdit2.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
            this.dateNavigator.UpdateDateTimeWhenNavigating   = false;
            this.dateNavigator.UpdateSelectionWhenNavigating  = false;
            this.dateNavigator.SyncSelectionWithEditValue     = false;

            this.dateNavigator1.UpdateDateTimeWhenNavigating  = false;
            this.dateNavigator1.UpdateSelectionWhenNavigating = false;
            this.dateNavigator1.SyncSelectionWithEditValue    = false;
        }
        // 初始化UI
        private void InitUI()
        {
            //初始化ComboBoxEdit
            ComboBoxEdit[] edits =
            {
                this.statusComboBoxEdit,
                this.memberTypeComboBoxEdit
            };
            SetupCombox(edits, false);
            //会员状态
            foreach (string status in Enum.GetNames(typeof(MEMBERSTATUS)))
            {
                this.statusComboBoxEdit.Properties.Items.Add(status);
            }

            //会员类型
            this.memberTypes = SysManage.MemberTypes;
            this.memberTypeComboBoxEdit.Properties.Items.Add("无");
            for (int i = 0; i < this.memberTypes.Count(); i++)
            {
                this.memberTypeComboBoxEdit.Properties.Items.Add(memberTypes[i].typeName);
            }
            //初始化GridControl
            ToolsManage.SetGridView(this.gridView1, GridControlType.MemberManage, out this.mainDataTable, ColumnButtonClick, null);
            this.gridControl1.DataSource = this.mainDataTable;
        }
Exemple #5
0
        private void InitUI()
        {
            ToolsManage.SetGridView(this.gridView1, GridControlType.CallService, out this.mainDataTable, ButtonColumn_ButtonClick, null);
            this.gridControl1.DataSource = this.mainDataTable;

            GetCallServerList();
        }
Exemple #6
0
        private void InitUI()
        {
            //初始化ComboBoxEdit
            DevExpress.XtraEditors.ComboBoxEdit[] edits =
            {
                this.comboBoxEdit1,
            };
            SetupCombox(edits, false);
            ToolsManage.SetGridView(this.gridView1, GridControlType.ProductIndent, out this.mainDataTable, ColumnButtonClick, null);
            this.gridControl1.DataSource = this.mainDataTable;

            //设置时间表
            this.dateNavigator1.UpdateDateTimeWhenNavigating  = false;
            this.dateNavigator1.UpdateSelectionWhenNavigating = false;
            this.dateNavigator1.SyncSelectionWithEditValue    = false;
            this.dateNavigator2.UpdateDateTimeWhenNavigating  = false;
            this.dateNavigator2.UpdateSelectionWhenNavigating = false;
            this.dateNavigator2.SyncSelectionWithEditValue    = false;

            //添加状态
            string[] statuses = { "提交", "完成", "撤销" };
            foreach (string statuStr in statuses)
            {
                this.comboBoxEdit1.Properties.Items.Add(statuStr);
            }
        }
 /// <summary>
 /// 直接进入开通会员界面
 /// </summary>
 /// <param name="card">若card为null自动生成card</param>
 public OpenMemberView(StructCard card)
 {
     InitializeComponent();
     if (card == null)
     {
         StructCard.Builder newcard = new StructCard.Builder()
         {
             Name         = "xx22",
             Gender       = 1,
             Nation       = "2112",
             Number       = ToolsManage.RandomCard,
             Birthday     = "2012-09-01",
             Address      = "海南省",
             Organization = "海南",
             Head         = "#dasdasd#",
             Vld          = "",
         };
         Bitmap b           = Imgs.test;
         string inputString = ToolsManage.BitmapToDataSring(b);
         newcard.Head = inputString;
         InitUI(newcard.Build());
     }
     else
     {
         InitUI(card);
         IdCardReaderManage.ReadCard(ReadCardResult, null, null);
     }
 }
Exemple #8
0
        // 初始化UI
        private void InitUI()
        {
            //初始化ComboBoxEdit
            DevExpress.XtraEditors.ComboBoxEdit[] edits =
            {
                this.comboBoxEdit1,
                this.comboBoxEdit2
            };
            SetupCombox(edits, false);
            this.staffs = SysManage.Staffs;
            this.comboBoxEdit1.Properties.Items.Add("无");
            foreach (StructAccount staff in this.staffs)
            {
                this.comboBoxEdit1.Properties.Items.Add(staff.Nickname);
            }

            this.memberTypes = SysManage.MemberTypes;
            this.comboBoxEdit2.Properties.Items.Add("无");
            foreach (MemberTypeModel model in this.memberTypes)
            {
                this.comboBoxEdit2.Properties.Items.Add(model.typeName);
            }

            //初始化GridControl
            ToolsManage.SetGridView(this.gridView1, GridControlType.OpenMemberRecord, out this.mainDataTable, null, null);
            this.gridControl1.DataSource = this.mainDataTable;
        }
Exemple #9
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //初始化XML
            XMLDataManage.Init();

            //OpenMemberView newview2 = new OpenMemberView("");
            ////MainForm newForm2 = new MainForm
            ////DayInComeView newview2 = new DayInComeView();
            ////CustomForm newForm2 = new CustomForm(newview2, true, false);
            //ToolsManage.ShowForm(newview2, true);
            //MainView homePage1 = new MainView();
            //Application.Run(ToolsManage.ShowForm(homePage1));
            //return;

            //this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            //this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            //this.TopMost = true;

            //Application.Run(new TestForm());
            //return;
            RootBgView root = new RootBgView();

            //设置全屏
            root.Size = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size;
            Application.Run(ToolsManage.ShowForm(root));
        }
Exemple #10
0
        //初始化UI
        private void InitUI()
        {
            switch (this.incomeType)
            {
            case IncomeType.DAY_INCOME:
                ToolsManage.SetGridView(this.gridView1, GridControlType.DayIncomeDetail, out this.mainDataTable);
                this.titleLabel.Text = "日营收详情";

                break;

            case IncomeType.MONTH_INCOME:
                ToolsManage.SetGridView(this.gridView1, GridControlType.MonthIncomeDetail, out this.mainDataTable);
                this.titleLabel.Text = "月营收详情";

                break;

            case IncomeType.YEAR_INCOME:
                ToolsManage.SetGridView(this.gridView1, GridControlType.YearIncomeDetail, out this.mainDataTable);
                this.titleLabel.Text = "年营收详情";

                break;
            }

            this.gridControl1.DataSource = this.mainDataTable;

            RefreshGridControl();
        }
 //初始化UI
 private void InitUI()
 {
     //ButtonPressedEventHandler
     ToolsManage.SetGridView(this.gridView1, GridControlType.ProductIndentDetail, out this.mainDataTable);
     this.gridControl1.DataSource = this.mainDataTable;
     GetProductIndentDetail();
 }
        //初始化UI数据
        private void InitUI()
        {
            //初始化ComboBoxEdit
            DevExpress.XtraEditors.ComboBoxEdit[] edits =
            {
                this.payChannelComboBoxEdit,
                this.useComboBoxEdit
            };
            SetupCombox(edits, false);
            foreach (string use in Enum.GetNames(typeof(CONSUMEUSE)))
            {
                this.useComboBoxEdit.Properties.Items.Add(use);
            }
            foreach (string pay in Enum.GetNames(typeof(PAYCHANNEL)))
            {
                this.payChannelComboBoxEdit.Properties.Items.Add(pay);
            }
            // 设置 comboBox的文本值不能被编辑
            this.useComboBoxEdit.Properties.TextEditStyle        = TextEditStyles.DisableTextEditor;
            this.payChannelComboBoxEdit.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
            this.dateNavigator.UpdateDateTimeWhenNavigating      = false;
            this.dateNavigator.UpdateSelectionWhenNavigating     = false;
            this.dateNavigator.SyncSelectionWithEditValue        = false;


            ToolsManage.SetGridView(this.gridView1, GridControlType.UserConsumeRecord, out this.mainDataTable);
            this.gridControl1.DataSource = this.mainDataTable;
        }
        //按钮列的点击事件
        public void ColumnButtonClick(object sender, ButtonPressedEventArgs e)
        {
            int          rowhandle = this.gridView1.FocusedRowHandle;
            DataRow      row       = this.gridView1.GetDataRow(rowhandle);
            StructMember member    = members[rowhandle];


            String tag = (String)e.Button.Tag;

            String[] param = tag.Split('_');
            //查看用户身份信息
            if (param[0].Equals(TitleList.UserMsg.ToString()))
            {
                //  System.Console.WriteLine("member.Memberid:"+ member.Memberid);
                UserIdDetailView view = new UserIdDetailView(member.Memberid);
                ToolsManage.ShowForm(view, false);
            }
            //消费记录
            else if (param[0].Equals(TitleList.CsRecord.ToString()))
            {
                MemberConsumeRecordView view = new MemberConsumeRecordView(member.Memberid);
                MainViewManage.ShowSecondView(view);
            }
            //上网记录
            else if (param[0].Equals(TitleList.NetRecord.ToString()))
            {
                MemberNetRecordView view = new MemberNetRecordView(member.Memberid);
                MainViewManage.ShowSecondView(view);
            }
        }
        //导出营收详情
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            DateTime         time   = DateTime.ParseExact(this.start, "yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.CurrentCulture);
            IncomeDetailView detail = new InCome.IncomeDetailView(IncomeType.MONTH_INCOME, this.earns.ToList <StructEarn>(), time.Year, time.Month);

            ToolsManage.ShowForm(detail, false);
        }
Exemple #15
0
        //点击进行修改
        private void ComLabel_Click(object sender, EventArgs e)
        {
            StructRealTime     com  = (StructRealTime)(sender as AreaComView).Tag;
            ComputerDetailView view = new ComputerDetailView(com);

            ToolsManage.ShowForm(view, false);
        }
        //初始化UI
        private void InitUI()
        {
            ToolsManage.SetGridView(this.gridView1, GridControlType.SmsManage, out this.mainDataTable);
            this.gridControl1.DataSource = this.mainDataTable;

            //设置自动尺寸
            this.panel1.AutoSize = true;
        }
Exemple #17
0
 /// <summary>
 /// 添加ListView数据
 /// </summary>
 private void AddData()
 {
     ToolsManage.SetGridView(this.gridView1, GridControlType.ClientManage, out this.mainDataTable);
     //DataRow row = this.mainDataTable.NewRow();
     //this.mainDataTable.Rows.Add(row);
     //row["column_0"] = "dasdasd";
     this.gridControl1.DataSource = this.mainDataTable;
 }
Exemple #18
0
 //初始化UI
 private void InitUI()
 {
     ToolsManage.SetGridView(this.gridView1, GridControlType.ProductSellRecord, out this.mainDataTable);
     this.gridControl1.DataSource = this.mainDataTable;
     this.dateNavigator1.UpdateDateTimeWhenNavigating  = false;
     this.dateNavigator1.UpdateSelectionWhenNavigating = false;
     this.dateNavigator1.SyncSelectionWithEditValue    = false;
 }
Exemple #19
0
        //按钮列的点击事件
        public void ColumnButtonClick(object sender, ButtonPressedEventArgs e)
        {
            int              rowhandle = this.gridView1.FocusedRowHandle;
            DataRow          row       = this.gridView1.GetDataRow(rowhandle);
            StructDictItem   item      = items[rowhandle];
            MemberLevAddView view      = new MemberLevAddView(item);

            ToolsManage.ShowForm(view, false, CloseMemberLevAddViewBlock);
        }
Exemple #20
0
        //按钮列的点击事件
        public void ColumnButtonClick(object sender, ButtonPressedEventArgs e)
        {
            int         row   = this.gridView1.FocusedRowHandle;
            StructOrder order = this.orders[row];

            ProductIndentDetailView view = new ProductIndentDetailView(order);

            ToolsManage.ShowForm(view, false);
        }
        private void addManagerButton_Click(object sender, EventArgs e)
        {
            CloseFormHandle closeEvent = new CloseFormHandle(delegate {
                GetStaffList();
            });
            StaffAddView view = new StaffAddView(null);

            ToolsManage.ShowForm(view, false, closeEvent);
        }
Exemple #22
0
        //确定点击
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            //关闭点击
            this.FindForm().Close();

            //进入开卡界面
            OpenMemberView open = new OpenMemberView(null);

            ToolsManage.ShowForm(open, false);
        }
Exemple #23
0
        //按钮列功能
        private void ButtonPressedEventClick(object sender, ButtonPressedEventArgs e)
        {
            int             row   = this.gridView1.FocusedRowHandle;
            StructRole      role  = this.managers[row];
            CloseFormHandle close = new CloseFormHandle(delegate {
                GetManagerList();
            });
            ManagerAddView view = new ManagerAddView(role);

            ToolsManage.ShowForm(view, false, close);
        }
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            ProductAddView  view  = new ProductAddView(null);
            CloseFormHandle close = new CloseFormHandle(delegate
            {
                this.mainDataTable.Clear();
                GetProductList();
            });

            ToolsManage.ShowForm(view, false, close);
        }
Exemple #25
0
        // 激活上网
        private void UserActive_ButtonClick(object sender, EventArgs e)
        {
#if PRODUCT
            //先连接设备进行读卡
            this.IsActiveCard = true;
            IdCardReaderManage.ReadCard(ReadCardResult, ConnectReaderResult, AuthenticateCardResult);
#else
            UserActiveView view = new UserActiveView();
            ToolsManage.ShowForm(view, false);
#endif
        }
 //日期选择触发
 private void DateNavigator_Click(object sender, System.EventArgs e)
 {
     if (sender.Equals(dateNavigator))
     {
         nlastDate = ToolsManage.GetDateNavigatorRangeTime(this.dateNavigator, nlastDate, out this.nstartTime, out this.nendTime);
     }
     else if (sender.Equals(dateNavigator1))
     {
         mlastDate = ToolsManage.GetDateNavigatorRangeTime(this.dateNavigator1, mlastDate, out this.mstartTime, out this.mendTime);
     }
 }
Exemple #27
0
 //日期选择触发
 private void DateNavigator_EditValueChanged(object sender, System.EventArgs e)
 {
     if (sender.Equals(this.dateNavigator1))
     {
         addLastDate = ToolsManage.GetDateNavigatorRangeTime(this.dateNavigator1, addLastDate, out this.addStart, out this.addEnd);
     }
     else if (sender.Equals(this.dateNavigator2))
     {
         handleDateTime = ToolsManage.GetDateNavigatorRangeTime(this.dateNavigator2, handleDateTime, out this.handleStart, out this.handleEnd);
     }
 }
Exemple #28
0
        private void InitUI()
        {
            ToolsManage.SetGridView(this.gridView1, GridControlType.ChatManage, out this.mainDataTable);
            this.gridControl1.DataSource = this.mainDataTable;
            //监听勾选
            GridColumn column            = this.gridView1.Columns[TitleList.Check.ToString()];
            RepositoryItemCheckEdit edit = (RepositoryItemCheckEdit)column.ColumnEdit;

            edit.CheckedChanged += Edit_CheckedChanged;
            GetOnLineList();
        }
Exemple #29
0
        private void InitUI()
        {
            TextEdit[] edits =
            {
                this.textEdit1, this.textEdit2, this.textEdit3, this.textEdit4, this.textEdit5
            };
            InitTextEdit(edits);

            //初始化GridControl
            ToolsManage.SetGridView(this.gridView1, GridControlType.ClientManage, out this.mainDataTable, ColumnButtonClick, null);
            this.gridControl1.DataSource = this.mainDataTable;
        }
        private void InitUI()
        {
            this.dateNavigator.UpdateDateTimeWhenNavigating  = false;
            this.dateNavigator.UpdateSelectionWhenNavigating = false;
            this.dateNavigator.SyncSelectionWithEditValue    = false;

            ToolsManage.SetGridView(this.gridView1, GridControlType.GiveShiftsRecord, out this.giveTable);
            this.gridControl1.DataSource = this.giveTable;
            ToolsManage.SetGridView(this.gridView2, GridControlType.ReceiveShiftsRecord, out this.receiveTable);
            this.gridControl2.DataSource = this.receiveTable;
            // RepositoryItemHyperLinkEdit
        }