private void InitializeComponent() { this.components = (IContainer)new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControl1 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_servicereason = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.gridView1 = new GridView(); this.colidservicereason = new GridColumn(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.colpeople_fio = new GridColumn(); this.repositoryItemButtonEdit1 = new RepositoryItemButtonEdit(); this.colnumpos = new GridColumn(); this.colreasoncode = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.repositoryItemButtonEdit2 = new RepositoryItemButtonEdit(); this.repositoryItemButtonEdit3 = new RepositoryItemButtonEdit(); this.repositoryItemTextEdit2 = new AtRepositoryItemTextEdit(); this.panel2 = new Panel(); this.button4 = new Button(); this.button5 = new Button(); this.panel1.SuspendLayout(); this.gridControl1.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_servicereason.BeginInit(); this.gridView1.BeginInit(); this.repositoryItemButtonEdit1.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemButtonEdit2.BeginInit(); this.repositoryItemButtonEdit3.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.panel2.SuspendLayout(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 460); this.panel1.Name = "panel1"; this.panel1.Size = new Size(655, 33); this.panel1.TabIndex = 4; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(568, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(487, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(406, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; this.gridControl1.DataMember = "servicereason"; this.gridControl1.DataSource = (object)this.ds; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; this.gridControl1.Location = new Point(0, 0); this.gridControl1.MainView = (BaseView)this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[5] { (RepositoryItem) this.repositoryItemTextEdit1, (RepositoryItem) this.repositoryItemButtonEdit1, (RepositoryItem) this.repositoryItemButtonEdit2, (RepositoryItem) this.repositoryItemButtonEdit3, (RepositoryItem) this.repositoryItemTextEdit2 }); this.gridControl1.Size = new Size(655, 427); this.gridControl1.TabIndex = 8; this.gridControl1.ViewCollection.AddRange(new BaseView[1] { (BaseView) this.gridView1 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem) this.toolStripMenuItem1, (ToolStripItem) this.toolStripMenuItem2, (ToolStripItem) this.toolStripSeparator1, (ToolStripItem) this.toolStripMenuItem3 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(154, 76); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(153, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(153, 22); this.toolStripMenuItem2.Text = "Дублировать"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(150, 6); this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Size = new Size(153, 22); this.toolStripMenuItem3.Text = "Удалить"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.ds.DataSetName = "ds"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_servicereason }); this.table_servicereason.Columns.AddRange(new DataColumn[7] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7 }); this.table_servicereason.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idservicereason" }, 1 != 0) }); this.table_servicereason.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_servicereason.TableName = "servicereason"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idservicereason"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "comment"; this.dataColumn4.ColumnName = "idpeople"; this.dataColumn4.DataType = typeof(int); this.dataColumn5.ColumnName = "people_fio"; this.dataColumn6.ColumnName = "numpos"; this.dataColumn6.DataType = typeof(int); this.dataColumn7.ColumnName = "reasoncode"; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[6] { this.colidservicereason, this.colname, this.colcomment, this.colpeople_fio, this.colnumpos, this.colreasoncode }); this.gridView1.GridControl = this.gridControl1; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsNavigation.AutoFocusNewRow = true; this.gridView1.OptionsSelection.MultiSelect = true; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowIndicator = false; this.colidservicereason.Caption = "#"; this.colidservicereason.FieldName = "idservicereason"; this.colidservicereason.Name = "colidservicereason"; this.colidservicereason.OptionsColumn.AllowEdit = false; this.colidservicereason.Visible = true; this.colidservicereason.VisibleIndex = 5; this.colidservicereason.Width = 25; this.colname.Caption = "Наименование причины"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 2; this.colname.Width = 240; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 3; this.colcomment.Width = 161; this.colpeople_fio.Caption = "Ответственное лицо"; this.colpeople_fio.ColumnEdit = (RepositoryItem)this.repositoryItemButtonEdit1; this.colpeople_fio.FieldName = "people_fio"; this.colpeople_fio.Name = "colpeople_fio"; this.colpeople_fio.Visible = true; this.colpeople_fio.VisibleIndex = 4; this.colpeople_fio.Width = 302; this.repositoryItemButtonEdit1.AutoHeight = false; this.repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[1] { new EditorButton() }); this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; this.colnumpos.Caption = "№пп"; this.colnumpos.FieldName = "numpos"; this.colnumpos.Name = "colnumpos"; this.colnumpos.Visible = true; this.colnumpos.VisibleIndex = 0; this.colnumpos.Width = 51; this.colreasoncode.Caption = "Код причины"; this.colreasoncode.FieldName = "reasoncode"; this.colreasoncode.Name = "colreasoncode"; this.colreasoncode.Visible = true; this.colreasoncode.VisibleIndex = 1; this.colreasoncode.Width = 181; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "d"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "d"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Mask.EditMask = "d"; this.repositoryItemTextEdit1.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit1.Mask.UseMaskAsDisplayFormat = true; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.repositoryItemButtonEdit2.AutoHeight = false; this.repositoryItemButtonEdit2.Buttons.AddRange(new EditorButton[1] { new EditorButton() }); this.repositoryItemButtonEdit2.Name = "repositoryItemButtonEdit2"; this.repositoryItemButtonEdit3.AutoHeight = false; this.repositoryItemButtonEdit3.Buttons.AddRange(new EditorButton[1] { new EditorButton() }); this.repositoryItemButtonEdit3.Name = "repositoryItemButtonEdit3"; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit2.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit2.EditFormat.FormatString = "n2"; this.repositoryItemTextEdit2.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.panel2.Controls.Add((Control)this.button4); this.panel2.Controls.Add((Control)this.button5); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(0, 427); this.panel2.Name = "panel2"; this.panel2.Size = new Size(655, 33); this.panel2.TabIndex = 9; this.panel2.Visible = false; this.button4.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button4.DialogResult = DialogResult.Cancel; this.button4.FlatStyle = FlatStyle.Flat; this.button4.Location = new Point(568, 5); this.button4.Name = "button4"; this.button4.Size = new Size(75, 23); this.button4.TabIndex = 2; this.button4.Text = "Отменить"; this.button5.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button5.DialogResult = DialogResult.OK; this.button5.FlatStyle = FlatStyle.Flat; this.button5.Location = new Point(487, 5); this.button5.Name = "button5"; this.button5.Size = new Size(75, 23); this.button5.TabIndex = 1; this.button5.Text = "Выбрать"; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControl1); this.Controls.Add((Control)this.panel2); this.Controls.Add((Control)this.panel1); this.Name = "ServiceReasonForm"; this.Size = new Size(655, 493); this.Text = "Причины сервиса"; this.panel1.ResumeLayout(false); this.gridControl1.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_servicereason.EndInit(); this.gridView1.EndInit(); this.repositoryItemButtonEdit1.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemButtonEdit2.EndInit(); this.repositoryItemButtonEdit3.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SelectVarsForm)); this.panel1 = new Panel(); this.cmdCancel = new Button(); this.cmdRefresh = new Button(); this.cmdSelect = new Button(); this.gridControlSetting = new GridControl(); this.ds = new DataSet(); this.table_settinggroup = new DataTable(); this.dataColumn10 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.dataColumn15 = new DataColumn(); this.table_setting = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn16 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn17 = new DataColumn(); this.dataColumn18 = new DataColumn(); this.dataColumn19 = new DataColumn(); this.gridViewSetting = new GridView(); this.colidsetting = new GridColumn(); this.colname = new GridColumn(); this.colintvalue = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.colintvalue2 = new GridColumn(); this.colstrvalue = new GridColumn(); this.coltxtvalue = new GridColumn(); this.colcomment = new GridColumn(); this.colgroupname = new GridColumn(); this.coldtvalue = new GridColumn(); this.repositoryItemDateEdit1 = new RepositoryItemDateEdit(); this.repositoryItemMemoExEdit1 = new RepositoryItemMemoExEdit(); this.repositoryItemImageEdit1 = new RepositoryItemImageEdit(); this.treeList1 = new TreeList(); this.treeListColumn1 = new TreeListColumn(); this.imageList1 = new ImageList(this.components); this.splitterControl1 = new SplitterControl(); this.panel1.SuspendLayout(); this.gridControlSetting.BeginInit(); this.ds.BeginInit(); this.table_settinggroup.BeginInit(); this.table_setting.BeginInit(); this.gridViewSetting.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemDateEdit1.BeginInit(); this.repositoryItemDateEdit1.VistaTimeProperties.BeginInit(); this.repositoryItemMemoExEdit1.BeginInit(); this.repositoryItemImageEdit1.BeginInit(); this.treeList1.BeginInit(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.cmdCancel); this.panel1.Controls.Add((Control)this.cmdRefresh); this.panel1.Controls.Add((Control)this.cmdSelect); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 333); this.panel1.Name = "panel1"; this.panel1.Size = new Size(705, 33); this.panel1.TabIndex = 2; this.cmdCancel.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.cmdCancel.FlatStyle = FlatStyle.Flat; this.cmdCancel.Location = new Point(618, 5); this.cmdCancel.Name = "cmdCancel"; this.cmdCancel.Size = new Size(75, 23); this.cmdCancel.TabIndex = 2; this.cmdCancel.Text = "Закрыть"; this.cmdCancel.Click += new EventHandler(this.cmdCancel_Click); this.cmdRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.cmdRefresh.FlatStyle = FlatStyle.Flat; this.cmdRefresh.Location = new Point(537, 5); this.cmdRefresh.Name = "cmdRefresh"; this.cmdRefresh.Size = new Size(75, 23); this.cmdRefresh.TabIndex = 1; this.cmdRefresh.Text = "Обновить"; this.cmdRefresh.Click += new EventHandler(this.cmdRefresh_Click); this.cmdSelect.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.cmdSelect.FlatStyle = FlatStyle.Flat; this.cmdSelect.Location = new Point(456, 5); this.cmdSelect.Name = "cmdSelect"; this.cmdSelect.Size = new Size(75, 23); this.cmdSelect.TabIndex = 0; this.cmdSelect.Text = "Выбрать"; this.cmdSelect.Click += new EventHandler(this.cmdSelect_Click); this.gridControlSetting.DataMember = "settinggroup.FK_setting_settinggroup"; this.gridControlSetting.DataSource = (object)this.ds; this.gridControlSetting.Dock = DockStyle.Fill; this.gridControlSetting.EmbeddedNavigator.Name = ""; this.gridControlSetting.Location = new Point(246, 0); this.gridControlSetting.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControlSetting.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControlSetting.MainView = (BaseView)this.gridViewSetting; this.gridControlSetting.Name = "gridControlSetting"; this.gridControlSetting.RepositoryItems.AddRange(new RepositoryItem[4] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemMemoExEdit1, (RepositoryItem)this.repositoryItemImageEdit1, (RepositoryItem)this.repositoryItemDateEdit1 }); this.gridControlSetting.Size = new Size(459, 333); this.gridControlSetting.TabIndex = 4; this.gridControlSetting.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridViewSetting }); this.ds.DataSetName = "ds_setting"; this.ds.EnforceConstraints = false; this.ds.Relations.AddRange(new DataRelation[1] { new DataRelation("FK_setting_settinggroup", "settinggroup", "setting", new string[1] { "idsettinggroup" }, new string[1] { "idsettinggroup" }, 0 != 0) }); this.ds.Tables.AddRange(new DataTable[2] { this.table_settinggroup, this.table_setting }); this.table_settinggroup.Columns.AddRange(new DataColumn[6] { this.dataColumn10, this.dataColumn11, this.dataColumn12, this.dataColumn13, this.dataColumn14, this.dataColumn15 }); this.table_settinggroup.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idsettinggroup" }, 1 != 0) }); this.table_settinggroup.PrimaryKey = new DataColumn[1] { this.dataColumn10 }; this.table_settinggroup.TableName = "settinggroup"; this.dataColumn10.AllowDBNull = false; this.dataColumn10.ColumnName = "idsettinggroup"; this.dataColumn10.DataType = typeof(int); this.dataColumn11.ColumnName = "name"; this.dataColumn12.ColumnName = "comment"; this.dataColumn13.ColumnName = "isactive"; this.dataColumn13.DataType = typeof(bool); this.dataColumn14.ColumnName = "parentid"; this.dataColumn14.DataType = typeof(int); this.dataColumn15.ColumnName = "_image"; this.dataColumn15.DataType = typeof(int); this.dataColumn15.DefaultValue = (object)0; this.table_setting.Columns.AddRange(new DataColumn[13] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8, this.dataColumn16, this.dataColumn9, this.dataColumn17, this.dataColumn18, this.dataColumn19 }); this.table_setting.Constraints.AddRange(new Constraint[2] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idsetting" }, 1 != 0), (Constraint) new ForeignKeyConstraint("Relation1", "settinggroup", new string[1] { "idsettinggroup" }, new string[1] { "idsettinggroup" }, AcceptRejectRule.None, Rule.Cascade, Rule.Cascade) }); this.table_setting.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_setting.TableName = "setting"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idsetting"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "intvalue"; this.dataColumn3.DataType = typeof(double); this.dataColumn4.ColumnName = "strvalue"; this.dataColumn5.ColumnName = "comment"; this.dataColumn6.ColumnName = "txtvalue"; this.dataColumn7.ColumnName = "blbvalue"; this.dataColumn7.DataType = typeof(byte[]); this.dataColumn8.ColumnName = "groupname"; this.dataColumn16.ColumnName = "idsettinggroup"; this.dataColumn16.DataType = typeof(int); this.dataColumn9.ColumnName = "dtvalue"; this.dataColumn9.DataType = typeof(DateTime); this.dataColumn17.ColumnName = "addorder"; this.dataColumn17.DataType = typeof(bool); this.dataColumn18.ColumnName = "addmodel"; this.dataColumn18.DataType = typeof(bool); this.dataColumn19.ColumnName = "intvalue2"; this.dataColumn19.DataType = typeof(double); this.gridViewSetting.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.FocusedRow.ForeColor = Color.Black; this.gridViewSetting.Appearance.FocusedRow.Options.UseBackColor = true; this.gridViewSetting.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridViewSetting.Appearance.FocusedRow.Options.UseForeColor = true; this.gridViewSetting.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewSetting.Appearance.GroupPanel.Options.UseBackColor = true; this.gridViewSetting.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewSetting.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewSetting.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewSetting.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridViewSetting.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridViewSetting.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridViewSetting.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridViewSetting.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewSetting.Appearance.SelectedRow.ForeColor = Color.Black; this.gridViewSetting.Appearance.SelectedRow.Options.UseBackColor = true; this.gridViewSetting.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridViewSetting.Appearance.SelectedRow.Options.UseForeColor = true; this.gridViewSetting.BorderStyle = BorderStyles.Simple; this.gridViewSetting.Columns.AddRange(new GridColumn[9] { this.colidsetting, this.colname, this.colintvalue, this.colintvalue2, this.colstrvalue, this.coltxtvalue, this.colcomment, this.colgroupname, this.coldtvalue }); this.gridViewSetting.GridControl = this.gridControlSetting; this.gridViewSetting.GroupPanelText = "Панель группировки"; this.gridViewSetting.Name = "gridViewSetting"; this.gridViewSetting.OptionsBehavior.AllowIncrementalSearch = true; this.gridViewSetting.OptionsBehavior.Editable = false; this.gridViewSetting.OptionsCustomization.AllowFilter = false; this.gridViewSetting.OptionsDetail.ShowDetailTabs = false; this.gridViewSetting.OptionsSelection.MultiSelect = true; this.gridViewSetting.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridViewSetting.OptionsView.ShowIndicator = false; this.colidsetting.Caption = "#"; this.colidsetting.FieldName = "idsetting"; this.colidsetting.Name = "colidsetting"; this.colidsetting.OptionsColumn.AllowEdit = false; this.colidsetting.Visible = true; this.colidsetting.VisibleIndex = 0; this.colidsetting.Width = 31; this.colname.Caption = "Имя"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 1; this.colname.Width = 36; this.colintvalue.Caption = "Число 1"; this.colintvalue.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colintvalue.FieldName = "intvalue"; this.colintvalue.Name = "colintvalue"; this.colintvalue.Visible = true; this.colintvalue.VisibleIndex = 2; this.colintvalue.Width = 54; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n6"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n6"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Mask.EditMask = "n6"; this.repositoryItemTextEdit1.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.colintvalue2.Caption = "Число 2"; this.colintvalue2.FieldName = "intvalue2"; this.colintvalue2.Name = "colintvalue2"; this.colintvalue2.Visible = true; this.colintvalue2.VisibleIndex = 3; this.colintvalue2.Width = 44; this.colstrvalue.Caption = "Строка"; this.colstrvalue.FieldName = "strvalue"; this.colstrvalue.Name = "colstrvalue"; this.colstrvalue.Visible = true; this.colstrvalue.VisibleIndex = 4; this.colstrvalue.Width = 31; this.coltxtvalue.Caption = "Текст"; this.coltxtvalue.FieldName = "txtvalue"; this.coltxtvalue.Name = "coltxtvalue"; this.coltxtvalue.Visible = true; this.coltxtvalue.VisibleIndex = 5; this.coltxtvalue.Width = 31; this.colcomment.Caption = "Описание"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 6; this.colcomment.Width = 31; this.colgroupname.Caption = "Группа"; this.colgroupname.FieldName = "groupname"; this.colgroupname.Name = "colgroupname"; this.colgroupname.Visible = true; this.colgroupname.VisibleIndex = 7; this.colgroupname.Width = 31; this.coldtvalue.Caption = "Дата"; this.coldtvalue.ColumnEdit = (RepositoryItem)this.repositoryItemDateEdit1; this.coldtvalue.FieldName = "dtvalue"; this.coldtvalue.Name = "coldtvalue"; this.coldtvalue.Visible = true; this.coldtvalue.VisibleIndex = 8; this.coldtvalue.Width = 31; this.repositoryItemDateEdit1.AutoHeight = false; this.repositoryItemDateEdit1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemDateEdit1.Name = "repositoryItemDateEdit1"; this.repositoryItemDateEdit1.VistaTimeProperties.Buttons.AddRange(new EditorButton[1] { new EditorButton() }); this.repositoryItemMemoExEdit1.AutoHeight = false; this.repositoryItemMemoExEdit1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemMemoExEdit1.Name = "repositoryItemMemoExEdit1"; this.repositoryItemImageEdit1.AutoHeight = false; this.repositoryItemImageEdit1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemImageEdit1.Name = "repositoryItemImageEdit1"; this.treeList1.Appearance.FocusedCell.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.FocusedCell.ForeColor = Color.Black; this.treeList1.Appearance.FocusedCell.Options.UseBackColor = true; this.treeList1.Appearance.FocusedCell.Options.UseForeColor = true; this.treeList1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.FocusedRow.ForeColor = Color.Black; this.treeList1.Appearance.FocusedRow.Options.UseBackColor = true; this.treeList1.Appearance.FocusedRow.Options.UseForeColor = true; this.treeList1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.treeList1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.treeList1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.treeList1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.SelectedRow.ForeColor = Color.Black; this.treeList1.Appearance.SelectedRow.Options.UseBackColor = true; this.treeList1.Appearance.SelectedRow.Options.UseForeColor = true; this.treeList1.BorderStyle = BorderStyles.Simple; this.treeList1.Columns.AddRange(new TreeListColumn[1] { this.treeListColumn1 }); this.treeList1.DataMember = "settinggroup"; this.treeList1.DataSource = (object)this.ds; this.treeList1.Dock = DockStyle.Left; this.treeList1.HorzScrollVisibility = DevExpress.XtraTreeList.ScrollVisibility.Never; this.treeList1.ImageIndexFieldName = "_image"; this.treeList1.KeyFieldName = "idsettinggroup"; this.treeList1.Location = new Point(0, 0); this.treeList1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.treeList1.LookAndFeel.UseDefaultLookAndFeel = false; this.treeList1.Name = "treeList1"; this.treeList1.OptionsView.ShowHorzLines = false; this.treeList1.OptionsView.ShowIndicator = false; this.treeList1.OptionsView.ShowVertLines = false; this.treeList1.ParentFieldName = "parentid"; this.treeList1.SelectImageList = (object)this.imageList1; this.treeList1.Size = new Size(240, 333); this.treeList1.TabIndex = 5; this.treeListColumn1.Caption = "Группы переменных"; this.treeListColumn1.FieldName = "name"; this.treeListColumn1.MinWidth = 28; this.treeListColumn1.Name = "treeListColumn1"; this.treeListColumn1.OptionsColumn.AllowEdit = false; this.treeListColumn1.Visible = true; this.treeListColumn1.VisibleIndex = 0; this.treeListColumn1.Width = 167; this.imageList1.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream"); this.imageList1.TransparentColor = Color.Magenta; this.imageList1.Images.SetKeyName(0, "Folder.ico"); this.splitterControl1.Location = new Point(240, 0); this.splitterControl1.Name = "splitterControl1"; this.splitterControl1.Size = new Size(6, 333); this.splitterControl1.TabIndex = 6; this.splitterControl1.TabStop = false; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControlSetting); this.Controls.Add((Control)this.splitterControl1); this.Controls.Add((Control)this.treeList1); this.Controls.Add((Control)this.panel1); this.Name = "SelectVarsForm"; this.Size = new Size(705, 366); this.Text = "Переменные"; this.panel1.ResumeLayout(false); this.gridControlSetting.EndInit(); this.ds.EndInit(); this.table_settinggroup.EndInit(); this.table_setting.EndInit(); this.gridViewSetting.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemDateEdit1.VistaTimeProperties.EndInit(); this.repositoryItemDateEdit1.EndInit(); this.repositoryItemMemoExEdit1.EndInit(); this.repositoryItemImageEdit1.EndInit(); this.treeList1.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControlDocOper = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_docoper = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn10 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.dataColumn15 = new DataColumn(); this.dataColumn16 = new DataColumn(); this.dataColumn21 = new DataColumn(); this.dataColumn22 = new DataColumn(); this.table_docappearance = new DataTable(); this.dataColumn17 = new DataColumn(); this.dataColumn18 = new DataColumn(); this.dataColumn19 = new DataColumn(); this.dataColumn20 = new DataColumn(); this.gridViewDocOper = new GridView(); this.colname = new GridColumn(); this.colprefix = new GridColumn(); this.colsuffix = new GridColumn(); this.colnumpos = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.colcomment = new GridColumn(); this.coldocgroup = new GridColumn(); this.coldoctype = new GridColumn(); this.repositoryItemComboBox1 = new RepositoryItemComboBox(); this.coltyp = new GridColumn(); this.colagreenumpos = new GridColumn(); this.repositoryItemTextEdit2 = new AtRepositoryItemTextEdit(); this.colagreeprefix = new GridColumn(); this.colagreesuffix = new GridColumn(); this.colstoretyp_name = new GridColumn(); this.repositoryItemComboBox2 = new RepositoryItemComboBox(); this.coladdstr = new GridColumn(); this.coladdint = new GridColumn(); this.colindealerbase = new GridColumn(); this.panel2 = new Panel(); this.button4 = new Button(); this.button5 = new Button(); this.gridColumn1 = new GridColumn(); this.panel1.SuspendLayout(); this.gridControlDocOper.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_docoper.BeginInit(); this.table_docappearance.BeginInit(); this.gridViewDocOper.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemComboBox1.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.repositoryItemComboBox2.BeginInit(); this.panel2.SuspendLayout(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 402); this.panel1.Name = "panel1"; this.panel1.Size = new Size(821, 33); this.panel1.TabIndex = 0; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(734, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(653, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(572, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControlDocOper.ContextMenuStrip = this.contextMenuStrip1; this.gridControlDocOper.DataMember = "docoper"; this.gridControlDocOper.DataSource = (object)this.ds; this.gridControlDocOper.Dock = DockStyle.Fill; this.gridControlDocOper.EmbeddedNavigator.Name = ""; this.gridControlDocOper.Location = new Point(0, 0); this.gridControlDocOper.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControlDocOper.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControlDocOper.MainView = (BaseView)this.gridViewDocOper; this.gridControlDocOper.Name = "gridControlDocOper"; this.gridControlDocOper.RepositoryItems.AddRange(new RepositoryItem[4] { (RepositoryItem)this.repositoryItemComboBox1, (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemTextEdit2, (RepositoryItem)this.repositoryItemComboBox2 }); this.gridControlDocOper.Size = new Size(821, 369); this.gridControlDocOper.TabIndex = 1; this.gridControlDocOper.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridViewDocOper }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem3 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(220, 76); this.toolStripMenuItem1.ImageTransparentColor = Color.Magenta; this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.ShortcutKeys = Keys.Insert | Keys.Control; this.toolStripMenuItem1.Size = new Size(219, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.ImageTransparentColor = Color.Magenta; this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.ShortcutKeys = Keys.Insert | Keys.Shift | Keys.Control; this.toolStripMenuItem2.Size = new Size(219, 22); this.toolStripMenuItem2.Text = "Дублировать"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(216, 6); this.toolStripMenuItem3.ImageTransparentColor = Color.Magenta; this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.ShortcutKeys = Keys.Delete | Keys.Control; this.toolStripMenuItem3.Size = new Size(219, 22); this.toolStripMenuItem3.Text = "Удалить"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.ds.DataSetName = "ds_docoper"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[2] { this.table_docoper, this.table_docappearance }); this.table_docoper.Columns.AddRange(new DataColumn[18] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8, this.dataColumn9, this.dataColumn10, this.dataColumn11, this.dataColumn12, this.dataColumn13, this.dataColumn14, this.dataColumn15, this.dataColumn16, this.dataColumn21, this.dataColumn22 }); this.table_docoper.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "iddocoper" }, 1 != 0) }); this.table_docoper.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_docoper.TableName = "docoper"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "iddocoper"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "prefix"; this.dataColumn4.ColumnName = "suffix"; this.dataColumn5.ColumnName = "numpos"; this.dataColumn5.DataType = typeof(int); this.dataColumn6.ColumnName = "comment"; this.dataColumn7.ColumnName = "docgroup"; this.dataColumn8.ColumnName = "doctype"; this.dataColumn8.Prefix = "local"; this.dataColumn9.ColumnName = "typ"; this.dataColumn9.DataType = typeof(int); this.dataColumn10.ColumnName = "agreenumpos"; this.dataColumn10.DataType = typeof(int); this.dataColumn11.ColumnName = "agreeprefix"; this.dataColumn12.ColumnName = "agreesuffix"; this.dataColumn13.ColumnName = "storetyp_name"; this.dataColumn14.ColumnName = "storetyp"; this.dataColumn14.DataType = typeof(short); this.dataColumn15.ColumnName = "addstr"; this.dataColumn16.ColumnName = "addint"; this.dataColumn16.DataType = typeof(double); this.dataColumn21.ColumnName = "iddocappearance"; this.dataColumn21.DataType = typeof(int); this.dataColumn22.ColumnName = "indealerbase"; this.dataColumn22.DataType = typeof(bool); this.table_docappearance.Columns.AddRange(new DataColumn[4] { this.dataColumn17, this.dataColumn18, this.dataColumn19, this.dataColumn20 }); this.table_docappearance.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "iddocappearance" }, 1 != 0) }); this.table_docappearance.PrimaryKey = new DataColumn[1] { this.dataColumn17 }; this.table_docappearance.TableName = "docappearance"; this.dataColumn17.AllowDBNull = false; this.dataColumn17.ColumnName = "iddocappearance"; this.dataColumn17.DataType = typeof(short); this.dataColumn18.ColumnName = "name"; this.dataColumn19.ColumnName = "tablename"; this.dataColumn20.ColumnName = "comment"; this.gridViewDocOper.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.FocusedRow.ForeColor = Color.Black; this.gridViewDocOper.Appearance.FocusedRow.Options.UseBackColor = true; this.gridViewDocOper.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridViewDocOper.Appearance.FocusedRow.Options.UseForeColor = true; this.gridViewDocOper.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewDocOper.Appearance.GroupPanel.Options.UseBackColor = true; this.gridViewDocOper.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewDocOper.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewDocOper.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewDocOper.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridViewDocOper.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridViewDocOper.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridViewDocOper.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridViewDocOper.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewDocOper.Appearance.SelectedRow.ForeColor = Color.Black; this.gridViewDocOper.Appearance.SelectedRow.Options.UseBackColor = true; this.gridViewDocOper.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridViewDocOper.Appearance.SelectedRow.Options.UseForeColor = true; this.gridViewDocOper.BorderStyle = BorderStyles.Simple; this.gridViewDocOper.Columns.AddRange(new GridColumn[16] { this.gridColumn1, this.colname, this.colprefix, this.colsuffix, this.colnumpos, this.colcomment, this.coldocgroup, this.coldoctype, this.coltyp, this.colagreenumpos, this.colagreeprefix, this.colagreesuffix, this.colstoretyp_name, this.coladdstr, this.coladdint, this.colindealerbase }); this.gridViewDocOper.GridControl = this.gridControlDocOper; this.gridViewDocOper.GroupPanelText = "Панель группировки"; this.gridViewDocOper.Name = "gridViewDocOper"; this.gridViewDocOper.OptionsCustomization.AllowFilter = false; this.gridViewDocOper.OptionsDetail.ShowDetailTabs = false; this.gridViewDocOper.OptionsNavigation.AutoFocusNewRow = true; this.gridViewDocOper.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridViewDocOper.OptionsView.ShowIndicator = false; this.colname.Caption = "Наименование документа"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 4; this.colname.Width = 186; this.colprefix.Caption = "Префикс"; this.colprefix.FieldName = "prefix"; this.colprefix.Name = "colprefix"; this.colprefix.Visible = true; this.colprefix.VisibleIndex = 5; this.colprefix.Width = 69; this.colsuffix.Caption = "Суффикс"; this.colsuffix.FieldName = "suffix"; this.colsuffix.Name = "colsuffix"; this.colsuffix.Visible = true; this.colsuffix.VisibleIndex = 7; this.colsuffix.Width = 69; this.colnumpos.Caption = "№пп"; this.colnumpos.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colnumpos.FieldName = "numpos"; this.colnumpos.Name = "colnumpos"; this.colnumpos.Visible = true; this.colnumpos.VisibleIndex = 6; this.colnumpos.Width = 51; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n0"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n0"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 11; this.coldocgroup.Caption = "Группа"; this.coldocgroup.FieldName = "docgroup"; this.coldocgroup.Name = "coldocgroup"; this.coldocgroup.Visible = true; this.coldocgroup.VisibleIndex = 3; this.coldoctype.Caption = "Тип документа"; this.coldoctype.ColumnEdit = (RepositoryItem)this.repositoryItemComboBox1; this.coldoctype.FieldName = "doctype"; this.coldoctype.Name = "coldoctype"; this.coldoctype.Visible = true; this.coldoctype.VisibleIndex = 1; this.coldoctype.Width = 66; this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; this.repositoryItemComboBox1.TextEditStyle = TextEditStyles.DisableTextEditor; this.coltyp.Caption = "typ"; this.coltyp.FieldName = "typ"; this.coltyp.Name = "coltyp"; this.colagreenumpos.Caption = "№пп договора"; this.colagreenumpos.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit2; this.colagreenumpos.FieldName = "agreenumpos"; this.colagreenumpos.Name = "colagreenumpos"; this.colagreenumpos.Visible = true; this.colagreenumpos.VisibleIndex = 9; this.colagreenumpos.Width = 55; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.DisplayFormat.FormatString = "n0"; this.repositoryItemTextEdit2.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit2.EditFormat.FormatString = "n0"; this.repositoryItemTextEdit2.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.colagreeprefix.Caption = "Префикс договора"; this.colagreeprefix.FieldName = "agreeprefix"; this.colagreeprefix.Name = "colagreeprefix"; this.colagreeprefix.Visible = true; this.colagreeprefix.VisibleIndex = 8; this.colagreesuffix.Caption = "Суффикс договора"; this.colagreesuffix.FieldName = "agreesuffix"; this.colagreesuffix.Name = "colagreesuffix"; this.colagreesuffix.Visible = true; this.colagreesuffix.VisibleIndex = 10; this.colstoretyp_name.Caption = "Тип складской"; this.colstoretyp_name.ColumnEdit = (RepositoryItem)this.repositoryItemComboBox2; this.colstoretyp_name.FieldName = "storetyp_name"; this.colstoretyp_name.Name = "colstoretyp_name"; this.colstoretyp_name.Visible = true; this.colstoretyp_name.VisibleIndex = 2; this.colstoretyp_name.Width = 55; this.repositoryItemComboBox2.AutoHeight = false; this.repositoryItemComboBox2.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBox2.Name = "repositoryItemComboBox2"; this.repositoryItemComboBox2.TextEditStyle = TextEditStyles.DisableTextEditor; this.coladdstr.Caption = "Доп. строка"; this.coladdstr.FieldName = "addstr"; this.coladdstr.Name = "coladdstr"; this.coladdstr.Visible = true; this.coladdstr.VisibleIndex = 12; this.coladdint.Caption = "Доп. число"; this.coladdint.FieldName = "addint"; this.coladdint.Name = "coladdint"; this.coladdint.Visible = true; this.coladdint.VisibleIndex = 13; this.colindealerbase.Caption = "Дилеру"; this.colindealerbase.FieldName = "indealerbase"; this.colindealerbase.Name = "colindealerbase"; this.colindealerbase.Visible = true; this.colindealerbase.VisibleIndex = 14; this.panel2.Controls.Add((Control)this.button4); this.panel2.Controls.Add((Control)this.button5); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(0, 369); this.panel2.Name = "panel2"; this.panel2.Size = new Size(821, 33); this.panel2.TabIndex = 2; this.panel2.Visible = false; this.button4.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button4.DialogResult = DialogResult.Cancel; this.button4.FlatStyle = FlatStyle.Flat; this.button4.Location = new Point(734, 5); this.button4.Name = "button4"; this.button4.Size = new Size(75, 23); this.button4.TabIndex = 2; this.button4.Text = "Отмена"; this.button5.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button5.DialogResult = DialogResult.OK; this.button5.FlatStyle = FlatStyle.Flat; this.button5.Location = new Point(653, 5); this.button5.Name = "button5"; this.button5.Size = new Size(75, 23); this.button5.TabIndex = 1; this.button5.Text = "Выбрать"; this.gridColumn1.Caption = "#"; this.gridColumn1.FieldName = "iddocoper"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControlDocOper); this.Controls.Add((Control)this.panel2); this.Controls.Add((Control)this.panel1); this.Name = "DocOperForm"; this.Size = new Size(821, 435); this.Text = "Типы документов"; this.panel1.ResumeLayout(false); this.gridControlDocOper.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_docoper.EndInit(); this.table_docappearance.EndInit(); this.gridViewDocOper.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemComboBox1.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.repositoryItemComboBox2.EndInit(); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.cmdUpdatePrice = new Button(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControl1 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_goodpricegroup = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.gridView1 = new GridView(); this.colidgoodpricegroup = new GridColumn(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.colprice1 = new GridColumn(); this.repositoryItemCalcEdit1 = new RepositoryItemCalcEdit(); this.colprice2 = new GridColumn(); this.repositoryItemCalcEdit2 = new RepositoryItemCalcEdit(); this.col_s = new GridColumn(); this.colprice1toprice2 = new GridColumn(); this.repositoryItemCalcEdit3 = new RepositoryItemCalcEdit(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.panel2 = new Panel(); this.button4 = new Button(); this.button5 = new Button(); this.panel1.SuspendLayout(); this.gridControl1.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_goodpricegroup.BeginInit(); this.gridView1.BeginInit(); this.repositoryItemCalcEdit1.BeginInit(); this.repositoryItemCalcEdit2.BeginInit(); this.repositoryItemCalcEdit3.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.panel2.SuspendLayout(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.cmdUpdatePrice); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 395); this.panel1.Name = "panel1"; this.panel1.Size = new Size(876, 33); this.panel1.TabIndex = 3; this.cmdUpdatePrice.FlatStyle = FlatStyle.Flat; this.cmdUpdatePrice.Location = new Point(12, 5); this.cmdUpdatePrice.Name = "cmdUpdatePrice"; this.cmdUpdatePrice.Size = new Size(118, 23); this.cmdUpdatePrice.TabIndex = 3; this.cmdUpdatePrice.Text = "Обновить цены"; this.cmdUpdatePrice.Click += new EventHandler(this.cmdUpdatePrice_Click); this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(789, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(708, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(627, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; this.gridControl1.DataMember = "goodpricegroup"; this.gridControl1.DataSource = (object)this.ds; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; this.gridControl1.Location = new Point(0, 0); this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.MainView = (BaseView)this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[4] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemCalcEdit1, (RepositoryItem)this.repositoryItemCalcEdit2, (RepositoryItem)this.repositoryItemCalcEdit3 }); this.gridControl1.Size = new Size(876, 362); this.gridControl1.TabIndex = 4; this.gridControl1.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridView1 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[2] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(125, 48); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(124, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(124, 22); this.toolStripMenuItem2.Text = "Удалить"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.ds.DataSetName = "ds"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_goodpricegroup }); this.table_goodpricegroup.Columns.AddRange(new DataColumn[7] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7 }); this.table_goodpricegroup.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodpricegroup" }, 1 != 0) }); this.table_goodpricegroup.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_goodpricegroup.TableName = "goodpricegroup"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idgoodpricegroup"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "comment"; this.dataColumn4.ColumnName = "price1"; this.dataColumn4.DataType = typeof(double); this.dataColumn5.ColumnName = "price2"; this.dataColumn5.DataType = typeof(double); this.dataColumn6.ColumnName = "_s"; this.dataColumn6.DataType = typeof(bool); this.dataColumn6.DefaultValue = (object)false; this.dataColumn7.ColumnName = "price1toprice2"; this.dataColumn7.DataType = typeof(double); this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[7] { this.colidgoodpricegroup, this.colname, this.colcomment, this.colprice1, this.colprice2, this.col_s, this.colprice1toprice2 }); this.gridView1.GridControl = this.gridControl1; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.OptionsSelection.MultiSelect = true; this.gridView1.OptionsView.ShowAutoFilterRow = true; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowIndicator = false; this.colidgoodpricegroup.Caption = "#"; this.colidgoodpricegroup.FieldName = "idgoodpricegroup"; this.colidgoodpricegroup.Name = "colidgoodpricegroup"; this.colidgoodpricegroup.OptionsColumn.AllowEdit = false; this.colidgoodpricegroup.Visible = true; this.colidgoodpricegroup.VisibleIndex = 6; this.colidgoodpricegroup.Width = 51; this.colname.Caption = "Наименование группы"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 1; this.colname.Width = 203; this.colcomment.Caption = "Описание"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 5; this.colcomment.Width = 383; this.colprice1.Caption = "Коэф. прих. цены"; this.colprice1.ColumnEdit = (RepositoryItem)this.repositoryItemCalcEdit1; this.colprice1.FieldName = "price1"; this.colprice1.Name = "colprice1"; this.colprice1.Visible = true; this.colprice1.VisibleIndex = 3; this.colprice1.Width = 105; this.repositoryItemCalcEdit1.AutoHeight = false; this.repositoryItemCalcEdit1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemCalcEdit1.Name = "repositoryItemCalcEdit1"; this.colprice2.Caption = "Коэф. расх. цены"; this.colprice2.ColumnEdit = (RepositoryItem)this.repositoryItemCalcEdit2; this.colprice2.FieldName = "price2"; this.colprice2.Name = "colprice2"; this.colprice2.Visible = true; this.colprice2.VisibleIndex = 4; this.colprice2.Width = 102; this.repositoryItemCalcEdit2.AutoHeight = false; this.repositoryItemCalcEdit2.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemCalcEdit2.Name = "repositoryItemCalcEdit2"; this.col_s.AppearanceHeader.Options.UseTextOptions = true; this.col_s.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center; this.col_s.FieldName = "_s"; this.col_s.Name = "col_s"; this.col_s.Visible = true; this.col_s.VisibleIndex = 0; this.col_s.Width = 25; this.colprice1toprice2.Caption = "Коэф. Ц1-Ц2"; this.colprice1toprice2.ColumnEdit = (RepositoryItem)this.repositoryItemCalcEdit3; this.colprice1toprice2.FieldName = "price1toprice2"; this.colprice1toprice2.Name = "colprice1toprice2"; this.colprice1toprice2.Visible = true; this.colprice1toprice2.VisibleIndex = 2; this.colprice1toprice2.Width = 91; this.repositoryItemCalcEdit3.AutoHeight = false; this.repositoryItemCalcEdit3.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemCalcEdit3.Name = "repositoryItemCalcEdit3"; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n4"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n4"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.panel2.Controls.Add((Control)this.button4); this.panel2.Controls.Add((Control)this.button5); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(0, 362); this.panel2.Name = "panel2"; this.panel2.Size = new Size(876, 33); this.panel2.TabIndex = 6; this.panel2.Visible = false; this.button4.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button4.DialogResult = DialogResult.Cancel; this.button4.FlatStyle = FlatStyle.Flat; this.button4.Location = new Point(789, 5); this.button4.Name = "button4"; this.button4.Size = new Size(75, 23); this.button4.TabIndex = 2; this.button4.Text = "Отменить"; this.button5.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button5.DialogResult = DialogResult.OK; this.button5.FlatStyle = FlatStyle.Flat; this.button5.Location = new Point(708, 5); this.button5.Name = "button5"; this.button5.Size = new Size(75, 23); this.button5.TabIndex = 1; this.button5.Text = "Выбрать"; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControl1); this.Controls.Add((Control)this.panel2); this.Controls.Add((Control)this.panel1); this.Name = "GoodPriceUpdateForm"; this.Size = new Size(876, 428); this.Text = "Группы переоценки"; this.panel1.ResumeLayout(false); this.gridControl1.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_goodpricegroup.EndInit(); this.gridView1.EndInit(); this.repositoryItemCalcEdit1.EndInit(); this.repositoryItemCalcEdit2.EndInit(); this.repositoryItemCalcEdit3.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControl1 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_paymentgroup = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.gridView1 = new GridView(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.panel1.SuspendLayout(); this.gridControl1.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_paymentgroup.BeginInit(); this.gridView1.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 441); this.panel1.Name = "panel1"; this.panel1.Size = new Size(613, 33); this.panel1.TabIndex = 2; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(526, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(445, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(364, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; this.gridControl1.DataMember = "paymentgroup"; this.gridControl1.DataSource = (object)this.ds; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; this.gridControl1.Location = new Point(0, 0); this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.MainView = (BaseView)this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[1] { (RepositoryItem)this.repositoryItemTextEdit1 }); this.gridControl1.Size = new Size(613, 441); this.gridControl1.TabIndex = 6; this.gridControl1.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridView1 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem3 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(231, 76); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.ShortcutKeys = Keys.Insert | Keys.Control; this.toolStripMenuItem1.Size = new Size(230, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.ShortcutKeys = Keys.Insert | Keys.Shift | Keys.Control; this.toolStripMenuItem2.Size = new Size(230, 22); this.toolStripMenuItem2.Text = "Дублировать"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(227, 6); this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.ShortcutKeys = Keys.Delete | Keys.Control; this.toolStripMenuItem3.Size = new Size(230, 22); this.toolStripMenuItem3.Text = "Удалить"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.ds.DataSetName = "ds_paymentgroup"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_paymentgroup }); this.table_paymentgroup.Columns.AddRange(new DataColumn[3] { this.dataColumn1, this.dataColumn2, this.dataColumn3 }); this.table_paymentgroup.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idpaymentgroup" }, 1 != 0) }); this.table_paymentgroup.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_paymentgroup.TableName = "paymentgroup"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idpaymentgroup"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "comment"; this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[2] { this.colname, this.colcomment }); this.gridView1.GridControl = this.gridControl1; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.OptionsNavigation.AutoFocusNewRow = true; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ShowIndicator = false; this.colname.Caption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 0; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 1; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n2"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Mask.EditMask = "n2"; this.repositoryItemTextEdit1.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit1.Mask.UseMaskAsDisplayFormat = true; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControl1); this.Controls.Add((Control)this.panel1); this.Name = "PaymentGroupForm"; this.Size = new Size(613, 474); this.Text = "Виды платежей"; this.panel1.ResumeLayout(false); this.gridControl1.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_paymentgroup.EndInit(); this.gridView1.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControl1 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_goodoptim = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn10 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.dataColumn15 = new DataColumn(); this.dataColumn16 = new DataColumn(); this.dataColumn17 = new DataColumn(); this.dataColumn18 = new DataColumn(); this.dataColumn19 = new DataColumn(); this.dataColumn20 = new DataColumn(); this.dataColumn21 = new DataColumn(); this.typeoptimend = new DataColumn(); this.dopuskoptim = new DataColumn(); this.dataColumn22 = new DataColumn(); this.advBandedGridView1 = new AdvBandedGridView(); this.gridBand1 = new GridBand(); this.colidgoodoptim = new BandedGridColumn(); this.coltyp_name = new BandedGridColumn(); this.repositoryItemComboBox1 = new RepositoryItemComboBox(); this.colname = new BandedGridColumn(); this.colcomment = new BandedGridColumn(); this.colbuffer = new BandedGridColumn(); this.colfreza = new BandedGridColumn(); this.colworklen = new BandedGridColumn(); this.coldrez = new BandedGridColumn(); this.optimtype_name = new BandedGridColumn(); this.repositoryItemComboBox2 = new RepositoryItemComboBox(); this.maxworkrests = new BandedGridColumn(); this.gridBand2 = new GridBand(); this.colwhiplen = new BandedGridColumn(); this.colstep = new BandedGridColumn(); this.coldopuskoptim = new BandedGridColumn(); this.coltypeoptimend = new BandedGridColumn(); this.repositoryItemComboBoxcoltypeoptimend = new RepositoryItemComboBox(); this.gridBand3 = new GridBand(); this.colcanrotate = new BandedGridColumn(); this.repositoryItemCheckEdit1 = new RepositoryItemCheckEdit(); this.coldl = new BandedGridColumn(); this.coldr = new BandedGridColumn(); this.coldt = new BandedGridColumn(); this.coldb = new BandedGridColumn(); this.colmaxrez = new BandedGridColumn(); this.colwidth = new BandedGridColumn(); this.colheight = new BandedGridColumn(); this.coltyperez_name = new BandedGridColumn(); this.cboTyperez_name = new RepositoryItemComboBox(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.panel2 = new Panel(); this.button4 = new Button(); this.button5 = new Button(); this.panel1.SuspendLayout(); this.gridControl1.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_goodoptim.BeginInit(); this.advBandedGridView1.BeginInit(); this.repositoryItemComboBox1.BeginInit(); this.repositoryItemComboBox2.BeginInit(); this.repositoryItemComboBoxcoltypeoptimend.BeginInit(); this.repositoryItemCheckEdit1.BeginInit(); this.cboTyperez_name.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.panel2.SuspendLayout(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 451); this.panel1.Name = "panel1"; this.panel1.Size = new Size(896, 33); this.panel1.TabIndex = 4; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(809, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(728, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(647, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; this.gridControl1.DataMember = "goodoptim"; this.gridControl1.DataSource = (object)this.ds; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; this.gridControl1.Location = new Point(0, 0); this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.MainView = (BaseView)this.advBandedGridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[6] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemComboBox1, (RepositoryItem)this.repositoryItemCheckEdit1, (RepositoryItem)this.cboTyperez_name, (RepositoryItem)this.repositoryItemComboBox2, (RepositoryItem)this.repositoryItemComboBoxcoltypeoptimend }); this.gridControl1.Size = new Size(896, 418); this.gridControl1.TabIndex = 5; this.gridControl1.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.advBandedGridView1 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem3 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(143, 76); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(142, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(142, 22); this.toolStripMenuItem2.Text = "Дублировать"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(139, 6); this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Size = new Size(142, 22); this.toolStripMenuItem3.Text = "Удалить"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.ds.DataSetName = "ds"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_goodoptim }); this.table_goodoptim.Columns.AddRange(new DataColumn[24] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8, this.dataColumn9, this.dataColumn10, this.dataColumn11, this.dataColumn12, this.dataColumn13, this.dataColumn14, this.dataColumn15, this.dataColumn16, this.dataColumn17, this.dataColumn18, this.dataColumn19, this.dataColumn20, this.dataColumn21, this.typeoptimend, this.dopuskoptim, this.dataColumn22 }); this.table_goodoptim.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodoptim" }, 1 != 0) }); this.table_goodoptim.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_goodoptim.TableName = "goodoptim"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idgoodoptim"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "comment"; this.dataColumn4.ColumnName = "whiplen"; this.dataColumn4.DataType = typeof(int); this.dataColumn5.ColumnName = "worklen"; this.dataColumn5.DataType = typeof(int); this.dataColumn6.ColumnName = "step"; this.dataColumn6.DataType = typeof(int); this.dataColumn7.ColumnName = "freza"; this.dataColumn7.DataType = typeof(int); this.dataColumn8.ColumnName = "buffer"; this.dataColumn8.DataType = typeof(int); this.dataColumn9.ColumnName = "dl"; this.dataColumn9.DataType = typeof(int); this.dataColumn10.ColumnName = "dr"; this.dataColumn10.DataType = typeof(int); this.dataColumn11.ColumnName = "dt"; this.dataColumn11.DataType = typeof(int); this.dataColumn12.ColumnName = "db"; this.dataColumn12.DataType = typeof(int); this.dataColumn13.ColumnName = "drez"; this.dataColumn13.DataType = typeof(int); this.dataColumn14.ColumnName = "maxrez"; this.dataColumn14.DataType = typeof(int); this.dataColumn15.ColumnName = "typ"; this.dataColumn15.DataType = typeof(short); this.dataColumn16.ColumnName = "typ_name"; this.dataColumn17.ColumnName = "width"; this.dataColumn17.DataType = typeof(int); this.dataColumn18.ColumnName = "height"; this.dataColumn18.DataType = typeof(int); this.dataColumn19.ColumnName = "canrotate"; this.dataColumn19.DataType = typeof(bool); this.dataColumn20.ColumnName = "typerez"; this.dataColumn20.DataType = typeof(int); this.dataColumn21.ColumnName = "typerez_name"; this.typeoptimend.AllowDBNull = false; this.typeoptimend.ColumnName = "typeoptimend"; this.typeoptimend.DataType = typeof(int); this.typeoptimend.DefaultValue = (object)0; this.dopuskoptim.AllowDBNull = false; this.dopuskoptim.ColumnName = "dopuskoptim"; this.dopuskoptim.DataType = typeof(int); this.dopuskoptim.DefaultValue = (object)0; this.dataColumn22.ColumnName = "typeoptimend_name"; this.dataColumn22.DefaultValue = (object)"На одном хлысте"; this.advBandedGridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.advBandedGridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.advBandedGridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.advBandedGridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.advBandedGridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.advBandedGridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.advBandedGridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.advBandedGridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.advBandedGridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.advBandedGridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.advBandedGridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.advBandedGridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.advBandedGridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.advBandedGridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.advBandedGridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.advBandedGridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.advBandedGridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.advBandedGridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.advBandedGridView1.Bands.AddRange(new GridBand[3] { this.gridBand1, this.gridBand2, this.gridBand3 }); this.advBandedGridView1.BorderStyle = BorderStyles.Simple; this.advBandedGridView1.Columns.AddRange(new BandedGridColumn[23] { this.colidgoodoptim, this.colname, this.colcomment, this.colwhiplen, this.colworklen, this.colstep, this.colfreza, this.colbuffer, this.coldl, this.coldr, this.coldt, this.coldb, this.coldrez, this.colmaxrez, this.coltyp_name, this.colwidth, this.colheight, this.colcanrotate, this.coltyperez_name, this.optimtype_name, this.maxworkrests, this.coltypeoptimend, this.coldopuskoptim }); this.advBandedGridView1.CustomizationFormBounds = new Rectangle(1197, 445, 212, 180); this.advBandedGridView1.GridControl = this.gridControl1; this.advBandedGridView1.GroupPanelText = "Панель группировки"; this.advBandedGridView1.Name = "advBandedGridView1"; this.advBandedGridView1.OptionsCustomization.AllowFilter = false; this.advBandedGridView1.OptionsSelection.MultiSelect = true; this.advBandedGridView1.OptionsView.ShowAutoFilterRow = true; this.advBandedGridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.advBandedGridView1.OptionsView.ShowGroupPanel = false; this.advBandedGridView1.OptionsView.ShowIndicator = false; this.gridBand1.AppearanceHeader.BackColor = Color.White; this.gridBand1.AppearanceHeader.BorderColor = Color.White; this.gridBand1.AppearanceHeader.Options.UseBackColor = true; this.gridBand1.AppearanceHeader.Options.UseBorderColor = true; this.gridBand1.Caption = "Общее"; this.gridBand1.Columns.Add(this.colidgoodoptim); this.gridBand1.Columns.Add(this.coltyp_name); this.gridBand1.Columns.Add(this.colname); this.gridBand1.Columns.Add(this.colcomment); this.gridBand1.Columns.Add(this.colbuffer); this.gridBand1.Columns.Add(this.colfreza); this.gridBand1.Columns.Add(this.colworklen); this.gridBand1.Columns.Add(this.coldrez); this.gridBand1.Columns.Add(this.optimtype_name); this.gridBand1.Columns.Add(this.maxworkrests); this.gridBand1.MinWidth = 20; this.gridBand1.Name = "gridBand1"; this.gridBand1.Width = 609; this.colidgoodoptim.Caption = "#"; this.colidgoodoptim.FieldName = "idgoodoptim"; this.colidgoodoptim.Name = "colidgoodoptim"; this.colidgoodoptim.OptionsColumn.AllowEdit = false; this.colidgoodoptim.Visible = true; this.colidgoodoptim.Width = 20; this.coltyp_name.Caption = "Тип"; this.coltyp_name.ColumnEdit = (RepositoryItem)this.repositoryItemComboBox1; this.coltyp_name.FieldName = "typ_name"; this.coltyp_name.Name = "coltyp_name"; this.coltyp_name.Visible = true; this.coltyp_name.Width = 29; this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; this.repositoryItemComboBox1.TextEditStyle = TextEditStyles.DisableTextEditor; this.colname.Caption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.Width = 85; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.Width = 79; this.colbuffer.Caption = "Буфер"; this.colbuffer.FieldName = "buffer"; this.colbuffer.Name = "colbuffer"; this.colbuffer.Visible = true; this.colbuffer.Width = 43; this.colfreza.Caption = "Фреза"; this.colfreza.FieldName = "freza"; this.colfreza.Name = "colfreza"; this.colfreza.Visible = true; this.colfreza.Width = 42; this.colworklen.Caption = "Остаток"; this.colworklen.FieldName = "worklen"; this.colworklen.Name = "colworklen"; this.colworklen.Visible = true; this.colworklen.Width = 54; this.coldrez.Caption = "Отступ"; this.coldrez.FieldName = "drez"; this.coldrez.Name = "coldrez"; this.coldrez.Visible = true; this.coldrez.Width = 48; this.optimtype_name.Caption = "Версия"; this.optimtype_name.ColumnEdit = (RepositoryItem)this.repositoryItemComboBox2; this.optimtype_name.FieldName = "optimtype_name"; this.optimtype_name.Name = "optimtype_name"; this.optimtype_name.Visible = true; this.optimtype_name.Width = 46; this.repositoryItemComboBox2.AutoHeight = false; this.repositoryItemComboBox2.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBox2.Name = "repositoryItemComboBox2"; this.maxworkrests.Caption = "Деловые остатки (максимум)"; this.maxworkrests.FieldName = "maxworkrests"; this.maxworkrests.Name = "maxworkrests"; this.maxworkrests.Visible = true; this.maxworkrests.Width = 163; this.gridBand2.AppearanceHeader.BackColor = Color.FromArgb((int)byte.MaxValue, 128, 128); this.gridBand2.AppearanceHeader.Options.UseBackColor = true; this.gridBand2.Caption = "Линейная оптимизация"; this.gridBand2.Columns.Add(this.colwhiplen); this.gridBand2.Columns.Add(this.colstep); this.gridBand2.Columns.Add(this.coldopuskoptim); this.gridBand2.Columns.Add(this.coltypeoptimend); this.gridBand2.MinWidth = 20; this.gridBand2.Name = "gridBand2"; this.gridBand2.Width = 372; this.colwhiplen.Caption = "Длина"; this.colwhiplen.FieldName = "whiplen"; this.colwhiplen.Name = "colwhiplen"; this.colwhiplen.Visible = true; this.colwhiplen.Width = 42; this.colstep.Caption = "Шаг"; this.colstep.FieldName = "step"; this.colstep.Name = "colstep"; this.colstep.Visible = true; this.colstep.Width = 31; this.coldopuskoptim.Caption = "Диапазон соед. вх. остатков"; this.coldopuskoptim.FieldName = "dopuskoptim"; this.coldopuskoptim.Name = "coldopuskoptim"; this.coldopuskoptim.Visible = true; this.coldopuskoptim.Width = 159; this.coltypeoptimend.Caption = "Тип отпимизации остатка"; this.coltypeoptimend.ColumnEdit = (RepositoryItem)this.repositoryItemComboBoxcoltypeoptimend; this.coltypeoptimend.FieldName = "typeoptimend_name"; this.coltypeoptimend.Name = "coltypeoptimend"; this.coltypeoptimend.Visible = true; this.coltypeoptimend.Width = 140; this.repositoryItemComboBoxcoltypeoptimend.AutoHeight = false; this.repositoryItemComboBoxcoltypeoptimend.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBoxcoltypeoptimend.Name = "repositoryItemComboBoxcoltypeoptimend"; this.repositoryItemComboBoxcoltypeoptimend.TextEditStyle = TextEditStyles.DisableTextEditor; this.repositoryItemComboBoxcoltypeoptimend.ParseEditValue += new ConvertEditValueEventHandler(this.repositoryItemComboBoxcoltypeoptimend_ParseEditValue); this.gridBand3.AppearanceHeader.BackColor = Color.FromArgb((int)byte.MaxValue, 192, 128); this.gridBand3.AppearanceHeader.Options.UseBackColor = true; this.gridBand3.Caption = "Плоскостная оптимзация"; this.gridBand3.Columns.Add(this.colcanrotate); this.gridBand3.Columns.Add(this.coldl); this.gridBand3.Columns.Add(this.coldr); this.gridBand3.Columns.Add(this.coldt); this.gridBand3.Columns.Add(this.coldb); this.gridBand3.Columns.Add(this.colmaxrez); this.gridBand3.Columns.Add(this.colwidth); this.gridBand3.Columns.Add(this.colheight); this.gridBand3.Columns.Add(this.coltyperez_name); this.gridBand3.MinWidth = 20; this.gridBand3.Name = "gridBand3"; this.gridBand3.Width = 415; this.colcanrotate.Caption = "Не вращать"; this.colcanrotate.ColumnEdit = (RepositoryItem)this.repositoryItemCheckEdit1; this.colcanrotate.FieldName = "canrotate"; this.colcanrotate.Name = "colcanrotate"; this.colcanrotate.Visible = true; this.colcanrotate.Width = 71; this.repositoryItemCheckEdit1.AutoHeight = false; this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1"; this.coldl.Caption = "dl"; this.coldl.FieldName = "dl"; this.coldl.Name = "coldl"; this.coldl.Visible = true; this.coldl.Width = 20; this.coldr.Caption = "dr"; this.coldr.FieldName = "dr"; this.coldr.Name = "coldr"; this.coldr.Visible = true; this.coldr.Width = 20; this.coldt.Caption = "dt"; this.coldt.FieldName = "dt"; this.coldt.Name = "coldt"; this.coldt.Visible = true; this.coldt.Width = 20; this.coldb.Caption = "db"; this.coldb.FieldName = "db"; this.coldb.Name = "coldb"; this.coldb.Visible = true; this.coldb.Width = 22; this.colmaxrez.Caption = "Макс.рез"; this.colmaxrez.FieldName = "maxrez"; this.colmaxrez.Name = "colmaxrez"; this.colmaxrez.Visible = true; this.colmaxrez.Width = 56; this.colwidth.Caption = "Ширина"; this.colwidth.FieldName = "width"; this.colwidth.Name = "colwidth"; this.colwidth.Visible = true; this.colwidth.Width = 50; this.colheight.Caption = "Высота"; this.colheight.FieldName = "height"; this.colheight.Name = "colheight"; this.colheight.Visible = true; this.colheight.Width = 47; this.coltyperez_name.Caption = "Тип основного реза"; this.coltyperez_name.ColumnEdit = (RepositoryItem)this.cboTyperez_name; this.coltyperez_name.FieldName = "typerez_name"; this.coltyperez_name.Name = "coltyperez_name"; this.coltyperez_name.Visible = true; this.coltyperez_name.Width = 109; this.cboTyperez_name.AutoHeight = false; this.cboTyperez_name.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.cboTyperez_name.Items.AddRange(new object[3] { (object)"Вертикальный", (object)"Горизонтальный", (object)"Смешанный" }); this.cboTyperez_name.Name = "cboTyperez_name"; this.cboTyperez_name.TextEditStyle = TextEditStyles.DisableTextEditor; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n4"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n4"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.panel2.Controls.Add((Control)this.button4); this.panel2.Controls.Add((Control)this.button5); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(0, 418); this.panel2.Name = "panel2"; this.panel2.Size = new Size(896, 33); this.panel2.TabIndex = 6; this.panel2.Visible = false; this.button4.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button4.DialogResult = DialogResult.Cancel; this.button4.FlatStyle = FlatStyle.Flat; this.button4.Location = new Point(809, 5); this.button4.Name = "button4"; this.button4.Size = new Size(75, 23); this.button4.TabIndex = 2; this.button4.Text = "Отменить"; this.button5.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button5.DialogResult = DialogResult.OK; this.button5.FlatStyle = FlatStyle.Flat; this.button5.Location = new Point(728, 5); this.button5.Name = "button5"; this.button5.Size = new Size(75, 23); this.button5.TabIndex = 1; this.button5.Text = "Выбрать"; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControl1); this.Controls.Add((Control)this.panel2); this.Controls.Add((Control)this.panel1); this.Name = "GoodOptimForm"; this.Size = new Size(896, 484); this.Text = "Группы оптимизации"; this.panel1.ResumeLayout(false); this.gridControl1.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_goodoptim.EndInit(); this.advBandedGridView1.EndInit(); this.repositoryItemComboBox1.EndInit(); this.repositoryItemComboBox2.EndInit(); this.repositoryItemComboBoxcoltypeoptimend.EndInit(); this.repositoryItemCheckEdit1.EndInit(); this.cboTyperez_name.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.panel2 = new Panel(); this.cmdCancel = new Button(); this.cmdOk = new Button(); this.gridControlGoodKitDetail = new GridControl(); this.ds = new DataSet(); this.table_goodkitdetail = new DataTable(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn10 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.dataColumn23 = new DataColumn(); this.dataColumn24 = new DataColumn(); this.dataColumn25 = new DataColumn(); this.dataColumn26 = new DataColumn(); this.dataColumn20 = new DataColumn(); this.dataColumn22 = new DataColumn(); this.dataColumn27 = new DataColumn(); this.dataColumn28 = new DataColumn(); this.dataColumn29 = new DataColumn(); this.dataColumn30 = new DataColumn(); this.dataColumn31 = new DataColumn(); this.dataColumn32 = new DataColumn(); this.gridViewGoodKitDetail = new GridView(); this.colgood_name1 = new GridColumn(); this.colgood_marking1 = new GridColumn(); this.colqu1 = new GridColumn(); this.colthick1 = new GridColumn(); this.colheight1 = new GridColumn(); this.colwidth1 = new GridColumn(); this.colweight1 = new GridColumn(); this.colprice2 = new GridColumn(); this.colsystem_name1 = new GridColumn(); this.colcolor1_name = new GridColumn(); this.PopupContainerEditColor1 = new atColorPopUpContainer(); this.colcolor2_name = new GridColumn(); this.PopupContainerEditColor2 = new atColorPopUpContainer(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.repositoryItemTextEdit2 = new AtRepositoryItemTextEdit(); this.gridView2 = new GridView(); this.colgood_marking = new GridColumn(); this.colgood_name = new GridColumn(); this.colqu = new GridColumn(); this.colthick = new GridColumn(); this.colheight = new GridColumn(); this.colwidth = new GridColumn(); this.colweight = new GridColumn(); this.colsystem_name = new GridColumn(); this.dataColumn1 = new DataColumn(); this.colcomment = new GridColumn(); this.dataColumn2 = new DataColumn(); this.panel2.SuspendLayout(); this.gridControlGoodKitDetail.BeginInit(); this.ds.BeginInit(); this.table_goodkitdetail.BeginInit(); this.gridViewGoodKitDetail.BeginInit(); this.PopupContainerEditColor1.BeginInit(); this.PopupContainerEditColor2.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.gridView2.BeginInit(); this.SuspendLayout(); this.panel2.Controls.Add((Control)this.cmdCancel); this.panel2.Controls.Add((Control)this.cmdOk); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(0, 430); this.panel2.Name = "panel2"; this.panel2.Size = new Size(769, 33); this.panel2.TabIndex = 7; this.cmdCancel.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.cmdCancel.DialogResult = DialogResult.Cancel; this.cmdCancel.FlatStyle = FlatStyle.Flat; this.cmdCancel.Location = new Point(682, 5); this.cmdCancel.Name = "cmdCancel"; this.cmdCancel.Size = new Size(75, 23); this.cmdCancel.TabIndex = 2; this.cmdCancel.Text = "Отменить"; this.cmdOk.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.cmdOk.DialogResult = DialogResult.OK; this.cmdOk.FlatStyle = FlatStyle.Flat; this.cmdOk.Location = new Point(601, 5); this.cmdOk.Name = "cmdOk"; this.cmdOk.Size = new Size(75, 23); this.cmdOk.TabIndex = 1; this.cmdOk.Text = "Добавить"; this.gridControlGoodKitDetail.DataMember = "goodkitdetail"; this.gridControlGoodKitDetail.DataSource = (object)this.ds; this.gridControlGoodKitDetail.Dock = DockStyle.Fill; this.gridControlGoodKitDetail.EmbeddedNavigator.Name = ""; this.gridControlGoodKitDetail.Location = new Point(0, 0); this.gridControlGoodKitDetail.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControlGoodKitDetail.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControlGoodKitDetail.MainView = (BaseView)this.gridViewGoodKitDetail; this.gridControlGoodKitDetail.Name = "gridControlGoodKitDetail"; this.gridControlGoodKitDetail.RepositoryItems.AddRange(new RepositoryItem[4] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemTextEdit2, (RepositoryItem)this.PopupContainerEditColor1, (RepositoryItem)this.PopupContainerEditColor2 }); this.gridControlGoodKitDetail.Size = new Size(769, 430); this.gridControlGoodKitDetail.TabIndex = 8; this.gridControlGoodKitDetail.ViewCollection.AddRange(new BaseView[2] { (BaseView)this.gridViewGoodKitDetail, (BaseView)this.gridView2 }); this.ds.DataSetName = "ds_goodkit"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_goodkitdetail }); this.table_goodkitdetail.Columns.AddRange(new DataColumn[24] { this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8, this.dataColumn10, this.dataColumn11, this.dataColumn12, this.dataColumn13, this.dataColumn14, this.dataColumn23, this.dataColumn24, this.dataColumn25, this.dataColumn26, this.dataColumn20, this.dataColumn22, this.dataColumn27, this.dataColumn28, this.dataColumn29, this.dataColumn30, this.dataColumn31, this.dataColumn32, this.dataColumn1, this.dataColumn2 }); this.table_goodkitdetail.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodkitdetail" }, 1 != 0) }); this.table_goodkitdetail.PrimaryKey = new DataColumn[1] { this.dataColumn4 }; this.table_goodkitdetail.TableName = "goodkitdetail"; this.dataColumn4.AllowDBNull = false; this.dataColumn4.ColumnName = "idgoodkitdetail"; this.dataColumn4.DataType = typeof(int); this.dataColumn5.ColumnName = "idgoodkit"; this.dataColumn5.DataType = typeof(int); this.dataColumn6.ColumnName = "idgood"; this.dataColumn6.DataType = typeof(int); this.dataColumn7.ColumnName = "good_name"; this.dataColumn7.Prefix = "local"; this.dataColumn8.ColumnName = "good_marking"; this.dataColumn8.Prefix = "local"; this.dataColumn10.ColumnName = "qu"; this.dataColumn10.DataType = typeof(double); this.dataColumn11.ColumnName = "thick"; this.dataColumn11.DataType = typeof(int); this.dataColumn12.ColumnName = "height"; this.dataColumn12.DataType = typeof(int); this.dataColumn13.ColumnName = "width"; this.dataColumn13.DataType = typeof(int); this.dataColumn14.ColumnName = "weight"; this.dataColumn14.DataType = typeof(double); this.dataColumn23.ColumnName = "price1"; this.dataColumn23.DataType = typeof(double); this.dataColumn23.Prefix = "local"; this.dataColumn24.ColumnName = "price2"; this.dataColumn24.DataType = typeof(double); this.dataColumn24.Prefix = "local"; this.dataColumn25.ColumnName = "price1base"; this.dataColumn25.DataType = typeof(double); this.dataColumn25.Prefix = "local"; this.dataColumn26.ColumnName = "price2base"; this.dataColumn26.DataType = typeof(double); this.dataColumn26.Prefix = "local"; this.dataColumn20.ColumnName = "system_name"; this.dataColumn22.ColumnName = "good_idgoodtype"; this.dataColumn22.DataType = typeof(int); this.dataColumn27.ColumnName = "good_idgoodtype2"; this.dataColumn27.DataType = typeof(int); this.dataColumn28.ColumnName = "ismain"; this.dataColumn28.DataType = typeof(bool); this.dataColumn29.ColumnName = "idcolor1"; this.dataColumn29.DataType = typeof(int); this.dataColumn30.ColumnName = "idcolor2"; this.dataColumn30.DataType = typeof(int); this.dataColumn31.ColumnName = "color1_name"; this.dataColumn32.ColumnName = "color2_name"; this.gridViewGoodKitDetail.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.FocusedRow.ForeColor = Color.Black; this.gridViewGoodKitDetail.Appearance.FocusedRow.Options.UseBackColor = true; this.gridViewGoodKitDetail.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridViewGoodKitDetail.Appearance.FocusedRow.Options.UseForeColor = true; this.gridViewGoodKitDetail.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.GroupPanel.Options.UseBackColor = true; this.gridViewGoodKitDetail.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridViewGoodKitDetail.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridViewGoodKitDetail.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridViewGoodKitDetail.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridViewGoodKitDetail.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewGoodKitDetail.Appearance.SelectedRow.ForeColor = Color.Black; this.gridViewGoodKitDetail.Appearance.SelectedRow.Options.UseBackColor = true; this.gridViewGoodKitDetail.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridViewGoodKitDetail.Appearance.SelectedRow.Options.UseForeColor = true; this.gridViewGoodKitDetail.BorderStyle = BorderStyles.Simple; this.gridViewGoodKitDetail.Columns.AddRange(new GridColumn[12] { this.colgood_name1, this.colgood_marking1, this.colqu1, this.colthick1, this.colheight1, this.colwidth1, this.colweight1, this.colprice2, this.colsystem_name1, this.colcolor1_name, this.colcolor2_name, this.colcomment }); this.gridViewGoodKitDetail.GridControl = this.gridControlGoodKitDetail; this.gridViewGoodKitDetail.GroupPanelText = "Панель группировки"; this.gridViewGoodKitDetail.Name = "gridViewGoodKitDetail"; this.gridViewGoodKitDetail.OptionsBehavior.AllowIncrementalSearch = true; this.gridViewGoodKitDetail.OptionsCustomization.AllowFilter = false; this.gridViewGoodKitDetail.OptionsDetail.ShowDetailTabs = false; this.gridViewGoodKitDetail.OptionsSelection.MultiSelect = true; this.gridViewGoodKitDetail.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridViewGoodKitDetail.OptionsView.ShowGroupPanel = false; this.gridViewGoodKitDetail.OptionsView.ShowIndicator = false; this.colgood_name1.Caption = "Наименование"; this.colgood_name1.FieldName = "good_name"; this.colgood_name1.Name = "colgood_name1"; this.colgood_name1.OptionsColumn.AllowEdit = false; this.colgood_name1.Visible = true; this.colgood_name1.VisibleIndex = 1; this.colgood_name1.Width = 187; this.colgood_marking1.Caption = "Артикул"; this.colgood_marking1.FieldName = "good_marking"; this.colgood_marking1.Name = "colgood_marking1"; this.colgood_marking1.OptionsColumn.AllowEdit = false; this.colgood_marking1.Visible = true; this.colgood_marking1.VisibleIndex = 0; this.colgood_marking1.Width = 149; this.colqu1.Caption = "Кол-во"; this.colqu1.FieldName = "qu"; this.colqu1.Name = "colqu1"; this.colqu1.Visible = true; this.colqu1.VisibleIndex = 2; this.colqu1.Width = 70; this.colthick1.Caption = "Длина"; this.colthick1.FieldName = "thick"; this.colthick1.Name = "colthick1"; this.colthick1.Visible = true; this.colthick1.VisibleIndex = 3; this.colthick1.Width = 70; this.colheight1.Caption = "Высота"; this.colheight1.FieldName = "height"; this.colheight1.Name = "colheight1"; this.colheight1.Visible = true; this.colheight1.VisibleIndex = 4; this.colheight1.Width = 70; this.colwidth1.Caption = "Ширина"; this.colwidth1.FieldName = "width"; this.colwidth1.Name = "colwidth1"; this.colwidth1.Visible = true; this.colwidth1.VisibleIndex = 5; this.colwidth1.Width = 70; this.colweight1.Caption = "Вес"; this.colweight1.FieldName = "weight"; this.colweight1.Name = "colweight1"; this.colweight1.Visible = true; this.colweight1.VisibleIndex = 6; this.colweight1.Width = 70; this.colprice2.Caption = "Цена"; this.colprice2.FieldName = "price2"; this.colprice2.Name = "colprice2"; this.colprice2.OptionsColumn.AllowEdit = false; this.colprice2.Visible = true; this.colprice2.VisibleIndex = 10; this.colprice2.Width = 70; this.colsystem_name1.Caption = "Система"; this.colsystem_name1.FieldName = "system_name"; this.colsystem_name1.Name = "colsystem_name1"; this.colsystem_name1.OptionsColumn.AllowEdit = false; this.colsystem_name1.Visible = true; this.colsystem_name1.VisibleIndex = 11; this.colsystem_name1.Width = 76; this.colcolor1_name.Caption = "Цвет 1"; this.colcolor1_name.ColumnEdit = (RepositoryItem)this.PopupContainerEditColor1; this.colcolor1_name.FieldName = "color1_name"; this.colcolor1_name.Name = "colcolor1_name"; this.colcolor1_name.Visible = true; this.colcolor1_name.VisibleIndex = 7; this.PopupContainerEditColor1.AutoHeight = false; this.PopupContainerEditColor1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.PopupContainerEditColor1.Name = "PopupContainerEditColor1"; this.colcolor2_name.Caption = "Цвет 2"; this.colcolor2_name.ColumnEdit = (RepositoryItem)this.PopupContainerEditColor2; this.colcolor2_name.FieldName = "color2_name"; this.colcolor2_name.Name = "colcolor2_name"; this.colcolor2_name.Visible = true; this.colcolor2_name.VisibleIndex = 8; this.PopupContainerEditColor2.AutoHeight = false; this.PopupContainerEditColor2.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.PopupContainerEditColor2.Name = "PopupContainerEditColor2"; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.gridView2.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView2.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView2.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView2.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView2.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView2.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView2.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView2.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView2.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView2.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView2.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView2.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView2.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView2.BorderStyle = BorderStyles.Simple; this.gridView2.Columns.AddRange(new GridColumn[8] { this.colgood_marking, this.colgood_name, this.colqu, this.colthick, this.colheight, this.colwidth, this.colweight, this.colsystem_name }); this.gridView2.GridControl = this.gridControlGoodKitDetail; this.gridView2.Name = "gridView2"; this.gridView2.OptionsCustomization.AllowFilter = false; this.gridView2.OptionsCustomization.AllowGroup = false; this.gridView2.OptionsDetail.ShowDetailTabs = false; this.gridView2.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView2.OptionsView.ShowGroupPanel = false; this.gridView2.OptionsView.ShowIndicator = false; this.colgood_marking.Caption = "Артикул материала"; this.colgood_marking.FieldName = "good_marking"; this.colgood_marking.Name = "colgood_marking"; this.colgood_marking.OptionsColumn.AllowEdit = false; this.colgood_marking.Visible = true; this.colgood_marking.VisibleIndex = 1; this.colgood_name.Caption = "Наименование материала"; this.colgood_name.FieldName = "good_name"; this.colgood_name.Name = "colgood_name"; this.colgood_name.OptionsColumn.AllowEdit = false; this.colgood_name.Visible = true; this.colgood_name.VisibleIndex = 0; this.colqu.Caption = "Кол-во"; this.colqu.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colqu.FieldName = "qu"; this.colqu.Name = "colqu"; this.colqu.Visible = true; this.colqu.VisibleIndex = 2; this.colthick.Caption = "Длина"; this.colthick.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colthick.FieldName = "thick"; this.colthick.Name = "colthick"; this.colthick.Visible = true; this.colthick.VisibleIndex = 3; this.colheight.Caption = "Высота"; this.colheight.FieldName = "height"; this.colheight.Name = "colheight"; this.colheight.Visible = true; this.colheight.VisibleIndex = 4; this.colwidth.Caption = "Ширина"; this.colwidth.FieldName = "width"; this.colwidth.Name = "colwidth"; this.colwidth.Visible = true; this.colwidth.VisibleIndex = 5; this.colweight.Caption = "Вес"; this.colweight.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit2; this.colweight.FieldName = "weight"; this.colweight.Name = "colweight"; this.colweight.Visible = true; this.colweight.VisibleIndex = 6; this.colsystem_name.Caption = "Система"; this.colsystem_name.FieldName = "system_name"; this.colsystem_name.Name = "colsystem_name"; this.colsystem_name.Visible = true; this.colsystem_name.VisibleIndex = 7; this.dataColumn1.ColumnName = "comment"; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 9; this.dataColumn2.ColumnName = "good_waste"; this.dataColumn2.DataType = typeof(double); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControlGoodKitDetail); this.Controls.Add((Control)this.panel2); this.Name = "GoodKitAddForm"; this.Size = new Size(769, 463); this.Text = "Добавление материалов из комплекта"; this.panel2.ResumeLayout(false); this.gridControlGoodKitDetail.EndInit(); this.ds.EndInit(); this.table_goodkitdetail.EndInit(); this.gridViewGoodKitDetail.EndInit(); this.PopupContainerEditColor1.EndInit(); this.PopupContainerEditColor2.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.gridView2.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.gridControl = new GridControl(); this.contextMenuStrip = new ContextMenuStrip(this.components); this.createToolStripMenuItem = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.deleteToolStripMenuItem = new ToolStripMenuItem(); this.dataSet = new DataSet(); this.goodparamname = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.gridView = new GridView(); this.nameColumn = new GridColumn(); this.commentColumn = new GridColumn(); this.repositoryItemTextEdit12 = new AtRepositoryItemTextEdit(); this.repositoryItemTextEdit13 = new AtRepositoryItemTextEdit(); this.atButtonsPanel1 = new atButtonsPanel(); this.gridControl.BeginInit(); this.contextMenuStrip.SuspendLayout(); this.dataSet.BeginInit(); this.goodparamname.BeginInit(); this.gridView.BeginInit(); this.repositoryItemTextEdit12.BeginInit(); this.repositoryItemTextEdit13.BeginInit(); this.atButtonsPanel1.BeginInit(); this.SuspendLayout(); this.gridControl.ContextMenuStrip = this.contextMenuStrip; this.gridControl.DataMember = "goodparamname"; this.gridControl.DataSource = (object)this.dataSet; this.gridControl.Dock = DockStyle.Fill; this.gridControl.EmbeddedNavigator.Name = ""; this.gridControl.Location = new Point(0, 0); this.gridControl.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl.MainView = (BaseView)this.gridView; this.gridControl.Name = "gridControl"; this.gridControl.RepositoryItems.AddRange(new RepositoryItem[2] { (RepositoryItem)this.repositoryItemTextEdit12, (RepositoryItem)this.repositoryItemTextEdit13 }); this.gridControl.Size = new Size(746, 500); this.gridControl.TabIndex = 9; this.gridControl.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridView }); this.contextMenuStrip.Items.AddRange(new ToolStripItem[3] { (ToolStripItem)this.createToolStripMenuItem, (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.deleteToolStripMenuItem }); this.contextMenuStrip.Name = "contextMenuStrip"; this.contextMenuStrip.Size = new Size(125, 54); this.createToolStripMenuItem.Name = "createToolStripMenuItem"; this.createToolStripMenuItem.Size = new Size(124, 22); this.createToolStripMenuItem.Text = "Добавить"; this.createToolStripMenuItem.Click += new EventHandler(this.createToolStripMenuItem_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(121, 6); this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; this.deleteToolStripMenuItem.Size = new Size(124, 22); this.deleteToolStripMenuItem.Text = "Удалить"; this.deleteToolStripMenuItem.Click += new EventHandler(this.deleteToolStripMenuItem_Click); this.dataSet.DataSetName = "NewDataSet"; this.dataSet.Tables.AddRange(new DataTable[1] { this.goodparamname }); this.goodparamname.Columns.AddRange(new DataColumn[3] { this.dataColumn1, this.dataColumn2, this.dataColumn3 }); this.goodparamname.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodparamname" }, 1 != 0) }); this.goodparamname.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.goodparamname.TableName = "goodparamname"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.Caption = "Номер"; this.dataColumn1.ColumnName = "idgoodparamname"; this.dataColumn1.DataType = typeof(uint); this.dataColumn2.Caption = "Наименование"; this.dataColumn2.ColumnName = "name"; this.dataColumn3.Caption = "Описание"; this.dataColumn3.ColumnName = "comment"; this.gridView.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView.BorderStyle = BorderStyles.Simple; this.gridView.Columns.AddRange(new GridColumn[2] { this.nameColumn, this.commentColumn }); this.gridView.GridControl = this.gridControl; this.gridView.GroupPanelText = "Панель группировки"; this.gridView.Name = "gridView"; this.gridView.OptionsCustomization.AllowFilter = false; this.gridView.OptionsDetail.ShowDetailTabs = false; this.gridView.OptionsView.ShowAutoFilterRow = true; this.gridView.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView.OptionsView.ShowGroupPanel = false; this.gridView.OptionsView.ShowIndicator = false; this.gridView.DoubleClick += new EventHandler(this.gridViewModelCalc_DoubleClick); this.gridView.CellValueChanged += new CellValueChangedEventHandler(this.gridViewModelCalc_CellValueChanged); this.nameColumn.Caption = "Наименование"; this.nameColumn.FieldName = "name"; this.nameColumn.Name = "nameColumn"; this.nameColumn.Visible = true; this.nameColumn.VisibleIndex = 0; this.commentColumn.Caption = "Описание"; this.commentColumn.FieldName = "comment"; this.commentColumn.Name = "commentColumn"; this.commentColumn.Visible = true; this.commentColumn.VisibleIndex = 1; this.repositoryItemTextEdit12.AutoHeight = false; this.repositoryItemTextEdit12.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit12.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit12.Name = "repositoryItemTextEdit12"; this.repositoryItemTextEdit13.AutoHeight = false; this.repositoryItemTextEdit13.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit13.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit13.Name = "repositoryItemTextEdit13"; this.atButtonsPanel1.AcceptButton = atButtonsPanel.bpButtons.None; this.atButtonsPanel1.CancelButton = atButtonsPanel.bpButtons.None; this.atButtonsPanel1.CancelButtonText = ""; this.atButtonsPanel1.CancelButtonUseCancelSelect = true; this.atButtonsPanel1.CancelButtonVisible = true; this.atButtonsPanel1.CloseButtonText = ""; this.atButtonsPanel1.CloseButtonUseCancelSelect = false; this.atButtonsPanel1.CloseButtonVisible = false; this.atButtonsPanel1.DataMember = (string)null; this.atButtonsPanel1.DataSource = (DataSet)null; this.atButtonsPanel1.Dock = DockStyle.Bottom; this.atButtonsPanel1.EnabledCancelButton = true; this.atButtonsPanel1.EnabledCloseButton = true; this.atButtonsPanel1.EnabledPrintButton = true; this.atButtonsPanel1.EnabledRefreshButton = true; this.atButtonsPanel1.EnabledSaveButton = true; this.atButtonsPanel1.EnabledScriptButton = true; this.atButtonsPanel1.IdDocAppearance = 0; this.atButtonsPanel1.Location = new Point(0, 500); this.atButtonsPanel1.Name = "atButtonsPanel1"; this.atButtonsPanel1.PrintButtonText = ""; this.atButtonsPanel1.PrintButtonVisible = false; this.atButtonsPanel1.ProcessedIsDialog = false; this.atButtonsPanel1.RefreshButtonText = "Обновить"; this.atButtonsPanel1.RefreshButtonUseSelectItem = true; this.atButtonsPanel1.RefreshButtonVisible = true; this.atButtonsPanel1.SaveButtonText = "Выбрать"; this.atButtonsPanel1.SaveButtonUseSelectItem = true; this.atButtonsPanel1.SaveButtonVisible = true; this.atButtonsPanel1.ScriptButtonText = ""; this.atButtonsPanel1.ScriptButtonVisible = false; this.atButtonsPanel1.Size = new Size(746, 33); this.atButtonsPanel1.TabIndex = 10; this.atButtonsPanel1.TextCancelButton = "Отменить"; this.atButtonsPanel1.TextCloseButton = "Закрыть"; this.atButtonsPanel1.TextPrintButton = "Печать..."; this.atButtonsPanel1.TextRefreshButton = "Обновить"; this.atButtonsPanel1.TextSaveButton = "Применить"; this.atButtonsPanel1.TextScriptButton = "Скрипты..."; this.atButtonsPanel1.VisibleCancelButton = true; this.atButtonsPanel1.VisibleCloseButton = true; this.atButtonsPanel1.VisiblePrintButton = false; this.atButtonsPanel1.VisibleRefreshButton = false; this.atButtonsPanel1.VisibleSaveButton = true; this.atButtonsPanel1.VisibleScriptButton = false; this.atButtonsPanel1.WidthPrintButton = 75; this.atButtonsPanel1.CancelEvent += new atButtonsPanel.CancelEventDelegate(this.atButtonsPanel1_CancelEvent); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControl); this.Controls.Add((Control)this.atButtonsPanel1); this.Name = "GoodParamNameForm"; this.Size = new Size(746, 533); this.Text = "Параметры материалов"; this.Shown += new Shown(this.GoodParamNameForm_Shown); this.gridControl.EndInit(); this.contextMenuStrip.ResumeLayout(false); this.dataSet.EndInit(); this.goodparamname.EndInit(); this.gridView.EndInit(); this.repositoryItemTextEdit12.EndInit(); this.repositoryItemTextEdit13.EndInit(); this.atButtonsPanel1.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControl1 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_measure = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.gridView1 = new GridView(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.colfactor = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.colshortname = new GridColumn(); this.colmeasure_typ = new GridColumn(); this.repositoryItemComboBox1 = new RepositoryItemComboBox(); this.panel1.SuspendLayout(); this.gridControl1.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_measure.BeginInit(); this.gridView1.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemComboBox1.BeginInit(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 389); this.panel1.Name = "panel1"; this.panel1.Size = new Size(664, 33); this.panel1.TabIndex = 1; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(577, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(496, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(415, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; this.gridControl1.DataMember = "measure"; this.gridControl1.DataSource = (object)this.ds; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; this.gridControl1.Location = new Point(0, 0); this.gridControl1.MainView = (BaseView)this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[2] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemComboBox1 }); this.gridControl1.Size = new Size(664, 389); this.gridControl1.TabIndex = 2; this.gridControl1.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridView1 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem3 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(231, 76); this.toolStripMenuItem1.Image = (Image)Resources.AddTable; this.toolStripMenuItem1.ImageTransparentColor = Color.Magenta; this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.ShortcutKeys = Keys.Insert | Keys.Control; this.toolStripMenuItem1.Size = new Size(230, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Image = (Image)Resources.ViewThumbnails; this.toolStripMenuItem2.ImageTransparentColor = Color.Magenta; this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.ShortcutKeys = Keys.Insert | Keys.Shift | Keys.Control; this.toolStripMenuItem2.Size = new Size(230, 22); this.toolStripMenuItem2.Text = "Дублировать"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(227, 6); this.toolStripMenuItem3.Image = (Image)Resources.Delete; this.toolStripMenuItem3.ImageTransparentColor = Color.Magenta; this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.ShortcutKeys = Keys.Delete | Keys.Control; this.toolStripMenuItem3.Size = new Size(230, 22); this.toolStripMenuItem3.Text = "Удалить"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.ds.DataSetName = "ds_measure"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_measure }); this.table_measure.Columns.AddRange(new DataColumn[6] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6 }); this.table_measure.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmeasure" }, 1 != 0) }); this.table_measure.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_measure.TableName = "measure"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idmeasure"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "comment"; this.dataColumn4.ColumnName = "factor"; this.dataColumn4.DataType = typeof(double); this.dataColumn5.ColumnName = "shortname"; this.dataColumn6.ColumnName = "measure_typ"; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[5] { this.colname, this.colcomment, this.colfactor, this.colshortname, this.colmeasure_typ }); this.gridView1.GridControl = this.gridControl1; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsNavigation.AutoFocusNewRow = true; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowIndicator = false; this.colname.Caption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 0; this.colname.Width = 188; this.colcomment.Caption = "Описание"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 1; this.colcomment.Width = 209; this.colfactor.Caption = "Коэффициент"; this.colfactor.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colfactor.FieldName = "factor"; this.colfactor.Name = "colfactor"; this.colfactor.Visible = true; this.colfactor.VisibleIndex = 4; this.colfactor.Width = 94; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.BorderStyle = BorderStyles.Default; this.repositoryItemTextEdit1.EditFormat.FormatString = "n2"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Mask.EditMask = "n2"; this.repositoryItemTextEdit1.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit1.Mask.UseMaskAsDisplayFormat = true; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.colshortname.Caption = "Обозначение"; this.colshortname.FieldName = "shortname"; this.colshortname.Name = "colshortname"; this.colshortname.Visible = true; this.colshortname.VisibleIndex = 2; this.colshortname.Width = 132; this.colmeasure_typ.Caption = "Тип"; this.colmeasure_typ.ColumnEdit = (RepositoryItem)this.repositoryItemComboBox1; this.colmeasure_typ.FieldName = "measure_typ"; this.colmeasure_typ.Name = "colmeasure_typ"; this.colmeasure_typ.Visible = true; this.colmeasure_typ.VisibleIndex = 3; this.colmeasure_typ.Width = 151; this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.BorderStyle = BorderStyles.Default; this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(664, 422); this.Controls.Add((Control)this.gridControl1); this.Controls.Add((Control)this.panel1); this.Name = "MeasureForm"; this.Text = "Единицы измерения"; this.panel1.ResumeLayout(false); this.gridControl1.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_measure.EndInit(); this.gridView1.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemComboBox1.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridControl6 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.ds_valut1 = new ds_valut(); this.gridView6 = new GridView(); this.colidvalutrate = new GridColumn(); this.colidvalut = new GridColumn(); this.colidvalut2 = new GridColumn(); this.colsm = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.coldt = new GridColumn(); this.coldeleted = new GridColumn(); this.colvalut_shortname = new GridColumn(); this.repositoryItemLookUpEdit1 = new RepositoryItemLookUpEdit(); this.valutBindingSource = new BindingSource(this.components); this.colvalut_shortname2 = new GridColumn(); this.repositoryItemTextEdit2 = new AtRepositoryItemTextEdit(); this.dateNavigator1 = new DateNavigator(); this.panel2 = new Panel(); this.gridControl1 = new GridControl(); this.gridView1 = new GridView(); this.coldt1 = new GridColumn(); this.colsm1 = new GridColumn(); this.colvalut_shortname1 = new GridColumn(); this.repositoryItemTextEdit3 = new AtRepositoryItemTextEdit(); this.repositoryItemTextEdit4 = new AtRepositoryItemTextEdit(); this.repositoryItemLookUpEdit2 = new RepositoryItemLookUpEdit(); this.lAwayCurrentDate = new Label(); this.splitterControl1 = new SplitterControl(); this.lCurrentDate = new Label(); this.splitterControl2 = new SplitterControl(); this.panel1.SuspendLayout(); this.gridControl6.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds_valut1.BeginInit(); this.gridView6.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemLookUpEdit1.BeginInit(); ((ISupportInitialize)this.valutBindingSource).BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.dateNavigator1.BeginInit(); this.panel2.SuspendLayout(); this.gridControl1.BeginInit(); this.gridView1.BeginInit(); this.repositoryItemTextEdit3.BeginInit(); this.repositoryItemTextEdit4.BeginInit(); this.repositoryItemLookUpEdit2.BeginInit(); this.SuspendLayout(); this.panel1.BackColor = SystemColors.Control; this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 470); this.panel1.Name = "panel1"; this.panel1.Size = new Size(941, 33); this.panel1.TabIndex = 5; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(854, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(773, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(692, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridControl6.ContextMenuStrip = this.contextMenuStrip1; this.gridControl6.DataMember = "valutrate"; this.gridControl6.DataSource = (object)this.ds_valut1; this.gridControl6.Dock = DockStyle.Top; this.gridControl6.EmbeddedNavigator.Name = ""; this.gridControl6.Location = new Point(0, 23); this.gridControl6.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl6.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl6.MainView = (BaseView)this.gridView6; this.gridControl6.Name = "gridControl6"; this.gridControl6.RepositoryItems.AddRange(new RepositoryItem[3] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemTextEdit2, (RepositoryItem)this.repositoryItemLookUpEdit1 }); this.gridControl6.Size = new Size(295, 245); this.gridControl6.TabIndex = 12; this.gridControl6.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridView6 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[3] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem2 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(125, 54); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(124, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(121, 6); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(124, 22); this.toolStripMenuItem2.Text = "Удалить"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.ds_valut1.DataSetName = "ds_valut"; this.ds_valut1.EnforceConstraints = false; this.ds_valut1.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; this.gridView6.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView6.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView6.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView6.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView6.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView6.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView6.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView6.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView6.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView6.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView6.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView6.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView6.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView6.Appearance.Row.Options.UseTextOptions = true; this.gridView6.Appearance.Row.TextOptions.HAlignment = HorzAlignment.Center; this.gridView6.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView6.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView6.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView6.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView6.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView6.BorderStyle = BorderStyles.Simple; this.gridView6.Columns.AddRange(new GridColumn[8] { this.colidvalutrate, this.colidvalut, this.colidvalut2, this.colsm, this.coldt, this.coldeleted, this.colvalut_shortname, this.colvalut_shortname2 }); this.gridView6.GridControl = this.gridControl6; this.gridView6.GroupPanelText = "Панель группировки"; this.gridView6.Name = "gridView6"; this.gridView6.OptionsCustomization.AllowFilter = false; this.gridView6.OptionsDetail.ShowDetailTabs = false; this.gridView6.OptionsView.ShowDetailButtons = false; this.gridView6.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView6.OptionsView.ShowGroupPanel = false; this.gridView6.OptionsView.ShowIndicator = false; this.colidvalutrate.Caption = "idvalutrate"; this.colidvalutrate.FieldName = "idvalutrate"; this.colidvalutrate.Name = "colidvalutrate"; this.colidvalut.Caption = "idvalut"; this.colidvalut.FieldName = "idvalut"; this.colidvalut.Name = "colidvalut"; this.colidvalut2.Caption = "idvalut2"; this.colidvalut2.FieldName = "idvalut2"; this.colidvalut2.Name = "colidvalut2"; this.colsm.Caption = "Курс (базовой)"; this.colsm.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colsm.FieldName = "sm"; this.colsm.Name = "colsm"; this.colsm.Visible = true; this.colsm.VisibleIndex = 2; this.colsm.Width = 277; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n2"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Mask.EditMask = "n2"; this.repositoryItemTextEdit1.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit1.Mask.UseMaskAsDisplayFormat = true; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.coldt.Caption = "Дата"; this.coldt.FieldName = "dt"; this.coldt.Name = "coldt"; this.coldt.Visible = true; this.coldt.VisibleIndex = 0; this.coldt.Width = 152; this.coldeleted.Caption = "deleted"; this.coldeleted.FieldName = "deleted"; this.coldeleted.Name = "coldeleted"; this.colvalut_shortname.Caption = "valut_shortname"; this.colvalut_shortname.ColumnEdit = (RepositoryItem)this.repositoryItemLookUpEdit1; this.colvalut_shortname.FieldName = "valut_shortname"; this.colvalut_shortname.Name = "colvalut_shortname"; this.repositoryItemLookUpEdit1.AutoHeight = false; this.repositoryItemLookUpEdit1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemLookUpEdit1.Columns.AddRange(new LookUpColumnInfo[2] { new LookUpColumnInfo("shortname", "Краткое название", 20, FormatType.None, "", true, HorzAlignment.Default, ColumnSortOrder.None), new LookUpColumnInfo("name", "Название", 20, FormatType.None, "", true, HorzAlignment.Default, ColumnSortOrder.None) }); this.repositoryItemLookUpEdit1.DataSource = (object)this.valutBindingSource; this.repositoryItemLookUpEdit1.DisplayMember = "shortname"; this.repositoryItemLookUpEdit1.Name = "repositoryItemLookUpEdit1"; this.repositoryItemLookUpEdit1.ValueMember = "idvalut"; this.valutBindingSource.DataMember = "valut"; this.valutBindingSource.DataSource = (object)this.ds_valut1; this.colvalut_shortname2.Caption = "Валюта"; this.colvalut_shortname2.ColumnEdit = (RepositoryItem)this.repositoryItemLookUpEdit1; this.colvalut_shortname2.FieldName = "idvalut2"; this.colvalut_shortname2.Name = "colvalut_shortname2"; this.colvalut_shortname2.Visible = true; this.colvalut_shortname2.VisibleIndex = 1; this.colvalut_shortname2.Width = 174; this.repositoryItemTextEdit2.AllowFocused = false; this.repositoryItemTextEdit2.Appearance.BackColor = Color.Silver; this.repositoryItemTextEdit2.Appearance.Options.UseBackColor = true; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.dateNavigator1.BorderStyle = BorderStyles.Simple; this.dateNavigator1.DateTime = new DateTime(2007, 4, 17, 0, 0, 0, 0); this.dateNavigator1.Dock = DockStyle.Fill; this.dateNavigator1.Location = new Point(0, 0); this.dateNavigator1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.dateNavigator1.LookAndFeel.UseDefaultLookAndFeel = false; this.dateNavigator1.Multiselect = false; this.dateNavigator1.Name = "dateNavigator1"; this.dateNavigator1.ShowTodayButton = false; this.dateNavigator1.Size = new Size(640, 470); this.dateNavigator1.TabIndex = 15; this.dateNavigator1.View = DateEditCalendarViewType.MonthInfo; this.panel2.Controls.Add((Control)this.gridControl1); this.panel2.Controls.Add((Control)this.lAwayCurrentDate); this.panel2.Controls.Add((Control)this.splitterControl1); this.panel2.Controls.Add((Control)this.gridControl6); this.panel2.Controls.Add((Control)this.lCurrentDate); this.panel2.Dock = DockStyle.Right; this.panel2.Location = new Point(646, 0); this.panel2.Name = "panel2"; this.panel2.Size = new Size(295, 470); this.panel2.TabIndex = 16; this.gridControl1.DataMember = "valutrate2"; this.gridControl1.DataSource = (object)this.ds_valut1; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; this.gridControl1.Location = new Point(0, 297); this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.MainView = (BaseView)this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[3] { (RepositoryItem)this.repositoryItemTextEdit3, (RepositoryItem)this.repositoryItemTextEdit4, (RepositoryItem)this.repositoryItemLookUpEdit2 }); this.gridControl1.Size = new Size(295, 173); this.gridControl1.TabIndex = 13; this.gridControl1.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridView1 }); this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.Row.Options.UseTextOptions = true; this.gridView1.Appearance.Row.TextOptions.HAlignment = HorzAlignment.Center; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[3] { this.coldt1, this.colsm1, this.colvalut_shortname1 }); this.gridView1.GridControl = this.gridControl1; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.OptionsView.ShowDetailButtons = false; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ShowIndicator = false; this.coldt1.Caption = "Дата"; this.coldt1.FieldName = "dt"; this.coldt1.Name = "coldt1"; this.coldt1.Visible = true; this.coldt1.VisibleIndex = 0; this.coldt1.Width = 350; this.colsm1.Caption = "Курс (базовой)"; this.colsm1.FieldName = "sm"; this.colsm1.Name = "colsm1"; this.colsm1.Visible = true; this.colsm1.VisibleIndex = 2; this.colsm1.Width = 306; this.colvalut_shortname1.Caption = "Валюта"; this.colvalut_shortname1.FieldName = "valut_shortname"; this.colvalut_shortname1.Name = "colvalut_shortname1"; this.colvalut_shortname1.Visible = true; this.colvalut_shortname1.VisibleIndex = 1; this.colvalut_shortname1.Width = 388; this.repositoryItemTextEdit3.AutoHeight = false; this.repositoryItemTextEdit3.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit3.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit3.EditFormat.FormatString = "n2"; this.repositoryItemTextEdit3.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit3.Mask.EditMask = "n2"; this.repositoryItemTextEdit3.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit3.Mask.UseMaskAsDisplayFormat = true; this.repositoryItemTextEdit3.Name = "repositoryItemTextEdit3"; this.repositoryItemTextEdit4.AllowFocused = false; this.repositoryItemTextEdit4.Appearance.BackColor = Color.Silver; this.repositoryItemTextEdit4.Appearance.Options.UseBackColor = true; this.repositoryItemTextEdit4.AutoHeight = false; this.repositoryItemTextEdit4.Name = "repositoryItemTextEdit4"; this.repositoryItemLookUpEdit2.AutoHeight = false; this.repositoryItemLookUpEdit2.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemLookUpEdit2.Columns.AddRange(new LookUpColumnInfo[2] { new LookUpColumnInfo("shortname", "Краткое название", 20, FormatType.None, "", true, HorzAlignment.Default, ColumnSortOrder.None), new LookUpColumnInfo("name", "Название", 20, FormatType.None, "", true, HorzAlignment.Default, ColumnSortOrder.None) }); this.repositoryItemLookUpEdit2.DataSource = (object)this.valutBindingSource; this.repositoryItemLookUpEdit2.DisplayMember = "shortname"; this.repositoryItemLookUpEdit2.Name = "repositoryItemLookUpEdit2"; this.repositoryItemLookUpEdit2.ValueMember = "idvalut"; this.lAwayCurrentDate.Dock = DockStyle.Top; this.lAwayCurrentDate.Location = new Point(0, 274); this.lAwayCurrentDate.Name = "lAwayCurrentDate"; this.lAwayCurrentDate.Size = new Size(295, 23); this.lAwayCurrentDate.TabIndex = 16; this.lAwayCurrentDate.Text = "Курсы на дату ближайшую от"; this.lAwayCurrentDate.TextAlign = ContentAlignment.MiddleLeft; this.splitterControl1.Dock = DockStyle.Top; this.splitterControl1.Location = new Point(0, 268); this.splitterControl1.Name = "splitterControl1"; this.splitterControl1.Size = new Size(295, 6); this.splitterControl1.TabIndex = 14; this.splitterControl1.TabStop = false; this.lCurrentDate.Dock = DockStyle.Top; this.lCurrentDate.Location = new Point(0, 0); this.lCurrentDate.Name = "lCurrentDate"; this.lCurrentDate.Size = new Size(295, 23); this.lCurrentDate.TabIndex = 15; this.lCurrentDate.Text = "Курсы на"; this.lCurrentDate.TextAlign = ContentAlignment.MiddleLeft; this.splitterControl2.Dock = DockStyle.Right; this.splitterControl2.Location = new Point(640, 0); this.splitterControl2.Name = "splitterControl2"; this.splitterControl2.Size = new Size(6, 470); this.splitterControl2.TabIndex = 17; this.splitterControl2.TabStop = false; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.White; this.Controls.Add((Control)this.dateNavigator1); this.Controls.Add((Control)this.splitterControl2); this.Controls.Add((Control)this.panel2); this.Controls.Add((Control)this.panel1); this.Name = "ValutCursForm"; this.Size = new Size(941, 503); this.Text = "Курсы валют"; this.panel1.ResumeLayout(false); this.gridControl6.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds_valut1.EndInit(); this.gridView6.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemLookUpEdit1.EndInit(); ((ISupportInitialize)this.valutBindingSource).EndInit(); this.repositoryItemTextEdit2.EndInit(); this.dateNavigator1.EndInit(); this.panel2.ResumeLayout(false); this.gridControl1.EndInit(); this.gridView1.EndInit(); this.repositoryItemTextEdit3.EndInit(); this.repositoryItemTextEdit4.EndInit(); this.repositoryItemLookUpEdit2.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); GridLevelNode gridLevelNode = new GridLevelNode(); this.gvFilterDetail = new GridView(); this.colidmarkingfilterdetail = new GridColumn(); this.colgood_marking = new GridColumn(); this.colgood_name = new GridColumn(); this.colfilterdetailcomment = new GridColumn(); this.gcFilter = new GridControl(); this.cmsGridMenu = new ContextMenuStrip(this.components); this.MenuItemAddFilter = new ToolStripMenuItem(); this.MenuItemAddFilterGood = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.MenuItemRemove = new ToolStripMenuItem(); this.dsData = new DataSet(); this.table_markingfiltertype = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.table_markingfilter = new DataTable(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.table_markingfilterdetail = new DataTable(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn10 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.gvFilter = new GridView(); this.colidmarkingfilter = new GridColumn(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.repositoryItemTextEdit2 = new AtRepositoryItemTextEdit(); this.repositoryItemCheckEdit2 = new RepositoryItemCheckEdit(); this.treeListGroup = new TreeList(); this.treeListColumn1 = new TreeListColumn(); this.repositoryItemCheckEdit1 = new RepositoryItemCheckEdit(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gvFilterDetail.BeginInit(); this.gcFilter.BeginInit(); this.cmsGridMenu.SuspendLayout(); this.dsData.BeginInit(); this.table_markingfiltertype.BeginInit(); this.table_markingfilter.BeginInit(); this.table_markingfilterdetail.BeginInit(); this.gvFilter.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.repositoryItemCheckEdit2.BeginInit(); this.treeListGroup.BeginInit(); this.repositoryItemCheckEdit1.BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); this.gvFilterDetail.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.FocusedRow.ForeColor = Color.Black; this.gvFilterDetail.Appearance.FocusedRow.Options.UseBackColor = true; this.gvFilterDetail.Appearance.FocusedRow.Options.UseBorderColor = true; this.gvFilterDetail.Appearance.FocusedRow.Options.UseForeColor = true; this.gvFilterDetail.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.GroupPanel.Options.UseBackColor = true; this.gvFilterDetail.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gvFilterDetail.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvFilterDetail.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gvFilterDetail.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvFilterDetail.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.SelectedRow.ForeColor = Color.Black; this.gvFilterDetail.Appearance.SelectedRow.Options.UseBackColor = true; this.gvFilterDetail.Appearance.SelectedRow.Options.UseBorderColor = true; this.gvFilterDetail.Appearance.SelectedRow.Options.UseForeColor = true; this.gvFilterDetail.BorderStyle = BorderStyles.Simple; this.gvFilterDetail.Columns.AddRange(new GridColumn[4] { this.colidmarkingfilterdetail, this.colgood_marking, this.colgood_name, this.colfilterdetailcomment }); this.gvFilterDetail.GridControl = this.gcFilter; this.gvFilterDetail.Name = "gvFilterDetail"; this.gvFilterDetail.OptionsCustomization.AllowFilter = false; this.gvFilterDetail.OptionsCustomization.AllowGroup = false; this.gvFilterDetail.OptionsDetail.ShowDetailTabs = false; this.gvFilterDetail.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvFilterDetail.OptionsView.ShowGroupPanel = false; this.gvFilterDetail.OptionsView.ShowIndicator = false; this.colidmarkingfilterdetail.Caption = "#"; this.colidmarkingfilterdetail.FieldName = "idmarkingfilterdetail"; this.colidmarkingfilterdetail.Name = "colidmarkingfilterdetail"; this.colidmarkingfilterdetail.Visible = true; this.colidmarkingfilterdetail.VisibleIndex = 0; this.colidmarkingfilterdetail.Width = 79; this.colgood_marking.Caption = "Артикул материала"; this.colgood_marking.FieldName = "good_marking"; this.colgood_marking.Name = "colgood_marking"; this.colgood_marking.OptionsColumn.AllowEdit = false; this.colgood_marking.Visible = true; this.colgood_marking.VisibleIndex = 1; this.colgood_marking.Width = 188; this.colgood_name.Caption = "Наименование материала"; this.colgood_name.FieldName = "good_name"; this.colgood_name.Name = "colgood_name"; this.colgood_name.OptionsColumn.AllowEdit = false; this.colgood_name.Visible = true; this.colgood_name.VisibleIndex = 2; this.colgood_name.Width = 327; this.colfilterdetailcomment.Caption = "Комментарий"; this.colfilterdetailcomment.FieldName = "comment"; this.colfilterdetailcomment.Name = "colfilterdetailcomment"; this.colfilterdetailcomment.Visible = true; this.colfilterdetailcomment.VisibleIndex = 3; this.colfilterdetailcomment.Width = 331; this.gcFilter.ContextMenuStrip = this.cmsGridMenu; this.gcFilter.DataMember = "markingfilter"; this.gcFilter.DataSource = (object)this.dsData; this.gcFilter.Dock = DockStyle.Fill; this.gcFilter.EmbeddedNavigator.Name = ""; gridLevelNode.LevelTemplate = (BaseView)this.gvFilterDetail; gridLevelNode.RelationName = "fk_markingfilterl_markingfilterdetail"; this.gcFilter.LevelTree.Nodes.AddRange(new GridLevelNode[1] { gridLevelNode }); this.gcFilter.Location = new Point(214, 0); this.gcFilter.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gcFilter.LookAndFeel.UseDefaultLookAndFeel = false; this.gcFilter.MainView = (BaseView)this.gvFilter; this.gcFilter.Name = "gcFilter"; this.gcFilter.RepositoryItems.AddRange(new RepositoryItem[3] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemTextEdit2, (RepositoryItem)this.repositoryItemCheckEdit2 }); this.gcFilter.Size = new Size(552, 432); this.gcFilter.TabIndex = 6; this.gcFilter.ViewCollection.AddRange(new BaseView[2] { (BaseView)this.gvFilter, (BaseView)this.gvFilterDetail }); this.cmsGridMenu.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.MenuItemAddFilter, (ToolStripItem)this.MenuItemAddFilterGood, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.MenuItemRemove }); this.cmsGridMenu.Name = "contextMenuStrip2"; this.cmsGridMenu.Size = new Size(184, 76); this.MenuItemAddFilter.Name = "MenuItemAddFilter"; this.MenuItemAddFilter.Size = new Size(183, 22); this.MenuItemAddFilter.Text = "Добавить фильтр"; this.MenuItemAddFilter.Click += new EventHandler(this.MenuItemAdd_Click); this.MenuItemAddFilterGood.Name = "MenuItemAddFilterGood"; this.MenuItemAddFilterGood.Size = new Size(183, 22); this.MenuItemAddFilterGood.Text = "Добавить материалы"; this.MenuItemAddFilterGood.Click += new EventHandler(this.MenuItemAddFilterGood_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(180, 6); this.MenuItemRemove.Name = "MenuItemRemove"; this.MenuItemRemove.Size = new Size(183, 22); this.MenuItemRemove.Text = "Удалить "; this.MenuItemRemove.Click += new EventHandler(this.MenuItemRemove_Click); this.dsData.DataSetName = "NewDataSet"; this.dsData.Relations.AddRange(new DataRelation[1] { new DataRelation("fk_markingfilterl_markingfilterdetail", "markingfilter", "markingfilterdetail", new string[1] { "idmarkingfilter" }, new string[1] { "idmarkingfilter" }, 0 != 0) }); this.dsData.Tables.AddRange(new DataTable[3] { this.table_markingfiltertype, this.table_markingfilter, this.table_markingfilterdetail }); this.table_markingfiltertype.Columns.AddRange(new DataColumn[2] { this.dataColumn1, this.dataColumn2 }); this.table_markingfiltertype.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmarkingfiltertype" }, 1 != 0) }); this.table_markingfiltertype.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_markingfiltertype.TableName = "markingfiltertype"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idmarkingfiltertype"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.table_markingfilter.Columns.AddRange(new DataColumn[5] { this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn11 }); this.table_markingfilter.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmarkingfilter" }, 1 != 0) }); this.table_markingfilter.PrimaryKey = new DataColumn[1] { this.dataColumn3 }; this.table_markingfilter.TableName = "markingfilter"; this.dataColumn3.AllowDBNull = false; this.dataColumn3.ColumnName = "idmarkingfilter"; this.dataColumn3.DataType = typeof(int); this.dataColumn4.ColumnName = "name"; this.dataColumn5.ColumnName = "deleted"; this.dataColumn5.DataType = typeof(DateTime); this.dataColumn6.ColumnName = "idmarkingfiltertype"; this.dataColumn6.DataType = typeof(int); this.dataColumn11.ColumnName = "comment"; this.table_markingfilterdetail.Columns.AddRange(new DataColumn[7] { this.dataColumn7, this.dataColumn8, this.dataColumn9, this.dataColumn10, this.dataColumn12, this.dataColumn13, this.dataColumn14 }); this.table_markingfilterdetail.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmarkingfilterdetail" }, 1 != 0) }); this.table_markingfilterdetail.PrimaryKey = new DataColumn[1] { this.dataColumn7 }; this.table_markingfilterdetail.TableName = "markingfilterdetail"; this.dataColumn7.AllowDBNull = false; this.dataColumn7.ColumnName = "idmarkingfilterdetail"; this.dataColumn7.DataType = typeof(int); this.dataColumn8.ColumnName = "idmarkingfilter"; this.dataColumn8.DataType = typeof(int); this.dataColumn9.ColumnName = "idgood"; this.dataColumn9.DataType = typeof(int); this.dataColumn10.ColumnName = "deleted"; this.dataColumn10.DataType = typeof(DateTime); this.dataColumn12.ColumnName = "comment"; this.dataColumn13.ColumnName = "good_name"; this.dataColumn14.ColumnName = "good_marking"; this.gvFilter.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.FocusedRow.ForeColor = Color.Black; this.gvFilter.Appearance.FocusedRow.Options.UseBackColor = true; this.gvFilter.Appearance.FocusedRow.Options.UseBorderColor = true; this.gvFilter.Appearance.FocusedRow.Options.UseForeColor = true; this.gvFilter.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.GroupPanel.Options.UseBackColor = true; this.gvFilter.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gvFilter.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvFilter.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gvFilter.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvFilter.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.SelectedRow.ForeColor = Color.Black; this.gvFilter.Appearance.SelectedRow.Options.UseBackColor = true; this.gvFilter.Appearance.SelectedRow.Options.UseBorderColor = true; this.gvFilter.Appearance.SelectedRow.Options.UseForeColor = true; this.gvFilter.BorderStyle = BorderStyles.Simple; this.gvFilter.Columns.AddRange(new GridColumn[3] { this.colidmarkingfilter, this.colname, this.colcomment }); this.gvFilter.GridControl = this.gcFilter; this.gvFilter.GroupPanelText = "Панель группировки"; this.gvFilter.Name = "gvFilter"; this.gvFilter.OptionsBehavior.AllowIncrementalSearch = true; this.gvFilter.OptionsCustomization.AllowFilter = false; this.gvFilter.OptionsDetail.ShowDetailTabs = false; this.gvFilter.OptionsSelection.MultiSelect = true; this.gvFilter.OptionsView.ShowAutoFilterRow = true; this.gvFilter.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvFilter.OptionsView.ShowGroupPanel = false; this.gvFilter.OptionsView.ShowIndicator = false; this.colidmarkingfilter.Caption = "#"; this.colidmarkingfilter.FieldName = "idmarkingfilter"; this.colidmarkingfilter.Name = "colidmarkingfilter"; this.colidmarkingfilter.OptionsColumn.AllowEdit = false; this.colidmarkingfilter.Visible = true; this.colidmarkingfilter.VisibleIndex = 0; this.colidmarkingfilter.Width = 51; this.colname.Caption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 1; this.colname.Width = 414; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 2; this.colcomment.Width = 460; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.repositoryItemCheckEdit2.AutoHeight = false; this.repositoryItemCheckEdit2.Name = "repositoryItemCheckEdit2"; this.treeListGroup.Appearance.FocusedCell.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.FocusedCell.ForeColor = Color.Black; this.treeListGroup.Appearance.FocusedCell.Options.UseBackColor = true; this.treeListGroup.Appearance.FocusedCell.Options.UseForeColor = true; this.treeListGroup.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.FocusedRow.ForeColor = Color.Black; this.treeListGroup.Appearance.FocusedRow.Options.UseBackColor = true; this.treeListGroup.Appearance.FocusedRow.Options.UseForeColor = true; this.treeListGroup.Appearance.HideSelectionRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.HideSelectionRow.ForeColor = Color.Black; this.treeListGroup.Appearance.HideSelectionRow.Options.UseBackColor = true; this.treeListGroup.Appearance.HideSelectionRow.Options.UseForeColor = true; this.treeListGroup.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.SelectedRow.ForeColor = Color.Black; this.treeListGroup.Appearance.SelectedRow.Options.UseBackColor = true; this.treeListGroup.Appearance.SelectedRow.Options.UseForeColor = true; this.treeListGroup.BorderStyle = BorderStyles.Simple; this.treeListGroup.Columns.AddRange(new TreeListColumn[1] { this.treeListColumn1 }); this.treeListGroup.DataMember = "markingfiltertype"; this.treeListGroup.DataSource = (object)this.dsData; this.treeListGroup.Dock = DockStyle.Left; this.treeListGroup.HorzScrollVisibility = DevExpress.XtraTreeList.ScrollVisibility.Never; this.treeListGroup.ImageIndexFieldName = ""; this.treeListGroup.KeyFieldName = ""; this.treeListGroup.Location = new Point(0, 0); this.treeListGroup.LookAndFeel.Style = LookAndFeelStyle.Flat; this.treeListGroup.LookAndFeel.UseDefaultLookAndFeel = false; this.treeListGroup.Name = "treeListGroup"; this.treeListGroup.OptionsBehavior.AutoFocusNewNode = true; this.treeListGroup.OptionsBehavior.PopulateServiceColumns = true; this.treeListGroup.OptionsView.ShowHorzLines = false; this.treeListGroup.OptionsView.ShowIndicator = false; this.treeListGroup.OptionsView.ShowVertLines = false; this.treeListGroup.ParentFieldName = "parentid"; this.treeListGroup.RepositoryItems.AddRange(new RepositoryItem[1] { (RepositoryItem)this.repositoryItemCheckEdit1 }); this.treeListGroup.Size = new Size(214, 432); this.treeListGroup.TabIndex = 7; this.treeListColumn1.Caption = "Форма"; this.treeListColumn1.FieldName = "name"; this.treeListColumn1.MinWidth = 45; this.treeListColumn1.Name = "treeListColumn1"; this.treeListColumn1.OptionsColumn.AllowEdit = false; this.treeListColumn1.Visible = true; this.treeListColumn1.VisibleIndex = 0; this.treeListColumn1.Width = 118; this.repositoryItemCheckEdit1.AutoHeight = false; this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1"; this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 432); this.panel1.Name = "panel1"; this.panel1.Size = new Size(766, 33); this.panel1.TabIndex = 5; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(679, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(598, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(517, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gcFilter); this.Controls.Add((Control)this.treeListGroup); this.Controls.Add((Control)this.panel1); this.Name = "MarkingFilterForm"; this.Size = new Size(766, 465); this.Text = "Фильтры артикулов"; this.gvFilterDetail.EndInit(); this.gcFilter.EndInit(); this.cmsGridMenu.ResumeLayout(false); this.dsData.EndInit(); this.table_markingfiltertype.EndInit(); this.table_markingfilter.EndInit(); this.table_markingfilterdetail.EndInit(); this.gvFilter.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.repositoryItemCheckEdit2.EndInit(); this.treeListGroup.EndInit(); this.repositoryItemCheckEdit1.EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gridPriceHistory = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_goodprice = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn10 = new DataColumn(); this.gridView1 = new GridView(); this.colprice1 = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.colprice2 = new GridColumn(); this.gridColumn3 = new GridColumn(); this.gridColumn5 = new GridColumn(); this.gridColumn4 = new GridColumn(); this.colcomment = new GridColumn(); this.gridColumn1 = new GridColumn(); this.coldt = new GridColumn(); this.gridView2 = new GridView(); this.colgood_marking = new GridColumn(); this.colgood_name = new GridColumn(); this.colqu = new GridColumn(); this.colthick = new GridColumn(); this.colheight = new GridColumn(); this.colwidth = new GridColumn(); this.colweight = new GridColumn(); this.dataColumn11 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.dataColumn15 = new DataColumn(); this.dataColumn16 = new DataColumn(); this.dataColumn17 = new DataColumn(); this.dataColumn18 = new DataColumn(); this.dataColumn19 = new DataColumn(); this.dataColumn20 = new DataColumn(); this.dataColumn21 = new DataColumn(); this.dataColumn22 = new DataColumn(); this.dataColumn23 = new DataColumn(); this.dataColumn24 = new DataColumn(); this.dataColumn25 = new DataColumn(); this.colvalut_name = new GridColumn(); this.colvalut_shortname = new GridColumn(); this.colvalut2_name = new GridColumn(); this.colvalut2_shortname = new GridColumn(); this.colvalut3_name = new GridColumn(); this.colvalut3_shortname = new GridColumn(); this.colvalut4_name = new GridColumn(); this.colvalut4_shortname = new GridColumn(); this.colvalut5_name = new GridColumn(); this.colvalut5_shortname = new GridColumn(); this.panel1.SuspendLayout(); this.gridPriceHistory.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_goodprice.BeginInit(); this.gridView1.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.gridView2.BeginInit(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 415); this.panel1.Name = "panel1"; this.panel1.Size = new Size(788, 33); this.panel1.TabIndex = 3; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(701, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(620, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(539, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.gridPriceHistory.ContextMenuStrip = this.contextMenuStrip1; this.gridPriceHistory.DataMember = "goodprice"; this.gridPriceHistory.DataSource = (object)this.ds; this.gridPriceHistory.Dock = DockStyle.Fill; this.gridPriceHistory.EmbeddedNavigator.Name = ""; this.gridPriceHistory.Location = new Point(0, 0); this.gridPriceHistory.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridPriceHistory.LookAndFeel.UseDefaultLookAndFeel = false; this.gridPriceHistory.MainView = (BaseView)this.gridView1; this.gridPriceHistory.Name = "gridPriceHistory"; this.gridPriceHistory.RepositoryItems.AddRange(new RepositoryItem[1] { (RepositoryItem)this.repositoryItemTextEdit1 }); this.gridPriceHistory.Size = new Size(788, 415); this.gridPriceHistory.TabIndex = 4; this.gridPriceHistory.ViewCollection.AddRange(new BaseView[2] { (BaseView)this.gridView1, (BaseView)this.gridView2 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem3 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(143, 76); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(142, 22); this.toolStripMenuItem1.Text = "Добавить"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(142, 22); this.toolStripMenuItem2.Text = "Дублировать"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(139, 6); this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Size = new Size(142, 22); this.toolStripMenuItem3.Text = "Удалить"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.ds.DataSetName = "ds_goodpricehistory"; this.ds.EnforceConstraints = false; this.ds.Tables.AddRange(new DataTable[1] { this.table_goodprice }); this.table_goodprice.Columns.AddRange(new DataColumn[25] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8, this.dataColumn9, this.dataColumn10, this.dataColumn11, this.dataColumn12, this.dataColumn13, this.dataColumn14, this.dataColumn15, this.dataColumn16, this.dataColumn17, this.dataColumn18, this.dataColumn19, this.dataColumn20, this.dataColumn21, this.dataColumn22, this.dataColumn23, this.dataColumn24, this.dataColumn25 }); this.table_goodprice.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodprice" }, 1 != 0) }); this.table_goodprice.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_goodprice.TableName = "goodprice"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idgoodprice"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "idgood"; this.dataColumn2.DataType = typeof(int); this.dataColumn3.ColumnName = "price1"; this.dataColumn3.DataType = typeof(double); this.dataColumn4.ColumnName = "price2"; this.dataColumn4.DataType = typeof(double); this.dataColumn5.ColumnName = "comment"; this.dataColumn6.ColumnName = "dt"; this.dataColumn6.DataType = typeof(DateTime); this.dataColumn7.ColumnName = "price3"; this.dataColumn7.DataType = typeof(double); this.dataColumn8.ColumnName = "price4"; this.dataColumn8.DataType = typeof(double); this.dataColumn9.ColumnName = "price5"; this.dataColumn9.DataType = typeof(double); this.dataColumn10.ColumnName = "peopleedit_fio"; this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[18] { this.colprice1, this.colprice2, this.gridColumn3, this.gridColumn5, this.gridColumn4, this.colcomment, this.gridColumn1, this.coldt, this.colvalut_name, this.colvalut_shortname, this.colvalut2_name, this.colvalut2_shortname, this.colvalut3_name, this.colvalut3_shortname, this.colvalut4_name, this.colvalut4_shortname, this.colvalut5_name, this.colvalut5_shortname }); this.gridView1.GridControl = this.gridPriceHistory; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ShowIndicator = false; this.colprice1.Caption = "Цена 1"; this.colprice1.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colprice1.FieldName = "price1"; this.colprice1.Name = "colprice1"; this.colprice1.OptionsColumn.AllowEdit = false; this.colprice1.Visible = true; this.colprice1.VisibleIndex = 2; this.colprice1.Width = 80; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n2"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n2"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Mask.EditMask = "n2"; this.repositoryItemTextEdit1.Mask.MaskType = MaskType.Numeric; this.repositoryItemTextEdit1.Mask.UseMaskAsDisplayFormat = true; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.colprice2.Caption = "Цена 2"; this.colprice2.ColumnEdit = (RepositoryItem)this.repositoryItemTextEdit1; this.colprice2.FieldName = "price2"; this.colprice2.Name = "colprice2"; this.colprice2.OptionsColumn.AllowEdit = false; this.colprice2.Visible = true; this.colprice2.VisibleIndex = 3; this.colprice2.Width = 84; this.gridColumn3.Caption = "Цена 3"; this.gridColumn3.FieldName = "price3"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.OptionsColumn.AllowEdit = false; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 4; this.gridColumn3.Width = 68; this.gridColumn5.Caption = "Цена 4"; this.gridColumn5.FieldName = "price4"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.OptionsColumn.AllowEdit = false; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 5; this.gridColumn5.Width = 68; this.gridColumn4.Caption = "Цена 5"; this.gridColumn4.FieldName = "price5"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.AllowEdit = false; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 6; this.gridColumn4.Width = 97; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.OptionsColumn.AllowEdit = false; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 7; this.colcomment.Width = 324; this.gridColumn1.Caption = "Редактировал"; this.gridColumn1.FieldName = "peopleedit_fio"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.AllowEdit = false; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 1; this.coldt.Caption = "Дата"; this.coldt.FieldName = "dt"; this.coldt.Name = "coldt"; this.coldt.OptionsColumn.AllowEdit = false; this.coldt.Visible = true; this.coldt.VisibleIndex = 0; this.coldt.Width = 65; this.gridView2.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView2.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView2.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView2.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView2.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView2.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView2.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView2.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView2.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView2.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView2.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView2.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView2.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView2.BorderStyle = BorderStyles.Simple; this.gridView2.Columns.AddRange(new GridColumn[7] { this.colgood_marking, this.colgood_name, this.colqu, this.colthick, this.colheight, this.colwidth, this.colweight }); this.gridView2.GridControl = this.gridPriceHistory; this.gridView2.Name = "gridView2"; this.gridView2.OptionsCustomization.AllowFilter = false; this.gridView2.OptionsCustomization.AllowGroup = false; this.gridView2.OptionsDetail.ShowDetailTabs = false; this.gridView2.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView2.OptionsView.ShowGroupPanel = false; this.gridView2.OptionsView.ShowIndicator = false; this.colgood_marking.Caption = "Артикул материала"; this.colgood_marking.FieldName = "good_marking"; this.colgood_marking.Name = "colgood_marking"; this.colgood_marking.Visible = true; this.colgood_marking.VisibleIndex = 1; this.colgood_name.Caption = "Наименование материала"; this.colgood_name.FieldName = "good_name"; this.colgood_name.Name = "colgood_name"; this.colgood_name.Visible = true; this.colgood_name.VisibleIndex = 0; this.colqu.Caption = "Кол-во"; this.colqu.FieldName = "qu"; this.colqu.Name = "colqu"; this.colqu.Visible = true; this.colqu.VisibleIndex = 2; this.colthick.Caption = "Длина"; this.colthick.FieldName = "thick"; this.colthick.Name = "colthick"; this.colthick.Visible = true; this.colthick.VisibleIndex = 3; this.colheight.Caption = "Высота"; this.colheight.FieldName = "height"; this.colheight.Name = "colheight"; this.colheight.Visible = true; this.colheight.VisibleIndex = 4; this.colwidth.Caption = "Ширина"; this.colwidth.FieldName = "width"; this.colwidth.Name = "colwidth"; this.colwidth.Visible = true; this.colwidth.VisibleIndex = 5; this.colweight.Caption = "Вес"; this.colweight.FieldName = "weight"; this.colweight.Name = "colweight"; this.colweight.Visible = true; this.colweight.VisibleIndex = 6; this.dataColumn11.ColumnName = "valut_name"; this.dataColumn12.ColumnName = "valut_shortname"; this.dataColumn13.ColumnName = "valut2_name"; this.dataColumn14.ColumnName = "valut2_shortname"; this.dataColumn15.ColumnName = "valut3_name"; this.dataColumn16.ColumnName = "valut3_shortname"; this.dataColumn17.ColumnName = "valut4_name"; this.dataColumn18.ColumnName = "valut4_shortname"; this.dataColumn19.ColumnName = "valut5_name"; this.dataColumn20.ColumnName = "valut5_shortname"; this.dataColumn21.ColumnName = "idvalut"; this.dataColumn21.DataType = typeof(int); this.dataColumn22.ColumnName = "idvalut2"; this.dataColumn22.DataType = typeof(int); this.dataColumn23.ColumnName = "idvalut3"; this.dataColumn23.DataType = typeof(int); this.dataColumn24.ColumnName = "idvalut4"; this.dataColumn24.DataType = typeof(int); this.dataColumn25.ColumnName = "idvalut5"; this.dataColumn25.DataType = typeof(int); this.colvalut_name.Caption = "Валюта"; this.colvalut_name.FieldName = "valut_name"; this.colvalut_name.Name = "colvalut_name"; this.colvalut_name.Visible = true; this.colvalut_name.VisibleIndex = 8; this.colvalut_shortname.Caption = "Кр. валюта"; this.colvalut_shortname.FieldName = "valut_shortname"; this.colvalut_shortname.Name = "colvalut_shortname"; this.colvalut_shortname.Visible = true; this.colvalut_shortname.VisibleIndex = 9; this.colvalut2_name.Caption = "Валюта 2"; this.colvalut2_name.FieldName = "valut2_name"; this.colvalut2_name.Name = "colvalut2_name"; this.colvalut2_name.Visible = true; this.colvalut2_name.VisibleIndex = 10; this.colvalut2_shortname.Caption = "Кр. валюта 2"; this.colvalut2_shortname.FieldName = "valut2_shortname"; this.colvalut2_shortname.Name = "colvalut2_shortname"; this.colvalut2_shortname.Visible = true; this.colvalut2_shortname.VisibleIndex = 11; this.colvalut3_name.Caption = "Валюта 3"; this.colvalut3_name.FieldName = "valut3_name"; this.colvalut3_name.Name = "colvalut3_name"; this.colvalut3_name.Visible = true; this.colvalut3_name.VisibleIndex = 12; this.colvalut3_shortname.Caption = "Кр. валюта 3"; this.colvalut3_shortname.FieldName = "valut3_shortname"; this.colvalut3_shortname.Name = "colvalut3_shortname"; this.colvalut3_shortname.Visible = true; this.colvalut3_shortname.VisibleIndex = 13; this.colvalut4_name.Caption = "Валюта 4"; this.colvalut4_name.FieldName = "valut4_name"; this.colvalut4_name.Name = "colvalut4_name"; this.colvalut4_name.Visible = true; this.colvalut4_name.VisibleIndex = 14; this.colvalut4_shortname.Caption = "Кр. валюта 4"; this.colvalut4_shortname.FieldName = "valut4_shortname"; this.colvalut4_shortname.Name = "colvalut4_shortname"; this.colvalut4_shortname.Visible = true; this.colvalut4_shortname.VisibleIndex = 15; this.colvalut5_name.Caption = "Валюта 5"; this.colvalut5_name.FieldName = "valut5_name"; this.colvalut5_name.Name = "colvalut5_name"; this.colvalut5_name.Visible = true; this.colvalut5_name.VisibleIndex = 16; this.colvalut5_shortname.Caption = "Кр. валюта 5"; this.colvalut5_shortname.FieldName = "valut5_shortname"; this.colvalut5_shortname.Name = "colvalut5_shortname"; this.colvalut5_shortname.Visible = true; this.colvalut5_shortname.VisibleIndex = 17; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridPriceHistory); this.Controls.Add((Control)this.panel1); this.Name = "PriceHistoryForm"; this.Size = new Size(788, 448); this.Text = "История цен"; this.panel1.ResumeLayout(false); this.gridPriceHistory.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_goodprice.EndInit(); this.gridView1.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.gridView2.EndInit(); this.ResumeLayout(false); }