Esempio n. 1
0
        public void LoadView()
        {
            try
            {
                aydSERV_Codigo.LoadControl(Presenter.ContainerService);
                cmbTIPO_CodMnd.LoadControl(Presenter.ContainerService, "Ayuda de Moneda", "MND", "< Seleccione la Moneda >", ListSortDirection.Ascending);
                cmbCONS_CodBas.LoadControl(Presenter.ContainerService, "Ayuda de Base", "BAS", "< Seleccione el Aplicado >", ListSortDirection.Ascending);
                switch (TRegistro)
                {
                case TServicio.Nuevo:
                    Item = new Entities.Entidad_Servicio();
                    ClearItem();
                    break;

                case TServicio.Editar:
                    break;
                }
                if (m_TipoEntidad != Delfin.Controls.EntidadClear.TIPE_Agente)
                {
                    lblESER_Exonerado.Visible = true;
                    chkESER_Exonerado.Visible = true;
                }
                else
                {
                    lblESER_Exonerado.Visible = false;
                    chkESER_Exonerado.Visible = false;
                }

                SetItem();
            }
            catch (Exception)
            { throw; }
        }
Esempio n. 2
0
 public void QuitarServicio(Entities.Entidad_Servicio x_eservicio)
 {
     try
     {
         if (Item.ListServicioDeleted == null)
         {
             Item.ListServicioDeleted = new ObservableCollection <Entidad_Servicio>();
         }
         Item.ListServicioDeleted.Add(x_eservicio);
     }
     catch (Exception)
     { throw; }
 }