Beispiel #1
0
        private void InitializeComponent()
        {
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            ComponentResourceManager     manager    = new ComponentResourceManager(typeof(xfmBaseImport));
            SerializableAppearanceObject obj3       = new SerializableAppearanceObject();
            StyleFormatCondition         condition  = new StyleFormatCondition();

            this.colStatus             = new GridColumn();
            this.wcImport              = new WizardControl();
            this.cheIsUpdate           = new CheckEdit();
            this.lcSheet               = new LayoutControl();
            this.cboSheet              = new ComboBoxEdit();
            this.layoutControlGroup1   = new LayoutControlGroup();
            this.layoutControlItem1    = new LayoutControlItem();
            this.wpSelectFile          = new WelcomeWizardPage();
            this.lbLinkFile            = new LabelControl();
            this.lbLinkFileDecription  = new LabelControl();
            this.txtFilePath           = new ButtonEdit();
            this.lbFilePathDescription = new LabelControl();
            this.wpProcessPage         = new DevExpress.XtraWizard.WizardPage();
            this.lbDataRow             = new LabelControl();
            this.lbProgressDescription = new LabelControl();
            this.mqProgress            = new MarqueeProgressBarControl();
            this.wpFinish              = new CompletionWizardPage();
            this.gcMessage             = new GridControl();
            this.gbMessage             = new GridView();
            this.colMessage            = new GridColumn();
            this.lbFix = new LinkLabel();
            this.lbFinishDescription = new LabelControl();
            this.lbMessage           = new LabelControl();
            this.wpSelectField       = new DevExpress.XtraWizard.WizardPage();
            this.gcList         = new GridControl();
            this.gbList         = new GridView();
            this.colFieldName   = new GridColumn();
            this.colSelectField = new GridColumn();
            this.repSelectField = new RepositoryItemComboBox();
            this.wcImport.BeginInit();
            this.wcImport.SuspendLayout();
            this.cheIsUpdate.Properties.BeginInit();
            this.lcSheet.BeginInit();
            this.lcSheet.SuspendLayout();
            this.cboSheet.Properties.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.wpSelectFile.SuspendLayout();
            this.txtFilePath.Properties.BeginInit();
            this.wpProcessPage.SuspendLayout();
            this.mqProgress.Properties.BeginInit();
            this.wpFinish.SuspendLayout();
            this.gcMessage.BeginInit();
            this.gbMessage.BeginInit();
            this.wpSelectField.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repSelectField.BeginInit();
            base.SuspendLayout();
            this.colStatus.Caption   = "Trạng th\x00e1i";
            this.colStatus.FieldName = "Status";
            this.colStatus.Name      = "colStatus";
            this.colStatus.OptionsColumn.AllowEdit = false;
            this.colStatus.OptionsColumn.ReadOnly  = true;
            this.wcImport.CancelText = "Tho\x00e1t";
            this.wcImport.Controls.Add(this.cheIsUpdate);
            this.wcImport.Controls.Add(this.lcSheet);
            this.wcImport.Controls.Add(this.wpSelectFile);
            this.wcImport.Controls.Add(this.wpProcessPage);
            this.wcImport.Controls.Add(this.wpFinish);
            this.wcImport.Controls.Add(this.wpSelectField);
            this.wcImport.FinishText = "&Ho\x00e0n Th\x00e0nh";
            this.wcImport.HelpText   = "&Trợ Gi\x00fap";
            this.wcImport.Name       = "wcImport";
            this.wcImport.NextText   = "&Tiếp Tục >";
            this.wcImport.Pages.AddRange(new BaseWizardPage[] { this.wpSelectFile, this.wpSelectField, this.wpProcessPage, this.wpFinish });
            this.wcImport.PreviousText          = "< &Trở Lại";
            this.wcImport.Text                  = "C\x00e1c bước nhập danh s\x00e1ch * từ tập tin excel";
            this.wcImport.WizardStyle           = WizardStyle.WizardAero;
            this.wcImport.SelectedPageChanged  += new WizardPageChangedEventHandler(this.wcImport_SelectedPageChanged);
            this.wcImport.NextClick            += new WizardCommandButtonClickEventHandler(this.wcImport_NextClick);
            this.cheIsUpdate.Location           = new Point(0x26, 0x131);
            this.cheIsUpdate.Name               = "cheIsUpdate";
            this.cheIsUpdate.Properties.Caption = "Cập nhật nếu tồn tại";
            this.cheIsUpdate.Size               = new Size(0x105, 0x13);
            this.cheIsUpdate.TabIndex           = 15;
            this.cheIsUpdate.Visible            = false;
            this.lcSheet.Controls.Add(this.cboSheet);
            this.lcSheet.Location  = new Point(0x138, 0x3a);
            this.lcSheet.Name      = "lcSheet";
            this.lcSheet.Root      = this.layoutControlGroup1;
            this.lcSheet.Size      = new Size(0x8e, 0x1c);
            this.lcSheet.TabIndex  = 10;
            this.lcSheet.Text      = "layoutControl1";
            this.lcSheet.Click    += new EventHandler(this.layoutControl1_Click);
            this.cboSheet.Location = new Point(0x3d, 2);
            this.cboSheet.Name     = "cboSheet";
            this.cboSheet.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboSheet.Size                                   = new Size(0x4f, 20);
            this.cboSheet.StyleController                        = this.lcSheet;
            this.cboSheet.TabIndex                               = 4;
            this.cboSheet.SelectedIndexChanged                  += new EventHandler(this.cboSheet_SelectedIndexChanged);
            this.layoutControlGroup1.CustomizationFormText       = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible         = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1 });
            this.layoutControlGroup1.Location             = new Point(0, 0);
            this.layoutControlGroup1.Name                 = "layoutControlGroup1";
            this.layoutControlGroup1.Padding              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Size                 = new Size(0x8e, 0x1c);
            this.layoutControlGroup1.Spacing              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text                 = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible          = false;
            this.layoutControlItem1.Control               = this.cboSheet;
            this.layoutControlItem1.CustomizationFormText = "Chọn sheet";
            this.layoutControlItem1.Location              = new Point(0, 0);
            this.layoutControlItem1.Name     = "layoutControlItem1";
            this.layoutControlItem1.Size     = new Size(0x8e, 0x1c);
            this.layoutControlItem1.Text     = "Chọn sheet";
            this.layoutControlItem1.TextSize = new Size(0x37, 13);
            this.wpSelectFile.Controls.Add(this.lbLinkFile);
            this.wpSelectFile.Controls.Add(this.lbLinkFileDecription);
            this.wpSelectFile.Controls.Add(this.txtFilePath);
            this.wpSelectFile.Controls.Add(this.lbFilePathDescription);
            this.wpSelectFile.Name                            = "wpSelectFile";
            this.wpSelectFile.Size                            = new Size(0x1ab, 0xae);
            this.wpSelectFile.Text                            = "Lựa chọn tập tin excel";
            this.lbLinkFile.AllowHtmlString                   = true;
            this.lbLinkFile.Appearance.Font                   = new Font("Tahoma", 8.25f, FontStyle.Underline);
            this.lbLinkFile.Appearance.ForeColor              = Color.Blue;
            this.lbLinkFile.Appearance.Options.UseFont        = true;
            this.lbLinkFile.Appearance.Options.UseForeColor   = true;
            this.lbLinkFile.Appearance.Options.UseTextOptions = true;
            this.lbLinkFile.Appearance.TextOptions.Trimming   = Trimming.EllipsisPath;
            this.lbLinkFile.Appearance.TextOptions.VAlignment = VertAlignment.Top;
            this.lbLinkFile.Appearance.TextOptions.WordWrap   = WordWrap.NoWrap;
            this.lbLinkFile.AutoSizeMode                      = LabelAutoSizeMode.None;
            this.lbLinkFile.Cursor                            = Cursors.Hand;
            this.lbLinkFile.Location                          = new Point(3, 140);
            this.lbLinkFile.Name     = "lbLinkFile";
            this.lbLinkFile.Size     = new Size(0x19d, 0x1f);
            this.lbLinkFile.TabIndex = 15;
            this.lbLinkFile.Text     = @"D:\Project\Source (Winform)\HRM\ERP.PMQLNS.V1600\Vssoft.HumanResource\Bin\Import\*.xls";
            this.lbLinkFile.Click   += new EventHandler(this.lbLinkFile_Click);
            this.lbLinkFileDecription.AllowHtmlString = true;
            this.lbLinkFileDecription.Appearance.Options.UseTextOptions = true;
            this.lbLinkFileDecription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbLinkFileDecription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbLinkFileDecription.Location     = new Point(4, 0x6d);
            this.lbLinkFileDecription.Name         = "lbLinkFileDecription";
            this.lbLinkFileDecription.Size         = new Size(410, 0x19);
            this.lbLinkFileDecription.TabIndex     = 15;
            this.lbLinkFileDecription.Text         = "Mở tập tin <b><i>*.xls</i></b> trong thư mục <b>ImportFile</b> tại ổ đĩa c\x00e0i đặt hoặc nhấp v\x00e0o li\x00ean kết sau để xem tập tin mẫu:";
            this.txtFilePath.Location = new Point(3, 0x45);
            this.txtFilePath.Name     = "txtFilePath";
            this.txtFilePath.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Undo, "", -1, true, true, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "Sử dụng tập tin mẫu để nạp dữ liệu", null, null, true), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image)manager.GetObject("txtFilePath.Properties.Buttons"), new KeyShortcut(Keys.None), obj3, "Chọn tập tin để nạp dữ liệu", "Browse", null, true) });
            this.txtFilePath.Size         = new Size(0x19b, 0x16);
            this.txtFilePath.TabIndex     = 14;
            this.txtFilePath.TabStop      = false;
            this.txtFilePath.ButtonClick += new ButtonPressedEventHandler(this.txtFilePath_ButtonClick);
            this.lbFilePathDescription.Appearance.Options.UseTextOptions = true;
            this.lbFilePathDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbFilePathDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbFilePathDescription.Location     = new Point(3, 3);
            this.lbFilePathDescription.Name         = "lbFilePathDescription";
            this.lbFilePathDescription.Size         = new Size(0x19b, 0x2f);
            this.lbFilePathDescription.TabIndex     = 0;
            this.lbFilePathDescription.Text         = "Điều chỉnh tập tin cần import c\x00f3 cấu tr\x00fac c\x00e1c trường dữ liệu giống như tập tin excel mẫu (xem tập tin mẫu theo đường dẫn b\x00ean dưới). Đảm bảo dữ liệu cột m\x00e3 * kh\x00f4ng tr\x00f9ng lấp nhau.";
            this.wpProcessPage.Controls.Add(this.lbDataRow);
            this.wpProcessPage.Controls.Add(this.lbProgressDescription);
            this.wpProcessPage.Controls.Add(this.mqProgress);
            this.wpProcessPage.Name     = "wpProcessPage";
            this.wpProcessPage.Size     = new Size(0x1ab, 0xae);
            this.wpProcessPage.Text     = "Tiến tr\x00ecnh thực hiện việc nạp dữ liệu";
            this.lbDataRow.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbDataRow.Location     = new Point(4, 0x68);
            this.lbDataRow.Name         = "lbDataRow";
            this.lbDataRow.Size         = new Size(0x199, 0x36);
            this.lbDataRow.TabIndex     = 2;
            this.lbProgressDescription.Appearance.Options.UseTextOptions = true;
            this.lbProgressDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbProgressDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbProgressDescription.Location     = new Point(3, 4);
            this.lbProgressDescription.Name         = "lbProgressDescription";
            this.lbProgressDescription.Size         = new Size(0x19b, 0x2e);
            this.lbProgressDescription.TabIndex     = 1;
            this.mqProgress.EditValue = 0;
            this.mqProgress.Location  = new Point(3, 0x4f);
            this.mqProgress.Name      = "mqProgress";
            this.mqProgress.Properties.ProgressViewStyle = ProgressViewStyle.Solid;
            this.mqProgress.Size     = new Size(410, 0x12);
            this.mqProgress.TabIndex = 0;
            this.wpFinish.AllowBack  = false;
            this.wpFinish.Controls.Add(this.gcMessage);
            this.wpFinish.Controls.Add(this.lbFix);
            this.wpFinish.Controls.Add(this.lbFinishDescription);
            this.wpFinish.Controls.Add(this.lbMessage);
            this.wpFinish.Name      = "wpFinish";
            this.wpFinish.Size      = new Size(0x1ab, 0xae);
            this.wpFinish.Text      = "Ho\x00e0n th\x00e0nh";
            this.gcMessage.Location = new Point(0, 0x17);
            this.gcMessage.MainView = this.gbMessage;
            this.gcMessage.Name     = "gcMessage";
            this.gcMessage.Size     = new Size(0x1ab, 110);
            this.gcMessage.TabIndex = 5;
            this.gcMessage.ViewCollection.AddRange(new BaseView[] { this.gbMessage });
            this.gbMessage.Columns.AddRange(new GridColumn[] { this.colMessage, this.colStatus });
            condition.Appearance.ForeColor            = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.ApplyToRow = true;
            condition.Column     = this.colStatus;
            condition.Condition  = FormatConditionEnum.Equal;
            condition.Value1     = "1";
            this.gbMessage.FormatConditions.AddRange(new StyleFormatCondition[] { condition });
            this.gbMessage.GridControl = this.gcMessage;
            this.gbMessage.Name        = "gbMessage";
            this.gbMessage.OptionsView.EnableAppearanceEvenRow = true;
            this.gbMessage.OptionsView.RowAutoHeight           = true;
            this.gbMessage.OptionsView.ShowColumnHeaders       = false;
            this.gbMessage.OptionsView.ShowGroupPanel          = false;
            this.gbMessage.OptionsView.ShowIndicator           = false;
            this.colMessage.Caption   = "Th\x00f4ng tin";
            this.colMessage.FieldName = "Message";
            this.colMessage.Name      = "colMessage";
            this.colMessage.OptionsColumn.AllowEdit = false;
            this.colMessage.OptionsColumn.ReadOnly  = true;
            this.colMessage.Visible      = true;
            this.colMessage.VisibleIndex = 0;
            this.lbFix.AutoSize          = true;
            this.lbFix.BackColor         = Color.Transparent;
            this.lbFix.Font         = new Font("Tahoma", 9.75f);
            this.lbFix.Location     = new Point(0x16b, 4);
            this.lbFix.Name         = "lbFix";
            this.lbFix.Size         = new Size(0x33, 0x10);
            this.lbFix.TabIndex     = 3;
            this.lbFix.TabStop      = true;
            this.lbFix.Text         = "Sửa Lỗi";
            this.lbFix.Visible      = false;
            this.lbFix.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lbFix_LinkClicked);
            this.lbFinishDescription.Appearance.Options.UseTextOptions = true;
            this.lbFinishDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbFinishDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbFinishDescription.Location     = new Point(3, 0x8b);
            this.lbFinishDescription.Name         = "lbFinishDescription";
            this.lbFinishDescription.Size         = new Size(0x19b, 0x20);
            this.lbFinishDescription.TabIndex     = 2;
            this.lbFinishDescription.Text         = "Qu\x00e1 tr\x00ecnh import dữ liệu * đ\x00e3 ho\x00e0n tất. Nhấn n\x00fat ho\x00e0n th\x00e0nh ph\x00eda b\x00ean dưới để x\x00e1c nhận lại.";
            this.lbMessage.AllowHtmlString        = true;
            this.lbMessage.Location = new Point(3, 5);
            this.lbMessage.Name     = "lbMessage";
            this.lbMessage.Size     = new Size(0xb6, 14);
            this.lbMessage.TabIndex = 0;
            this.lbMessage.Text     = "Th\x00e0nh c\x00f4ng: <color=red>0</color> mẫu tin. Lỗi: <color=red>0</color> mẫu tin.";
            this.wpSelectField.Controls.Add(this.gcList);
            this.wpSelectField.Name = "wpSelectField";
            this.wpSelectField.Size = new Size(0x1ab, 0xae);
            this.wpSelectField.Text = "Gh\x00e9p trường dữ liệu";
            this.gcList.Dock        = DockStyle.Fill;
            this.gcList.Location    = new Point(0, 0);
            this.gcList.MainView    = this.gbList;
            this.gcList.Name        = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repSelectField });
            this.gcList.Size     = new Size(0x1ab, 0xae);
            this.gcList.TabIndex = 4;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Columns.AddRange(new GridColumn[] { this.colFieldName, this.colSelectField });
            this.gbList.GridControl = this.gcList;
            this.gbList.Name        = "gbList";
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.ShowGroupPanel  = false;
            this.gbList.OptionsView.ShowIndicator   = false;
            this.colFieldName.Caption   = "Mặc định";
            this.colFieldName.FieldName = "FieldName";
            this.colFieldName.Name      = "colFieldName";
            this.colFieldName.OptionsColumn.AllowEdit = false;
            this.colFieldName.OptionsColumn.ReadOnly  = true;
            this.colFieldName.Visible        = true;
            this.colFieldName.VisibleIndex   = 0;
            this.colFieldName.Width          = 0x9f;
            this.colSelectField.Caption      = "T\x00f9y chọn";
            this.colSelectField.ColumnEdit   = this.repSelectField;
            this.colSelectField.FieldName    = "SelectField";
            this.colSelectField.Name         = "colSelectField";
            this.colSelectField.Visible      = true;
            this.colSelectField.VisibleIndex = 1;
            this.colSelectField.Width        = 0xc0;
            this.repSelectField.AutoHeight   = false;
            this.repSelectField.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repSelectField.Name     = "repSelectField";
            this.repSelectField.NullText = "<Vui l\x00f2ng chọn>";
            base.AutoScaleDimensions     = new SizeF(6f, 13f);
            base.AutoScaleMode           = AutoScaleMode.Font;
            base.ClientSize = new Size(0x1e7, 0x150);
            base.Controls.Add(this.wcImport);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "xfmBaseImport";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "Nhập Danh S\x00e1ch * Từ Tập Tin Excel";
            base.Load         += new EventHandler(this.xfmImport_Load);
            this.wcImport.EndInit();
            this.wcImport.ResumeLayout(false);
            this.cheIsUpdate.Properties.EndInit();
            this.lcSheet.EndInit();
            this.lcSheet.ResumeLayout(false);
            this.cboSheet.Properties.EndInit();
            this.layoutControlGroup1.EndInit();
            this.layoutControlItem1.EndInit();
            this.wpSelectFile.ResumeLayout(false);
            this.txtFilePath.Properties.EndInit();
            this.wpProcessPage.ResumeLayout(false);
            this.mqProgress.Properties.EndInit();
            this.wpFinish.ResumeLayout(false);
            this.wpFinish.PerformLayout();
            this.gcMessage.EndInit();
            this.gbMessage.EndInit();
            this.wpSelectField.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repSelectField.EndInit();
            base.ResumeLayout(false);
        }
