//初始化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; }
private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.CallService, out this.mainDataTable, ButtonColumn_ButtonClick, null); this.gridControl1.DataSource = this.mainDataTable; GetCallServerList(); }
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() { //ButtonPressedEventHandler ToolsManage.SetGridView(this.gridView1, GridControlType.ProductIndentDetail, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; GetProductIndentDetail(); }
// 初始化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; }
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); } }
// 初始化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; }
//初始化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() { //初始化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; }
/// <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; }
//初始化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; }
//初始化UI private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.SmsManage, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; //设置自动尺寸 this.panel1.AutoSize = true; }
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(); }
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 }
private void InitUI() { //获取两种不同状态的RepositoryItemButtonEdit string[] nor = { BTN_NAME.强制下机.ToString(), BTN_NAME.锁定.ToString(), BTN_NAME.验证.ToString() }; string[] ver = { BTN_NAME.强制下机.ToString(), BTN_NAME.锁定.ToString(), BTN_NAME.已验证.ToString() }; SetButtonItem(out normalEdit, nor); SetButtonItem(out verietyEdit, ver); //设置GridControl ToolsManage.SetGridView(this.gridView1, GridControlType.HomePageList, out this.mainDataTable, ButtonEdit_ButtonClick); this.gridControl1.DataSource = this.mainDataTable; this.gridView1.CustomRowCellEdit += GridView1_CustomRowCellEdit; }
private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.LogManage, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; this.dateNavigator1.UpdateDateTimeWhenNavigating = false; this.dateNavigator1.UpdateSelectionWhenNavigating = false; this.dateNavigator1.SyncSelectionWithEditValue = false; //获取员工 this.staffs = SysManage.Staffs; foreach (StructAccount staff in this.staffs) { this.comboBoxEdit1.Properties.Items.Add(staff.Nickname); } }
//初始化UI private void InitUI() { //初始化ComboBoxEdit DevExpress.XtraEditors.ComboBoxEdit[] edits = { this.comboBoxEdit1, this.comboBoxEdit2 }; SetupCombox(edits, false); ToolsManage.SetGridView(this.gridView1, GridControlType.ProductSellRank, out this.mainDataTable); DataRow row = this.mainDataTable.NewRow(); this.mainDataTable.Rows.Add(row); this.gridControl1.DataSource = this.mainDataTable; }
private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.StaffEvaluate, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; this.comboBoxEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.dateNavigator1.UpdateDateTimeWhenNavigating = false; this.dateNavigator1.UpdateSelectionWhenNavigating = false; this.dateNavigator1.SyncSelectionWithEditValue = false; //先获取员工列表 this.staffs = SysManage.Staffs; foreach (StructAccount staff in this.staffs) { this.comboBoxEdit1.Properties.Items.Add(staff.Nickname); } }
// 初始化UI private void InitUI() { //初始化ComboBoxEdit DevExpress.XtraEditors.ComboBoxEdit[] edits = { this.comboBoxEdit1, }; SetupCombox(edits, false); //PAYCHANNEL_TYPE foreach (string name in Enum.GetNames(typeof(PAYCHANNEL))) { this.comboBoxEdit1.Properties.Items.Add(name); } this.dateNavigator.UpdateDateTimeWhenNavigating = false; this.dateNavigator.UpdateSelectionWhenNavigating = false; this.dateNavigator.SyncSelectionWithEditValue = false; //初始化GridControl ToolsManage.SetGridView(this.gridView1, GridControlType.MemberRechargeRecord, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; }
private void InitUI() { //初始化ComboBoxEdit DevExpress.XtraEditors.ComboBoxEdit[] edits = { this.comboBoxEdit1, }; SetupCombox(edits, false); ToolsManage.SetGridView(this.gridView1, GridControlType.UserNetRecord, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; this.dateNavigator.UpdateDateTimeWhenNavigating = false; this.dateNavigator.UpdateSelectionWhenNavigating = false; this.dateNavigator.SyncSelectionWithEditValue = false; //获取设备编号 this.comboBoxEdit1.Properties.Items.Add("无"); HomePageMessageManage.GetComputers(out this.computers); foreach (StructRealTime com in this.computers) { this.comboBoxEdit1.Properties.Items.Add(com.Computer); } }
private void InitUI(StructCard card) { this.openCard = new StructCard.Builder(card).Build(); //初始化Label char[] sp = { ':', ':' }; this.nameLabel.Text = string.Format("{0}:{1}", this.nameLabel.Text.Split(sp)[0], this.openCard.Name); this.genderLabel.Text = string.Format("{0}:{1}", this.genderLabel.Text.Split(sp)[0], this.openCard.Gender); this.nationLabel.Text = string.Format("{0}:{1}", this.nationLabel.Text.Split(sp)[0], this.openCard.Nation); this.cardTypeLabel.Text = string.Format("{0}:{1}", this.cardTypeLabel.Text.Split(sp)[0], "身份证"); this.cardNumLabel.Text = string.Format("{0}:{1}", this.cardNumLabel.Text.Split(sp)[0], this.openCard.Number); this.addressLabel.Text = string.Format("{0}:{1}", this.addressLabel.Text.Split(sp)[0], this.openCard.Address); this.organLabel.Text = string.Format("{0}:{1}", this.organLabel.Text.Split(sp)[0], this.openCard.Organization); this.countryLabel.Text = string.Format("{0}:{1}", this.countryLabel.Text.Split(sp)[0], "中国"); this.birthdayLabel.Text = string.Format("{0}:{1}", this.birthdayLabel.Text.Split(sp)[0], this.openCard.Birthday); this.cardValidityLabel.Text = string.Format("{0}:{1}", this.cardValidityLabel.Text.Split(sp)[0], this.openCard.Vld); MemoryStream ms = new MemoryStream(System.Convert.FromBase64String(this.openCard.Head)); this.pictureEdit1.Image = Image.FromStream(ms); if (this.mainDataTable == null) { //先接受数据 this.memberTypes = SysManage.MemberTypes; //初始化GridControl ToolsManage.SetGridView(this.gridView1, GridControlType.OpenMember, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; RefreshGridControl(); } //隐藏按钮可点击 this.simpleButton1.Enabled = false; this.simpleButton2.Enabled = false; this.moneyTextEdit.Text = ""; //开通会员入口 OpenMember(); }
private void InitUI() { //初始化ComboBoxEdit DevExpress.XtraEditors.ComboBoxEdit[] edits = { this.comboBoxEdit1, }; SetupCombox(edits, false); //首先要获取产品列表数组 this.productTypes = SysManage.ProductTypes; this.comboBoxEdit1.Properties.Items.Add("无"); //初始化ComboBoxEdit for (int i = 0; i < productTypes.Count(); i++) { ProductTypeModel item = productTypes[i]; this.comboBoxEdit1.Properties.Items.Add(item.typeName); } // 设置 comboBox的文本值不能被编辑 ToolsManage.SetGridView(this.gridView1, GridControlType.ProductManage, out this.mainDataTable, ColumnButtonClick, null); this.gridControl1.DataSource = this.mainDataTable; }
//初始化UI private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.JXInspect, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; }
private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.ProductStockList, out this.mainDataTable); this.gridControl1.DataSource = this.mainDataTable; }
private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.PayedProductIndent, out this.mainDataTable, ButtonColumn_ButtonClick); this.gridControl1.DataSource = this.mainDataTable; GetProductIndentList(); }
private void InitUI() { ToolsManage.SetGridView(this.gridView1, GridControlType.ProductType, out this.mainDataTable, ColumnButtonClick, null); this.gridControl1.DataSource = this.mainDataTable; }
//初始化UI private void InitUI() { //new ToolsManage.SetGridView(this.gridView1, GridControlType.StaffList, out this.mainDataTable, ButtonPressedEventClick, null); this.gridControl1.DataSource = this.mainDataTable; }