| | |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EmployeeMgrMainPanel)); |
| | | repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); |
| | | repositoryItemSearchControl2 = new DevExpress.XtraEditors.Repository.RepositoryItemSearchControl(); |
| | | ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
| | | barBtnEdit = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnAdd = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnDelete = new DevExpress.XtraBars.BarButtonItem(); |
| | | barEditItem1 = new DevExpress.XtraBars.BarEditItem(); |
| | | barEditItem2 = new DevExpress.XtraBars.BarEditItem(); |
| | | barButtonItemDelEmployee = new DevExpress.XtraBars.BarButtonItem(); |
| | | ribbonPageCategory1 = new DevExpress.XtraBars.Ribbon.RibbonPageCategory(); |
| | | ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | employeeViewModelBindingSource = new BindingSource(components); |
| | | ribbonPageGroup = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | employeeModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colErpCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colProfilePhotoFilePath = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPositonName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFirstName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colStaffStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colTelephone = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAddTime = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAddUser = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLastName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRequirePasswordReset = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDrawSignal = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEmail = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLastUser = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLastTime = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAddTime = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colUser = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridControl = new DevExpress.XtraGrid.GridControl(); |
| | | colAddUser = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLastModifyUser = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLastModifyTime = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colParas = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colTagName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemSearchControl2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)employeeViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)employeeModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | // |
| | | // repositoryItemSearchControl2 |
| | | // |
| | | repositoryItemSearchControl2.AutoHeight = false; |
| | | repositoryItemSearchControl2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Repository.ClearButton(), new DevExpress.XtraEditors.Repository.SearchButton() }); |
| | | repositoryItemSearchControl2.Name = "repositoryItemSearchControl2"; |
| | | // |
| | | // ribbonControl1 |
| | | // |
| | | ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnEdit, BtnAdd, BtnDelete }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnEdit, BtnAdd, barEditItem1, barEditItem2, barButtonItemDelEmployee }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 17; |
| | | ribbonControl1.MaxItemId = 28; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.PageCategories.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageCategory[] { ribbonPageCategory1 }); |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); |
| | | ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.True; |
| | | ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; |
| | | ribbonControl1.Size = new Size(870, 77); |
| | | ribbonControl1.Size = new Size(870, 104); |
| | | ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; |
| | | // |
| | | // barBtnEdit |
| | |
| | | BtnAdd.Name = "BtnAdd"; |
| | | BtnAdd.ItemClick += BtnAdd_ItemClick; |
| | | // |
| | | // BtnDelete |
| | | // barEditItem1 |
| | | // |
| | | BtnDelete.Caption = "删除员工"; |
| | | BtnDelete.Id = 16; |
| | | BtnDelete.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnDelete.ImageOptions.SvgImage"); |
| | | BtnDelete.Name = "BtnDelete"; |
| | | BtnDelete.ItemClick += BtnDelete_ItemClick; |
| | | barEditItem1.Edit = null; |
| | | barEditItem1.Id = 22; |
| | | barEditItem1.Name = "barEditItem1"; |
| | | // |
| | | // barEditItem2 |
| | | // |
| | | barEditItem2.Edit = null; |
| | | barEditItem2.Id = 23; |
| | | barEditItem2.Name = "barEditItem2"; |
| | | // |
| | | // barButtonItemDelEmployee |
| | | // |
| | | barButtonItemDelEmployee.Caption = "删除员工"; |
| | | barButtonItemDelEmployee.Id = 27; |
| | | barButtonItemDelEmployee.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barButtonItemDelEmployee.ImageOptions.SvgImage"); |
| | | barButtonItemDelEmployee.Name = "barButtonItemDelEmployee"; |
| | | barButtonItemDelEmployee.ItemClick += barButtonItemDelEmployee_ItemClick; |
| | | // |
| | | // ribbonPageCategory1 |
| | | // |
| | | ribbonPageCategory1.Name = "ribbonPageCategory1"; |
| | | ribbonPageCategory1.Text = "ribbonPageCategory1"; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup }); |
| | | ribbonPage1.Name = "ribbonPage1"; |
| | | ribbonPage1.Text = "ribbonPage1"; |
| | | // |
| | | // ribbonPageGroup1 |
| | | // ribbonPageGroup |
| | | // |
| | | ribbonPageGroup1.ItemLinks.Add(BtnAdd); |
| | | ribbonPageGroup1.ItemLinks.Add(barBtnEdit); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnDelete); |
| | | ribbonPageGroup1.Name = "ribbonPageGroup1"; |
| | | ribbonPageGroup1.Text = "ribbonPageGroup1"; |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = employeeViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.Location = new Point(0, 77); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.MenuManager = ribbonControl1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(870, 370); |
| | | gridControl1.TabIndex = 2; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // employeeViewModelBindingSource |
| | | // |
| | | employeeViewModelBindingSource.DataSource = typeof(EmployeeViewModel); |
| | | ribbonPageGroup.ItemLinks.Add(BtnAdd); |
| | | ribbonPageGroup.ItemLinks.Add(barBtnEdit); |
| | | ribbonPageGroup.ItemLinks.Add(barEditItem1); |
| | | ribbonPageGroup.ItemLinks.Add(barEditItem2); |
| | | ribbonPageGroup.ItemLinks.Add(barButtonItemDelEmployee); |
| | | ribbonPageGroup.Name = "ribbonPageGroup"; |
| | | ribbonPageGroup.Text = "ribbonPageGroup1"; |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colErpCode, colPositonName, colFirstName, colStaffStatus, colTelephone, colAddTime, colAddUser, colLastName, colRequirePasswordReset, colDrawSignal, colEmail, colLastModifyUser, colLastModifyTime, colParas, colTagName, colSortCode }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Appearance.HideSelectionRow.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HideSelectionRow.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.AppearancePrint.EvenRow.Options.UseTextOptions = true; |
| | | gridView1.AppearancePrint.EvenRow.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.AppearancePrint.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.AppearancePrint.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colErpCode, colProfilePhotoFilePath, colPositonName, colFirstName, colStaffStatus, colTelephone, colLastName, colRequirePasswordReset, colDrawSignal, colEmail, colLastUser, colLastTime, colAddTime, colUser, colSortCode }); |
| | | gridView1.GridControl = gridControl; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False; |
| | | gridView1.OptionsBehavior.AllowDeleteRows = DevExpress.Utils.DefaultBoolean.False; |
| | | gridView1.OptionsBehavior.Editable = false; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | gridView1.CustomUnboundColumnData += gridView1_CustomUnboundColumnData; |
| | | // |
| | | // colErpCode |
| | | // |
| | | colErpCode.AppearanceCell.Options.UseTextOptions = true; |
| | | colErpCode.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colErpCode.AppearanceHeader.Options.UseTextOptions = true; |
| | | colErpCode.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colErpCode.Caption = "编号"; |
| | | colErpCode.FieldName = "ErpCode"; |
| | | colErpCode.Name = "colErpCode"; |
| | | colErpCode.Visible = true; |
| | | colErpCode.VisibleIndex = 0; |
| | | colErpCode.Width = 58; |
| | | // |
| | | // colProfilePhotoFilePath |
| | | // |
| | | colProfilePhotoFilePath.AppearanceCell.Options.UseTextOptions = true; |
| | | colProfilePhotoFilePath.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colProfilePhotoFilePath.AppearanceHeader.Options.UseTextOptions = true; |
| | | colProfilePhotoFilePath.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colProfilePhotoFilePath.Caption = "头像"; |
| | | colProfilePhotoFilePath.FieldName = "ProfilePhotoFilePath"; |
| | | colProfilePhotoFilePath.Name = "colProfilePhotoFilePath"; |
| | | colProfilePhotoFilePath.Visible = true; |
| | | colProfilePhotoFilePath.VisibleIndex = 1; |
| | | colProfilePhotoFilePath.Width = 58; |
| | | // |
| | | // colPositonName |
| | | // |
| | | colPositonName.AppearanceCell.Options.UseTextOptions = true; |
| | | colPositonName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colPositonName.AppearanceHeader.Options.UseTextOptions = true; |
| | | colPositonName.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colPositonName.Caption = "职务"; |
| | | colPositonName.FieldName = "PositonName"; |
| | | colPositonName.Name = "colPositonName"; |
| | | colPositonName.Visible = true; |
| | | colPositonName.VisibleIndex = 1; |
| | | colPositonName.VisibleIndex = 2; |
| | | colPositonName.Width = 58; |
| | | // |
| | | // colFirstName |
| | | // |
| | | colFirstName.AppearanceCell.Options.UseTextOptions = true; |
| | | colFirstName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colFirstName.AppearanceHeader.Options.UseTextOptions = true; |
| | | colFirstName.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colFirstName.Caption = "姓名"; |
| | | colFirstName.FieldName = "FirstName"; |
| | | colFirstName.Name = "colFirstName"; |
| | | colFirstName.Visible = true; |
| | | colFirstName.VisibleIndex = 2; |
| | | colFirstName.VisibleIndex = 3; |
| | | colFirstName.Width = 58; |
| | | // |
| | | // colStaffStatus |
| | | // |
| | | colStaffStatus.FieldName = "StaffStatus"; |
| | | colStaffStatus.AppearanceCell.Options.UseTextOptions = true; |
| | | colStaffStatus.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colStaffStatus.AppearanceHeader.Options.UseTextOptions = true; |
| | | colStaffStatus.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colStaffStatus.Caption = "工作状态"; |
| | | colStaffStatus.FieldName = "StaffStatusName"; |
| | | colStaffStatus.Name = "colStaffStatus"; |
| | | colStaffStatus.UnboundDataType = typeof(string); |
| | | colStaffStatus.Visible = true; |
| | | colStaffStatus.VisibleIndex = 3; |
| | | colStaffStatus.VisibleIndex = 4; |
| | | colStaffStatus.Width = 33; |
| | | // |
| | | // colTelephone |
| | | // |
| | | colTelephone.AppearanceCell.Options.UseTextOptions = true; |
| | | colTelephone.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colTelephone.AppearanceHeader.Options.UseTextOptions = true; |
| | | colTelephone.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colTelephone.Caption = "电话"; |
| | | colTelephone.FieldName = "Telephone"; |
| | | colTelephone.Name = "colTelephone"; |
| | | colTelephone.Visible = true; |
| | | colTelephone.VisibleIndex = 4; |
| | | colTelephone.VisibleIndex = 5; |
| | | colTelephone.Width = 57; |
| | | // |
| | | // colLastName |
| | | // |
| | | colLastName.AppearanceCell.Options.UseTextOptions = true; |
| | | colLastName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colLastName.AppearanceHeader.Options.UseTextOptions = true; |
| | | colLastName.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colLastName.FieldName = "LastName"; |
| | | colLastName.Name = "colLastName"; |
| | | colLastName.Visible = true; |
| | | colLastName.VisibleIndex = 6; |
| | | colLastName.Width = 57; |
| | | // |
| | | // colRequirePasswordReset |
| | | // |
| | | colRequirePasswordReset.AppearanceCell.Options.UseTextOptions = true; |
| | | colRequirePasswordReset.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colRequirePasswordReset.AppearanceHeader.Options.UseTextOptions = true; |
| | | colRequirePasswordReset.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colRequirePasswordReset.Caption = "是否登录重置"; |
| | | colRequirePasswordReset.FieldName = "RequirePasswordResetName"; |
| | | colRequirePasswordReset.Name = "colRequirePasswordReset"; |
| | | colRequirePasswordReset.UnboundDataType = typeof(string); |
| | | colRequirePasswordReset.Visible = true; |
| | | colRequirePasswordReset.VisibleIndex = 7; |
| | | colRequirePasswordReset.Width = 50; |
| | | // |
| | | // colDrawSignal |
| | | // |
| | | colDrawSignal.AppearanceCell.Options.UseTextOptions = true; |
| | | colDrawSignal.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDrawSignal.AppearanceHeader.Options.UseTextOptions = true; |
| | | colDrawSignal.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDrawSignal.Caption = "签名"; |
| | | colDrawSignal.FieldName = "DrawSignal"; |
| | | colDrawSignal.Name = "colDrawSignal"; |
| | | colDrawSignal.Visible = true; |
| | | colDrawSignal.VisibleIndex = 8; |
| | | colDrawSignal.Width = 28; |
| | | // |
| | | // colEmail |
| | | // |
| | | colEmail.AppearanceCell.Options.UseTextOptions = true; |
| | | colEmail.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colEmail.AppearanceHeader.Options.UseTextOptions = true; |
| | | colEmail.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colEmail.Caption = "邮箱"; |
| | | colEmail.FieldName = "Email"; |
| | | colEmail.Name = "colEmail"; |
| | | colEmail.Visible = true; |
| | | colEmail.VisibleIndex = 9; |
| | | colEmail.Width = 79; |
| | | // |
| | | // colLastUser |
| | | // |
| | | colLastUser.AppearanceCell.Options.UseTextOptions = true; |
| | | colLastUser.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colLastUser.AppearanceHeader.Options.UseTextOptions = true; |
| | | colLastUser.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colLastUser.Caption = "最后修改用户"; |
| | | colLastUser.FieldName = "LastModifyUser"; |
| | | colLastUser.Name = "colLastUser"; |
| | | colLastUser.Visible = true; |
| | | colLastUser.VisibleIndex = 10; |
| | | // |
| | | // colLastTime |
| | | // |
| | | colLastTime.AppearanceCell.Options.UseTextOptions = true; |
| | | colLastTime.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colLastTime.AppearanceHeader.Options.UseTextOptions = true; |
| | | colLastTime.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colLastTime.Caption = "最后修改时间"; |
| | | colLastTime.FieldName = "LastModifyTime"; |
| | | colLastTime.Name = "colLastTime"; |
| | | colLastTime.Visible = true; |
| | | colLastTime.VisibleIndex = 11; |
| | | // |
| | | // colAddTime |
| | | // |
| | | colAddTime.AppearanceCell.Options.UseTextOptions = true; |
| | | colAddTime.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colAddTime.AppearanceHeader.Options.UseTextOptions = true; |
| | | colAddTime.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colAddTime.Caption = "添加时间"; |
| | | colAddTime.FieldName = "AddTime"; |
| | | colAddTime.Name = "colAddTime"; |
| | | colAddTime.Visible = true; |
| | | colAddTime.VisibleIndex = 5; |
| | | colAddTime.VisibleIndex = 12; |
| | | colAddTime.Width = 39; |
| | | // |
| | | // colUser |
| | | // |
| | | colUser.AppearanceCell.Options.UseTextOptions = true; |
| | | colUser.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colUser.AppearanceHeader.Options.UseTextOptions = true; |
| | | colUser.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colUser.Caption = "添加用户"; |
| | | colUser.FieldName = "AddUser"; |
| | | colUser.Name = "colUser"; |
| | | colUser.Visible = true; |
| | | colUser.VisibleIndex = 13; |
| | | colUser.Width = 58; |
| | | // |
| | | // colSortCode |
| | | // |
| | | colSortCode.AppearanceCell.Options.UseTextOptions = true; |
| | | colSortCode.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colSortCode.AppearanceHeader.Options.UseTextOptions = true; |
| | | colSortCode.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colSortCode.Caption = "排序码"; |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 14; |
| | | colSortCode.Width = 52; |
| | | // |
| | | // gridControl |
| | | // |
| | | gridControl.DataSource = employeeModelBindingSource; |
| | | gridControl.Dock = DockStyle.Fill; |
| | | gridControl.Location = new Point(0, 104); |
| | | gridControl.MainView = gridView1; |
| | | gridControl.MenuManager = ribbonControl1; |
| | | gridControl.Name = "gridControl"; |
| | | gridControl.Size = new Size(870, 343); |
| | | gridControl.TabIndex = 2; |
| | | gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // colAddUser |
| | | // |
| | | colAddUser.FieldName = "AddUser"; |
| | | colAddUser.Name = "colAddUser"; |
| | | colAddUser.Visible = true; |
| | | colAddUser.VisibleIndex = 6; |
| | | // |
| | | // colLastName |
| | | // |
| | | colLastName.FieldName = "LastName"; |
| | | colLastName.Name = "colLastName"; |
| | | colLastName.Visible = true; |
| | | colLastName.VisibleIndex = 7; |
| | | // |
| | | // colRequirePasswordReset |
| | | // |
| | | colRequirePasswordReset.FieldName = "RequirePasswordReset"; |
| | | colRequirePasswordReset.Name = "colRequirePasswordReset"; |
| | | colRequirePasswordReset.Visible = true; |
| | | colRequirePasswordReset.VisibleIndex = 8; |
| | | // |
| | | // colDrawSignal |
| | | // |
| | | colDrawSignal.FieldName = "DrawSignal"; |
| | | colDrawSignal.Name = "colDrawSignal"; |
| | | colDrawSignal.Visible = true; |
| | | colDrawSignal.VisibleIndex = 9; |
| | | // |
| | | // colEmail |
| | | // |
| | | colEmail.FieldName = "Email"; |
| | | colEmail.Name = "colEmail"; |
| | | colEmail.Visible = true; |
| | | colEmail.VisibleIndex = 10; |
| | | // |
| | | // colLastModifyUser |
| | | // |
| | | colLastModifyUser.FieldName = "LastModifyUser"; |
| | | colLastModifyUser.Name = "colLastModifyUser"; |
| | | colLastModifyUser.Visible = true; |
| | | colLastModifyUser.VisibleIndex = 11; |
| | | // |
| | | // colLastModifyTime |
| | | // |
| | | colLastModifyTime.FieldName = "LastModifyTime"; |
| | | colLastModifyTime.Name = "colLastModifyTime"; |
| | | colLastModifyTime.Visible = true; |
| | | colLastModifyTime.VisibleIndex = 12; |
| | | // |
| | | // colParas |
| | | // |
| | | colParas.FieldName = "Paras"; |
| | | colParas.Name = "colParas"; |
| | | colParas.Visible = true; |
| | | colParas.VisibleIndex = 13; |
| | | // |
| | | // colTagName |
| | | // |
| | | colTagName.FieldName = "TagName"; |
| | | colTagName.Name = "colTagName"; |
| | | colTagName.Visible = true; |
| | | colTagName.VisibleIndex = 14; |
| | | // |
| | | // colSortCode |
| | | // |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 15; |
| | | // |
| | | // EmployeeMgrMainPanel |
| | | // |
| | |
| | | Appearance.Options.UseBackColor = true; |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | Controls.Add(gridControl1); |
| | | Controls.Add(gridControl); |
| | | Controls.Add(ribbonControl1); |
| | | Name = "EmployeeMgrMainPanel"; |
| | | Size = new Size(870, 447); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)repositoryItemSearchControl2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)employeeViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)employeeModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl).EndInit(); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | | } |
| | |
| | | private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl1; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnEdit; |
| | | private DevExpress.XtraBars.BarButtonItem BtnAdd; |
| | | private DevExpress.XtraBars.BarButtonItem BtnDelete; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPage ribbonPage1; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup1; |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup; |
| | | private BindingSource employeeModelBindingSource; |
| | | private BindingSource employeeViewModelBindingSource1; |
| | | private BindingSource flagsBindingSource; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private BindingSource employeeViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colErpCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colPositonName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colFirstName; |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colParas; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colTagName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colSortCode; |
| | | private DevExpress.XtraGrid.GridControl gridControl; |
| | | private DevExpress.XtraEditors.GridLookUpEdit gridLookUpEdit1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridLookUpEdit1View; |
| | | private DevExpress.XtraBars.BarEditItem barEditItem1; |
| | | private DevExpress.XtraBars.BarEditItem barEditItem2; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageCategory ribbonPageCategory1; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemSearchControl repositoryItemSearchControl2; |
| | | private DevExpress.XtraBars.BarButtonItem barButtonItem1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colID; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colProfilePhotoFilePath; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUser; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colEmployeeID; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colLastUser; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colLastTime; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private DevExpress.XtraBars.BarButtonItem barButtonItemDelEmployee; |
| | | } |
| | | } |