Beispiel #2
0
        private void InitializeComponent()
        {
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();

            this.cboBase     = new GridLookUpEdit();
            this.grvBase     = new GridView();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gridColumn3 = new GridColumn();
            this.gridColumn4 = new GridColumn();
            this.gridColumn5 = new GridColumn();
            this.gridColumn6 = new GridColumn();
            this.gridColumn7 = new GridColumn();
            this.cboBase.Properties.BeginInit();
            this.grvBase.BeginInit();
            base.SuspendLayout();
            this.cboBase.Anchor               = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.cboBase.EditValue            = "";
            this.cboBase.EnterMoveNextControl = true;
            this.cboBase.Location             = new Point(0, 0);
            this.cboBase.Name = "cboBase";
            this.cboBase.Properties.Appearance.BackColor            = Color.White;
            this.cboBase.Properties.Appearance.Options.UseBackColor = true;
            this.cboBase.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Plus, "Th\x00eam mới nh\x00e2n vi\x00ean", -1, true, true, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "Th\x00eam mới nh\x00e2n vi\x00ean", null, null, false) });
            this.cboBase.Properties.NullText      = "--Chọn --";
            this.cboBase.Properties.TextEditStyle = TextEditStyles.Standard;
            this.cboBase.Properties.View          = this.grvBase;
            this.cboBase.Size                                          = new Size(0xae, 20);
            this.cboBase.TabIndex                                      = 0;
            this.cboBase.EditValueChanged                             += new EventHandler(this.cboBase_EditValueChanged);
            this.cboBase.KeyDown                                      += new KeyEventHandler(this.cboBase_KeyDown);
            this.cboBase.KeyUp                                        += new KeyEventHandler(this.cboBase_KeyUp);
            this.grvBase.Appearance.HeaderPanel.Font                   = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.grvBase.Appearance.HeaderPanel.Options.UseFont        = true;
            this.grvBase.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.grvBase.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.grvBase.Columns.AddRange(new GridColumn[] { this.gridColumn2, this.gridColumn3, this.gridColumn4, this.gridColumn5, this.gridColumn6, this.gridColumn7 });
            this.grvBase.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.grvBase.Name           = "grvBase";
            this.grvBase.OptionsBehavior.AllowIncrementalSearch       = true;
            this.grvBase.OptionsDetail.SmartDetailHeight              = true;
            this.grvBase.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.grvBase.OptionsView.ShowAutoFilterRow = true;
            this.grvBase.OptionsView.ShowGroupPanel    = false;
            this.gridColumn1.Caption      = "gridColumn1";
            this.gridColumn1.Name         = "gridColumn1";
            this.gridColumn1.Visible      = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption      = "1";
            this.gridColumn2.FilterMode   = ColumnFilterMode.DisplayText;
            this.gridColumn2.Name         = "gridColumn2";
            this.gridColumn2.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.gridColumn2.Visible      = true;
            this.gridColumn2.VisibleIndex = 0;
            this.gridColumn3.Caption      = "2";
            this.gridColumn3.FilterMode   = ColumnFilterMode.DisplayText;
            this.gridColumn3.Name         = "gridColumn3";
            this.gridColumn3.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.gridColumn3.Visible      = true;
            this.gridColumn3.VisibleIndex = 1;
            this.gridColumn4.Caption      = "3";
            this.gridColumn4.FilterMode   = ColumnFilterMode.DisplayText;
            this.gridColumn4.Name         = "gridColumn4";
            this.gridColumn4.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.gridColumn4.Visible      = true;
            this.gridColumn4.VisibleIndex = 2;
            this.gridColumn5.Caption      = "4";
            this.gridColumn5.FilterMode   = ColumnFilterMode.DisplayText;
            this.gridColumn5.Name         = "gridColumn5";
            this.gridColumn5.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.gridColumn5.Visible      = true;
            this.gridColumn5.VisibleIndex = 3;
            this.gridColumn6.Caption      = "5";
            this.gridColumn6.FilterMode   = ColumnFilterMode.DisplayText;
            this.gridColumn6.Name         = "gridColumn6";
            this.gridColumn6.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.gridColumn6.Visible      = true;
            this.gridColumn6.VisibleIndex = 4;
            this.gridColumn7.Caption      = "6";
            this.gridColumn7.FilterMode   = ColumnFilterMode.DisplayText;
            this.gridColumn7.Name         = "gridColumn7";
            this.gridColumn7.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.gridColumn7.Visible      = true;
            this.gridColumn7.VisibleIndex = 5;
            base.AutoScaleDimensions      = new SizeF(6f, 13f);
            base.AutoScaleMode            = AutoScaleMode.Font;
            this.AutoValidate             = AutoValidate.Disable;
            base.Controls.Add(this.cboBase);
            base.Name  = "ComboBase";
            base.Size  = new Size(0xc4, 0x15);
            base.Load += new EventHandler(this.ComboBase_Load);
            this.cboBase.Properties.EndInit();
            this.grvBase.EndInit();
            base.ResumeLayout(false);
        }
