Пример #1
0
        public void loadSolicitante()
        {
            object element = this._dataMapper.getElements();

            FixupCollection <DeleteSolicitante> ic = new FixupCollection <DeleteSolicitante>();

            if (element != null)
            {
                if (((List <SOLICITANTE>)element).Count > 0)
                {
                    foreach (SOLICITANTE item in (List <SOLICITANTE>)element)
                    {
                        DeleteSolicitante aux = new DeleteSolicitante(item);
                        ic.Add(aux);
                    }
                }
            }
            this.Solicitante = ic;
        }
Пример #2
0
 public MovimientoModel(IDataMapper dataMapper, int mov)
 {
     if ((dataMapper as MovimientoDataMapper) != null)
     {
         this._dataMapper = dataMapper as MovimientoDataMapper;
     }
     this._tipoMovimiento       = new TIPO_MOVIMIENTO();
     this._almacenDestino       = new ALMACEN();
     this._proveedorProcedencia = new PROVEEDOR();
     this._clienteProcedencia   = new CLIENTE();
     this._almacenProcedencia   = new ALMACEN();
     this._servicio             = new SERVICIO();
     this._transporte           = new TRANSPORTE();
     this._cliente             = new CLIENTE();
     this._proveedor           = new PROVEEDOR();
     this._facturaVenta        = new FACTURA_VENTA();
     this._solicitante         = null;
     this._tecnico             = new TECNICO();
     this._solicitanteLectura  = new SOLICITANTE();
     this._empresaLectura      = new EMPRESA();
     this._departamentoLectura = new DEPARTAMENTO();
 }
Пример #3
0
 public MovimientoModel(IDataMapper dataMapper)
 {
     this._unidMovimiento  = UNID.getNewUNID();
     this._fechaMovimiento = DateTime.Now;
     this._isActive        = true;
     if ((dataMapper as MovimientoDataMapper) != null)
     {
         this._dataMapper = dataMapper as MovimientoDataMapper;
     }
     this._tipoMovimiento       = new TIPO_MOVIMIENTO();
     this._almacenDestino       = new ALMACEN();
     this._proveedorProcedencia = new PROVEEDOR();
     this._clienteProcedencia   = null;
     this._almacenProcedencia   = null;
     this._servicio             = new SERVICIO();
     this._transporte           = new TRANSPORTE();
     this._cliente      = new CLIENTE();
     this._proveedor    = new PROVEEDOR();
     this._facturaVenta = new FACTURA_VENTA();
     this._solicitante  = null;
     this._tecnico      = new TECNICO();
 }
Пример #4
0
 public MovimientoSalidasModel(IDataMapper dataMapper, USUARIO u)
 {
     this._unidMovimiento  = UNID.getNewUNID();
     this._fechaMovimiento = DateTime.Now;
     this._isActive        = true;
     if ((dataMapper as MovimientoDataMapper) != null)
     {
         this._dataMapper = new MovimientoDataMapper();
     }
     this._almacenDestino     = new ALMACEN();
     this._proveedorDestino   = new PROVEEDOR();
     this._clienteDestino     = null;
     this._almacenProcedencia = new ALMACEN();
     this._servicio           = new SERVICIO();
     this._transporte         = new TRANSPORTE();
     this._cliente            = new CLIENTE();
     this._proveedor          = new PROVEEDOR();
     this._facturaVenta       = new FACTURA_VENTA();
     this._solicitante        = null;
     this._tipoPedimento      = new TIPO_PEDIMENTO();
     this.ActualUser          = u;
 }