示例#1
0
 public async Task <Response> modificarTodo(OfertaG param)
 {
     try
     {
         // localhost:8080/admeli/xcore2/xcore/services.php/oferta/editar/todo
         return(await webService.POST <OfertaG, Response>("oferta", "editar/todo", param));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 private void crearObjetoSucursal()
 {
     currentOfertaEnv = new OfertaG();
     if (!nuevo)
     {
         currentOfertaEnv.idOfertaProductoGrupo = currentIDOferta; // Llenar el id categoria cuando este en esdo modificar
     }
     currentOfertaEnv.codigo           = textCodigoOferta.Text;
     currentOfertaEnv.descuento        = textDescuento.Text;
     currentOfertaEnv.estado           = Convert.ToInt32(chkEstado.Checked);
     currentOfertaEnv.fechaFin         = dtpFechaFin.Value.ToString("yyyy-MM-dd HH':'mm':'ss");
     currentOfertaEnv.fechaInicio      = dtpFechaInicio.Value.ToString("yyyy-MM-dd HH':'mm':'ss");
     currentOfertaEnv.idAfectoProducto = (int)cbxProductoAfecto.SelectedValue;
     currentOfertaEnv.idGrupoCliente   = (int)cbxGrupoCliente.SelectedValue;
     currentOfertaEnv.idPresentacion   = formProductoNuevo.currentIDProducto;
     currentOfertaEnv.idSucursal       = (int)cbxSucursal.SelectedValue;
     currentOfertaEnv.tipo             = "Particular";
 }
示例#3
0
        private void crearObjetoSucursal()
        {
            datosOfertaG = new OfertaG();
            string dateFin = String.Format("{0:u}", dtpFechaFin.Value);

            dateFin = dateFin.Substring(0, dateFin.Length - 1);

            string dateInicio = String.Format("{0:u}", dtpFechaInicio.Value);

            dateInicio = dateInicio.Substring(0, dateInicio.Length - 1);

            datosOfertaG.codigo      = textCodigoOferta.Text.Trim();
            datosOfertaG.fechaInicio = dateInicio;
            datosOfertaG.fechaFin    = dateFin;

            datosOfertaG.descuento        = textDescuento.Text.Trim();
            datosOfertaG.estado           = chkEstado.Checked ? 1 : 0;
            datosOfertaG.idGrupoCliente   = (int)cbxGrupoCliente.SelectedValue;
            datosOfertaG.idSucursal       = (int)cbxSucursal.SelectedValue;
            datosOfertaG.tipo             = "General";
            datosOfertaG.idAfectoProducto = 0;
            // currentOferta.fechaFin = dtpFechaFin.Value;
        }