Beispiel #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(XucBaseBasicF));
            SuperToolTip             tip     = new SuperToolTip();
            ToolTipItem  item  = new ToolTipItem();
            SuperToolTip tip2  = new SuperToolTip();
            ToolTipItem  item2 = new ToolTipItem();
            SuperToolTip tip3  = new SuperToolTip();
            ToolTipItem  item3 = new ToolTipItem();
            SuperToolTip tip4  = new SuperToolTip();
            ToolTipItem  item4 = new ToolTipItem();
            SuperToolTip tip5  = new SuperToolTip();
            ToolTipItem  item5 = new ToolTipItem();
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();

            this.bm = new BarManager(this.components);
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.imgToolBar           = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiDelete            = new BarButtonItem();
            this.bbiRefresh           = new BarButtonItem();
            this.bbiExport            = new BarButtonItem();
            this.bbiCopy                      = new BarButtonItem();
            this.bbiPrint                     = new BarButtonItem();
            this.bbiImport                    = new BarButtonItem();
            this.bbiView                      = new BarButtonItem();
            this.repYear                      = new RepositoryItemTimeEdit();
            this.repName                      = new RepositoryItemTextEdit();
            this.repDateTimeSelect            = new RepositoryItemComboBox();
            this.repFromDate                  = new RepositoryItemDateEdit();
            this.repToDate                    = new RepositoryItemDateEdit();
            this.repMonth                     = new RepositoryItemTimeEdit();
            this.repTableListSelect           = new RepositoryItemGridLookUpEdit();
            this.repTableListGridLookupSelect = new GridView();
            this.gridLookupID                 = new GridColumn();
            this.gridLookupName               = new GridColumn();
            this.pm = new PopupMenu(this.components);
            this.bm.BeginInit();
            this.imgToolBar.BeginInit();
            this.repYear.BeginInit();
            this.repName.BeginInit();
            this.repDateTimeSelect.BeginInit();
            this.repFromDate.BeginInit();
            this.repFromDate.VistaTimeProperties.BeginInit();
            this.repToDate.BeginInit();
            this.repToDate.VistaTimeProperties.BeginInit();
            this.repMonth.BeginInit();
            this.repTableListSelect.BeginInit();
            this.repTableListGridLookupSelect.BeginInit();
            this.pm.BeginInit();
            base.SuspendLayout();
            this.bm.AllowCustomization      = false;
            this.bm.AllowMoveBarOnToolbar   = false;
            this.bm.AllowQuickCustomization = false;
            this.bm.AllowShowToolbarsPopup  = false;
            this.bm.AutoSaveInRegistry      = true;
            this.bm.DockControls.Add(this.barDockControlTop);
            this.bm.DockControls.Add(this.barDockControlBottom);
            this.bm.DockControls.Add(this.barDockControlLeft);
            this.bm.DockControls.Add(this.barDockControlRight);
            this.bm.DockWindowTabFont = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.bm.Form   = this;
            this.bm.Images = this.imgToolBar;
            this.bm.Items.AddRange(new BarItem[] { this.bbiDelete, this.bbiRefresh, this.bbiExport, this.bbiCopy, this.bbiPrint, this.bbiImport, this.bbiView });
            this.bm.LargeImages = this.imgToolBar;
            this.bm.MaxItemId   = 0x4b;
            this.bm.RepositoryItems.AddRange(new RepositoryItem[] { this.repYear, this.repName, this.repDateTimeSelect, this.repFromDate, this.repToDate, this.repMonth, this.repTableListSelect });
            this.bm.ShowFullMenusAfterDelay = false;
            this.imgToolBar.ImageStream     = (ImageCollectionStreamer)manager.GetObject("imgToolBar.ImageStream");
            this.bbiDelete.Caption          = "&Xo\x00e1";
            this.bbiDelete.Id           = 3;
            this.bbiDelete.ImageIndex   = 13;
            this.bbiDelete.ItemShortcut = new BarShortcut(Keys.Delete);
            this.bbiDelete.Name         = "bbiDelete";
            item.Text = "Alt-X\r\nDelete\r\nX\x00f3a";
            tip.Items.Add(item);
            this.bbiDelete.SuperTip      = tip;
            this.bbiDelete.ItemClick    += new ItemClickEventHandler(this.bbiDelete_ItemClick);
            this.bbiRefresh.Caption      = "&Nạp Lại";
            this.bbiRefresh.Id           = 4;
            this.bbiRefresh.ImageIndex   = 0x2a;
            this.bbiRefresh.ItemShortcut = new BarShortcut(Keys.F5);
            this.bbiRefresh.Name         = "bbiRefresh";
            item2.Text = "F5\r\nNạp Lại";
            tip2.Items.Add(item2);
            this.bbiRefresh.SuperTip       = tip2;
            this.bbiRefresh.ItemClick     += new ItemClickEventHandler(this.bbiRefresh_ItemClick);
            this.bbiExport.Caption         = "Xuất ";
            this.bbiExport.Id              = 0x13;
            this.bbiExport.ImageIndex      = 0x37;
            this.bbiExport.ItemShortcut    = new BarShortcut(Keys.Control | Keys.E);
            this.bbiExport.LargeImageIndex = 0x37;
            this.bbiExport.Name            = "bbiExport";
            item3.Text = "Ctrl+E";
            tip3.Items.Add(item3);
            this.bbiExport.SuperTip    = tip3;
            this.bbiExport.ItemClick  += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiCopy.Caption       = "Sao Ch\x00e9p";
            this.bbiCopy.Id            = 0x2b;
            this.bbiCopy.ImageIndex    = 8;
            this.bbiCopy.ItemShortcut  = new BarShortcut(Keys.Control | Keys.Shift | Keys.C);
            this.bbiCopy.Name          = "bbiCopy";
            this.bbiCopy.ItemClick    += new ItemClickEventHandler(this.bbiCopy_ItemClick);
            this.bbiPrint.Caption      = "In";
            this.bbiPrint.Id           = 0x2c;
            this.bbiPrint.ImageIndex   = 9;
            this.bbiPrint.ItemShortcut = new BarShortcut(Keys.Control | Keys.P);
            this.bbiPrint.Name         = "bbiPrint";
            item4.Text = "Ctrl+P\r\nIn";
            tip4.Items.Add(item4);
            this.bbiPrint.SuperTip      = tip4;
            this.bbiPrint.ItemClick    += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiImport.Caption      = "Nạp >";
            this.bbiImport.Id           = 0x39;
            this.bbiImport.ImageIndex   = 0x39;
            this.bbiImport.ItemShortcut = new BarShortcut(Keys.Control | Keys.I);
            this.bbiImport.Name         = "bbiImport";
            item5.Text = "Ctrl+I\r\nNạp";
            tip5.Items.Add(item5);
            this.bbiImport.SuperTip                 = tip5;
            this.bbiImport.ItemClick               += new ItemClickEventHandler(this.bbiImport_ItemClick);
            this.bbiView.Caption                    = "Xem";
            this.bbiView.Id                         = 0x3e;
            this.bbiView.ImageIndex                 = 3;
            this.bbiView.LargeImageIndex            = 3;
            this.bbiView.Name                       = "bbiView";
            this.bbiView.ItemClick                 += new ItemClickEventHandler(this.bbiView_ItemClick);
            this.repYear.Appearance.Font            = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight                 = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Mask.UseMaskAsDisplayFormat = true;
            this.repYear.Name                                         = "repYear";
            this.repName.Appearance.Font                              = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repName.Appearance.Options.UseFont                   = true;
            this.repName.AutoHeight                                   = false;
            this.repName.Name                                         = "repName";
            this.repName.ReadOnly                                     = true;
            this.repDateTimeSelect.Appearance.Font                    = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repDateTimeSelect.Appearance.Options.UseFont         = true;
            this.repDateTimeSelect.AppearanceDropDown.Font            = new Font("Tahoma", 9.25f, FontStyle.Bold);
            this.repDateTimeSelect.AppearanceDropDown.Options.UseFont = true;
            this.repDateTimeSelect.AutoHeight                         = false;
            this.repDateTimeSelect.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repDateTimeSelect.Items.AddRange(new object[] {
                "H\x00f4m nay", "Tuần n\x00e0y", "Th\x00e1ng n\x00e0y", "Qu\x00fd n\x00e0y", "Năm nay", "Th\x00e1ng 1", "Th\x00e1ng 2", "Th\x00e1ng 3", "Th\x00e1ng 4", "Th\x00e1ng 5", "Th\x00e1ng 6", "Th\x00e1ng 7", "Th\x00e1ng 8", "Th\x00e1ng 9", "Th\x00e1ng 10", "Th\x00e1ng 11",
                "Th\x00e1ng 12", "Qu\x00fd 1", "Qu\x00fd 2", "Qu\x00fd 3", "Qu\x00fd 4"
            });
            this.repDateTimeSelect.Name = "repDateTimeSelect";
            this.repFromDate.AutoHeight = false;
            this.repFromDate.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repFromDate.Name = "repFromDate";
            this.repFromDate.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repToDate.AutoHeight = false;
            this.repToDate.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repToDate.Name = "repToDate";
            this.repToDate.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Appearance.Font            = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Mask.UseMaskAsDisplayFormat = true;
            this.repMonth.Name = "repMonth";
            this.repTableListSelect.Appearance.Font            = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repTableListSelect.Appearance.Options.UseFont = true;
            this.repTableListSelect.AutoHeight = false;
            this.repTableListSelect.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image)manager.GetObject("repTableListSelect.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.repTableListSelect.Name     = "repTableListSelect";
            this.repTableListSelect.NullText = "[Chưa chọn dữ liệu]";
            this.repTableListSelect.View     = this.repTableListGridLookupSelect;
            this.repTableListGridLookupSelect.Columns.AddRange(new GridColumn[] { this.gridLookupID, this.gridLookupName });
            this.repTableListGridLookupSelect.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repTableListGridLookupSelect.Name           = "repTableListGridLookupSelect";
            this.repTableListGridLookupSelect.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repTableListGridLookupSelect.OptionsView.ShowGroupPanel = false;
            this.gridLookupID.Caption        = "M\x00e3";
            this.gridLookupID.FieldName      = "ID";
            this.gridLookupID.Name           = "gridLookupID";
            this.gridLookupName.Caption      = "T\x00ean";
            this.gridLookupName.Name         = "gridLookupName";
            this.gridLookupName.Visible      = true;
            this.gridLookupName.VisibleIndex = 0;
            this.pm.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiDelete), new LinkPersistInfo(this.bbiCopy), new LinkPersistInfo(this.bbiExport, true), new LinkPersistInfo(this.bbiPrint), new LinkPersistInfo(this.bbiRefresh, true) });
            this.pm.Manager          = this.bm;
            this.pm.Name             = "pm";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            this.DoubleBuffered = true;
            base.Name           = "XucBaseBasicF";
            base.Size           = new Size(0x2d4, 0x1dd);
            this.bm.EndInit();
            this.imgToolBar.EndInit();
            this.repYear.EndInit();
            this.repName.EndInit();
            this.repDateTimeSelect.EndInit();
            this.repFromDate.VistaTimeProperties.EndInit();
            this.repFromDate.EndInit();
            this.repToDate.VistaTimeProperties.EndInit();
            this.repToDate.EndInit();
            this.repMonth.EndInit();
            this.repTableListSelect.EndInit();
            this.repTableListGridLookupSelect.EndInit();
            this.pm.EndInit();
            base.ResumeLayout(false);
        }
