private void StockEntradas_Click(object sender, EventArgs e) { frmStockEntradas newMDIChild = new frmStockEntradas(); newMDIChild.MdiParent = this; newMDIChild.Show(); }
public frmArticulos(ref frmStockEntradas f, DataTable tblArticulos) { InitializeComponent(); formEntradas = f; this.tblArticulos = tblArticulos; btnBorrar.Enabled = false; btnEditar.Enabled = false; btnGenerar.Enabled = false; }
public frmStockEntradas() { InitializeComponent(); instancia = this; tblLocales = BL.GetDataBLL.Locales(); viewOrigen = new DataView(tblLocales); viewOrigen.RowFilter = "IdLocalLOC ='1'"; cmbOrigen.ValueMember = "IdLocalLOC"; cmbOrigen.DisplayMember = "NombreLOC"; cmbOrigen.DropDownStyle = ComboBoxStyle.DropDownList; cmbOrigen.DataSource = viewOrigen; viewDestino = new DataView(tblLocales); viewDestino.RowFilter = "IdLocalLOC <>'1' AND IdLocalLOC <>'2'"; cmbDestino.ValueMember = "IdLocalLOC"; cmbDestino.DisplayMember = "NombreLOC"; cmbDestino.DropDownStyle = ComboBoxStyle.DropDownList; cmbDestino.DataSource = viewDestino; cmbOrigen.SelectedIndex = -1; cmbDestino.SelectedIndex = -1; cmbDestino.SelectedValueChanged += new EventHandler(this.validarMaestro); cmbDestino.SelectedIndexChanged += new EventHandler(this.cmbDestino_SelectedIndexChanged); rand = new Random(); }
public frmStockEntradas() { InitializeComponent(); instancia = this; tblLocales = BL.GetDataBLL.Locales(); viewOrigen = new DataView(tblLocales); viewOrigen.RowFilter = "IdLocalLOC ='1'"; cmbOrigen.ValueMember = "IdLocalLOC"; cmbOrigen.DisplayMember = "NombreLOC"; cmbOrigen.DropDownStyle = ComboBoxStyle.DropDownList; cmbOrigen.DataSource = viewOrigen; viewDestino = new DataView(tblLocales); viewDestino.RowFilter = "IdLocalLOC <>'1' AND IdLocalLOC <>'2'"; cmbDestino.ValueMember = "IdLocalLOC"; cmbDestino.DisplayMember = "NombreLOC"; cmbDestino.DropDownStyle = ComboBoxStyle.DropDownList; cmbDestino.DataSource = viewDestino; cmbOrigen.SelectedIndex = -1; cmbDestino.SelectedIndex = -1; cmbDestino.SelectedValueChanged += new EventHandler(this.validarMaestro); cmbDestino.SelectedIndexChanged += new EventHandler(this.cmbDestino_SelectedIndexChanged); rand = new Random(); }
private void StockEntradas_Click(object sender, EventArgs e) { frmStockEntradas newMDIChild = new frmStockEntradas(); newMDIChild.MdiParent = this; newMDIChild.Show(); }