--
This commit is contained in:
@@ -204,8 +204,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
StringBuilder MensajeAlert = new StringBuilder();
|
||||
//recorrer para timbrar
|
||||
MensajeAlert.Append(" Entregas creadas correctamente <br/><br/>");
|
||||
bool huboerror = false;
|
||||
|
||||
|
||||
foreach (int cvetimbre in ListaTimbres)
|
||||
{
|
||||
Timbres ObjTimbres = new Timbres("Ent", cvetimbre, UsuarioActual);
|
||||
@@ -225,8 +224,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
SeleccionarGenerar(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
huboerror = true;
|
||||
{
|
||||
MensajeAlert.AppendFormat("<ul><li>{0}</li></ul>", ObjTimbres.MsgError);
|
||||
}
|
||||
}
|
||||
@@ -287,7 +285,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
if (CveEntregaAlmacen > 0)
|
||||
{
|
||||
// se actualizan los datos de unidad, chofer, fechas y Carta porte
|
||||
if (ObjGeneral.AsignaEntregaAlmacenRuta(DdlUnidadRec.SelectedValue.ToEntero(), DdlChoferRec.SelectedValue.ToEntero(), TxtFechaRec.Text.ToDate(), CveEntregaAlmacen, UsuarioActual.CveEmpresa))
|
||||
if (ObjGeneral.AsignaEntregaAlmacenRuta(DdlUnidadRec.SelectedValue.ToEntero(), DdlChoferRec.SelectedValue.ToEntero(), TxtFechaRec.Text.ToDate(), (TxtFechaRec.Text + " 23:59").ToDate(), CveEntregaAlmacen, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
int CveTimbre = ObjGeneral.AddGralTimbre("Rec", row.DataKey("CveSubProyecto").ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveEntregaAlmacen: CveEntregaAlmacen, AplicaCP: ChkEmitirPorteRec.Checked);
|
||||
|
||||
@@ -856,7 +854,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
ProcesoOK = ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen, DdlmodalRecoleccionDireccion.SelectedValue.ToEntero(), -1, DdlChoferRec.SelectedValue.ToEntero(), DdlUnidadRec.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa,FolioReferencia:TxtFolioReferencia.Text,Referencia: TxtReferencia.Text,CveSubProyecto: DdlSubProyectoRecoleccion.SelectedValue.ToEntero());
|
||||
ProcesoOK = ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen, DdlmodalRecoleccionDireccion.SelectedValue.ToEntero(), -1, DdlChoferRec.SelectedValue.ToEntero(), DdlUnidadRec.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa,FolioReferencia:TxtFolioReferencia.Text,Referencia: TxtReferencia.Text,CveSubProyecto: DdlSubProyectoRecoleccion.SelectedValue.ToEntero());
|
||||
}
|
||||
|
||||
if (ProcesoOK)
|
||||
|
||||
Reference in New Issue
Block a user