Exemplo n.º 1
0
        private void fillData()
        {
            try
            {
                hf_clientes.Value = JsonConvert.SerializeObject(CatalogCtrl.Cliente_GetAll(), Formatting.Indented);

                //int idBodega = ((MstCasc)this.Master).getUsrLoged().Id_bodega;
                ControlsMng.fillBodegaByUser(ddlBodega, ((MstCasc)this.Master).getUsrLoged().Id);
                ddlBodega.Items[0].Selected = true;

                ControlsMng.fillCortinaByBodega(ddlCortina, Convert.ToInt32(ddlBodega.SelectedItem.Value));
                txt_fecha.Text = DateTime.Today.ToString("dd MMMM yy");
                //txt_bodega.Text = CatalogCtrl.BodegaGet(idBodega).Nombre;
                ControlsMng.fillTipoCarga(ddlTipoCarga);
                ddlTipoCarga.SelectedValue = "2";// En arribos por lo general llegan a granel
                hf_Documentos.Value        = CatalogCtrl.DocumentoLstToJson();
                //ControlsMng.fillDocumento(ddlDocumento);
                //ddlDocumento.Items.Remove(ddlDocumento.Items.FindByValue("1"));
                hf_id_usuario.Value = ((MstCasc)this.Master).getUsrLoged().Id.ToString();
                ControlsMng.fillCustodia(ddlCustodia);
                ControlsMng.fillVigilanciaByBodega(ddlVigilante, Convert.ToInt32(ddlBodega.SelectedValue));

                #region partidas
                VSLstEntPart            = new List <Entrada_partida>();
                grd_partidas.DataSource = VSLstEntPart;
                grd_partidas.DataBind();
                #endregion
            }
            catch
            {
                throw;
            }
        }
Exemplo n.º 2
0
        private void loadFirstTime()
        {
            try
            {
                int IdEntradaPrint = 0;
                if (Request.QueryString["_kp"] != null)
                {
                    int.TryParse(Request.QueryString["_kp"].ToString(), out IdEntradaPrint);
                    printEntrada(IdEntradaPrint);
                }

                hf_clienteDocumento.Value = CatalogCtrl.Cliente_DocumentoLstToJson();
                hf_documentos.Value       = CatalogCtrl.DocumentoLstToJson();

                ControlsMng.fillBodega(ddlBodega);
                ControlsMng.fillTipoCarga(ddlTipoCarga);
                fillUser();
                ddlBodega_changed(null, null);

                Entrada oECache = ((Entrada)Cache.Get(((MstCasc)this.Master).getUsrLoged().Clave));
                if (oECache != null)
                {
                    fillEntradaCache(oECache);
                }
                //txt_hora_llegada.Text = ((Entrada)Cache.Get("nieto")).Hora;
                //Cache.Remove("nieto");
                //fillDataTest();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 3
0
 private void loadFirstTime()
 {
     try
     {
         ControlsMng.fillTipoCarga(ddl_tipo_carga);
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 4
0
 private void loadFirstTime()
 {
     try
     {
         ControlsMng.fillTipoCarga(ddlTipoCarga);
         ControlsMng.fillSalidaDestino(ddlDestino);
         ControlsMng.fillTransporte(ddlTransporte);
         ControlsMng.fillTipoTransporte(ddlTipo_Transporte, ddlTransporte);
         int IdTransporteTipo = 0;
         int.TryParse(ddlTipo_Transporte.SelectedValue, out IdTransporteTipo);
         validarTipo(IdTransporteTipo);
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 5
0
 private void loadFirstTime()
 {
     try
     {
         //ControlsMng.fillTransporte(ddlTransporte);
         //ControlsMng.fillTipoTransporte(ddlTipo_Transporte, ddlTransporte);
         ControlsMng.fillTipoCarga(ddlTipoCarga);
         ControlsMng.fillTipoTransporte(ddlTipo_Transporte);
         ControlsMng.fillSalidaDestino(ddlDestino);
         int IdTransporteTipo = 0;
         int.TryParse(ddlTipo_Transporte.SelectedValue, out IdTransporteTipo);
         fillSolicitudesSinCita();
         fillSolicitudesConCita();
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 6
0
 private void fillData()
 {
     try
     {
         int idBodega = ((MstCasc)this.Master).getUsrLoged().Id_bodega;
         ControlsMng.fillCortinaByBodega(ddlCortina, idBodega);
         txt_fecha.Text  = DateTime.Today.ToString("dd MMM yy");
         txt_bodega.Text = CatalogCtrl.BodegaGet(idBodega).Nombre;
         ControlsMng.fillTipoCarga(ddlTipoCarga);
         ControlsMng.fillDocumento(ddlDocumento);
         ddlDocumento.Items.Remove(ddlDocumento.Items.FindByValue("1"));
         hf_id_usuario.Value = ((MstCasc)this.Master).getUsrLoged().Id.ToString();
         ControlsMng.fillCustodia(ddlCustodia);
     }
     catch
     {
         throw;
     }
 }