Actualizacion proyecto- Se actualizan entidades y controladores para

evitar vpw y wap push  estatico
parent 0454e3ea
......@@ -55,7 +55,23 @@ class ListadoController extends AbstractController {
$vigenciaInicio = $request->get('lisVigenciaInicio');
$vigenciaFin = $request->get('lisVigenciaFin');
$precio = $request->get('lisPrecio');
$code = $request->get('lisCode');
$vpwLa = $request->get('lisVpwLa');
$vpwMedio = $request->get('lisVpwMedio');
$vpwProvider = $request->get('lisVpwProvider');
$vpwService = $request->get('lisVpwService');
$vpwCode = $request->get('lisVpwCode');
$wapPushType = $request->get('lisWapPushType');
$wapPushLa = $request->get('lisWapPushLa');
$wapPushService = $request->get('lisWapPushService');
$wapPushCode = $request->get('lisWapPushCode');
$wapPushProvider = $request->get('lisWapPushProvider');
$wapPushProviderCode = $request->get('lisWapPushProviderCode');
$wapPushContentType = $request->get('lisWapPushContentType');
$wapPushMessage = $request->get('lisWapPushMessage');
$wapPushUrl = $request->get('lisWapPushUrl');
$wapPushServiceTag = $request->get('lisWapPushServiceTag');
$tagId = $request->get('lisTag');
$padreId = $request->get('padreId', null);
$imagen = $request->files->get('lisImagen', null);
......@@ -79,7 +95,9 @@ class ListadoController extends AbstractController {
$json->setStatusCode(JsonResponse::HTTP_BAD_REQUEST);
return $json;
} */
//validar que campos vpw y wappush no esten vacios
if ($precio < 0) {
$log->error("El precio debe ser igual o superior a 0...");
$json->setData(array('errors' => 'Estimado usuario, debe ingresar un precio a la lista igual o superior a 0.'));
......@@ -137,11 +155,22 @@ class ListadoController extends AbstractController {
$lista->setLisVigenciaInicio(new \DateTime($vigenciaInicio));
$lista->setLisVigenciaTermino(new \DateTime($vigenciaFin));
$lista->setLisPrecio((int) $precio);
$lista->setLisLa($this->la);
$lista->setLisMedio($this->medio);
$lista->setLisProvider($this->provider);
$lista->setLisService($this->service);
$lista->setLisCode($code);
$lista->setLisVpwLa($vpwLa);
$lista->setLisVpwMedio($vpwMedio);
$lista->setLisVpwProvider($vpwProvider);
$lista->setLisVpwService($vpwService);
$lista->setLisVpwCode($vpwCode);
$lista->setLisWapPushType($wapPushType);
$lista->setLisWapPushLa($wapPushLa);
$lista->setLisWapPushCode($wapPushCode);
$lista->setLisWapPushProvider($wapPushProvider);
$lista->setLisWapPushProviderCode($wapPushProviderCode);
$lista->setLisWapPushContentType($wapPushContentType);
$lista->setLisWapPushMessage($wapPushMessage);
$lista->setLisWapPushUrl($wapPushUrl);
$lista->setLisWapPushService($wapPushService);
$lista->setLisWapPushServiceTag($wapPushServiceTag);
//agregar campos de wappush
$lista->setLisTipo(PluLista::TIPO_LISTA_NORMAL);
$lista->setLisEliminado(PluLista::ELIMINADO_FALSE);
$lista->setLisEstado(PluLista::ESTADO_ACTIVO);
......@@ -238,7 +267,23 @@ class ListadoController extends AbstractController {
$vigenciaInicio = $request->get('lisVigenciaInicio');
$vigenciaFin = $request->get('lisVigenciaFin');
$precio = $request->get('lisPrecio');
$code = $request->get('lisCode');
//agregar modificacion de vpw y wap
$vpwLa = $request->get('lisVpwLa');
$vpwMedio = $request->get('lisVpwMedio');
$vpwProvider = $request->get('lisVpwProvider');
$vpwService = $request->get('lisVpwService');
$vpwCode = $request->get('lisVpwCode');
$wapPushType = $request->get('lisWapPushType');
$wapPushLa = $request->get('lisWapPushLa');
$wapPushService = $request->get('lisWapPushService');
$wapPushCode = $request->get('lisWapPushCode');
$wapPushProvider = $request->get('lisWapPushProvider');
$wapPushProviderCode = $request->get('lisWapPushProviderCode');
$wapPushContentType = $request->get('lisWapPushContentType');
$wapPushMessage = $request->get('lisWapPushMessage');
$wapPushUrl = $request->get('lisWapPushUrl');
$wapPushServiceTag = $request->get('lisWapPushServiceTag');
//
$tagId = $request->get('lisTag');
$padreAnterior = $request->get('actualPadreId', null);
$padreId = $request->get('padreId', null);
......@@ -259,13 +304,6 @@ class ListadoController extends AbstractController {
return $json;
}
if ($code == "") {
$log->error("Debe ingresar un code...");
$json->setData(array('errors' => 'Estimado usuario, debe ingresar un code para la lista.'));
$json->setStatusCode(JsonResponse::HTTP_BAD_REQUEST);
return $json;
}
if ($nombre == '' || $descripcion == '' || !is_numeric($precio)) {
$log->error("Los datos ingresados son incorrectos...");
$json->setData(array('errors' => 'Estimado usuario, sus datos son incorrectos'));
......@@ -310,12 +348,21 @@ class ListadoController extends AbstractController {
$lista->setLisVigenciaInicio(new \DateTime($vigenciaInicio));
$lista->setLisVigenciaTermino(new \DateTime($vigenciaFin));
$lista->setLisPrecio((int) $precio);
$lista->setLisLa($this->la);
$lista->setLisMedio($this->medio);
$lista->setLisProvider($this->provider);
$lista->setLisService($this->service);
$lista->setLisCode($code);
$lista->setTag($tag);
$lista->setLisVpwLa($vpwLa);
$lista->setLisVpwMedio($vpwMedio);
$lista->setLisVpwProvider($vpwProvider);
$lista->setLisVpwService($vpwService);
$lista->setLisVpwCode($vpwCode);
$lista->setLisWapPushType($wapPushType);
$lista->setLisWapPushLa($wapPushLa);
$lista->setLisWapPushCode($wapPushCode);
$lista->setLisWapPushProvider($wapPushProvider);
$lista->setLisWapPushProviderCode($wapPushProviderCode);
$lista->setLisWapPushContentType($wapPushContentType);
$lista->setLisWapPushMessage($wapPushMessage);
$lista->setLisWapPushUrl($wapPushUrl);
$lista->setLisWapPushService($wapPushService);
$lista->setLisWapPushServiceTag($wapPushServiceTag);
$lista->setUpdatedAt(new \DateTime());
//GUARDAR IMAGEN EN DISCO
$this->manager->persist($lista);
......
......@@ -72,37 +72,108 @@ class PluLista
/**
* @var int|null
*
* @ORM\Column(name="lis_la", type="integer", nullable=true)
* @ORM\Column(name="lis_vpw_la", type="integer", nullable=true)
*/
private $lisLa;
private $lisVpwLa;
/**
* @var string|null
*
* @ORM\Column(name="lis_medio", type="string", length=500, nullable=true)
* @ORM\Column(name="lis_vpw_medio", type="string", length=500, nullable=true)
*/
private $lisMedio;
private $lisVpwMedio;
/**
* @var string|null
*
* @ORM\Column(name="lis_provider", type="string", length=500, nullable=true)
* @ORM\Column(name="lis_vpw_provider", type="string", length=500, nullable=true)
*/
private $lisProvider;
private $lisVpwProvider;
/**
* @var string|null
*
* @ORM\Column(name="lis_service", type="string", length=500, nullable=true)
* @ORM\Column(name="lis_vpw_service", type="string", length=500, nullable=true)
*/
private $lisService;
private $lisVpwService;
/**
* @var string|null
*
* @ORM\Column(name="lis_code", type="string", length=500, nullable=true)
* @ORM\Column(name="lis_vpw_code", type="string", length=500, nullable=true)
*/
private $lisCode;
private $lisVpwCode;
/**/
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_type", type="string", length=45, nullable=true)
*/
private $lisWapPushType;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_la", type="string", length=45, nullable=true)
*/
private $lisWapPushLa;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_service", type="string", length=45, nullable=true)
*/
private $lisWapPushService;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_code", type="string", length=45, nullable=true)
*/
private $lisWapPushCode;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_provider", type="string", length=45, nullable=true)
*/
private $lisWapPushProvider;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_provider_code", type="string", length=45, nullable=true)
*/
private $lisWapPushProviderCode;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_content_type", type="string", length=45, nullable=true)
*/
private $lisWapPushContentType;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_message", type="string", length=200, nullable=true)
*/
private $lisWapPushMessage;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_url", type="string", length=200, nullable=true)
*/
private $lisWapPushUrl;
/**
* @var string|null
*
* @ORM\Column(name="lis_wap_push_service_tag", type="string", length=45, nullable=true)
*/
private $lisWapPushServiceTag;
/**
* @var int|null
......@@ -403,66 +474,6 @@ class PluLista
return $this;
}
public function getLisLa(): ?int
{
return $this->lisLa;
}
public function setLisLa(?int $lisLa): self
{
$this->lisLa = $lisLa;
return $this;
}
public function getLisMedio(): ?string
{
return $this->lisMedio;
}
public function setLisMedio(?string $lisMedio): self
{
$this->lisMedio = $lisMedio;
return $this;
}
public function getLisProvider(): ?string
{
return $this->lisProvider;
}
public function setLisProvider(?string $lisProvider): self
{
$this->lisProvider = $lisProvider;
return $this;
}
public function getLisService(): ?string
{
return $this->lisService;
}
public function setLisService(?string $lisService): self
{
$this->lisService = $lisService;
return $this;
}
public function getLisCode(): ?string
{
return $this->lisCode;
}
public function setLisCode(?string $lisCode): self
{
$this->lisCode = $lisCode;
return $this;
}
public function getTag(): ?PluTag
{
return $this->tag;
......@@ -473,6 +484,186 @@ class PluLista
$this->tag = $tag;
return $this;
}
public function getLisVpwLa(): ?int
{
return $this->lisVpwLa;
}
public function setLisVpwLa(?int $lisVpwLa): self
{
$this->lisVpwLa = $lisVpwLa;
return $this;
}
public function getLisVpwMedio(): ?string
{
return $this->lisVpwMedio;
}
public function setLisVpwMedio(?string $lisVpwMedio): self
{
$this->lisVpwMedio = $lisVpwMedio;
return $this;
}
public function getLisVpwProvider(): ?string
{
return $this->lisVpwProvider;
}
public function setLisVpwProvider(?string $lisVpwProvider): self
{
$this->lisVpwProvider = $lisVpwProvider;
return $this;
}
public function getLisVpwService(): ?string
{
return $this->lisVpwService;
}
public function setLisVpwService(?string $lisVpwService): self
{
$this->lisVpwService = $lisVpwService;
return $this;
}
public function getLisVpwCode(): ?string
{
return $this->lisVpwCode;
}
public function setLisVpwCode(?string $lisVpwCode): self
{
$this->lisVpwCode = $lisVpwCode;
return $this;
}
public function getLisWapPushType(): ?string
{
return $this->lisWapPushType;
}
public function setLisWapPushType(?string $lisWapPushType): self
{
$this->lisWapPushType = $lisWapPushType;
return $this;
}
public function getLisWapPushLa(): ?string
{
return $this->lisWapPushLa;
}
public function setLisWapPushLa(?string $lisWapPushLa): self
{
$this->lisWapPushLa = $lisWapPushLa;
return $this;
}
public function getLisWapPushService(): ?string
{
return $this->lisWapPushService;
}
public function setLisWapPushService(?string $lisWapPushService): self
{
$this->lisWapPushService = $lisWapPushService;
return $this;
}
public function getLisWapPushCode(): ?string
{
return $this->lisWapPushCode;
}
public function setLisWapPushCode(?string $lisWapPushCode): self
{
$this->lisWapPushCode = $lisWapPushCode;
return $this;
}
public function getLisWapPushProvider(): ?string
{
return $this->lisWapPushProvider;
}
public function setLisWapPushProvider(?string $lisWapPushProvider): self
{
$this->lisWapPushProvider = $lisWapPushProvider;
return $this;
}
public function getLisWapPushProviderCode(): ?string
{
return $this->lisWapPushProviderCode;
}
public function setLisWapPushProviderCode(?string $lisWapPushProviderCode): self
{
$this->lisWapPushProviderCode = $lisWapPushProviderCode;
return $this;
}
public function getLisWapPushContentType(): ?string
{
return $this->lisWapPushContentType;
}
public function setLisWapPushContentType(?string $lisWapPushContentType): self
{
$this->lisWapPushContentType = $lisWapPushContentType;
return $this;
}
public function getLisWapPushMessage(): ?string
{
return $this->lisWapPushMessage;
}
public function setLisWapPushMessage(?string $lisWapPushMessage): self
{
$this->lisWapPushMessage = $lisWapPushMessage;
return $this;
}
public function getLisWapPushUrl(): ?string
{
return $this->lisWapPushUrl;
}
public function setLisWapPushUrl(?string $lisWapPushUrl): self
{
$this->lisWapPushUrl = $lisWapPushUrl;
return $this;
}
public function getLisWapPushServiceTag(): ?string
{
return $this->lisWapPushServiceTag;
}
public function setLisWapPushServiceTag(?string $lisWapPushServiceTag): self
{
$this->lisWapPushServiceTag = $lisWapPushServiceTag;
return $this;
}
......
......@@ -37,11 +37,11 @@ class EntelVPW {
$log->debug('msisdn:' . $msisdn . ' | susripcion:' . $suscripcion->getSusId());
$params = array(
'la' => $lista->getLisLa(),
'medio' => $lista->getLisMedio(),
'provider' => $lista->getLisProvider(),
'service' => $lista->getLisService(),
'code' => $lista->getLisCode()
'la' => $lista->getLisVpwLa(),
'medio' => $lista->getLisVpwMedio(),
'provider' => $lista->getLisVpwProvider(),
'service' => $lista->getLisVpwService(),
'code' => $lista->getLisVpwCode()
);
......@@ -118,11 +118,11 @@ class EntelVPW {
$log->debug('msisdn:' . $msisdn . ' | susripcion:' . $suscripcion->getSusId());
$params = array(
'la' => $lista->getLisLa(),
'medio' => $lista->getLisMedio(),
'provider' => $lista->getLisProvider(),
'service' => $lista->getLisService(),
'code' => $lista->getLisCode()
'la' => $lista->getLisVpwLa(),
'medio' => $lista->getLisVpwMedio(),
'provider' => $lista->getLisVpwProvider(),
'service' => $lista->getLisVpwService(),
'code' => $lista->getLisVpwCode()
);
$xml = "<?xml version='1.0' encoding='UTF-8'?><unsubscribe><entry>56" . $msisdn . "</entry></unsubscribe>";
......
......@@ -70,15 +70,17 @@ class EntelWapush {
$arraySuscripciones = self::procesarXmlEntrada($xmlIN);
if($arraySuscripciones && is_array($arraySuscripciones)){
$type = "wappush";
$la = "3351";
$contenttype = "wappush2";
$service = "suscripcion";//pedir a miguel
$code = "sus_app01";//pedir a miguel
$provider = "Gearlabs";//pedir a miguel
$servicetag = "WP2-A";//pedir a miguel
$providercode = "Gea06";//pedir a miguel
$lista = $suscripcion->getLisId();
//esto lo debo obtener desde el objeto lista.
$type = $lista->getWpPushType();
$la = $lista->getWapPushLa();
$contenttype = $lista->getWapPushContentType();
$service = $lista->getWapPushService();
$code = $lista->getWapPushCode();
$provider = $lista->getWapPushProvider();
$servicetag = $lista->getWapPushServiceTag();
$providercode = $lista->getWapPushProviderCode();
$entelWappushMasive = new PluEntelWapushMasive();
$entelWappushMasive->setEwaCode($code);
......
......@@ -13,6 +13,8 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Doctrine\ORM\EntityManagerInterface;
use App\Utilities\Utiles;
use App\Utilities\EntelWapush;
use App\Entity\PluTipoWapush;
use App\Entity\PluSuscripcion;
use App\Entity\PluRegistroTxSuscripcion;
use App\Entity\PluRegistroTxDesinscripcion;
......@@ -37,7 +39,7 @@ class wsReceptorVPW extends AbstractController {
$provider = $request->get('provider', null);
$service = $request->get('service', null);
$code = $request->get('code', null);
$msisdn = substr($request->get('msisdn', null),2);
$msisdn = substr($request->get('msisdn', null), 2);
$la = $request->get('la', null);
$origin = $request->get('origin', null);
$msg = $request->get('msg', null);
......@@ -107,12 +109,19 @@ class wsReceptorVPW extends AbstractController {
$em->persist($registroTxNuevo);
$em->flush();
//enviar notificacion reagendamiento
$retornoWapPush = EntelWapush::wsGenerarPeticionWapPush($suscripcion->getSusId(), PluTipoWapush::TIPO_WP_DATOS_CUENTA, array($suscripcion->getSusId()));
$log->debug("retorno wapush a " . $suscripcion->getSusMsisdn() . " : $retornoWapPush");
if ($retornoWapPush == 200) {
$log->debug("wapush enviado a " . $suscripcion->getSusMsisdn());
} else {
$log->debug('wappush NOOK a ' . $suscripcion->getSusMsisdn());
}
$log->debug("Se ha generado la reinscripcion para el $msisdn para la lista " . $lista->getLisId() . " con codigo $code. Numero de suscripcion asociada " . $suscripcionNueva->getSusId());
break;
case "error":
$registroTxNuevo = new PluRegistroTxSuscripcion();
$registroTxNuevo->setSusId($suscripcion);
$registroTxNuevo->setRetMsisdn($msisdn);
......@@ -127,7 +136,7 @@ class wsReceptorVPW extends AbstractController {
$registroTxNuevo->setRetGlosa($glosa);
$registroTxNuevo->setCreatedAt($fechaActual);
$registroTxNuevo->setUpdatedAt($fechaActual);
$suscripcion->setSusVigente(PluSuscripcion::NO_VIGENTE);
$em->persist($suscripcion);
$em->flush();
......@@ -163,7 +172,7 @@ class wsReceptorVPW extends AbstractController {
$provider = $request->get('provider', null);
$service = $request->get('service', null);
$code = $request->get('code', null);
$msisdn = substr($request->get('msisdn', null),2);
$msisdn = substr($request->get('msisdn', null), 2);
$la = $request->get('la', null);
$origin = $request->get('origin', null);
$msg = $request->get('msg', null);
......@@ -240,7 +249,7 @@ class wsReceptorVPW extends AbstractController {
$provider = $request->get('provider', null);
$service = $request->get('service', null);
$code = $request->get('code', null);
$msisdn = substr($request->get('msisdn', null),2);
$msisdn = substr($request->get('msisdn', null), 2);
$la = $request->get('la', null);
$origin = $request->get('origin', null);
$msg = $request->get('msg', null);
......@@ -295,11 +304,11 @@ class wsReceptorVPW extends AbstractController {
$registroTxNuevo->setUpdatedAt($fechaActual);
$em->persist($registroTxNuevo);
$em->flush();
$suscripcion->setSusVigente(PluSuscripcion::NO_VIGENTE);
$em->persist($suscripcion);
$em->flush();
$log->debug("Ha ocurrido un error para el cobro del telefono $msisdn, para la lista " . $lista->getLisId() . " con codigo $code. Numero de suscripcion asociada " . $suscripcion->getSusId());
break;
}
......
......@@ -90,12 +90,105 @@
{% endif %}
{#INICIO CAMPOS VPW#}
<div class="form-group">
<label class="col-md-3 control-label">Code</label>
<label class="col-md-3 control-label">VPW Code</label>
<div class="col-md-9">
<input class="form-control" id="lisCode" name="lisCode" value="{{listado.getLisCode()}}" type="text">
<input class="form-control" id="lisVpwCode" name="lisVpwCode" value="{{listado.getVpwCode()}}" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW La</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwLa" name="lisVpwLa" value="{{listado.getVpwLa()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW Provider</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwProvider" name="lisVpwProvider" value="{{listado.getVpwProvider()}}"type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW Medio</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwMedio" name="lisVpwMedio" value="{{listado.getVpwMedio()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW Service</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwService" name="lisVpwService" value="{{listado.getVpwService()}}" type="text">
</div>
</div>
{#INICIO CAMPOS WAPPUSH#}
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Type</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushType" name="lisWapPushType" value="{{listado.getWapPushType()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push La</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushLa" name="lisWapPushLa" value="{{listado.getWapPushLa()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Service</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushService" name="lisWapPushService" value="{{listado.getWapPushService()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Code</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushCode" name="lisWapPushCode" value="{{listado.getWapPushCode()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Provider</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushProvider" name="lisWapPushProvider" value="{{listado.getWapPushProvider()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Provider Code</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushProviderCode" name="lisWapPushProviderCode" value="{{listado.getWapPushProvider()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Content Type</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushContentType" name="lisWapPushContentType" value="{{listado.getWapPushContentType()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Message</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushMessage" name="lisWapPushMessage" value="{{listado.getWapPushMessage()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Url</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushUrl" name="lisWapPushUrl" value="{{listado.getWapPushUrl()}}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push ServiceTag</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushServiceTag" name="lisWapPushServiceTag" value="{{listado.getWapPushServiceTag()}}" type="text">
</div>
</div>
{#fin#}
<div class="form-group">
<label class="col-md-3 control-label">Imagen Actual</label>
<div class="col-md-9">
......@@ -193,22 +286,39 @@
var formData = new FormData();
$("#btnEditarLista").addClass('disabled');
$("#btnEditarLista").button("editando....");
if($("#actualPadreId").val() === ""){
if ($("#actualPadreId").val() === "") {
var actualPadreId = "none";
}else{
} else {
var actualPadreId = $("#actualPadreId").val();
}
formData.append("lisVigenciaInicio", $('#vigencia').data('daterangepicker').startDate.format('YYYY-MM-DD'));
formData.append("lisVigenciaFin", $('#vigencia').data('daterangepicker').endDate.format('YYYY-MM-DD'));
formData.append("lisNombre", $("#lisNombre").val());
formData.append("lisDescripcion", $("#lisDescripcion").val());
formData.append("lisPrecio", $("#lisPrecio").val());
formData.append("lisCode", $("#lisCode").val());
//
formData.append("lisVpwCode", $("#lisVpwCode").val());
formData.append("lisVpwLa", $("#lisVpwLa").val());
formData.append("lisVpwProvider", $("#lisVpwProvider").val());
formData.append("lisVpwMedio", $("#lisVpwMedio").val());
formData.append("lisVpwService", $("#lisVpwService").val());
//
formData.append("lisWapPushType", $("#lisWapPushType").val());
formData.append("lisWapPushLa", $("#lisWapPushLa").val());
formData.append("lisWapPushService", $("#lisWapPushService").val());
formData.append("lisWapPushCode", $("#lisWapPushCode").val());
formData.append("lisWapPushProvider", $("#lisWapPushProvider").val());
formData.append("lisWapPushProviderCode", $("#lisWapPushProviderCode").val());
formData.append("lisWapPushContentType", $("#lisWapPushContentType").val());
formData.append("lisWapPushMessage", $("#lisWapPushMessage").val());
formData.append("lisWapPushUrl", $("#lisWapPushUrl").val());
formData.append("lisWapPushServiceTag", $("#lisWapPushServiceTag").val());
//
formData.append("lisTag", $("#tags").val());
formData.append("padreId", $("#padres").val());
formData.append("actualPadreId",actualPadreId );
formData.append("actualPadreId", actualPadreId);
formData.append("token", $("#_csrf_token").val());
formData.append("lisImagen", this.file, this.getName());
formData.append("lisId", $("#lisId").val());
......
......@@ -84,15 +84,105 @@
</select>
</div>
</div>
{#INICIO CAMPOS VPW#}
<div class="form-group">
<label class="col-md-3 control-label">Code</label>
<label class="col-md-3 control-label">VPW Code</label>
<div class="col-md-9">
<input class="form-control" id="lisCode" name="lisCode" type="text">
<input class="form-control" id="lisVpwCode" name="lisVpwCode" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW La</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwLa" name="lisVpwLa" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW Provider</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwProvider" name="lisVpwProvider" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW Medio</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwMedio" name="lisVpwMedio" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">VPW Service</label>
<div class="col-md-9">
<input class="form-control" id="lisVpwService" name="lisVpwService" type="text">
</div>
</div>
{#INICIO CAMPOS WAPPUSH#}
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Type</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushType" name="lisWapPushType" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push La</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushLa" name="lisWapPushLa" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Service</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushService" name="lisWapPushService" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Code</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushCode" name="lisWapPushCode" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Provider</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushProvider" name="lisWapPushProvider" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Provider Code</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushProviderCode" name="lisWapPushProviderCode" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Content Type</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushContentType" name="lisWapPushContentType" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Message</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushMessage" name="lisWapPushMessage" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push Url</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushUrl" name="lisWapPushUrl" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Wap Push ServiceTag</label>
<div class="col-md-9">
<input class="form-control" id="lisWapPushServiceTag" name="lisWapPushServiceTag" type="text">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Imagen Lista</label>
<div class="col-md-9">
......@@ -187,7 +277,26 @@
formData.append("lisNombre", $("#lisNombre").val());
formData.append("lisDescripcion", $("#lisDescripcion").val());
formData.append("lisPrecio", $("#lisPrecio").val());
formData.append("lisCode", $("#lisCode").val());
//
formData.append("lisVpwCode", $("#lisVpwCode").val());
formData.append("lisVpwLa", $("#lisVpwLa").val());
formData.append("lisVpwProvider", $("#lisVpwProvider").val());
formData.append("lisVpwMedio", $("#lisVpwMedio").val());
formData.append("lisVpwService", $("#lisVpwService").val());
//
formData.append("lisWapPushType", $("#lisWapPushType").val());
formData.append("lisWapPushLa", $("#lisWapPushLa").val());
formData.append("lisWapPushService", $("#lisWapPushService").val());
formData.append("lisWapPushCode", $("#lisWapPushCode").val());
formData.append("lisWapPushProvider", $("#lisWapPushProvider").val());
formData.append("lisWapPushProviderCode", $("#lisWapPushProviderCode").val());
formData.append("lisWapPushContentType", $("#lisWapPushContentType").val());
formData.append("lisWapPushMessage", $("#lisWapPushMessage").val());
formData.append("lisWapPushUrl", $("#lisWapPushUrl").val());
formData.append("lisWapPushServiceTag", $("#lisWapPushServiceTag").val());
//
formData.append("lisTag",$("#tags").val());
formData.append("padreId", $("#padres").val());
formData.append("token", $("#_csrf_token").val());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment