protected override void RefreshMainData() { Datos.DataSource = _entity; PgMng.Grow(); Datos_Productos.DataSource = _entity.Productos; PuertoList puertos = Datos_Puertos.DataSource as PuertoList; foreach (PuertoInfo pi in puertos) { if (_entity.PuertoDespachantes.ContainsPuerto(pi.Oid)) { int index = Puertos_CLB.Items.IndexOf(pi); if (index != -1) { Puertos_CLB.SetItemChecked(index, true); } } } PgMng.Grow(); SelectFormaPagoAction(); base.RefreshMainData(); }
private void PuertoDestino_BT_Click(object sender, EventArgs e) { SelectInputForm form = new SelectInputForm(PuertoList.GetList(false)); if (form.ShowDialog(this) == DialogResult.OK) { PuertoInfo p = (PuertoInfo)form.Selected; _entity.PuertoDestino = p.Valor; } }
public SelectInputForm(PuertoList list) : base(true) { InitializeComponent(); _puertos = PuertoList.SortList(list, "Valor", ListSortDirection.Ascending); _tipo = typeof(PuertoList); this.Text = Resources.Labels.SELECT_PUERTO_TITLE; SetFormData(); }
public override void RefreshSecondaryData() { PuertoList puertos = PuertoList.GetList(false); Datos_PuertoOrigen.DataSource = Datos_PuertoDestino.DataSource = puertos; PgMng.Grow(string.Empty, "Puertos"); if (_entity.ETipoExpediente == moleQule.Store.Structs.ETipoExpediente.Ganado) { Datos_TipoGanado.DataSource = TipoGanadoList.GetList(false); PgMng.Grow(string.Empty, "TipoGanado"); } base.RefreshSecondaryData(); }
public override void RefreshSecondaryData() { Datos_PuertoDestino.DataSource = PuertoList.GetList(false); if (_entity.PuertoDestino.Length > 0) { PuertoDestino_CB.SelectedValue = _entity.PuertoDestino; } Bar.Grow(); Datos_PuertoOrigen.DataSource = PuertoList.GetList(false); if (_entity.PuertoOrigen.Length > 0) { PuertoOrigen_CB.SelectedValue = _entity.PuertoOrigen; } Bar.FillUp(); }
public override void RefreshSecondaryData() { Datos_Puertos.DataSource = PuertoList.GetList(false);; Puertos_CLB.DataSource = Datos_Puertos; Puertos_CLB.DisplayMember = "Valor"; Puertos_CLB.ValueMember = ""; PgMng.Grow(); Datos_FormaPago.DataSource = moleQule.Common.Structs.EnumText <EFormaPago> .GetList(); PgMng.Grow(); Datos_MedioPago.DataSource = moleQule.Common.Structs.EnumText <EMedioPago> .GetList(); PgMng.Grow(); Datos_TipoID.DataSource = moleQule.Common.Structs.EnumText <ETipoID> .GetList(); PgMng.Grow(); }
private void Despachante_BT_Click(object sender, EventArgs e) { if (_entity.PuertoDestino == string.Empty) { PgMng.ShowInfoException("Debe seleccionar un puerto de destino."); return; } PuertoList pl = PuertoList.GetList(true); PuertoInfo pi = pl.GetItemByProperty("Valor", _entity.PuertoDestino); DespachanteList despachantes = PuertoDespachanteList.GetDespachanteList(pi.Oid); CustomAgentSelectForm form = new CustomAgentSelectForm(this, despachantes); if (form.ShowDialog(this) == DialogResult.OK) { _custom_agency = form.Selected as DespachanteInfo; _entity.OidDespachante = _custom_agency.Oid; _entity.Despachante = _custom_agency.Nombre; Datos.ResetBindings(false); } }
public override void RefreshSecondaryData() { Datos_PuertoOrigen.DataSource = PuertoList.GetList(false); PgMng.Grow(); }