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 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();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        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);
            }
        }
Beispiel #6
0
 public override void RefreshSecondaryData()
 {
     Datos_PuertoOrigen.DataSource = PuertoList.GetList(false);
     PgMng.Grow();
 }