Beispiel #4
0
        private void InitializeComponent()
        {
            ComponentResourceManager     manager    = new ComponentResourceManager(typeof(FrmCreateDB));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();

            this.labelControl2 = new LabelControl();
            this.textEdit1     = new TextEdit();
            this.labelControl3 = new LabelControl();
            this.textEdit2     = new TextEdit();
            this.simpleButton1 = new SimpleButton();
            this.simpleButton2 = new SimpleButton();
            this.labelControl4 = new LabelControl();
            this.textEdit3     = new TextEdit();
            this.labelControl1 = new LabelControl();
            this.textEdit4     = new TextEdit();
            this.labelControl5 = new LabelControl();
            this.buttonEdit1   = new ButtonEdit();
            this.textEdit1.Properties.BeginInit();
            this.textEdit2.Properties.BeginInit();
            this.textEdit3.Properties.BeginInit();
            this.textEdit4.Properties.BeginInit();
            this.buttonEdit1.Properties.BeginInit();
            base.SuspendLayout();
            this.labelControl2.Location = new Point(0x42, 0x40);
            this.labelControl2.Name     = "labelControl2";
            this.labelControl2.Size     = new Size(0x30, 14);
            this.labelControl2.TabIndex = 2;
            this.labelControl2.Text     = "登录名:";
            this.textEdit1.Location     = new Point(120, 0x3d);
            this.textEdit1.Name         = "textEdit1";
            this.textEdit1.Size         = new Size(100, 20);
            this.textEdit1.TabIndex     = 3;
            this.labelControl3.Location = new Point(0x4e, 0x63);
            this.labelControl3.Name     = "labelControl3";
            this.labelControl3.Size     = new Size(0x24, 14);
            this.labelControl3.TabIndex = 4;
            this.labelControl3.Text     = "密码:";
            this.textEdit2.Location     = new Point(120, 0x60);
            this.textEdit2.Name         = "textEdit2";
            this.textEdit2.Size         = new Size(100, 20);
            this.textEdit2.TabIndex     = 5;
            this.simpleButton1.Location = new Point(0x35, 0xd3);
            this.simpleButton1.Name     = "simpleButton1";
            this.simpleButton1.Size     = new Size(0x4b, 0x17);
            this.simpleButton1.TabIndex = 6;
            this.simpleButton1.Text     = "测试连接";
            this.simpleButton1.Click   += new EventHandler(this.simpleButton1_Click);
            this.simpleButton2.Location = new Point(0x94, 210);
            this.simpleButton2.Name     = "simpleButton2";
            this.simpleButton2.Size     = new Size(0x4b, 0x17);
            this.simpleButton2.TabIndex = 7;
            this.simpleButton2.Text     = "创建";
            this.simpleButton2.Click   += new EventHandler(this.simpleButton2_Click);
            this.labelControl4.Location = new Point(0x36, 0x86);
            this.labelControl4.Name     = "labelControl4";
            this.labelControl4.Size     = new Size(60, 14);
            this.labelControl4.TabIndex = 8;
            this.labelControl4.Text     = "数据库名:";
            this.textEdit3.Location     = new Point(120, 0x83);
            this.textEdit3.Name         = "textEdit3";
            this.textEdit3.Size         = new Size(100, 20);
            this.textEdit3.TabIndex     = 9;
            this.labelControl1.Location = new Point(50, 0x1c);
            this.labelControl1.Name     = "labelControl1";
            this.labelControl1.Size     = new Size(0x40, 14);
            this.labelControl1.TabIndex = 10;
            this.labelControl1.Text     = " 服务器名:";
            this.textEdit4.Location     = new Point(120, 0x19);
            this.textEdit4.Name         = "textEdit4";
            this.textEdit4.Size         = new Size(100, 20);
            this.textEdit4.TabIndex     = 11;
            this.labelControl5.Location = new Point(0x36, 0xac);
            this.labelControl5.Name     = "labelControl5";
            this.labelControl5.Size     = new Size(60, 14);
            this.labelControl5.TabIndex = 12;
            this.labelControl5.Text     = "备份文件:";
            this.buttonEdit1.Location   = new Point(120, 0xa7);
            this.buttonEdit1.Name       = "buttonEdit1";
            this.buttonEdit1.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image)manager.GetObject("buttonEdit1.Properties.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.buttonEdit1.Size         = new Size(100, 0x16);
            this.buttonEdit1.TabIndex     = 13;
            this.buttonEdit1.ButtonClick += new ButtonPressedEventHandler(this.buttonEdit1_ButtonClick);
            base.AutoScaleDimensions      = new SizeF(6f, 12f);
            base.AutoScaleMode            = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x115, 0x110);
            base.Controls.Add(this.buttonEdit1);
            base.Controls.Add(this.labelControl5);
            base.Controls.Add(this.textEdit4);
            base.Controls.Add(this.labelControl1);
            base.Controls.Add(this.textEdit3);
            base.Controls.Add(this.labelControl4);
            base.Controls.Add(this.simpleButton2);
            base.Controls.Add(this.simpleButton1);
            base.Controls.Add(this.textEdit2);
            base.Controls.Add(this.labelControl3);
            base.Controls.Add(this.textEdit1);
            base.Controls.Add(this.labelControl2);
            base.Name  = "FrmCreateDB";
            this.Text  = "创建数据库";
            base.Load += new EventHandler(this.FrmCreateDB_Load);
            this.textEdit1.Properties.EndInit();
            this.textEdit2.Properties.EndInit();
            this.textEdit3.Properties.EndInit();
            this.textEdit4.Properties.EndInit();
            this.buttonEdit1.Properties.EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }