Beispiel #1
0
        private void ugItemAccion_CellChange(object sender, CellEventArgs e)
        {
            ItemAccion Item = (ItemAccion)e.Cell.Row.Tag;

            switch (e.Cell.Column.Key)
            {
            case colNombre:
                Item.Nombre = Convert.ToString(e.Cell.Text);
                this.ActualizarCombos();
                break;

            case colClase:
                Item.Clase = Convert.ToString(e.Cell.Text);
                break;

            case colParametro:
                Item.Parametro = Convert.ToString(e.Cell.Text);
                break;

            case colExito:
                Item.Exito = e.Cell.ValueList.GetValue(e.Cell.ValueList.SelectedItemIndex).ToString();
                break;

            case colError:
                Item.Error = e.Cell.ValueList.GetValue(e.Cell.ValueList.SelectedItemIndex).ToString();
                break;

            default:
                break;
            }
            this.MostrarItem(e.Cell.Row);
        }
Beispiel #2
0
        public static void ModificarEstandar(Object Object)
        {
            Accion        Accion      = (Accion)HelperNHibernate.GetEntityByID("Accion", "93C47EBE-51D9-4509-9CCE-76D2540B15FB");
            ItemAccion    Item        = Accion.ItemByName("Modificar");
            ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(Item.Ensamblado.Ensamblado_, Item.Clase);

            Controlador.m_ObjectFlow = Object;
            Controlador.m_EntidadSF  = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
            Controlador.Start();
            RefreshView();
        }
Beispiel #3
0
        public static void CrearEstandar(Object Object)
        {
            Accion        Accion      = (Accion)HelperNHibernate.GetEntityByID("Accion", "7E35D25A-E84A-4689-8297-9E392D0EC187");
            ItemAccion    Item        = Accion.ItemByName("Crear");
            ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(Item.Ensamblado.Ensamblado_, Item.Clase);

            Controlador.m_ObjectFlow = Object;
            Controlador.m_EntidadSF  = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
            Controlador.Start();
            RefreshView();
        }
Beispiel #4
0
        public static void ModificarPersonalizado(Object Object, Accion Accion)
        {
            ItemAccion Item = Accion.ItemByName("Modificar");

            if (Item != null)
            {
                ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(Item.Ensamblado.Ensamblado_, Item.Clase);
                Controlador.m_ObjectFlow = Object;
                Controlador.m_EntidadSF  = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
                Controlador.Start();
                RefreshView();
            }
        }
Beispiel #5
0
        private void ubBajar_Click(object sender, EventArgs e)
        {
            UltraGridRow Row = ugItemAccion.ActiveRow;

            if (Row != null && Row.Index < ugItemAccion.Rows.Count - 1)
            {
                ItemAccion Item   = (ItemAccion)Row.Tag;
                Int32      Indice = Row.Index + 1;
                Accion.Items.RemoveAt(Indice - 1);
                Accion.Items.Insert(Indice, Item);
                MostrarItems();
                ugItemAccion.Rows[Item.Orden - 1].Activated = true;
            }
            ActualizarCombos();
        }
Beispiel #6
0
        private void ugItemAccion_ClickCellButton(object sender, CellEventArgs e)
        {
            ItemAccion Item = (ItemAccion)e.Cell.Row.Tag;

            switch (e.Cell.Column.Key)
            {
            case colEnsamblado:
                FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
                Item.Ensamblado = (Ensamblado)FrmSeleccionar.GetSelectedEntity(typeof(Ensamblado), "Ensamblado");
                break;

            default:
                break;
            }
            this.MostrarItem(e.Cell.Row);
        }
Beispiel #7
0
        public void MostrarItem(UltraGridRow Row)
        {
            ItemAccion Item = (ItemAccion)Row.Tag;

            Item.Orden = Row.Index + 1;
            if (Item.Ensamblado != null)
            {
                Row.Cells[colEnsamblado].Value = Item.Ensamblado.Nombre;
            }
            Row.Cells[colNombre].Value    = Item.Nombre;
            Row.Cells[colClase].Value     = Item.Clase;
            Row.Cells[colParametro].Value = Item.Parametro;
            Row.Cells[colExito].Value     = Item.Exito;
            Row.Cells[colError].Value     = Item.Error;
            Row.Cells[colOrden].Value     = Item.Orden;
        }
Beispiel #8
0
 public static void IniciarFlujo()
 {
     if (m_AccionActual != null)
     {
         ItemAccion    ItemAccion  = m_AccionActual.Items[0];
         ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(ItemAccion.Ensamblado.Ensamblado_, ItemAccion.Clase);
         if (m_AccionActual.FilaSeleccionada)
         {
             Controlador.m_ItemsSelecteds = ((FrmDetails)m_ActiveForm).GetIDs();
         }
         Controlador.m_Parameter       = ItemAccion.Parametro;
         Controlador.m_AccionActual    = m_AccionActual;
         Controlador.m_ItemAccionAcual = ItemAccion;
         Controlador.m_ItemContenedor  = m_ItemContenedor;
         Controlador.m_EntidadSF       = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
         Controlador.Start();
     }
 }
Beispiel #9
0
        public void ContinuarFlujo(String Siguiente)
        {
            if (Siguiente.Equals("Salir"))
            {
                return;
            }
            ItemAccion    m_Item      = m_AccionActual.ItemByName(Siguiente.Trim());
            ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(m_Item.Ensamblado.Ensamblado_, m_Item.Clase);

            Controlador.m_Parameter       = m_Item.Parametro;
            Controlador.m_AccionActual    = m_AccionActual;
            Controlador.m_ItemAccionAcual = m_Item;
            Controlador.m_ObjectFlow      = m_ObjectFlow;
            Controlador.m_EntidadSF       = m_EntidadSF;
            Controlador.m_ItemsSelecteds  = m_ItemsSelecteds;
            Controlador.m_ItemContenedor  = m_ItemContenedor;
            Controlador.Start();
        }