/// <summary> /// 初始化系统对应的容器 /// </summary> /// <returns>返回生成的容器</returns> public static UserControl CreaterContainer() { string assemblyName = CJia.HIS.SystemInfo.loginSystem["PAGE_CONTAINER_ASM"].ToString(); string typeName = CJia.HIS.SystemInfo.loginSystem["PAGE_CONTAINER"].ToString(); object[] parameters = new object[0]; DevExpress.XtraEditors.XtraUserControl userControl = CJia.HIS.App.Tools.Reflection.GetInstance(assemblyName, typeName, parameters) as DevExpress.XtraEditors.XtraUserControl; userControl.Dock = DockStyle.Fill; return(userControl); }
public void ShowController(DevExpress.XtraEditors.XtraUserControl control) { if (!container.Controls.Contains(control)) { container.Controls.Add(control); control.Dock = DockStyle.Fill; } control.BringToFront(); control.Show(); }
public static bool CheckLpIsNotNull(DevExpress.XtraEditors.XtraUserControl con, string ControlName, string Name) { CJia.Controls.CJiaRTLookUp lu = con.Controls.Find(ControlName, true)[0] as Controls.CJiaRTLookUp; if (lu.EditValue == "") { MessageBox.Show(Name + "不能为空"); lu.Focus(); return(false); } else { return(true); } }
/// <summary> /// 判断输入框是否不为为空 /// </summary> /// <param name="ControlName"></param> /// <param name="Name"></param> public static bool CheckIsNotNull(DevExpress.XtraEditors.XtraUserControl con, string ControlName, string Name) { CJia.Controls.CJiaTextBox text = con.Controls.Find(ControlName, true)[0] as CJia.Controls.CJiaTextBox; if (text.Text == "") { MessageBox.Show(Name + "不能为空"); text.Focus(); return(false); } else { return(true); } }
public void TrimTextEdit(DevExpress.XtraEditors.XtraUserControl form) { foreach (Control c in form.Controls) { if (c is DevExpress.XtraEditors.TextEdit) { (c as DevExpress.XtraEditors.TextEdit).Text = (c as DevExpress.XtraEditors.TextEdit).Text.Trim(); } if (c is DevExpress.XtraEditors.MemoEdit) { (c as DevExpress.XtraEditors.MemoEdit).Text = (c as DevExpress.XtraEditors.MemoEdit).Text.Trim(); } if (c is DevExpress.XtraEditors.GroupControl) { TrimTextEditInGroupControl(c as DevExpress.XtraEditors.GroupControl); } } }
/// <summary> /// 作用:查找子窗体 /// 作者:汪建龙 /// 编写时间:2016年12月27日14:02:13 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public static T FindDocument <T>() where T : ContainerControl { try { if (MainForm == null || MainForm.Created == false || MainForm.IsDisposed || MainForm.MdiChildren == null || MainForm.MdiChildren.Length == 0) { return(null); } foreach (Form subForm in MainForm.MdiChildren) { if (subForm.IsDisposed) { continue; } if (subForm.GetType().Equals(typeof(T)) && subForm.Created && subForm.IsDisposed == false) { return(subForm as T); } else { DevExpress.XtraEditors.XtraUserControl xtraUserControl = subForm.Tag as DevExpress.XtraEditors.XtraUserControl; if (xtraUserControl != null && xtraUserControl.IsDisposed == false) { return(xtraUserControl as T); } } } }catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex); } return(null); }
public CloudTaskBackstageViewMenu(System.Windows.Forms.Control form, DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl) { controller = new Controllers.MainMenuController(); m_ribbonControl = ribbonControl; m_backstageViewControl = new DevExpress.XtraBars.Ribbon.BackstageViewControl(); m_backstageViewClientControl = new DevExpress.XtraBars.Ribbon.BackstageViewClientControl(); m_TabSaveButtonSave = new DevExpress.XtraEditors.SimpleButton(); m_TabSaveButtonSaveAs = new DevExpress.XtraEditors.SimpleButton(); m_TabSaveXtraUserControl = new DevExpress.XtraEditors.XtraUserControl(); m_backstageViewButtonNewCase = new DevExpress.XtraBars.Ribbon.BackstageViewButtonItem(); m_backstageViewButtonOpenCase = new DevExpress.XtraBars.Ribbon.BackstageViewButtonItem(); m_backstageViewTabSaveCase = new DevExpress.XtraBars.Ribbon.BackstageViewTabItem(); m_backstageViewButtonSettings = new DevExpress.XtraBars.Ribbon.BackstageViewButtonItem(); m_backstageViewItemSeparator = new DevExpress.XtraBars.Ribbon.BackstageViewItemSeparator(); m_backstageViewButtonDeleteCurrentCase = new DevExpress.XtraBars.Ribbon.BackstageViewButtonItem(); m_backstageViewButtonExit = new DevExpress.XtraBars.Ribbon.BackstageViewButtonItem(); ((System.ComponentModel.ISupportInitialize)(m_backstageViewControl)).BeginInit(); m_backstageViewControl.SuspendLayout(); m_backstageViewClientControl.SuspendLayout(); // // backstageViewControl // m_backstageViewControl.Appearance.BackColor = System.Drawing.Color.Black; m_backstageViewControl.Appearance.BackColor2 = System.Drawing.Color.Black; m_backstageViewControl.Appearance.BorderColor = System.Drawing.Color.Black; m_backstageViewControl.Appearance.Options.UseBackColor = true; m_backstageViewControl.Appearance.Options.UseBorderColor = true; m_backstageViewControl.ColorScheme = DevExpress.XtraBars.Ribbon.RibbonControlColorScheme.Yellow; m_backstageViewControl.Controls.Add(m_backstageViewClientControl); m_backstageViewControl.Items.Add(m_backstageViewButtonNewCase); m_backstageViewControl.Items.Add(m_backstageViewButtonOpenCase); m_backstageViewControl.Items.Add(m_backstageViewTabSaveCase); m_backstageViewControl.Items.Add(m_backstageViewButtonSettings); m_backstageViewControl.Items.Add(m_backstageViewItemSeparator); m_backstageViewControl.Items.Add(m_backstageViewButtonDeleteCurrentCase); m_backstageViewControl.Items.Add(m_backstageViewButtonExit); m_backstageViewControl.Location = new System.Drawing.Point(267, 150); m_backstageViewControl.Name = "backstageViewControl"; m_backstageViewControl.Ribbon = ribbonControl; m_backstageViewControl.SelectedTab = m_backstageViewTabSaveCase; m_backstageViewControl.SelectedTabIndex = 2; m_backstageViewControl.Size = new System.Drawing.Size(759, 377); m_backstageViewControl.Style = DevExpress.XtraBars.Ribbon.BackstageViewStyle.Office2013; m_backstageViewControl.TabIndex = 5; m_backstageViewControl.Text = "backstageViewControl1"; // // backstageViewClientControl // m_backstageViewClientControl.Controls.Add(m_TabSaveButtonSave); m_backstageViewClientControl.Controls.Add(m_TabSaveButtonSaveAs); m_backstageViewClientControl.Controls.Add(m_TabSaveXtraUserControl); m_backstageViewClientControl.Location = new System.Drawing.Point(163, 63); m_backstageViewClientControl.Name = "backstageViewClientControl1"; m_backstageViewClientControl.Size = new System.Drawing.Size(595, 313); m_backstageViewClientControl.TabIndex = 0; // // simpleButtonSave // m_TabSaveButtonSave.Image = global::CloudTask_GUI.Properties.Resources.save_32x32; m_TabSaveButtonSave.Location = new System.Drawing.Point(17, 94); m_TabSaveButtonSave.Name = "simpleButtonSave"; m_TabSaveButtonSave.Size = new System.Drawing.Size(107, 37); m_TabSaveButtonSave.TabIndex = 2; m_TabSaveButtonSave.Text = "Save"; // // simpleButtonSaveAs // m_TabSaveButtonSaveAs.Image = global::CloudTask_GUI.Properties.Resources.saveandnew_32x32; m_TabSaveButtonSaveAs.Location = new System.Drawing.Point(17, 51); m_TabSaveButtonSaveAs.Name = "simpleButtonSaveAs"; m_TabSaveButtonSaveAs.Size = new System.Drawing.Size(107, 37); m_TabSaveButtonSaveAs.TabIndex = 1; m_TabSaveButtonSaveAs.Text = "Save as"; // // xtraUserControl2 // m_TabSaveXtraUserControl.Dock = System.Windows.Forms.DockStyle.Fill; m_TabSaveXtraUserControl.Location = new System.Drawing.Point(0, 0); m_TabSaveXtraUserControl.Name = "xtraUserControl2"; m_TabSaveXtraUserControl.Size = new System.Drawing.Size(595, 313); m_TabSaveXtraUserControl.TabIndex = 0; // // backstageViewButtonNewCase // m_backstageViewButtonNewCase.Caption = "New Case"; m_backstageViewButtonNewCase.Glyph = global::CloudTask_GUI.Properties.Resources.project_32x32; m_backstageViewButtonNewCase.Name = "backstageViewButtonNewCase"; // // backstageViewButtonOpenCase // m_backstageViewButtonOpenCase.Caption = "Open Case"; m_backstageViewButtonOpenCase.Glyph = global::CloudTask_GUI.Properties.Resources.loadfrom_32x32; m_backstageViewButtonOpenCase.Name = "backstageViewButtonOpenCase"; // // backstageViewTabSaveCase // m_backstageViewTabSaveCase.Caption = "Save Case"; m_backstageViewTabSaveCase.ContentControl = m_backstageViewClientControl; m_backstageViewTabSaveCase.Glyph = global::CloudTask_GUI.Properties.Resources.save_32x32; m_backstageViewTabSaveCase.Name = "backstageViewTabSaveCase"; m_backstageViewTabSaveCase.Selected = false; // // backstageViewButtonSettings // m_backstageViewButtonSettings.Caption = "Settings"; m_backstageViewButtonSettings.Glyph = global::CloudTask_GUI.Properties.Resources.technology_32x32; m_backstageViewButtonSettings.Name = "backstageViewButtonSettings"; m_backstageViewButtonSettings.Visible = false; // // backstageViewItemSeparator1 // m_backstageViewItemSeparator.Name = "backstageViewItemSeparator1"; // // backstageViewButtonDeleteCurrentCase // m_backstageViewButtonDeleteCurrentCase.Caption = "Delete Current Case"; m_backstageViewButtonDeleteCurrentCase.Glyph = global::CloudTask_GUI.Properties.Resources.clear_32x32; m_backstageViewButtonDeleteCurrentCase.Name = "backstageViewButtonDeleteCurrentCase"; // // backstageViewButtonExit // m_backstageViewButtonExit.Caption = "Exit"; m_backstageViewButtonExit.Glyph = global::CloudTask_GUI.Properties.Resources.bugreport_32x32; m_backstageViewButtonExit.Name = "backstageViewButtonExit"; m_ribbonControl.ApplicationButtonDropDownControl = m_backstageViewControl; form.Controls.Add(m_backstageViewControl); ((System.ComponentModel.ISupportInitialize)(m_backstageViewControl)).EndInit(); m_backstageViewControl.ResumeLayout(false); m_backstageViewClientControl.ResumeLayout(false); m_TabSaveButtonSaveAs.Click += new EventHandler(controller.CaseSaveAsClicked); m_TabSaveButtonSave.Click += new EventHandler(controller.CaseSaveClicked); m_backstageViewButtonOpenCase.ItemClick += new DevExpress.XtraBars.Ribbon.BackstageViewItemEventHandler(controller.OpenCaseClicked); m_backstageViewButtonNewCase.ItemClick += new DevExpress.XtraBars.Ribbon.BackstageViewItemEventHandler(controller.NewCaseClicked); m_backstageViewButtonDeleteCurrentCase.ItemClick += new DevExpress.XtraBars.Ribbon.BackstageViewItemEventHandler(controller.DeleteCaseClicked); m_backstageViewButtonExit.ItemClick += new DevExpress.XtraBars.Ribbon.BackstageViewItemEventHandler(controller.ExitClicked); }
public void MyLoadNurseDocument(IWin32Window wind, IEmrHost m_app, DataRow drInpatient, out DevExpress.XtraEditors.XtraUserControl MymainNursingMeasure) { try { Form form = null; //获取病人对象 Inpatient m_NewPat = new Inpatient(); m_app.ChoosePatient(Convert.ToDecimal((drInpatient["NOOFINPAT"])).ToString(), out m_NewPat); DrectSoft.Core.NurseDocument.MainNursingMeasure mainNursingMeasure = new DrectSoft.Core.NurseDocument.MainNursingMeasure(drInpatient["NOOFINPAT"].ToString()); string version = DrectSoft.Core.NurseDocument.ConfigInfo.GetNurseMeasureVersion(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); mainNursingMeasure.CurrentPat = drInpatient["NOOFINPAT"].ToString(); mainNursingMeasure.eventHandlerXieRu += delegate(object sender1, EventArgs e1) { if (form == null) { Assembly a = Assembly.Load("DrectSoft.Core.NurseDocument"); Type type = a.GetType(version); form = (Form)Activator.CreateInstance(type, new object[] { m_app, drInpatient["NOOFINPAT"].ToString() }); form.Height = DrectSoft.Core.NurseDocument.ConfigInfo.GetNurseRecordSize(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); form.FormClosed += delegate(object sender2, FormClosedEventArgs e2) { form = null; mainNursingMeasure.LoadDataImage(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); }; form.Show(wind); } mainNursingMeasure.LoadDataImage(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); }; mainNursingMeasure.Load(m_app, m_NewPat); mainNursingMeasure.ReadOnlyControl = true; if (form != null) { switch (version.Trim()) { case "DrectSoft.Core.NurseDocument.Controls.NursingRecordNew": (form as DrectSoft.Core.NurseDocument.Controls.NursingRecordNew).RefreshDate(drInpatient["NOOFINPAT"].ToString()); (form as DrectSoft.Core.NurseDocument.Controls.NursingRecordNew).dateEdit_DateTimeChanged(null, null); break; case "DrectSoft.Core.NurseDocument.Controls.NursingRecord": (form as DrectSoft.Core.NurseDocument.Controls.NursingRecord).RefreshDate(drInpatient["NOOFINPAT"].ToString()); (form as DrectSoft.Core.NurseDocument.Controls.NursingRecord).dateEdit_DateTimeChanged(null, null); break; } form.FormClosed += delegate(object sender2, FormClosedEventArgs e2) { mainNursingMeasure.LoadDataImage(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); }; } MymainNursingMeasure = mainNursingMeasure; } catch (Exception ex) { MymainNursingMeasure = null; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_usuarios_perfil_local)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); this.Botonera = new System.Windows.Forms.ToolStrip(); this.btn_nuevo = new System.Windows.Forms.ToolStripButton(); this.btn_editar = new System.Windows.Forms.ToolStripButton(); this.btn_cancelar = new System.Windows.Forms.ToolStripButton(); this.btn_grabar = new System.Windows.Forms.ToolStripButton(); this.btn_eliminar = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.btn_clave = new System.Windows.Forms.ToolStripButton(); this.btn_log = new System.Windows.Forms.ToolStripButton(); this.btn_salir = new System.Windows.Forms.ToolStripButton(); this.tabcontrol = new System.Windows.Forms.TabControl(); this.tabusuarioperfil = new System.Windows.Forms.TabPage(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.label8 = new System.Windows.Forms.Label(); this.usuarp = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.nombrp = new System.Windows.Forms.TextBox(); this.nbperp = new System.Windows.Forms.TextBox(); this.idperp = new System.Windows.Forms.TextBox(); this.gridusuarioperfil = new System.Windows.Forms.DataGridView(); this.ggusuar = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ggnombr = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ggidper = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ggnbper = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tabusuariomodulolocal = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.label9 = new System.Windows.Forms.Label(); this.usuarl = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.nombrl = new System.Windows.Forms.TextBox(); this.localname = new System.Windows.Forms.TextBox(); this.locall = new System.Windows.Forms.TextBox(); this.gridusuariomodulolocal = new System.Windows.Forms.DataGridView(); this.gdominioid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.gmoduloid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.gusuar = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.gnombr = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.glocal = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.glocalname = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tabperfil = new System.Windows.Forms.TabPage(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.txt_idper = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.idper = new System.Windows.Forms.TextBox(); this.nivel = new System.Windows.Forms.ComboBox(); this.label11 = new System.Windows.Forms.Label(); this.nbper = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.gridperfil = new System.Windows.Forms.DataGridView(); this.gidper = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.gnbper = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.label6 = new System.Windows.Forms.Label(); this.dominioid = new System.Windows.Forms.ComboBox(); this.moduloid = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.xtraUserControl1 = new DevExpress.XtraEditors.XtraUserControl(); this.xtraUserControl2 = new DevExpress.XtraEditors.XtraUserControl(); this.label3 = new System.Windows.Forms.Label(); this.Botonera.SuspendLayout(); this.tabcontrol.SuspendLayout(); this.tabusuarioperfil.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridusuarioperfil)).BeginInit(); this.tabusuariomodulolocal.SuspendLayout(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridusuariomodulolocal)).BeginInit(); this.tabperfil.SuspendLayout(); this.groupBox4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridperfil)).BeginInit(); this.SuspendLayout(); // // Botonera // this.Botonera.ImageScalingSize = new System.Drawing.Size(22, 22); this.Botonera.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btn_nuevo, this.btn_editar, this.btn_cancelar, this.btn_grabar, this.btn_eliminar, this.toolStripSeparator1, this.btn_clave, this.btn_log, this.btn_salir}); this.Botonera.Location = new System.Drawing.Point(0, 0); this.Botonera.Name = "Botonera"; this.Botonera.Size = new System.Drawing.Size(556, 29); this.Botonera.TabIndex = 1; this.Botonera.Text = "ToolStrip1"; // // btn_nuevo // this.btn_nuevo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_nuevo.Image = global::BapFormulariosNet.Properties.Resources.go_new3; this.btn_nuevo.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_nuevo.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_nuevo.Name = "btn_nuevo"; this.btn_nuevo.Size = new System.Drawing.Size(23, 26); this.btn_nuevo.Text = "Nuevo (Ctrl + N)"; this.btn_nuevo.Click += new System.EventHandler(this.btn_nuevo_Click); // // btn_editar // this.btn_editar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_editar.Image = global::BapFormulariosNet.Properties.Resources.Edit; this.btn_editar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_editar.Name = "btn_editar"; this.btn_editar.Size = new System.Drawing.Size(26, 26); this.btn_editar.Text = "Editar"; this.btn_editar.Click += new System.EventHandler(this.btn_editar_Click); // // btn_cancelar // this.btn_cancelar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_cancelar.Image = global::BapFormulariosNet.Properties.Resources.go_undo2; this.btn_cancelar.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_cancelar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_cancelar.Name = "btn_cancelar"; this.btn_cancelar.Size = new System.Drawing.Size(24, 26); this.btn_cancelar.Text = "Cancelar"; this.btn_cancelar.Click += new System.EventHandler(this.btn_cancelar_Click); // // btn_grabar // this.btn_grabar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_grabar.Image = ((System.Drawing.Image)(resources.GetObject("btn_grabar.Image"))); this.btn_grabar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_grabar.Name = "btn_grabar"; this.btn_grabar.Size = new System.Drawing.Size(26, 26); this.btn_grabar.Text = "Grabar"; this.btn_grabar.ToolTipText = "Grabar (Ctrl + G)"; this.btn_grabar.Click += new System.EventHandler(this.btn_grabar_Click); // // btn_eliminar // this.btn_eliminar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_eliminar.Image = global::BapFormulariosNet.Properties.Resources.btn_eliminar20; this.btn_eliminar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_eliminar.Name = "btn_eliminar"; this.btn_eliminar.Size = new System.Drawing.Size(26, 26); this.btn_eliminar.Text = "Eliminar"; this.btn_eliminar.Click += new System.EventHandler(this.btn_eliminar_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 29); // // btn_clave // this.btn_clave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_clave.Image = global::BapFormulariosNet.Properties.Resources.btn_Lock20; this.btn_clave.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_clave.Name = "btn_clave"; this.btn_clave.Size = new System.Drawing.Size(26, 26); this.btn_clave.Text = "toolStripButton1"; this.btn_clave.ToolTipText = "Clave Administrador"; this.btn_clave.Click += new System.EventHandler(this.btn_clave_Click); // // btn_log // this.btn_log.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_log.Image = ((System.Drawing.Image)(resources.GetObject("btn_log.Image"))); this.btn_log.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_log.Name = "btn_log"; this.btn_log.Size = new System.Drawing.Size(26, 26); this.btn_log.Text = "toolStripButton16"; this.btn_log.ToolTipText = "Auditoria"; this.btn_log.Click += new System.EventHandler(this.btn_log_Click); // // btn_salir // this.btn_salir.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_salir.Image = ((System.Drawing.Image)(resources.GetObject("btn_salir.Image"))); this.btn_salir.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_salir.Name = "btn_salir"; this.btn_salir.Size = new System.Drawing.Size(26, 26); this.btn_salir.Text = "Salir"; this.btn_salir.Click += new System.EventHandler(this.btn_salir_Click); // // tabcontrol // this.tabcontrol.Controls.Add(this.tabusuarioperfil); this.tabcontrol.Controls.Add(this.tabusuariomodulolocal); this.tabcontrol.Controls.Add(this.tabperfil); this.tabcontrol.Location = new System.Drawing.Point(0, 108); this.tabcontrol.Name = "tabcontrol"; this.tabcontrol.SelectedIndex = 0; this.tabcontrol.Size = new System.Drawing.Size(556, 477); this.tabcontrol.TabIndex = 4; this.tabcontrol.SelectedIndexChanged += new System.EventHandler(this.tabcontrol_SelectedIndexChanged); // // tabusuarioperfil // this.tabusuarioperfil.Controls.Add(this.groupBox2); this.tabusuarioperfil.Controls.Add(this.gridusuarioperfil); this.tabusuarioperfil.Location = new System.Drawing.Point(4, 23); this.tabusuarioperfil.Name = "tabusuarioperfil"; this.tabusuarioperfil.Padding = new System.Windows.Forms.Padding(3); this.tabusuarioperfil.Size = new System.Drawing.Size(548, 450); this.tabusuarioperfil.TabIndex = 0; this.tabusuarioperfil.Text = "Usuario Perfil"; // // groupBox2 // this.groupBox2.Controls.Add(this.label8); this.groupBox2.Controls.Add(this.usuarp); this.groupBox2.Controls.Add(this.label7); this.groupBox2.Controls.Add(this.nombrp); this.groupBox2.Controls.Add(this.nbperp); this.groupBox2.Controls.Add(this.idperp); this.groupBox2.Location = new System.Drawing.Point(7, 3); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(508, 71); this.groupBox2.TabIndex = 35; this.groupBox2.TabStop = false; this.groupBox2.Text = "Usuario Perfi"; // // label8 // this.label8.AutoSize = true; this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Location = new System.Drawing.Point(6, 46); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(33, 13); this.label8.TabIndex = 39; this.label8.Text = "Perfil:"; // // usuarp // this.usuarp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.usuarp.Location = new System.Drawing.Point(78, 20); this.usuarp.Name = "usuarp"; this.usuarp.Size = new System.Drawing.Size(100, 20); this.usuarp.TabIndex = 5; this.usuarp.KeyUp += new System.Windows.Forms.KeyEventHandler(this.usuarp_KeyUp); // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(6, 24); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(46, 13); this.label7.TabIndex = 36; this.label7.Text = "Usuario:"; // // nombrp // this.nombrp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.nombrp.Location = new System.Drawing.Point(180, 20); this.nombrp.Name = "nombrp"; this.nombrp.Size = new System.Drawing.Size(294, 20); this.nombrp.TabIndex = 6; // // nbperp // this.nbperp.Location = new System.Drawing.Point(180, 43); this.nbperp.Name = "nbperp"; this.nbperp.Size = new System.Drawing.Size(294, 20); this.nbperp.TabIndex = 8; // // idperp // this.idperp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.idperp.Location = new System.Drawing.Point(78, 43); this.idperp.MaxLength = 9; this.idperp.Name = "idperp"; this.idperp.Size = new System.Drawing.Size(100, 20); this.idperp.TabIndex = 7; this.idperp.KeyUp += new System.Windows.Forms.KeyEventHandler(this.idperp_KeyUp); // // gridusuarioperfil // this.gridusuarioperfil.AllowUserToAddRows = false; this.gridusuarioperfil.AllowUserToDeleteRows = false; this.gridusuarioperfil.AllowUserToResizeColumns = false; this.gridusuarioperfil.AllowUserToResizeRows = false; this.gridusuarioperfil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.gridusuarioperfil.ColumnHeadersHeight = 20; this.gridusuarioperfil.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.ggusuar, this.ggnombr, this.ggidper, this.ggnbper}); this.gridusuarioperfil.EnableHeadersVisualStyles = false; this.gridusuarioperfil.Location = new System.Drawing.Point(7, 78); this.gridusuarioperfil.MultiSelect = false; this.gridusuarioperfil.Name = "gridusuarioperfil"; this.gridusuarioperfil.RowHeadersVisible = false; this.gridusuarioperfil.RowHeadersWidth = 24; dataGridViewCellStyle5.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.gridusuarioperfil.RowsDefaultCellStyle = dataGridViewCellStyle5; this.gridusuarioperfil.RowTemplate.Height = 20; this.gridusuarioperfil.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.gridusuarioperfil.Size = new System.Drawing.Size(508, 366); this.gridusuarioperfil.TabIndex = 9; this.gridusuarioperfil.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridusuarioperfil_CellClick); this.gridusuarioperfil.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridusuarioperfil_CellEnter); this.gridusuarioperfil.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridusuarioperfil_CellLeave); this.gridusuarioperfil.KeyUp += new System.Windows.Forms.KeyEventHandler(this.gridusuarioperfil_KeyUp); // // ggusuar // this.ggusuar.DataPropertyName = "usuar"; this.ggusuar.HeaderText = "Usuario"; this.ggusuar.Name = "ggusuar"; this.ggusuar.Width = 150; // // ggnombr // this.ggnombr.DataPropertyName = "nombr"; this.ggnombr.HeaderText = "nombr"; this.ggnombr.Name = "ggnombr"; this.ggnombr.Visible = false; // // ggidper // this.ggidper.DataPropertyName = "idper"; this.ggidper.HeaderText = "Id Perfil"; this.ggidper.Name = "ggidper"; // // ggnbper // this.ggnbper.DataPropertyName = "nbper"; this.ggnbper.HeaderText = "Perfil"; this.ggnbper.Name = "ggnbper"; this.ggnbper.Width = 250; // // tabusuariomodulolocal // this.tabusuariomodulolocal.Controls.Add(this.groupBox3); this.tabusuariomodulolocal.Controls.Add(this.gridusuariomodulolocal); this.tabusuariomodulolocal.Location = new System.Drawing.Point(4, 23); this.tabusuariomodulolocal.Name = "tabusuariomodulolocal"; this.tabusuariomodulolocal.Padding = new System.Windows.Forms.Padding(3); this.tabusuariomodulolocal.Size = new System.Drawing.Size(548, 450); this.tabusuariomodulolocal.TabIndex = 1; this.tabusuariomodulolocal.Text = "Usuario Local"; // // groupBox3 // this.groupBox3.Controls.Add(this.label9); this.groupBox3.Controls.Add(this.usuarl); this.groupBox3.Controls.Add(this.label10); this.groupBox3.Controls.Add(this.nombrl); this.groupBox3.Controls.Add(this.localname); this.groupBox3.Controls.Add(this.locall); this.groupBox3.Location = new System.Drawing.Point(6, 6); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(533, 71); this.groupBox3.TabIndex = 37; this.groupBox3.TabStop = false; this.groupBox3.Text = "Usuario Local"; // // label9 // this.label9.AutoSize = true; this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(6, 46); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(33, 13); this.label9.TabIndex = 39; this.label9.Text = "Local"; // // usuarl // this.usuarl.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.usuarl.Location = new System.Drawing.Point(78, 20); this.usuarl.Name = "usuarl"; this.usuarl.Size = new System.Drawing.Size(100, 20); this.usuarl.TabIndex = 10; this.usuarl.KeyUp += new System.Windows.Forms.KeyEventHandler(this.usuarl_KeyUp); // // label10 // this.label10.AutoSize = true; this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label10.Location = new System.Drawing.Point(6, 24); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(46, 13); this.label10.TabIndex = 36; this.label10.Text = "Usuario:"; // // nombrl // this.nombrl.Location = new System.Drawing.Point(180, 20); this.nombrl.Name = "nombrl"; this.nombrl.Size = new System.Drawing.Size(294, 20); this.nombrl.TabIndex = 11; // // localname // this.localname.Location = new System.Drawing.Point(180, 43); this.localname.Name = "localname"; this.localname.Size = new System.Drawing.Size(294, 20); this.localname.TabIndex = 13; // // locall // this.locall.Location = new System.Drawing.Point(78, 43); this.locall.Name = "locall"; this.locall.Size = new System.Drawing.Size(100, 20); this.locall.TabIndex = 12; this.locall.KeyUp += new System.Windows.Forms.KeyEventHandler(this.locall_KeyUp); // // gridusuariomodulolocal // this.gridusuariomodulolocal.AllowUserToAddRows = false; this.gridusuariomodulolocal.AllowUserToDeleteRows = false; this.gridusuariomodulolocal.AllowUserToResizeColumns = false; this.gridusuariomodulolocal.AllowUserToResizeRows = false; this.gridusuariomodulolocal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.gridusuariomodulolocal.ColumnHeadersHeight = 20; this.gridusuariomodulolocal.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.gdominioid, this.gmoduloid, this.gusuar, this.gnombr, this.glocal, this.glocalname}); this.gridusuariomodulolocal.Location = new System.Drawing.Point(6, 79); this.gridusuariomodulolocal.MultiSelect = false; this.gridusuariomodulolocal.Name = "gridusuariomodulolocal"; this.gridusuariomodulolocal.RowHeadersVisible = false; this.gridusuariomodulolocal.RowHeadersWidth = 24; dataGridViewCellStyle6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.gridusuariomodulolocal.RowsDefaultCellStyle = dataGridViewCellStyle6; this.gridusuariomodulolocal.RowTemplate.Height = 20; this.gridusuariomodulolocal.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.gridusuariomodulolocal.Size = new System.Drawing.Size(533, 363); this.gridusuariomodulolocal.TabIndex = 14; this.gridusuariomodulolocal.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridusuariomodulolocal_CellClick); this.gridusuariomodulolocal.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridusuariomodulolocal_CellEnter); this.gridusuariomodulolocal.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridusuariomodulolocal_CellLeave); this.gridusuariomodulolocal.KeyUp += new System.Windows.Forms.KeyEventHandler(this.gridusuariomodulolocal_KeyUp); // // gdominioid // this.gdominioid.DataPropertyName = "dominioid"; this.gdominioid.HeaderText = "dominioid"; this.gdominioid.Name = "gdominioid"; this.gdominioid.Visible = false; // // gmoduloid // this.gmoduloid.DataPropertyName = "moduloid"; this.gmoduloid.HeaderText = "moduloid"; this.gmoduloid.Name = "gmoduloid"; this.gmoduloid.Visible = false; // // gusuar // this.gusuar.DataPropertyName = "usuar"; this.gusuar.HeaderText = "Usuario"; this.gusuar.Name = "gusuar"; this.gusuar.Width = 150; // // gnombr // this.gnombr.DataPropertyName = "nombr"; this.gnombr.HeaderText = "nombr"; this.gnombr.Name = "gnombr"; this.gnombr.Visible = false; // // glocal // this.glocal.DataPropertyName = "local"; this.glocal.HeaderText = "Local"; this.glocal.Name = "glocal"; this.glocal.Width = 70; // // glocalname // this.glocalname.DataPropertyName = "localname"; this.glocalname.HeaderText = "Nombre de Local"; this.glocalname.Name = "glocalname"; this.glocalname.Width = 300; // // tabperfil // this.tabperfil.Controls.Add(this.groupBox4); this.tabperfil.Controls.Add(this.gridperfil); this.tabperfil.Location = new System.Drawing.Point(4, 23); this.tabperfil.Name = "tabperfil"; this.tabperfil.Size = new System.Drawing.Size(548, 450); this.tabperfil.TabIndex = 3; this.tabperfil.Text = "Perfil"; // // groupBox4 // this.groupBox4.Controls.Add(this.txt_idper); this.groupBox4.Controls.Add(this.label1); this.groupBox4.Controls.Add(this.idper); this.groupBox4.Controls.Add(this.nivel); this.groupBox4.Controls.Add(this.label11); this.groupBox4.Controls.Add(this.nbper); this.groupBox4.Controls.Add(this.label12); this.groupBox4.Location = new System.Drawing.Point(6, 5); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(533, 71); this.groupBox4.TabIndex = 39; this.groupBox4.TabStop = false; this.groupBox4.Text = "Perfil"; // // txt_idper // this.txt_idper.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.txt_idper.Location = new System.Drawing.Point(78, 18); this.txt_idper.MaxLength = 2; this.txt_idper.Name = "txt_idper"; this.txt_idper.Size = new System.Drawing.Size(36, 20); this.txt_idper.TabIndex = 24; this.txt_idper.Text = "000000000"; this.txt_idper.TextChanged += new System.EventHandler(this.txt_idper_TextChanged); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(6, 22); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(33, 13); this.label1.TabIndex = 40; this.label1.Text = "Perfil:"; // // idper // this.idper.Location = new System.Drawing.Point(78, 43); this.idper.MaxLength = 9; this.idper.Name = "idper"; this.idper.Size = new System.Drawing.Size(67, 20); this.idper.TabIndex = 26; this.idper.Text = "000000000"; // // nivel // this.nivel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.nivel.FormattingEnabled = true; this.nivel.Location = new System.Drawing.Point(277, 18); this.nivel.Name = "nivel"; this.nivel.Size = new System.Drawing.Size(197, 22); this.nivel.TabIndex = 25; this.nivel.SelectedIndexChanged += new System.EventHandler(this.nivel_SelectedIndexChanged); // // label11 // this.label11.AutoSize = true; this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label11.Location = new System.Drawing.Point(226, 22); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(34, 13); this.label11.TabIndex = 39; this.label11.Text = "Nivel:"; // // nbper // this.nbper.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.nbper.Location = new System.Drawing.Point(147, 43); this.nbper.Name = "nbper"; this.nbper.Size = new System.Drawing.Size(327, 20); this.nbper.TabIndex = 27; // // label12 // this.label12.AutoSize = true; this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label12.Location = new System.Drawing.Point(6, 46); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(73, 13); this.label12.TabIndex = 36; this.label12.Text = "Nombre Perfil:"; // // gridperfil // this.gridperfil.AllowUserToAddRows = false; this.gridperfil.AllowUserToDeleteRows = false; this.gridperfil.AllowUserToResizeColumns = false; this.gridperfil.AllowUserToResizeRows = false; this.gridperfil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle7.Font = new System.Drawing.Font("Times New Roman", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.gridperfil.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; this.gridperfil.ColumnHeadersHeight = 20; this.gridperfil.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.gidper, this.gnbper}); this.gridperfil.Location = new System.Drawing.Point(6, 78); this.gridperfil.MultiSelect = false; this.gridperfil.Name = "gridperfil"; this.gridperfil.RowHeadersVisible = false; this.gridperfil.RowHeadersWidth = 24; dataGridViewCellStyle8.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.gridperfil.RowsDefaultCellStyle = dataGridViewCellStyle8; this.gridperfil.RowTemplate.Height = 20; this.gridperfil.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.gridperfil.Size = new System.Drawing.Size(533, 361); this.gridperfil.TabIndex = 28; this.gridperfil.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridperfil_CellClick); this.gridperfil.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridperfil_CellEnter); this.gridperfil.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridperfil_CellLeave); this.gridperfil.KeyUp += new System.Windows.Forms.KeyEventHandler(this.gridperfil_KeyUp); // // gidper // this.gidper.DataPropertyName = "idper"; this.gidper.HeaderText = "Perfil"; this.gidper.Name = "gidper"; // // gnbper // this.gnbper.DataPropertyName = "nbper"; this.gnbper.HeaderText = "Nombre de perfil"; this.gnbper.Name = "gnbper"; this.gnbper.Width = 300; // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Times New Roman", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(72, 63); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(80, 13); this.label6.TabIndex = 28; this.label6.Text = "»» DOMINIO:"; // // dominioid // this.dominioid.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.dominioid.FormattingEnabled = true; this.dominioid.Location = new System.Drawing.Point(156, 60); this.dominioid.Name = "dominioid"; this.dominioid.Size = new System.Drawing.Size(217, 22); this.dominioid.TabIndex = 2; this.dominioid.SelectedIndexChanged += new System.EventHandler(this.dominioid_SelectedIndexChanged); // // moduloid // this.moduloid.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.moduloid.FormattingEnabled = true; this.moduloid.Location = new System.Drawing.Point(156, 84); this.moduloid.Name = "moduloid"; this.moduloid.Size = new System.Drawing.Size(217, 22); this.moduloid.TabIndex = 3; this.moduloid.SelectedIndexChanged += new System.EventHandler(this.moduloid_SelectedIndexChanged); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Times New Roman", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(72, 87); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(79, 13); this.label2.TabIndex = 31; this.label2.Text = "»» MODULO:"; // // xtraUserControl1 // this.xtraUserControl1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.xtraUserControl1.Appearance.BackColor2 = System.Drawing.Color.Teal; this.xtraUserControl1.Appearance.Options.UseBackColor = true; this.xtraUserControl1.Location = new System.Drawing.Point(-2, 28); this.xtraUserControl1.Name = "xtraUserControl1"; this.xtraUserControl1.Size = new System.Drawing.Size(191, 26); this.xtraUserControl1.TabIndex = 107; // // xtraUserControl2 // this.xtraUserControl2.Appearance.BackColor = System.Drawing.Color.Teal; this.xtraUserControl2.Appearance.BackColor2 = System.Drawing.Color.White; this.xtraUserControl2.Appearance.Options.UseBackColor = true; this.xtraUserControl2.Location = new System.Drawing.Point(369, 28); this.xtraUserControl2.Name = "xtraUserControl2"; this.xtraUserControl2.Size = new System.Drawing.Size(191, 26); this.xtraUserControl2.TabIndex = 108; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Times New Roman", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(200, 32); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(160, 17); this.label3.TabIndex = 109; this.label3.Text = "»» Usuarios Perfiles ««"; // // Frm_usuarios_perfil_local // this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(218)))), ((int)(((byte)(224))))); this.Appearance.Font = new System.Drawing.Font("Times New Roman", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Appearance.Options.UseBackColor = true; this.Appearance.Options.UseFont = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(556, 585); this.Controls.Add(this.label3); this.Controls.Add(this.xtraUserControl2); this.Controls.Add(this.label2); this.Controls.Add(this.moduloid); this.Controls.Add(this.dominioid); this.Controls.Add(this.label6); this.Controls.Add(this.tabcontrol); this.Controls.Add(this.Botonera); this.Controls.Add(this.xtraUserControl1); this.DoubleBuffered = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MaximizeBox = false; this.Name = "Frm_usuarios_perfil_local"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Administración de Usuarios y Perfiles"; this.Activated += new System.EventHandler(this.Frm_admin_usuario_perfil_Activated); this.Load += new System.EventHandler(this.Frm_admin_usuario_perfil_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Frm_admin_usuario_perfil_KeyDown); this.Botonera.ResumeLayout(false); this.Botonera.PerformLayout(); this.tabcontrol.ResumeLayout(false); this.tabusuarioperfil.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridusuarioperfil)).EndInit(); this.tabusuariomodulolocal.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridusuariomodulolocal)).EndInit(); this.tabperfil.ResumeLayout(false); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridperfil)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_precios)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.btn_importar = new System.Windows.Forms.Button(); this.btn_exportar = new System.Windows.Forms.Button(); this.btn_CargarProductos = new System.Windows.Forms.Button(); this.dgb_listaPrecios = new System.Windows.Forms.DataGridView(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.cenestado = new System.Windows.Forms.RadioListBox(); this.label7 = new System.Windows.Forms.Label(); this.cboTiendaslist = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.tcamb = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.fechafin = new System.Windows.Forms.DateTimePicker(); this.label3 = new System.Windows.Forms.Label(); this.fechaini = new System.Windows.Forms.DateTimePicker(); this.label16 = new System.Windows.Forms.Label(); this.listaprecid = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.listaprecname = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this._productname = new System.Windows.Forms.TextBox(); this.btn_filtrar = new System.Windows.Forms.Button(); this.Botonera = new System.Windows.Forms.ToolStrip(); this.btn_nuevo = new System.Windows.Forms.ToolStripButton(); this.btn_editar = new System.Windows.Forms.ToolStripButton(); this.btn_cancelar = new System.Windows.Forms.ToolStripButton(); this.btn_grabar = new System.Windows.Forms.ToolStripButton(); this.btn_eliminar = new System.Windows.Forms.ToolStripButton(); this.btn_imprimir = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.btn_primero = new System.Windows.Forms.ToolStripButton(); this.btn_anterior = new System.Windows.Forms.ToolStripButton(); this.btn_siguiente = new System.Windows.Forms.ToolStripButton(); this.btn_ultimo = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.btn_clave = new System.Windows.Forms.ToolStripButton(); this.btn_salir = new System.Windows.Forms.ToolStripButton(); this.xtraUserControl1 = new DevExpress.XtraEditors.XtraUserControl(); this.xtraUserControl2 = new DevExpress.XtraEditors.XtraUserControl(); this.item = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.lineaid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.grupoid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.subgrupoid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.lineaname = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.gruponame = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.subgrupoartic = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.stock = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.costoultimo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ultcompra = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ultventa = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.pventa1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.pventa2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgb_listaPrecios)).BeginInit(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.Botonera.SuspendLayout(); this.SuspendLayout(); // // groupBox3 // this.groupBox3.Controls.Add(this.btn_importar); this.groupBox3.Controls.Add(this.btn_exportar); this.groupBox3.Controls.Add(this.btn_CargarProductos); this.groupBox3.Location = new System.Drawing.Point(480, 169); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(401, 59); this.groupBox3.TabIndex = 24; this.groupBox3.TabStop = false; this.groupBox3.Text = "Botones"; // // btn_importar // this.btn_importar.BackColor = System.Drawing.Color.Transparent; this.btn_importar.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_importar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.btn_importar.Image = global::BapFormulariosNet.Properties.Resources.go_excel3; this.btn_importar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btn_importar.Location = new System.Drawing.Point(148, 16); this.btn_importar.Name = "btn_importar"; this.btn_importar.Size = new System.Drawing.Size(112, 31); this.btn_importar.TabIndex = 21; this.btn_importar.Text = "&Importar Excel"; this.btn_importar.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btn_importar.UseVisualStyleBackColor = false; this.btn_importar.Click += new System.EventHandler(this.btn_importar_Click); // // btn_exportar // this.btn_exportar.BackColor = System.Drawing.Color.Transparent; this.btn_exportar.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_exportar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.btn_exportar.Image = global::BapFormulariosNet.Properties.Resources.go_excel3; this.btn_exportar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btn_exportar.Location = new System.Drawing.Point(274, 16); this.btn_exportar.Name = "btn_exportar"; this.btn_exportar.Size = new System.Drawing.Size(112, 31); this.btn_exportar.TabIndex = 23; this.btn_exportar.Text = "&Exportar Excel"; this.btn_exportar.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btn_exportar.UseVisualStyleBackColor = false; this.btn_exportar.Click += new System.EventHandler(this.btn_exportar_Click); // // btn_CargarProductos // this.btn_CargarProductos.BackColor = System.Drawing.Color.Transparent; this.btn_CargarProductos.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_CargarProductos.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.btn_CargarProductos.Image = global::BapFormulariosNet.Properties.Resources.go_check; this.btn_CargarProductos.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btn_CargarProductos.Location = new System.Drawing.Point(21, 16); this.btn_CargarProductos.Name = "btn_CargarProductos"; this.btn_CargarProductos.Size = new System.Drawing.Size(117, 31); this.btn_CargarProductos.TabIndex = 22; this.btn_CargarProductos.Text = "&Cargar Productos"; this.btn_CargarProductos.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btn_CargarProductos.UseVisualStyleBackColor = false; this.btn_CargarProductos.Click += new System.EventHandler(this.btn_CargarProductos_Click); // // dgb_listaPrecios // this.dgb_listaPrecios.AllowUserToAddRows = false; this.dgb_listaPrecios.AllowUserToDeleteRows = false; this.dgb_listaPrecios.AllowUserToResizeColumns = false; this.dgb_listaPrecios.AllowUserToResizeRows = false; this.dgb_listaPrecios.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dgb_listaPrecios.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Sunken; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.BackColor = System.Drawing.Color.Teal; dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgb_listaPrecios.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dgb_listaPrecios.ColumnHeadersHeight = 20; this.dgb_listaPrecios.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.item, this.lineaid, this.grupoid, this.subgrupoid, this.lineaname, this.gruponame, this.subgrupoartic, this.stock, this.costoultimo, this.ultcompra, this.ultventa, this.pventa1, this.pventa2}); dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgb_listaPrecios.DefaultCellStyle = dataGridViewCellStyle9; this.dgb_listaPrecios.Location = new System.Drawing.Point(4, 230); this.dgb_listaPrecios.MultiSelect = false; this.dgb_listaPrecios.Name = "dgb_listaPrecios"; dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle10.BackColor = System.Drawing.Color.LightSteelBlue; dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgb_listaPrecios.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; this.dgb_listaPrecios.RowHeadersVisible = false; this.dgb_listaPrecios.RowHeadersWidth = 10; dataGridViewCellStyle11.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle11.ForeColor = System.Drawing.Color.Black; dataGridViewCellStyle11.SelectionBackColor = System.Drawing.Color.LightCoral; this.dgb_listaPrecios.RowsDefaultCellStyle = dataGridViewCellStyle11; this.dgb_listaPrecios.RowTemplate.Height = 20; this.dgb_listaPrecios.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.dgb_listaPrecios.Size = new System.Drawing.Size(927, 233); this.dgb_listaPrecios.TabIndex = 19; this.dgb_listaPrecios.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridgrupo_CellClick); this.dgb_listaPrecios.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridgrupo_CellEnter); this.dgb_listaPrecios.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridgrupo_CellLeave); this.dgb_listaPrecios.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgb_listaPrecios_CellValueChanged); this.dgb_listaPrecios.KeyUp += new System.Windows.Forms.KeyEventHandler(this.gridgrupo_KeyUp); // // groupBox1 // this.groupBox1.Controls.Add(this.cenestado); this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.cboTiendaslist); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.tcamb); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.fechafin); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.fechaini); this.groupBox1.Controls.Add(this.label16); this.groupBox1.Controls.Add(this.listaprecid); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.listaprecname); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Location = new System.Drawing.Point(156, 63); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(637, 105); this.groupBox1.TabIndex = 8; this.groupBox1.TabStop = false; this.groupBox1.Text = "Datos"; // // cenestado // this.cenestado.BackColor = System.Drawing.Color.Transparent; this.cenestado.BorderStyle = System.Windows.Forms.BorderStyle.None; this.cenestado.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cenestado.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cenestado.FormattingEnabled = true; this.cenestado.ItemHeight = 16; this.cenestado.Location = new System.Drawing.Point(483, 68); this.cenestado.Name = "cenestado"; this.cenestado.Size = new System.Drawing.Size(85, 32); this.cenestado.TabIndex = 62; // // label7 // this.label7.AutoSize = true; this.label7.BackColor = System.Drawing.Color.Transparent; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label7.ForeColor = System.Drawing.Color.RoyalBlue; this.label7.Location = new System.Drawing.Point(433, 76); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(43, 13); this.label7.TabIndex = 21; this.label7.Text = "Estado:"; // // cboTiendaslist // this.cboTiendaslist.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboTiendaslist.FormattingEnabled = true; this.cboTiendaslist.Location = new System.Drawing.Point(480, 44); this.cboTiendaslist.Name = "cboTiendaslist"; this.cboTiendaslist.Size = new System.Drawing.Size(146, 21); this.cboTiendaslist.TabIndex = 20; // // label6 // this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label6.ForeColor = System.Drawing.Color.RoyalBlue; this.label6.Location = new System.Drawing.Point(403, 46); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(73, 13); this.label6.TabIndex = 19; this.label6.Text = "Lista Tiendas:"; // // tcamb // this.tcamb.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tcamb.Location = new System.Drawing.Point(480, 21); this.tcamb.MaxLength = 8; this.tcamb.Name = "tcamb"; this.tcamb.Size = new System.Drawing.Size(63, 20); this.tcamb.TabIndex = 18; // // label4 // this.label4.AutoSize = true; this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label4.ForeColor = System.Drawing.Color.RoyalBlue; this.label4.Location = new System.Drawing.Point(421, 24); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(55, 13); this.label4.TabIndex = 17; this.label4.Text = "T-Cambio:"; // // fechafin // this.fechafin.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.fechafin.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.fechafin.Location = new System.Drawing.Point(234, 70); this.fechafin.Name = "fechafin"; this.fechafin.Size = new System.Drawing.Size(80, 20); this.fechafin.TabIndex = 16; this.fechafin.Value = new System.DateTime(2012, 12, 19, 0, 0, 0, 0); // // label3 // this.label3.AutoSize = true; this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label3.ForeColor = System.Drawing.Color.Black; this.label3.Location = new System.Drawing.Point(204, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(24, 13); this.label3.TabIndex = 15; this.label3.Text = "Fin:"; // // fechaini // this.fechaini.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.fechaini.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.fechaini.Location = new System.Drawing.Point(98, 70); this.fechaini.Name = "fechaini"; this.fechaini.Size = new System.Drawing.Size(80, 20); this.fechaini.TabIndex = 14; this.fechaini.Value = new System.DateTime(2012, 12, 19, 0, 0, 0, 0); // // label16 // this.label16.AutoSize = true; this.label16.BackColor = System.Drawing.Color.Transparent; this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label16.ForeColor = System.Drawing.Color.RoyalBlue; this.label16.Location = new System.Drawing.Point(54, 72); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(35, 13); this.label16.TabIndex = 13; this.label16.Text = "Inicio:"; // // listaprecid // this.listaprecid.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listaprecid.Location = new System.Drawing.Point(98, 19); this.listaprecid.MaxLength = 3; this.listaprecid.Name = "listaprecid"; this.listaprecid.Size = new System.Drawing.Size(48, 20); this.listaprecid.TabIndex = 11; this.listaprecid.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listaprecid_KeyDown); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label1.ForeColor = System.Drawing.Color.RoyalBlue; this.label1.Location = new System.Drawing.Point(11, 45); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(78, 13); this.label1.TabIndex = 10; this.label1.Text = "Denominación:"; // // listaprecname // this.listaprecname.Location = new System.Drawing.Point(98, 43); this.listaprecname.Name = "listaprecname"; this.listaprecname.Size = new System.Drawing.Size(290, 20); this.listaprecname.TabIndex = 12; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.label2.ForeColor = System.Drawing.Color.RoyalBlue; this.label2.Location = new System.Drawing.Point(46, 21); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(43, 13); this.label2.TabIndex = 9; this.label2.Text = "Código:"; // // label11 // this.label11.AutoSize = true; this.label11.BackColor = System.Drawing.Color.Transparent; this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label11.ForeColor = System.Drawing.Color.Black; this.label11.Location = new System.Drawing.Point(369, 34); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(195, 24); this.label11.TabIndex = 5; this.label11.Text = "LISTA DE PRECIOS"; // // groupBox2 // this.groupBox2.Controls.Add(this._productname); this.groupBox2.Controls.Add(this.btn_filtrar); this.groupBox2.Location = new System.Drawing.Point(195, 176); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(230, 49); this.groupBox2.TabIndex = 20; this.groupBox2.TabStop = false; this.groupBox2.Text = "&Filtrar Productos "; // // _productname // this._productname.Location = new System.Drawing.Point(4, 19); this._productname.Name = "_productname"; this._productname.Size = new System.Drawing.Size(187, 20); this._productname.TabIndex = 63; this._productname.KeyDown += new System.Windows.Forms.KeyEventHandler(this._productname_KeyDown); // // btn_filtrar // this.btn_filtrar.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_filtrar.Image = global::BapFormulariosNet.Properties.Resources.filter; this.btn_filtrar.Location = new System.Drawing.Point(196, 13); this.btn_filtrar.Name = "btn_filtrar"; this.btn_filtrar.Size = new System.Drawing.Size(28, 30); this.btn_filtrar.TabIndex = 112; this.btn_filtrar.UseVisualStyleBackColor = true; this.btn_filtrar.Click += new System.EventHandler(this.btn_filtrar_Click); // // Botonera // this.Botonera.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.Botonera.ImageScalingSize = new System.Drawing.Size(22, 22); this.Botonera.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btn_nuevo, this.btn_editar, this.btn_cancelar, this.btn_grabar, this.btn_eliminar, this.btn_imprimir, this.toolStripSeparator1, this.btn_primero, this.btn_anterior, this.btn_siguiente, this.btn_ultimo, this.toolStripSeparator2, this.btn_clave, this.btn_salir}); this.Botonera.Location = new System.Drawing.Point(0, 0); this.Botonera.Name = "Botonera"; this.Botonera.Size = new System.Drawing.Size(936, 29); this.Botonera.TabIndex = 1; this.Botonera.Text = "ToolStrip1"; // // btn_nuevo // this.btn_nuevo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_nuevo.Image = global::BapFormulariosNet.Properties.Resources.go_new3; this.btn_nuevo.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_nuevo.ImageTransparentColor = System.Drawing.SystemColors.ButtonFace; this.btn_nuevo.Name = "btn_nuevo"; this.btn_nuevo.Size = new System.Drawing.Size(23, 26); this.btn_nuevo.Text = "Nuevo"; this.btn_nuevo.ToolTipText = "Nuevo (Ctrl + N)"; this.btn_nuevo.Click += new System.EventHandler(this.btn_nuevo_Click); // // btn_editar // this.btn_editar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_editar.Image = global::BapFormulariosNet.Properties.Resources.Edit; this.btn_editar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_editar.Name = "btn_editar"; this.btn_editar.Size = new System.Drawing.Size(26, 26); this.btn_editar.Text = "Editar"; this.btn_editar.Click += new System.EventHandler(this.btn_editar_Click); // // btn_cancelar // this.btn_cancelar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_cancelar.Image = global::BapFormulariosNet.Properties.Resources.go_undo2; this.btn_cancelar.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_cancelar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_cancelar.Name = "btn_cancelar"; this.btn_cancelar.Size = new System.Drawing.Size(24, 26); this.btn_cancelar.Text = "Cancelar"; this.btn_cancelar.Click += new System.EventHandler(this.btn_cancelar_Click); // // btn_grabar // this.btn_grabar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_grabar.Image = ((System.Drawing.Image)(resources.GetObject("btn_grabar.Image"))); this.btn_grabar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_grabar.Name = "btn_grabar"; this.btn_grabar.Size = new System.Drawing.Size(26, 26); this.btn_grabar.Text = "Grabar"; this.btn_grabar.ToolTipText = "Grabar (Ctrl + G)"; this.btn_grabar.Click += new System.EventHandler(this.btn_grabar_Click); // // btn_eliminar // this.btn_eliminar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_eliminar.Image = ((System.Drawing.Image)(resources.GetObject("btn_eliminar.Image"))); this.btn_eliminar.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_eliminar.Name = "btn_eliminar"; this.btn_eliminar.Size = new System.Drawing.Size(26, 26); this.btn_eliminar.Text = "Eliminar"; this.btn_eliminar.Click += new System.EventHandler(this.btn_eliminar_Click); // // btn_imprimir // this.btn_imprimir.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_imprimir.Image = global::BapFormulariosNet.Properties.Resources.dev_printer; this.btn_imprimir.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_imprimir.Name = "btn_imprimir"; this.btn_imprimir.Size = new System.Drawing.Size(26, 26); this.btn_imprimir.Text = "Imprimir"; this.btn_imprimir.Click += new System.EventHandler(this.btn_imprimir_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 29); // // btn_primero // this.btn_primero.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_primero.Image = global::BapFormulariosNet.Properties.Resources.go_first_g; this.btn_primero.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_primero.Name = "btn_primero"; this.btn_primero.Size = new System.Drawing.Size(26, 26); this.btn_primero.Text = "Primero"; this.btn_primero.Click += new System.EventHandler(this.btn_primero_Click); // // btn_anterior // this.btn_anterior.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_anterior.Image = global::BapFormulariosNet.Properties.Resources.go_previous_g; this.btn_anterior.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_anterior.Name = "btn_anterior"; this.btn_anterior.Size = new System.Drawing.Size(26, 26); this.btn_anterior.Text = "Anterior"; this.btn_anterior.Click += new System.EventHandler(this.btn_anterior_Click); // // btn_siguiente // this.btn_siguiente.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_siguiente.Image = global::BapFormulariosNet.Properties.Resources.go_next_g; this.btn_siguiente.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_siguiente.Name = "btn_siguiente"; this.btn_siguiente.Size = new System.Drawing.Size(26, 26); this.btn_siguiente.Text = "Siguiente"; this.btn_siguiente.Click += new System.EventHandler(this.btn_siguiente_Click); // // btn_ultimo // this.btn_ultimo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_ultimo.Image = global::BapFormulariosNet.Properties.Resources.go_last_g; this.btn_ultimo.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_ultimo.Name = "btn_ultimo"; this.btn_ultimo.Size = new System.Drawing.Size(26, 26); this.btn_ultimo.Text = "Ultimo"; this.btn_ultimo.Click += new System.EventHandler(this.btn_ultimo_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 29); // // btn_clave // this.btn_clave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_clave.Image = global::BapFormulariosNet.Properties.Resources.btn_Lock20; this.btn_clave.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_clave.Name = "btn_clave"; this.btn_clave.Size = new System.Drawing.Size(26, 26); this.btn_clave.Text = "toolStripButton1"; this.btn_clave.ToolTipText = "Clave Administrador"; this.btn_clave.Click += new System.EventHandler(this.btn_clave_Click); // // btn_salir // this.btn_salir.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btn_salir.Image = global::BapFormulariosNet.Properties.Resources.go_out2; this.btn_salir.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_salir.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_salir.Name = "btn_salir"; this.btn_salir.Size = new System.Drawing.Size(24, 26); this.btn_salir.Text = "Salir"; this.btn_salir.Click += new System.EventHandler(this.btn_salir_Click); // // xtraUserControl1 // this.xtraUserControl1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.xtraUserControl1.Appearance.BackColor2 = System.Drawing.Color.Teal; this.xtraUserControl1.Appearance.Options.UseBackColor = true; this.xtraUserControl1.Location = new System.Drawing.Point(-6, 32); this.xtraUserControl1.Name = "xtraUserControl1"; this.xtraUserControl1.Size = new System.Drawing.Size(369, 29); this.xtraUserControl1.TabIndex = 106; // // xtraUserControl2 // this.xtraUserControl2.Appearance.BackColor = System.Drawing.Color.Teal; this.xtraUserControl2.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.xtraUserControl2.Appearance.Options.UseBackColor = true; this.xtraUserControl2.Location = new System.Drawing.Point(570, 32); this.xtraUserControl2.Name = "xtraUserControl2"; this.xtraUserControl2.Size = new System.Drawing.Size(376, 29); this.xtraUserControl2.TabIndex = 107; // // item // this.item.DataPropertyName = "item"; dataGridViewCellStyle2.Format = "000"; dataGridViewCellStyle2.NullValue = null; this.item.DefaultCellStyle = dataGridViewCellStyle2; this.item.Frozen = true; this.item.HeaderText = "Item"; this.item.Name = "item"; this.item.Width = 50; // // lineaid // this.lineaid.DataPropertyName = "lineaid"; this.lineaid.Frozen = true; this.lineaid.HeaderText = "lineaid"; this.lineaid.Name = "lineaid"; this.lineaid.Visible = false; this.lineaid.Width = 90; // // grupoid // this.grupoid.DataPropertyName = "grupoid"; this.grupoid.Frozen = true; this.grupoid.HeaderText = "grupoid"; this.grupoid.Name = "grupoid"; this.grupoid.Visible = false; this.grupoid.Width = 320; // // subgrupoid // this.subgrupoid.DataPropertyName = "subgrupoid"; this.subgrupoid.Frozen = true; this.subgrupoid.HeaderText = "subgrupoid"; this.subgrupoid.Name = "subgrupoid"; this.subgrupoid.Visible = false; // // lineaname // this.lineaname.DataPropertyName = "lineaname"; this.lineaname.Frozen = true; this.lineaname.HeaderText = "Linea"; this.lineaname.Name = "lineaname"; // // gruponame // this.gruponame.DataPropertyName = "gruponame"; this.gruponame.Frozen = true; this.gruponame.HeaderText = "Marca"; this.gruponame.Name = "gruponame"; // // subgrupoartic // this.subgrupoartic.DataPropertyName = "subgrupoartic"; this.subgrupoartic.Frozen = true; this.subgrupoartic.HeaderText = "Modelo"; this.subgrupoartic.Name = "subgrupoartic"; this.subgrupoartic.Width = 150; // // stock // this.stock.DataPropertyName = "stock"; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; dataGridViewCellStyle3.Format = "N4"; dataGridViewCellStyle3.NullValue = null; this.stock.DefaultCellStyle = dataGridViewCellStyle3; this.stock.Frozen = true; this.stock.HeaderText = "Stock"; this.stock.Name = "stock"; this.stock.Width = 60; // // costoultimo // this.costoultimo.DataPropertyName = "costoultimo"; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; dataGridViewCellStyle4.Format = "N4"; dataGridViewCellStyle4.NullValue = null; this.costoultimo.DefaultCellStyle = dataGridViewCellStyle4; this.costoultimo.Frozen = true; this.costoultimo.HeaderText = "Ult-Costo"; this.costoultimo.Name = "costoultimo"; this.costoultimo.Width = 80; // // ultcompra // this.ultcompra.DataPropertyName = "ultcompra"; dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle5.NullValue = null; this.ultcompra.DefaultCellStyle = dataGridViewCellStyle5; this.ultcompra.Frozen = true; this.ultcompra.HeaderText = "Ult-Compra"; this.ultcompra.Name = "ultcompra"; // // ultventa // this.ultventa.DataPropertyName = "ultventa"; dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle6.NullValue = null; this.ultventa.DefaultCellStyle = dataGridViewCellStyle6; this.ultventa.Frozen = true; this.ultventa.HeaderText = "Ult-Venta"; this.ultventa.Name = "ultventa"; // // pventa1 // this.pventa1.DataPropertyName = "pventa1"; dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; dataGridViewCellStyle7.Format = "N2"; dataGridViewCellStyle7.NullValue = null; this.pventa1.DefaultCellStyle = dataGridViewCellStyle7; this.pventa1.Frozen = true; this.pventa1.HeaderText = "S/-Precio"; this.pventa1.Name = "pventa1"; this.pventa1.Width = 80; // // pventa2 // this.pventa2.DataPropertyName = "pventa2"; dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; dataGridViewCellStyle8.Format = "N2"; dataGridViewCellStyle8.NullValue = null; this.pventa2.DefaultCellStyle = dataGridViewCellStyle8; this.pventa2.HeaderText = "$-Precio"; this.pventa2.Name = "pventa2"; this.pventa2.Width = 80; // // Frm_precios // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ClientSize = new System.Drawing.Size(936, 488); this.Controls.Add(this.xtraUserControl2); this.Controls.Add(this.xtraUserControl1); this.Controls.Add(this.label11); this.Controls.Add(this.groupBox3); this.Controls.Add(this.dgb_listaPrecios); this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox2); this.Controls.Add(this.Botonera); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MaximizeBox = false; this.Name = "Frm_precios"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "»» Lista de Precios"; this.Load += new System.EventHandler(this.Frm_precios_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Frm_grupo_KeyDown); this.groupBox3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgb_listaPrecios)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.Botonera.ResumeLayout(false); this.Botonera.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.label1 = new System.Windows.Forms.Label(); this.cod_productid = new System.Windows.Forms.TextBox(); this.dgb_listaproductos = new System.Windows.Forms.DataGridView(); this.productid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.productname = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.preclist = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.btn_del = new System.Windows.Forms.Button(); this.btn_add = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.tot_items = new System.Windows.Forms.TextBox(); this.tot_importe = new System.Windows.Forms.TextBox(); this.xtraUserControl1 = new DevExpress.XtraEditors.XtraUserControl(); this.xtraUserControl2 = new DevExpress.XtraEditors.XtraUserControl(); this.TooMensaje = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.dgb_listaproductos)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Teal; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.White; this.label1.Location = new System.Drawing.Point(12, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(52, 13); this.label1.TabIndex = 0; this.label1.Text = "CodBar:"; // // cod_productid // this.cod_productid.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.cod_productid.Location = new System.Drawing.Point(71, 8); this.cod_productid.MaxLength = 13; this.cod_productid.Name = "cod_productid"; this.cod_productid.Size = new System.Drawing.Size(145, 21); this.cod_productid.TabIndex = 1; this.cod_productid.TextChanged += new System.EventHandler(this.cod_productid_TextChanged); // // dgb_listaproductos // this.dgb_listaproductos.AllowUserToAddRows = false; this.dgb_listaproductos.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = System.Drawing.Color.Teal; dataGridViewCellStyle1.Font = new System.Drawing.Font("Tahoma", 8.25F); dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgb_listaproductos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dgb_listaproductos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgb_listaproductos.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.productid, this.productname, this.preclist}); this.dgb_listaproductos.Cursor = System.Windows.Forms.Cursors.Default; this.dgb_listaproductos.Location = new System.Drawing.Point(1, 34); this.dgb_listaproductos.Name = "dgb_listaproductos"; this.dgb_listaproductos.RowHeadersVisible = false; this.dgb_listaproductos.Size = new System.Drawing.Size(410, 150); this.dgb_listaproductos.TabIndex = 0; this.dgb_listaproductos.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgb_listaproductos_CellEnter); // // productid // this.productid.DataPropertyName = "productid"; this.productid.HeaderText = "Codigo"; this.productid.Name = "productid"; this.productid.Width = 87; // // productname // this.productname.DataPropertyName = "productname"; this.productname.HeaderText = "Producto"; this.productname.Name = "productname"; this.productname.Width = 250; // // preclist // this.preclist.DataPropertyName = "precunit"; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; dataGridViewCellStyle2.Format = "N2"; dataGridViewCellStyle2.NullValue = null; this.preclist.DefaultCellStyle = dataGridViewCellStyle2; this.preclist.HeaderText = "PrecList"; this.preclist.Name = "preclist"; this.preclist.Width = 60; // // btn_del // this.btn_del.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_del.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btn_del.Image = global::BapFormulariosNet.Properties.Resources.go_remove1; this.btn_del.Location = new System.Drawing.Point(414, 40); this.btn_del.Name = "btn_del"; this.btn_del.Size = new System.Drawing.Size(21, 21); this.btn_del.TabIndex = 93; this.TooMensaje.SetToolTip(this.btn_del, "Quitar Productos"); this.btn_del.UseVisualStyleBackColor = true; this.btn_del.Click += new System.EventHandler(this.btn_del_Click); // // btn_add // this.btn_add.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_add.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btn_add.Image = global::BapFormulariosNet.Properties.Resources.btn_signup20; this.btn_add.Location = new System.Drawing.Point(412, 67); this.btn_add.Name = "btn_add"; this.btn_add.Size = new System.Drawing.Size(25, 21); this.btn_add.TabIndex = 92; this.TooMensaje.SetToolTip(this.btn_add, "Cargar Productos"); this.btn_add.UseVisualStyleBackColor = true; this.btn_add.Click += new System.EventHandler(this.btn_add_Click); // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Teal; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.White; this.label2.Location = new System.Drawing.Point(5, 192); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(74, 13); this.label2.TabIndex = 94; this.label2.Text = "Total Items:"; // // label3 // this.label3.AutoSize = true; this.label3.BackColor = System.Drawing.Color.Teal; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.Color.White; this.label3.Location = new System.Drawing.Point(218, 192); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(86, 13); this.label3.TabIndex = 95; this.label3.Text = "Total Importe:"; // // tot_items // this.tot_items.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tot_items.Location = new System.Drawing.Point(81, 189); this.tot_items.Name = "tot_items"; this.tot_items.Size = new System.Drawing.Size(51, 20); this.tot_items.TabIndex = 96; this.tot_items.Text = "0"; this.tot_items.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // tot_importe // this.tot_importe.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tot_importe.Location = new System.Drawing.Point(307, 189); this.tot_importe.Name = "tot_importe"; this.tot_importe.Size = new System.Drawing.Size(93, 20); this.tot_importe.TabIndex = 97; this.tot_importe.Text = "0.00"; this.tot_importe.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // xtraUserControl1 // this.xtraUserControl1.Appearance.BackColor = System.Drawing.Color.Teal; this.xtraUserControl1.Appearance.BackColor2 = System.Drawing.Color.Teal; this.xtraUserControl1.Appearance.Options.UseBackColor = true; this.xtraUserControl1.Location = new System.Drawing.Point(1, 4); this.xtraUserControl1.Name = "xtraUserControl1"; this.xtraUserControl1.Size = new System.Drawing.Size(410, 27); this.xtraUserControl1.TabIndex = 107; // // xtraUserControl2 // this.xtraUserControl2.Appearance.BackColor = System.Drawing.Color.Teal; this.xtraUserControl2.Appearance.BackColor2 = System.Drawing.Color.Teal; this.xtraUserControl2.Appearance.Options.UseBackColor = true; this.xtraUserControl2.Location = new System.Drawing.Point(2, 186); this.xtraUserControl2.Name = "xtraUserControl2"; this.xtraUserControl2.Size = new System.Drawing.Size(409, 27); this.xtraUserControl2.TabIndex = 108; // // Frm_upload // this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(218)))), ((int)(((byte)(224))))); this.Appearance.Options.UseBackColor = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(438, 216); this.Controls.Add(this.label3); this.Controls.Add(this.tot_importe); this.Controls.Add(this.label2); this.Controls.Add(this.tot_items); this.Controls.Add(this.xtraUserControl2); this.Controls.Add(this.btn_del); this.Controls.Add(this.btn_add); this.Controls.Add(this.dgb_listaproductos); this.Controls.Add(this.cod_productid); this.Controls.Add(this.label1); this.Controls.Add(this.xtraUserControl1); this.DoubleBuffered = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "Frm_upload"; this.Text = "»» Cargar Productos"; this.Load += new System.EventHandler(this.Frm_upload_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Frm_upload_KeyDown); ((System.ComponentModel.ISupportInitialize)(this.dgb_listaproductos)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private static string GetFirstSpellFromUser(ArrayList alPinyinData) { #region 初始化Form DevExpress.XtraEditors.XtraForm frmPinyin = NewForm(); DevExpress.XtraGrid.GridControl gridPinyin = new DevExpress.XtraGrid.GridControl(); DevExpress.XtraGrid.Views.Grid.GridView viewPinyin = new DevExpress.XtraGrid.Views.Grid.GridView(); CJia.Controls.CJiaPanel cJiaPanel1 = new CJiaPanel(); CJia.Controls.CJiaLabel cJiaLabel1 = new CJiaLabel(); CJia.Controls.BtnSave btnSave1 = new BtnSave(); DevExpress.XtraEditors.XtraUserControl userControl1 = new DevExpress.XtraEditors.XtraUserControl(); CJia.Controls.CJiaPanel cJiaPanel2 = new CJiaPanel(); // // cJiaPanel1 // cJiaPanel1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(180)))), ((int)(((byte)(228))))); cJiaPanel1.Appearance.Options.UseBackColor = true; cJiaPanel1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; cJiaPanel1.Controls.Add(cJiaLabel1); cJiaPanel1.Dock = System.Windows.Forms.DockStyle.Top; cJiaPanel1.Location = new System.Drawing.Point(0, 0); cJiaPanel1.LookAndFeel.UseDefaultLookAndFeel = false; cJiaPanel1.Name = "cJiaPanel1"; cJiaPanel1.Size = new System.Drawing.Size(525, 35); cJiaPanel1.TabIndex = 2; // // cJiaLabel1 // cJiaLabel1.Appearance.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold); cJiaLabel1.Appearance.ForeColor = System.Drawing.Color.White; cJiaLabel1.Location = new System.Drawing.Point(5, 11); cJiaLabel1.Name = "cJiaLabel1"; cJiaLabel1.Size = new System.Drawing.Size(144, 16); cJiaLabel1.TabIndex = 2; cJiaLabel1.Text = "请确认多音字拼音码"; // gridPinyin gridPinyin.EmbeddedNavigator.Name = ""; gridPinyin.Dock = System.Windows.Forms.DockStyle.Top; gridPinyin.Location = new System.Drawing.Point(0, 35); gridPinyin.LookAndFeel.SkinName = "Office 2010 Blue"; gridPinyin.LookAndFeel.UseDefaultLookAndFeel = false; gridPinyin.MainView = viewPinyin; gridPinyin.Name = "gridPinyin"; gridPinyin.Size = new System.Drawing.Size(525, 141); gridPinyin.TabIndex = 1; gridPinyin.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { viewPinyin }); // viewPinyin #region viewPinyin viewPinyin.GridControl = gridPinyin; viewPinyin.Name = "viewPinyin"; viewPinyin.OptionsView.ColumnAutoWidth = false; viewPinyin.Appearance.ColumnFilterButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.ColumnFilterButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.ColumnFilterButton.ForeColor = System.Drawing.Color.White; viewPinyin.Appearance.ColumnFilterButton.Options.UseBackColor = true; viewPinyin.Appearance.ColumnFilterButton.Options.UseBorderColor = true; viewPinyin.Appearance.ColumnFilterButton.Options.UseForeColor = true; viewPinyin.Appearance.ColumnFilterButtonActive.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.ColumnFilterButtonActive.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.ColumnFilterButtonActive.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true; viewPinyin.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true; viewPinyin.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true; viewPinyin.Appearance.Empty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.Empty.BackColor2 = System.Drawing.Color.White; viewPinyin.Appearance.Empty.Options.UseBackColor = true; viewPinyin.Appearance.EvenRow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(251)))), ((int)(((byte)(255))))); viewPinyin.Appearance.EvenRow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(251)))), ((int)(((byte)(255))))); viewPinyin.Appearance.EvenRow.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.EvenRow.Options.UseBackColor = true; viewPinyin.Appearance.EvenRow.Options.UseBorderColor = true; viewPinyin.Appearance.EvenRow.Options.UseForeColor = true; viewPinyin.Appearance.FilterCloseButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.FilterCloseButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.FilterCloseButton.ForeColor = System.Drawing.Color.White; viewPinyin.Appearance.FilterCloseButton.Options.UseBackColor = true; viewPinyin.Appearance.FilterCloseButton.Options.UseBorderColor = true; viewPinyin.Appearance.FilterCloseButton.Options.UseForeColor = true; viewPinyin.Appearance.FilterPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.FilterPanel.BackColor2 = System.Drawing.Color.White; viewPinyin.Appearance.FilterPanel.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.FilterPanel.Options.UseBackColor = true; viewPinyin.Appearance.FilterPanel.Options.UseForeColor = true; viewPinyin.Appearance.FixedLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.FixedLine.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.FixedLine.Options.UseBackColor = true; viewPinyin.Appearance.FixedLine.Options.UseBorderColor = true; viewPinyin.Appearance.FocusedCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.FocusedCell.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.FocusedCell.ForeColor = System.Drawing.Color.White; viewPinyin.Appearance.FocusedCell.Options.UseBackColor = true; viewPinyin.Appearance.FocusedCell.Options.UseForeColor = true; viewPinyin.Appearance.FocusedRow.BackColor = System.Drawing.Color.White; viewPinyin.Appearance.FocusedRow.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.FocusedRow.Options.UseBackColor = true; viewPinyin.Appearance.FocusedRow.Options.UseBorderColor = true; viewPinyin.Appearance.FocusedRow.Options.UseFont = true; viewPinyin.Appearance.FocusedRow.Options.UseForeColor = true; viewPinyin.Appearance.FooterPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.FooterPanel.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.FooterPanel.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.FooterPanel.Options.UseBackColor = true; viewPinyin.Appearance.FooterPanel.Options.UseBorderColor = true; viewPinyin.Appearance.FooterPanel.Options.UseForeColor = true; viewPinyin.Appearance.GroupButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.GroupButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.GroupButton.Options.UseBackColor = true; viewPinyin.Appearance.GroupButton.Options.UseBorderColor = true; viewPinyin.Appearance.GroupFooter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.GroupFooter.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.GroupFooter.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.GroupFooter.Options.UseBackColor = true; viewPinyin.Appearance.GroupFooter.Options.UseBorderColor = true; viewPinyin.Appearance.GroupFooter.Options.UseForeColor = true; viewPinyin.Appearance.GroupPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.GroupPanel.BackColor2 = System.Drawing.Color.White; viewPinyin.Appearance.GroupPanel.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.GroupPanel.Options.UseBackColor = true; viewPinyin.Appearance.GroupPanel.Options.UseForeColor = true; viewPinyin.Appearance.GroupRow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.GroupRow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.GroupRow.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.GroupRow.Options.UseBackColor = true; viewPinyin.Appearance.GroupRow.Options.UseBorderColor = true; viewPinyin.Appearance.GroupRow.Options.UseForeColor = true; viewPinyin.Appearance.HeaderPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.HeaderPanel.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254))))); viewPinyin.Appearance.HeaderPanel.Options.UseBackColor = true; viewPinyin.Appearance.HeaderPanel.Options.UseBorderColor = true; viewPinyin.Appearance.HideSelectionRow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(105)))), ((int)(((byte)(170)))), ((int)(((byte)(225))))); viewPinyin.Appearance.HideSelectionRow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(155)))), ((int)(((byte)(215))))); viewPinyin.Appearance.HideSelectionRow.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.HideSelectionRow.Options.UseBackColor = true; viewPinyin.Appearance.HideSelectionRow.Options.UseBorderColor = true; viewPinyin.Appearance.HideSelectionRow.Options.UseForeColor = true; viewPinyin.Appearance.HorzLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.HorzLine.Options.UseBackColor = true; viewPinyin.Appearance.OddRow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.OddRow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.OddRow.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.OddRow.Options.UseBackColor = true; viewPinyin.Appearance.OddRow.Options.UseBorderColor = true; viewPinyin.Appearance.OddRow.Options.UseForeColor = true; viewPinyin.Appearance.Preview.Font = new System.Drawing.Font("Verdana", 7.5F); viewPinyin.Appearance.Preview.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(155)))), ((int)(((byte)(215))))); viewPinyin.Appearance.Preview.Options.UseFont = true; viewPinyin.Appearance.Preview.Options.UseForeColor = true; viewPinyin.Appearance.Row.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(251)))), ((int)(((byte)(255))))); viewPinyin.Appearance.Row.ForeColor = System.Drawing.Color.Black; viewPinyin.Appearance.Row.Options.UseBackColor = true; viewPinyin.Appearance.Row.Options.UseForeColor = true; viewPinyin.Appearance.RowSeparator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); viewPinyin.Appearance.RowSeparator.BackColor2 = System.Drawing.Color.White; viewPinyin.Appearance.RowSeparator.Options.UseBackColor = true; viewPinyin.Appearance.SelectedRow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(155)))), ((int)(((byte)(215))))); viewPinyin.Appearance.SelectedRow.ForeColor = System.Drawing.Color.White; viewPinyin.Appearance.SelectedRow.Options.UseBackColor = true; viewPinyin.Appearance.SelectedRow.Options.UseForeColor = true; viewPinyin.Appearance.TopNewRow.BackColor = System.Drawing.Color.White; viewPinyin.Appearance.TopNewRow.Options.UseBackColor = true; viewPinyin.Appearance.VertLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251))))); viewPinyin.Appearance.VertLine.Options.UseBackColor = true; viewPinyin.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None; //viewPinyin.OptionsBehavior.Editable = false; viewPinyin.OptionsCustomization.AllowFilter = false; viewPinyin.OptionsSelection.EnableAppearanceFocusedCell = true; viewPinyin.OptionsView.EnableAppearanceEvenRow = true; viewPinyin.OptionsView.EnableAppearanceOddRow = true; viewPinyin.OptionsView.ShowGroupPanel = false; viewPinyin.RowHeight = 25; viewPinyin.OptionsView.ShowIndicator = false; viewPinyin.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowAlways; #endregion // // btnSave1 // btnSave1.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F); btnSave1.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); btnSave1.Appearance.Options.UseFont = true; btnSave1.Appearance.Options.UseForeColor = true; btnSave1.CustomText = "确认"; btnSave1.Image = Properties.Resources.Save; btnSave1.Location = new System.Drawing.Point(435, 7); btnSave1.LookAndFeel.SkinName = "Office 2010 Blue"; btnSave1.LookAndFeel.UseDefaultLookAndFeel = false; btnSave1.Name = "btnSave1"; btnSave1.Selectable = false; btnSave1.Size = new System.Drawing.Size(80, 28); btnSave1.TabIndex = 4; btnSave1.Text = "确认"; btnSave1.Click += new EventHandler(btnOk_Click); // // cJiaPanel2 // cJiaPanel2.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); cJiaPanel2.Appearance.BackColor2 = System.Drawing.Color.White; cJiaPanel2.Appearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(157)))), ((int)(((byte)(189))))); cJiaPanel2.Appearance.Options.UseBackColor = true; cJiaPanel2.Appearance.Options.UseBorderColor = true; cJiaPanel2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple; cJiaPanel2.Controls.Add(btnSave1); cJiaPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; cJiaPanel2.Location = new System.Drawing.Point(0, 172); cJiaPanel2.LookAndFeel.SkinName = "Office 2010 Silver"; cJiaPanel2.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat; cJiaPanel2.LookAndFeel.UseDefaultLookAndFeel = false; cJiaPanel2.Name = "cJiaPanel2"; cJiaPanel2.Size = new System.Drawing.Size(525, 41); cJiaPanel2.TabIndex = 4; // // UserControl1 // userControl1.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); userControl1.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; userControl1.Controls.Add(cJiaPanel2); userControl1.Controls.Add(gridPinyin); userControl1.Controls.Add(cJiaPanel1); userControl1.Name = "UserControl1"; userControl1.Size = new System.Drawing.Size(525, 215); frmPinyin.Controls.Add(userControl1); userControl1.Dock = DockStyle.Fill; frmPinyin.AcceptButton = btnSave1; #endregion #region 获取拼音 DataTable dt = BuildTable(alPinyinData); DataRow dr = dt.NewRow(); for (int i = 0; i <= alPinyinData.Count - 1; i++) { string[] pyData = (string[])alPinyinData[i]; #region New Grid Column DevExpress.XtraGrid.Columns.GridColumn gridColumn = new DevExpress.XtraGrid.Columns.GridColumn(); gridColumn.Caption = pyData[0]; gridColumn.FieldName = dt.Columns[i].ColumnName; gridColumn.OptionsColumn.AllowEdit = false; gridColumn.Visible = true; gridColumn.VisibleIndex = viewPinyin.Columns.Count + 1; gridColumn.Width = 60; gridColumn.AppearanceCell.Options.UseTextOptions = true; gridColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; gridColumn.AppearanceHeader.Options.UseTextOptions = true; gridColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; #endregion dr[i] = pyData[1]; if (pyData.Length > 2) { DevExpress.XtraEditors.Repository.RepositoryItemComboBox boxPinyin = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); boxPinyin.AutoHeight = false; boxPinyin.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; for (int j = 1; j <= pyData.Length - 1; j++) { boxPinyin.Items.Add(pyData[j]); } gridColumn.ColumnEdit = boxPinyin; gridColumn.OptionsColumn.AllowEdit = true; gridColumn.AppearanceHeader.ForeColor = System.Drawing.Color.Red; gridColumn.AppearanceHeader.Options.UseForeColor = true; } viewPinyin.Columns.Add(gridColumn); } dt.Rows.Add(dr); gridPinyin.DataSource = dt; frmPinyin.ShowDialog(); viewPinyin.PostEditor(); #endregion StringBuilder sb = new StringBuilder(); for (int i = 0; i <= alPinyinData.Count - 1; i++) { sb.Append(dt.Rows[0][i].ToString().Substring(0, 1)); } return(sb.ToString()); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.xtraUserControl1 = new DevExpress.XtraEditors.XtraUserControl(); this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.xtraUserControl1); this.layoutControl1.Controls.Add(this.navBarControl1); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(775, 419); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // xtraUserControl1 // this.xtraUserControl1.Location = new System.Drawing.Point(298, 12); this.xtraUserControl1.Name = "xtraUserControl1"; this.xtraUserControl1.Size = new System.Drawing.Size(465, 395); this.xtraUserControl1.TabIndex = 5; // // navBarControl1 // this.navBarControl1.ActiveGroup = null; this.navBarControl1.Location = new System.Drawing.Point(12, 12); this.navBarControl1.Name = "navBarControl1"; this.navBarControl1.OptionsNavPane.ExpandedWidth = 282; this.navBarControl1.Size = new System.Drawing.Size(282, 395); this.navBarControl1.TabIndex = 4; this.navBarControl1.Text = "navBarControl1"; this.navBarControl1.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarControl1_LinkClicked); // // layoutControlGroup1 // this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(775, 419); this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.navBarControl1; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(286, 399); this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextVisible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.xtraUserControl1; this.layoutControlItem2.Location = new System.Drawing.Point(286, 0); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(469, 399); this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextVisible = false; // // Form1 // this.ClientSize = new System.Drawing.Size(775, 419); this.Controls.Add(this.layoutControl1); this.Name = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); this.ResumeLayout(false); }
/// Tạo thêm tab mới /// <param name="tabControl">Tên TabControl để add thêm tabpage mới vào</param> /// <param name="Text">Tiêu đề tabpage mới</param> /// <param name="Name">Tên tabpage mới</param> /// <param name="form">Tên form con của tab mới</param> /// <param name="imageIndex">index của icon</param> public static void TaoTabUC(DevExpress.XtraTab.XtraTabControl tabControl, string Text, string Name, DevExpress.XtraEditors.XtraUserControl xUserControl, int imageIndex) { int index = KiemTraTonTai(tabControl, Name); if (index >= 0) { tabControl.SelectedTabPage = tabControl.TabPages[index]; tabControl.SelectedTabPage.Text = Text; } else { DevExpress.XtraTab.XtraTabPage tabpage = new DevExpress.XtraTab.XtraTabPage { Text = Text, Name = Name, ImageIndex = imageIndex }; tabControl.TabPages.Add(tabpage); tabControl.SelectedTabPage = tabpage; xUserControl.Parent = tabpage; xUserControl.Show(); xUserControl.Dock = DockStyle.Fill; } }