Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -3758,7 +3758,7 @@ Public Class ClsGenerales
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddInvEntregaAlmacenRuta(CveSubProyectoOrigen As Integer, CveMovimientoAlmacen As Integer, CveDireccionOrigen As Integer, CveDireccionDestino As Integer, CveChofer As Integer, CveCamion As Integer, FechaEntrega As Date, Tipo As String, Orden As Integer) As Integer
|
Public Function AddInvEntregaAlmacenRuta(CveSubProyectoOrigen As Integer, CveMovimientoAlmacen As Integer, CveDireccionOrigen As Integer, CveDireccionDestino As Integer, CveChofer As Integer, CveCamion As Integer, FechaEntrega As Date, Tipo As String, Orden As Integer, Estatus As Integer) As Integer
|
||||||
Dim Retorno As Integer = -1
|
Dim Retorno As Integer = -1
|
||||||
DataAdapter("PA_Inv_EntregaAlmacenRutaAdd")
|
DataAdapter("PA_Inv_EntregaAlmacenRutaAdd")
|
||||||
|
|
||||||
@@ -3773,6 +3773,7 @@ Public Class ClsGenerales
|
|||||||
.Add("@FechaEntrega", SqlDbType.DateTime).Value = FechaEntrega
|
.Add("@FechaEntrega", SqlDbType.DateTime).Value = FechaEntrega
|
||||||
.Add("@Orden", SqlDbType.Int).Value = Orden
|
.Add("@Orden", SqlDbType.Int).Value = Orden
|
||||||
.Add("@Tipo", SqlDbType.VarChar).Value = Tipo
|
.Add("@Tipo", SqlDbType.VarChar).Value = Tipo
|
||||||
|
.Add("@Estatus", SqlDbType.VarChar).Value = Estatus
|
||||||
.Add("@CveEntregaAlmacen", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@CveEntregaAlmacen", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -3811,7 +3812,7 @@ Public Class ClsGenerales
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetInvEntregaAlmacenRuta(CveSubProyecto As Integer, FechaInicio As Date, FechaFin As Date, CveEmpresa As Integer, Opcion As Integer) As Boolean
|
Public Function GetInvEntregaAlmacenRuta(CveSubProyecto As Integer, FechaInicio As Date, FechaFin As Date, CveEmpresa As Integer, Opcion As Integer, Optional Estatus As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -3824,6 +3825,7 @@ Public Class ClsGenerales
|
|||||||
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@Opcion", SqlDbType.Int).Value = Opcion
|
.Add("@Opcion", SqlDbType.Int).Value = Opcion
|
||||||
|
.Add("@Estatus", SqlDbType.Int).Value = Estatus
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -3831,7 +3833,29 @@ Public Class ClsGenerales
|
|||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error obtener las entregas", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al obtener las entregas", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function RemoveInvEntregaAlmacenRuta(CveEntregaAlmacen As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_Inv_EntregaAlmacenRutaRemove")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEntregaAlmacen", SqlDbType.Int).Value = CveEntregaAlmacen
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar la entregas o Recolección", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
@@ -3858,7 +3882,77 @@ Public Class ClsGenerales
|
|||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error obtener las entregas", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al obtener las entregas", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function AddEntregaAlmacenRutaDetalle(CveEntregaAlmacen As Integer, CvePS As Integer, Cantidad As Decimal, CveUnidadMedida As Integer, CveUsuario As Integer) As Boolean
|
||||||
|
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_Inv_EntregaAlmacenRutaDetalleAdd")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|
||||||
|
.Add("@CveEntregaAlmacen", SqlDbType.Int).Value = CveEntregaAlmacen
|
||||||
|
.Add("@CvePS", SqlDbType.Int).Value = CvePS
|
||||||
|
.Add("@Cantidad", SqlDbType.Float).Value = Cantidad
|
||||||
|
.Add("@CveUnidadMedida", SqlDbType.Int).Value = CveUnidadMedida
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al agregar el detalle de recolección", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function RemoveEntregaAlmacenRutaDetalle(CveEntregaAlmacenDetalle As Integer) As Boolean
|
||||||
|
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_Inv_EntregaAlmacenRutaDetalleRemove")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEntregaAlmacenDetalle", SqlDbType.Int).Value = CveEntregaAlmacenDetalle
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar el detalle de recolección", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Function GetEntregaAlmacenRutaDetalle(CveEntregaAlmacen As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_Inv_EntregaAlmacenRutaDetalleGet")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEntregaAlmacen", SqlDbType.Int).Value = CveEntregaAlmacen
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener el detalle de recolección", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
@@ -5503,7 +5503,8 @@ Public Class ClsInventarios
|
|||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddCamiones(Placa As String, Especificacion As String, CveEmpresa As Integer, ConfigCartaPorte As String, Anio As Integer, CveTipoPermisoSCT As Integer, NumPermisoSCT As String, NombreAseguradora As String, NumPolizaSeguro As String, CveUsuario As Integer) As Boolean
|
Public Function AddCamiones(Placa As String, Especificacion As String, CveEmpresa As Integer, ConfigCartaPorte As String, Anio As Integer, CveTipoPermisoSCT As Integer, NumPermisoSCT As String, NombreAseguradora As String,
|
||||||
|
NumPolizaSeguro As String, CveUsuario As Integer, NombreAseguradoraMedioAmbiente As String, NumPolizaSeguroMedioAmbiente As String, NombreAseguradoraCarga As String, NumPolizaSeguroCarga As String) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Inv_CamionesAdd")
|
DataAdapter("PA_Inv_CamionesAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -5517,6 +5518,10 @@ Public Class ClsInventarios
|
|||||||
.Add("@NumPolizaSeguro", SqlDbType.VarChar).Value = NumPolizaSeguro
|
.Add("@NumPolizaSeguro", SqlDbType.VarChar).Value = NumPolizaSeguro
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@NombreAseguradoraMedioAmbiente", SqlDbType.VarChar).Value = NombreAseguradoraMedioAmbiente
|
||||||
|
.Add("@NumPolizaSeguroMedioAmbiente", SqlDbType.VarChar).Value = NumPolizaSeguroMedioAmbiente
|
||||||
|
.Add("@NombreAseguradoraCarga", SqlDbType.VarChar).Value = NombreAseguradoraCarga
|
||||||
|
.Add("@NumPolizaSeguroCarga", SqlDbType.VarChar).Value = NumPolizaSeguroCarga
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
@@ -5541,7 +5546,8 @@ Public Class ClsInventarios
|
|||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateCamiones(CveCamion As Integer, Placa As String, Especificacion As String, ConfigCartaPorte As String, Anio As Integer, CveTipoPermisoSCT As Integer, NumPermisoSCT As String, NombreAseguradora As String, NumPolizaSeguro As String, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function UpdateCamiones(CveCamion As Integer, Placa As String, Especificacion As String, ConfigCartaPorte As String, Anio As Integer, CveTipoPermisoSCT As Integer, NumPermisoSCT As String, NombreAseguradora As String,
|
||||||
|
NumPolizaSeguro As String, CveUsuario As Integer, CveEmpresa As Integer, NombreAseguradoraMedioAmbiente As String, NumPolizaSeguroMedioAmbiente As String, NombreAseguradoraCarga As String, NumPolizaSeguroCarga As String) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Inv_CamionesUpdate")
|
DataAdapter("PA_Inv_CamionesUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -5556,6 +5562,10 @@ Public Class ClsInventarios
|
|||||||
.Add("@NumPolizaSeguro", SqlDbType.VarChar).Value = NumPolizaSeguro
|
.Add("@NumPolizaSeguro", SqlDbType.VarChar).Value = NumPolizaSeguro
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@NombreAseguradoraMedioAmbiente", SqlDbType.VarChar).Value = NombreAseguradoraMedioAmbiente
|
||||||
|
.Add("@NumPolizaSeguroMedioAmbiente", SqlDbType.VarChar).Value = NumPolizaSeguroMedioAmbiente
|
||||||
|
.Add("@NombreAseguradoraCarga", SqlDbType.VarChar).Value = NombreAseguradoraCarga
|
||||||
|
.Add("@NumPolizaSeguroCarga", SqlDbType.VarChar).Value = NumPolizaSeguroCarga
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -196,6 +196,20 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
Public Function GetNominasSinTimbrar() As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DTSet = New DataSet()
|
||||||
|
DataAdapter("PA_Nom_NominasSinTimbrar", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar el finiquito.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
Public Function PersonalISRAnual(CvePersonal As Integer, cveEmpresa As Integer, Ejercicio As Integer) As Boolean
|
Public Function PersonalISRAnual(CvePersonal As Integer, cveEmpresa As Integer, Ejercicio As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DTSet = New DataSet()
|
DTSet = New DataSet()
|
||||||
|
|||||||
@@ -111,6 +111,8 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
context.Response.Write(ValidaCURP(context.Request("Curp").ToString()))
|
context.Response.Write(ValidaCURP(context.Request("Curp").ToString()))
|
||||||
Case "sendMail"
|
Case "sendMail"
|
||||||
context.Response.Write(sendMail(context))
|
context.Response.Write(sendMail(context))
|
||||||
|
Case "sendMailEMD"
|
||||||
|
context.Response.Write(sendMailEMD(context))
|
||||||
Case "sendMailLPM"
|
Case "sendMailLPM"
|
||||||
context.Response.Write(sendMailLPM(context))
|
context.Response.Write(sendMailLPM(context))
|
||||||
Case "getSATColomias"
|
Case "getSATColomias"
|
||||||
@@ -169,6 +171,41 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
End If
|
End If
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Private Function sendMailEMD(context As HttpContext) As String
|
||||||
|
Dim retorno As String = "true"
|
||||||
|
Dim nombre As String = ""
|
||||||
|
Dim correo As String = ""
|
||||||
|
Dim Phone As String = ""
|
||||||
|
Dim cuerpo As String = ""
|
||||||
|
Dim obj = context.Request("Nombre") 'Nombre=' + $('#Nombre').val() +'Correo=' + $('#Correo').val() +'Sitio=' + $('#Sitio').val() +'Cuerpo=' + $('#Cuerpo').val() +
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
nombre = obj.ToString()
|
||||||
|
End If
|
||||||
|
obj = context.Request("Correo")
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
correo = obj.ToString()
|
||||||
|
End If
|
||||||
|
obj = context.Request("Phone")
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
Phone = obj.ToString()
|
||||||
|
End If
|
||||||
|
obj = context.Request("Cuerpo")
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
cuerpo = obj.ToString().Replace("< ", "<")
|
||||||
|
End If
|
||||||
|
Dim Body As String = String.Format("Solicitó : {0}<br/>Correo : {1}<br/>Telefono : {2}<br/><br/>{3}", nombre, correo, Phone, cuerpo)
|
||||||
|
Dim para As String = "paola@adssistemas.mx;caudillo.90d@gmail.com;"
|
||||||
|
'para = ""
|
||||||
|
Dim Mail As New ClsSisMail()
|
||||||
|
If Mail.SendMail(ClsPaginas.EmpresaNotificaciones, para, "NotificaciónProspecto", Body) Then
|
||||||
|
retorno = "true"
|
||||||
|
Else
|
||||||
|
retorno = "false"
|
||||||
|
End If
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
Private Function sendMail(context As HttpContext) As String
|
Private Function sendMail(context As HttpContext) As String
|
||||||
Dim retorno As String = "true"
|
Dim retorno As String = "true"
|
||||||
Dim nombre As String = ""
|
Dim nombre As String = ""
|
||||||
|
|||||||
@@ -2933,7 +2933,13 @@ Partial Class Compras_eFacturas
|
|||||||
Try
|
Try
|
||||||
|
|
||||||
If drow("CveIE").ToString.ToEntero > 0 Then
|
If drow("CveIE").ToString.ToEntero > 0 Then
|
||||||
|
dRow2("CveIE") = drow("CveIE").ToString.ToEntero
|
||||||
|
dRow2("ImportePago") = drow("Importe").ToString.ToDecimal
|
||||||
|
|
||||||
|
dRow2("FolioPago") = drow("FolioIE")
|
||||||
|
dRow2("FechaPago") = drow("FechaDocumento")
|
||||||
dRow2("CvePrePolizaDetalle") = drow("CvePrePolizaDetalle").ToString
|
dRow2("CvePrePolizaDetalle") = drow("CvePrePolizaDetalle").ToString
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -2941,13 +2947,7 @@ Partial Class Compras_eFacturas
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
|
||||||
If drow("CveIE").ToString.ToEntero > 0 Then
|
|
||||||
dRow2("CveIE") = drow("CveIE").ToString.ToEntero
|
|
||||||
dRow2("ImportePago") = drow("Importe").ToString.ToDecimal
|
|
||||||
End If
|
|
||||||
|
|
||||||
dRow2("FolioPago") = drow("FolioIE")
|
|
||||||
dRow2("FechaPago") = drow("FechaDocumento")
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -3151,6 +3151,18 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.TienePermisoProceso(332) And (BtnVincularPago.Visible = False Or BtnVincularPago.Enabled = False) Then
|
||||||
|
For Each GvRowVal As GridViewRow In GVPDocumentosRelacionadosPagos.Rows
|
||||||
|
If GvRowVal.DataKey("CveIE").ToEntero > 0 Then
|
||||||
|
BtnVincularPago.Enabled = True
|
||||||
|
BtnVincularPago.Visible = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
UpVincularPago.Update()
|
UpVincularPago.Update()
|
||||||
|
|
||||||
|
|
||||||
@@ -3181,7 +3193,7 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Gv.DataKey("CveCompra").ToEntero > 0 Then
|
If Gv.DataKey("CveCompra").ToEntero > 0 And Gv.DataKey("CveIE").ToEntero > 0 Then
|
||||||
|
|
||||||
If Not ObjCompra.AddComplementoPago(Gv.DataKey("CveIE").ToEntero, Gv.DataKey("CveCompra").ToEntero, Gv.DataKey("ImpPagado").ToDecimal, Gv.DataKey("CvePrePolizaDetalle").ToEntero, CveFacturaPago) > 0 Then
|
If Not ObjCompra.AddComplementoPago(Gv.DataKey("CveIE").ToEntero, Gv.DataKey("CveCompra").ToEntero, Gv.DataKey("ImpPagado").ToDecimal, Gv.DataKey("CvePrePolizaDetalle").ToEntero, CveFacturaPago) > 0 Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
@@ -3232,7 +3244,6 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
|
|
||||||
For Each Gv As GridViewRow In GVPDocumentosRelacionadosPagos.Rows
|
For Each Gv As GridViewRow In GVPDocumentosRelacionadosPagos.Rows
|
||||||
|
|
||||||
If Boolean.Parse(Gv.DataKey("Manual").ToString) Then
|
If Boolean.Parse(Gv.DataKey("Manual").ToString) Then
|
||||||
objEventos.AddEventoBitacora($"Complemento { LblSerieFolioPago.Text} vinculado manualmente a compra {Gv.DataKey("SerieFolio").ToString} y Pago { Gv.DataKey("FolioPago").ToString }", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=Gv.DataKey("CveCompra").ToString.ToEntero)
|
objEventos.AddEventoBitacora($"Complemento { LblSerieFolioPago.Text} vinculado manualmente a compra {Gv.DataKey("SerieFolio").ToString} y Pago { Gv.DataKey("FolioPago").ToString }", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=Gv.DataKey("CveCompra").ToString.ToEntero)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -99,10 +99,17 @@
|
|||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GVDatos" runat="server"
|
<asp:GridView ID="GVDatos" runat="server"
|
||||||
DataKeyNames="CveEntregaAlmacen,Estatus,CveCliente,CveDireccionOrigen,CveDireccionDestino,CveCamion,CveChofer,FechaEntrega,CveAlmacen"
|
DataKeyNames="CveEntregaAlmacen,Estatus,CveCliente,CveDireccionOrigen,CveDireccionDestino,CveCamion,CveChofer,FechaEntrega,CveAlmacen,Tipo,AplicaCP,RFCReceptor,RFCEmisor"
|
||||||
AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros con los filtros especificados" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-sort="true" GridLines="None"
|
AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros con los filtros especificados" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-sort="true" GridLines="None"
|
||||||
EmptyDataRowStyle-HorizontalAlign="Center" OnRowDataBound="GVDatos_RowDataBound">
|
EmptyDataRowStyle-HorizontalAlign="Center" OnRowDataBound="GVDatos_RowDataBound">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="Tipo">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LtTipo" runat="server" Text='<%# Eval("TipoDescripcion") %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:BoundField DataField="SubProyecto" HeaderText="Sucursal" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="SubProyecto" HeaderText="Sucursal" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -351,6 +351,79 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
protected void LnkCancelaTimbre_Click(object sender, EventArgs e)
|
protected void LnkCancelaTimbre_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
return;
|
||||||
|
bool ProcesoOK = false;
|
||||||
|
LinkButton LnkCancelarFolioFiscal = (LinkButton)sender;
|
||||||
|
GridViewRow GvRow = (GridViewRow)LnkCancelarFolioFiscal.BindingContainer;
|
||||||
|
|
||||||
|
int CveTimbre = GvRow.DataKey("CveTimbre").ToEntero();
|
||||||
|
string FolioFiscalCancelar = GvRow.DataKey("FolioFiscal").ToString();
|
||||||
|
string RFCReceptor = GvRow.DataKey("RFCReceptor").ToString();
|
||||||
|
string RFCEmisor = GvRow.DataKey("RFCEmisor").ToString();
|
||||||
|
|
||||||
|
int CvePACCancelacion = GvRow.DataKey("CvePAC").ToEntero();
|
||||||
|
bool AplicaCP = bool.Parse( GvRow.DataKey("AplicaCP") );
|
||||||
|
|
||||||
|
|
||||||
|
Timbrado ObjCancelacion = new Timbrado();
|
||||||
|
ClsGenerales ObjGenrales = new ClsGenerales();
|
||||||
|
|
||||||
|
if (EstatusSATCancelado(FolioFiscalCancelar, UsuarioActual.Empresa.RFC, RFCReceptor))
|
||||||
|
{
|
||||||
|
if (ObjGenrales.UpdateGralTimbre(CveTimbre, "-1", "-1", -1, "-1", new DateTime(1900, 01, 01), UsuarioActual.CveEmpresa, UsuarioActual.CveEmpresa, 2, -1, CvePACCancelacion, DateTime.Now, AplicaCP,"-1")){
|
||||||
|
ProcesoOK = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( ObjCancelacion.CFDICancelar(UsuarioActual.Empresa, FolioFiscalCancelar, 0, RFCReceptor, RFCEmisor, CvePACCancelacion)) {
|
||||||
|
|
||||||
|
|
||||||
|
if(ObjGenrales.UpdateGralTimbre(CveTimbre,"-1","-1",-1,"-1",new DateTime(1900,01,01),UsuarioActual.CveEmpresa,UsuarioActual.CveEmpresa,2,-1, CvePACCancelacion,DateTime.Now, AplicaCP,SelloCancelacion: ObjCancelacion.CancelacionAcuse)){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Alert("El complemento se cancelo correctamente.");
|
||||||
|
ProcesoOK = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert("Se presento un error al cancelar el Folio Fiscal", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ObjGenrales.Dispose();
|
||||||
|
|
||||||
|
if (ProcesoOK)
|
||||||
|
{
|
||||||
|
CargaDatos();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public bool EstatusSATCancelado(string FolioFiscal, string RFCDe, string RFCReceptor)
|
||||||
|
{
|
||||||
|
bool respuesta = false;
|
||||||
|
var Vigencia = Timbrado.VerificarVigenciaSAT(FolioFiscal, RFCDe, RFCReceptor, "0", true);
|
||||||
|
if (Vigencia is object)
|
||||||
|
{
|
||||||
|
if (Vigencia.Estado.ToUpper() == "CANCELADO")
|
||||||
|
{
|
||||||
|
respuesta = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
respuesta = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
respuesta = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return respuesta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -412,6 +485,19 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
LnkCancelaTimbre.Visible = true;
|
LnkCancelaTimbre.Visible = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
switch (e.Row.DataKey("Tipo"))
|
||||||
|
{
|
||||||
|
case "E":
|
||||||
|
e.Row.FCLabel("LtTipo").CssClass = "label label-sm label-success";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
e.Row.FCLabel("LtTipo").CssClass = "label label-sm label-warning";
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2053,6 +2053,7 @@ Partial Class General_SaldosIniciales
|
|||||||
ObjRH.IniciaTransacSQL()
|
ObjRH.IniciaTransacSQL()
|
||||||
Dim ErrorRH As Boolean = False
|
Dim ErrorRH As Boolean = False
|
||||||
Dim Contador As Integer = 0
|
Dim Contador As Integer = 0
|
||||||
|
Dim ContadorAgregados As Integer = 0
|
||||||
Dim NumRow As Integer = 0
|
Dim NumRow As Integer = 0
|
||||||
|
|
||||||
For Each Row As DataRow In dt.Rows
|
For Each Row As DataRow In dt.Rows
|
||||||
@@ -2095,6 +2096,12 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim MetodoPago As String = Row("Metodo Pago").ToString
|
Dim MetodoPago As String = Row("Metodo Pago").ToString
|
||||||
Dim Nominista As String = Row("Nominista").ToString
|
Dim Nominista As String = Row("Nominista").ToString
|
||||||
|
|
||||||
|
Dim NombreCompleto As String = $"{Nombre} {ApellidoPaterno} {ApellidoMaterno}"
|
||||||
|
|
||||||
|
If NombreCompleto.Trim.Replace(" ", "") = String.Empty Then
|
||||||
|
Continue For
|
||||||
|
End If
|
||||||
|
|
||||||
'CLAVES
|
'CLAVES
|
||||||
Dim CveGenero As Integer = 0
|
Dim CveGenero As Integer = 0
|
||||||
Dim CveEstadoCivil As Integer = 0
|
Dim CveEstadoCivil As Integer = 0
|
||||||
@@ -2152,7 +2159,7 @@ Partial Class General_SaldosIniciales
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
myarraystr = TipoContrato.Split(":"c)
|
myarraystr = TipoContrato.Split(":"c)
|
||||||
If (myarraystr.Length > 0) Then
|
If (myarraystr.Length > 1) Then
|
||||||
CveTipoContrato = myarraystr(0).ToEntero()
|
CveTipoContrato = myarraystr(0).ToEntero()
|
||||||
Else
|
Else
|
||||||
CveTipoContrato = GlobalDTTiposContrato().FiltroPrimeroValor("CveTipoContrato", $"TipoContrato = '{TipoContrato}'").ToString.ToEntero
|
CveTipoContrato = GlobalDTTiposContrato().FiltroPrimeroValor("CveTipoContrato", $"TipoContrato = '{TipoContrato}'").ToString.ToEntero
|
||||||
@@ -2215,7 +2222,12 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
'VALIDACIONES
|
'VALIDACIONES
|
||||||
' If Not CveSucursal > 0 Then Alert("La Empresa no cuenta con Sucursal, es necesario dar una Sucursal de alta.", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
' If Not CveSucursal > 0 Then Alert("La Empresa no cuenta con Sucursal, es necesario dar una Sucursal de alta.", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||||
If Not CveDepartamento > 0 Then Alert($"No se encontró el Departamento: {Departamento} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
If Not CveDepartamento > 0 Then
|
||||||
|
Alert($"No se encontró el Departamento: {Departamento} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia)
|
||||||
|
ErrorRH = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
If Not CvePuesto > 0 Then Alert($"No se encontró el Puesto: {Puesto} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
If Not CvePuesto > 0 Then Alert($"No se encontró el Puesto: {Puesto} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||||
If Not CveTurno > 0 Then Alert($"No se encontró el turno: {Turno} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
If Not CveTurno > 0 Then Alert($"No se encontró el turno: {Turno} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||||
If Not CveEstado > 0 Then Alert($"No se encontró el Estado: {Estado} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
If Not CveEstado > 0 Then Alert($"No se encontró el Estado: {Estado} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||||
@@ -2226,7 +2238,7 @@ Partial Class General_SaldosIniciales
|
|||||||
If Not CveUsuarioNomina > 0 Then CveUsuarioNomina = -1 'Alert("No se encontró el Nominista: " + Nominista + " Renglón: " + NumRow, TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
If Not CveUsuarioNomina > 0 Then CveUsuarioNomina = -1 'Alert("No se encontró el Nominista: " + Nominista + " Renglón: " + NumRow, TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||||
|
|
||||||
|
|
||||||
Dim NombreCompleto As String = $"{Nombre} {ApellidoPaterno} {ApellidoMaterno}"
|
|
||||||
Dim CvePersonal As Integer = GlobalDTRHPersonal(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CvePersonal", $"NombreCompletoNombre = '{NombreCompleto}'").ToString.ToEntero()
|
Dim CvePersonal As Integer = GlobalDTRHPersonal(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CvePersonal", $"NombreCompletoNombre = '{NombreCompleto}'").ToString.ToEntero()
|
||||||
|
|
||||||
|
|
||||||
@@ -2280,6 +2292,8 @@ Partial Class General_SaldosIniciales
|
|||||||
ClabeInterbancaria, "", CveJornada, CveJornada, "", -1, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveUsuarioNomina) Then
|
ClabeInterbancaria, "", CveJornada, CveJornada, "", -1, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveUsuarioNomina) Then
|
||||||
ErrorRH = True
|
ErrorRH = True
|
||||||
Exit For
|
Exit For
|
||||||
|
Else
|
||||||
|
ContadorAgregados = ContadorAgregados + 1
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2289,7 +2303,7 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
If Not ErrorRH Then
|
If Not ErrorRH Then
|
||||||
If Contador > 0 Then
|
If Contador > 0 Then
|
||||||
Alert(String.Format("Se agregaron: <b>{0}</b> Empleados correctamente. <br>Se Omitieron: <b>{1}</b> Empleados ya que ya se encontraban registrados.", NumRows - Contador, Contador), TipoMensaje.MsgInformacion)
|
Alert(String.Format("Se agregaron: <b>{0}</b> Empleados correctamente. <br>Se Omitieron: <b>{1}</b> Empleados ya que ya se encontraban registrados.", ContadorAgregados, Contador), TipoMensaje.MsgInformacion)
|
||||||
ObjRH.Commit()
|
ObjRH.Commit()
|
||||||
TxtExcel.Text = ""
|
TxtExcel.Text = ""
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
|
|||||||
31
Inicio.aspx
31
Inicio.aspx
@@ -805,6 +805,37 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="NominasSinTimbrar" class="modal ADS fade " role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content modal-lg">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">Nomina autorizada sin timbrar</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div style="text-align: right">
|
||||||
|
<input type="text" id="TxtNomPendientesxTimbrar" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtNomPendientesxTimbrar','{0}')", GVNomPendientesxTimbrar.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtNomPendientesxTimbrar','{0}')", GVNomPendientesxTimbrar.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<asp:GridView ID="GVNomPendientesxTimbrar" runat="server" AutoGenerateColumns="true" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
|
<Columns>
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div id="ModalVtasPendientesxTimbrarSAT" class="modal ADS fade " role="dialog">
|
<div id="ModalVtasPendientesxTimbrarSAT" class="modal ADS fade " role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,13 @@ Partial Class Inicio
|
|||||||
End If
|
End If
|
||||||
If UsuarioActual.CveUsuario = 100 Then
|
If UsuarioActual.CveUsuario = 100 Then
|
||||||
|
|
||||||
|
Using objnom As New ClsNominas
|
||||||
|
If objnom.GetNominasSinTimbrar() AndAlso objnom.DtResultados.Rows.Count > 0 Then
|
||||||
|
GVNomPendientesxTimbrar.DataSource = objnom.DtResultados
|
||||||
|
GVNomPendientesxTimbrar.DataBind()
|
||||||
|
RegistraScript("$('#NominasSinTimbrar').modal();", "tikNominasSinTimbrar")
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
Using objventas As New ClsVentas
|
Using objventas As New ClsVentas
|
||||||
If objventas.GETVentasPendientesdeTimbrar(UsuarioActual.CveEmpresa) AndAlso objventas.DtResultados.Rows.Count > 0 Then
|
If objventas.GETVentasPendientesdeTimbrar(UsuarioActual.CveEmpresa) AndAlso objventas.DtResultados.Rows.Count > 0 Then
|
||||||
GVVtasPendientesxTimbrarSAT.DataSource = objventas.DtResultados
|
GVVtasPendientesxTimbrarSAT.DataSource = objventas.DtResultados
|
||||||
|
|||||||
@@ -34,10 +34,9 @@
|
|||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCamion,Placa,Especificacion,ConfigCartaPorte,Anio,CveTipoPermisoSCT,NumPermisoSCT,NombreAseguradora,NumPolizaSeguro"
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCamion,Placa,Especificacion,ConfigCartaPorte,Anio,CveTipoPermisoSCT,NumPermisoSCT,NombreAseguradora,NumPolizaSeguro,NombreAseguradoraMedioAmbiente,NumPolizaSeguroMedioAmbiente,NombreAseguradoraCarga,NumPolizaSeguroCarga"
|
||||||
EmptyDataText="No se Encontraron Unidades" ToolTip="Listado de Unidades" CssClass="table table-striped table-advance table-hover mysmallbtn" Style="margin-top: -10px; width: 100%" GridLines="None">
|
EmptyDataText="No se Encontraron Unidades" ToolTip="Listado de Unidades" CssClass="table table-striped table-advance table-hover mysmallbtn" Style="margin-top: -10px; width: 100%" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
<asp:BoundField HeaderText="Placa" DataField="Placa" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Placa" DataField="Placa" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField HeaderText="Especificación" DataField="Especificacion" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Especificación" DataField="Especificacion" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField HeaderText="Config Carta Porte" DataField="ConfigCartaPorte" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Config Carta Porte" DataField="ConfigCartaPorte" ItemStyle-HorizontalAlign="Left" />
|
||||||
@@ -144,21 +143,66 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group form-md-line-input input-iconright col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:TextBox ID="TxtNombreAseguradora" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<label for="<%= TxtNombreAseguradora.ClientID.ToString()%>">Nombre Aseguradora:</label>
|
<asp:TextBox ID="TxtNombreAseguradora" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator runat="server" ID="RfvTxtNombreAseguradora" ControlToValidate="TxtNombreAseguradora" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre Aseguradora''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
<label for="<%= TxtNombreAseguradora.ClientID.ToString()%>">Aseguradora Responsabilidad Civil:</label>
|
||||||
<i></i>
|
<asp:RequiredFieldValidator runat="server" ID="RfvTxtNombreAseguradora" ControlToValidate="TxtNombreAseguradora" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Aseguradora Responsabilidad Civil''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:TextBox ID="TxtNumPolizaSeguro" CssClass="form-control" runat="server" MaxLength="25"></asp:TextBox>
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<label for="<%= TxtNumPolizaSeguro.ClientID.ToString()%>">Numero Póliza Seguro:</label>
|
<asp:TextBox ID="TxtNumPolizaSeguro" CssClass="form-control" runat="server" MaxLength="25"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator runat="server" ID="RfvTxtNumPolizaSeguro" ControlToValidate="TxtNumPolizaSeguro" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Numero Póliza Seguro''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
<label for="<%= TxtNumPolizaSeguro.ClientID.ToString()%>">Número Póliza Seguro:</label>
|
||||||
<i></i>
|
<asp:RequiredFieldValidator runat="server" ID="RfvTxtNumPolizaSeguro" ControlToValidate="TxtNumPolizaSeguro" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Póliza Responsabilidad Civil''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" >
|
||||||
|
<asp:TextBox ID="TxtNombreAseguradoraMedioAmbiente" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
|
<label for="<%= TxtNombreAseguradoraMedioAmbiente.ClientID.ToString()%>">Aseguradora Medio Ambiente:</label>
|
||||||
|
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="TxtNombreAseguradoraMedioAmbiente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Aseguradora Medio Ambiente''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtNumPolizaSeguroMedioAmbiente" CssClass="form-control" runat="server" MaxLength="25"></asp:TextBox>
|
||||||
|
<label for="<%= TxtNumPolizaSeguroMedioAmbiente.ClientID.ToString()%>">Número Póliza Medio Ambiente:</label>
|
||||||
|
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="TxtNumPolizaSeguroMedioAmbiente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Numero Póliza Medio Ambiente''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtNombreAseguradoraCarga" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
|
<label for="<%= TxtNombreAseguradoraCarga.ClientID.ToString()%>">Aseguradora Carga:</label>
|
||||||
|
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="TxtNombreAseguradoraCarga" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Aseguradora Carga''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" >
|
||||||
|
<asp:TextBox ID="TxtNumPolizaSeguroCarga" CssClass="form-control" runat="server" MaxLength="25"></asp:TextBox>
|
||||||
|
<label for="<%= TxtNumPolizaSeguroCarga.ClientID.ToString()%>">Número Póliza Seguro:</label>
|
||||||
|
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="TxtNumPolizaSeguroCarga" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Póliza Seguro Carga''</b> es necesario, por favor ingréselo." ValidationGroup="GrpUnidad"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|||||||
@@ -77,6 +77,10 @@ Partial Class Inventarios_CatUnidades
|
|||||||
TxtNumermisoSCT.Text = ""
|
TxtNumermisoSCT.Text = ""
|
||||||
TxtNombreAseguradora.Text = ""
|
TxtNombreAseguradora.Text = ""
|
||||||
TxtNumPolizaSeguro.Text = ""
|
TxtNumPolizaSeguro.Text = ""
|
||||||
|
TxtNombreAseguradoraMedioAmbiente.Text = ""
|
||||||
|
TxtNumPolizaSeguroMedioAmbiente.Text = ""
|
||||||
|
TxtNombreAseguradoraCarga.Text = ""
|
||||||
|
TxtNumPolizaSeguroCarga.Text = ""
|
||||||
|
|
||||||
LtlTituloModal.Text = "Agregar Unidad"
|
LtlTituloModal.Text = "Agregar Unidad"
|
||||||
|
|
||||||
@@ -103,6 +107,11 @@ Partial Class Inventarios_CatUnidades
|
|||||||
TxtNombreAseguradora.Text = GvRow.DataKey("NombreAseguradora")
|
TxtNombreAseguradora.Text = GvRow.DataKey("NombreAseguradora")
|
||||||
TxtNumPolizaSeguro.Text = GvRow.DataKey("NumPolizaSeguro")
|
TxtNumPolizaSeguro.Text = GvRow.DataKey("NumPolizaSeguro")
|
||||||
|
|
||||||
|
TxtNombreAseguradoraMedioAmbiente.Text = GvRow.DataKey("NombreAseguradoraMedioAmbiente")
|
||||||
|
TxtNumPolizaSeguroMedioAmbiente.Text = GvRow.DataKey("NumPolizaSeguroMedioAmbiente")
|
||||||
|
TxtNombreAseguradoraCarga.Text = GvRow.DataKey("NombreAseguradoraCarga")
|
||||||
|
TxtNumPolizaSeguroCarga.Text = GvRow.DataKey("NumPolizaSeguroCarga")
|
||||||
|
|
||||||
LtlTituloModal.Text = "Actualizar Unidad"
|
LtlTituloModal.Text = "Actualizar Unidad"
|
||||||
|
|
||||||
UpModalUnidades.Update()
|
UpModalUnidades.Update()
|
||||||
@@ -144,13 +153,15 @@ Partial Class Inventarios_CatUnidades
|
|||||||
Dim ObjInventarios As New ClsInventarios
|
Dim ObjInventarios As New ClsInventarios
|
||||||
|
|
||||||
If CveCamion <= 0 Then
|
If CveCamion <= 0 Then
|
||||||
If ObjInventarios.AddCamiones(TxtPlacaNuevo.Text, TxtEspecificacionNuevo.Text, UsuarioActual.CveEmpresa, DdlConfigAuto.SelectedValue, TxtAnio.Text.ToEntero(), DdlTipoPermisoSCT.SelectedValue.ToEntero, TxtNumermisoSCT.Text, TxtNombreAseguradora.Text, TxtNumPolizaSeguro.Text, UsuarioActual.CveUsuario) Then
|
If ObjInventarios.AddCamiones(TxtPlacaNuevo.Text, TxtEspecificacionNuevo.Text, UsuarioActual.CveEmpresa, DdlConfigAuto.SelectedValue, TxtAnio.Text.ToEntero(), DdlTipoPermisoSCT.SelectedValue.ToEntero, TxtNumermisoSCT.Text, TxtNombreAseguradora.Text, TxtNumPolizaSeguro.Text, UsuarioActual.CveUsuario,
|
||||||
|
TxtNombreAseguradoraMedioAmbiente.Text, TxtNumPolizaSeguroMedioAmbiente.Text, TxtNombreAseguradoraCarga.Text, TxtNumPolizaSeguroCarga.Text) Then
|
||||||
Alert("Unidad agregada correctamente")
|
Alert("Unidad agregada correctamente")
|
||||||
Else
|
Else
|
||||||
ErrorPrceso = True
|
ErrorPrceso = True
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If ObjInventarios.UpdateCamiones(CveCamion, TxtPlacaNuevo.Text, TxtEspecificacionNuevo.Text, DdlConfigAuto.SelectedValue, TxtAnio.Text.ToEntero(), DdlTipoPermisoSCT.SelectedValue.ToEntero, TxtNumermisoSCT.Text, TxtNombreAseguradora.Text, TxtNumPolizaSeguro.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjInventarios.UpdateCamiones(CveCamion, TxtPlacaNuevo.Text, TxtEspecificacionNuevo.Text, DdlConfigAuto.SelectedValue, TxtAnio.Text.ToEntero(), DdlTipoPermisoSCT.SelectedValue.ToEntero, TxtNumermisoSCT.Text, TxtNombreAseguradora.Text, TxtNumPolizaSeguro.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||||
|
TxtNombreAseguradoraMedioAmbiente.Text, TxtNumPolizaSeguroMedioAmbiente.Text, TxtNombreAseguradoraCarga.Text, TxtNumPolizaSeguroCarga.Text) Then
|
||||||
Alert("Unidad actualizada correctamente")
|
Alert("Unidad actualizada correctamente")
|
||||||
Else
|
Else
|
||||||
ErrorPrceso = True
|
ErrorPrceso = True
|
||||||
|
|||||||
@@ -20,6 +20,15 @@
|
|||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li style="text-align: left!important">
|
||||||
|
<asp:LinkButton runat="server" ID="LnkAgregarRecoleccion" OnClick="LnkAgregarRecoleccion_Click" CssClass="" data-toggle="tooltip" data-placement="left" title="Agregar Recoleción" Text="<i class='fa fa-plus'></i>Agregar Recolección"></asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -80,7 +89,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpDatosEntrga">
|
<asp:UpdatePanel runat="server" ID="UpDatosEntrega" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
@@ -146,148 +155,374 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%" OnActiveTabChanged="Tab_ActiveTabChanged" AutoPostBack="true">
|
||||||
<ContentTemplate>
|
|
||||||
<asp:Panel runat="server" ID="portletTarea" class="portlet light smmallpadding bordered">
|
<ajax:TabPanel ID="TabEntrega" runat="server" HeaderText="Entrega">
|
||||||
<div class="portlet-title">
|
<ContentTemplate>
|
||||||
<div class="caption font-green">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<i class="icon-pin font-green"></i>
|
<ContentTemplate>
|
||||||
<span class="caption-subject bold uppercase">ASIGNACIÓN DE ENTREGAS</span>
|
<asp:Panel runat="server" ID="portletTarea" class="portlet light smmallpadding bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="icon-pin font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">ASIGNACIÓN DE ENTREGAS</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row" runat="server" id="DVGvPaqueteriasGuias">
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
|
||||||
|
<asp:GridView ID="GvPaqueteriasGuias" runat="server" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="SerieFolio,FechaIng,Nombre,CveVenta,OrdenCompra,NombreComercial,TipoDocto,CorreoNotificacion,CveVendedor,Orden,CveMovimiento,CveDireccionEnvio,CveSubProyectoOrigen"
|
||||||
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de entregas"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||||
|
data-sort="true"
|
||||||
|
data-freezerows="1"
|
||||||
|
GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" HeaderStyle-Width="3%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkAsigna" runat="server" Checked="false" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Cons" DataField="Num" HeaderStyle-Width="25px" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:HyperLink ID="LblFolio" runat="server" NavigateUrl='<%# Eval("CveVenta","/Ventas/Ventas.aspx?CveVenta={0}") %>' Text='<%# Eval("SerieFolio") %>'></asp:HyperLink>
|
||||||
|
</ItemTemplate>
|
||||||
|
|
||||||
|
</asp:TemplateField>
|
||||||
|
<%--<asp:BoundField HeaderText="Estatus" DataField="Estatus" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />--%>
|
||||||
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Cliente" HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Contacto" HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblContacto" runat="server" Text='<%# Eval("Contacto") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Dirección" DataField="Direccion" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
</Columns>
|
||||||
|
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row" runat="server" id="DVGvGenerarDocumentos" visible="false">
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
|
||||||
|
<asp:GridView ID="GvGenerarDocumentos" runat="server" AutoGenerateColumns="False" Width="100%"
|
||||||
|
DataKeyNames="SerieFolio,FechaIng,Nombre,CveVenta,OrdenCompra,NombreComercial,TipoDocto,CorreoNotificacion,CveVendedor,Orden,CveMovimiento,CveDireccionEnvio,CveSubProyectoOrigen"
|
||||||
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de entregas"
|
||||||
|
CssClass="GvGenerarDocumentos"
|
||||||
|
data-sort="true"
|
||||||
|
data-freezerows="1"
|
||||||
|
GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" HeaderStyle-Width="3%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkAsigna" runat="server" Checked="false" Visible="false" />
|
||||||
|
|
||||||
|
<a class="blue"><i class="fa fa-arrows-v green" aria-hidden="true"></i></a>
|
||||||
|
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<%--<asp:BoundField HeaderText="Cons" DataField="Num" HeaderStyle-Width="25px" ItemStyle-HorizontalAlign="Center" />--%>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Cons" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LblNum" runat="server" Text='<%# Eval("Num") %>' CssClass="RowOrdenamiento"></asp:Label>
|
||||||
|
<input type="hidden" name="OrdenMovimientos" value='<%# Eval("CveMovimiento") %>' />
|
||||||
|
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblFolio" runat="server" Text='<%# Eval("SerieFolio") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
|
||||||
|
</asp:TemplateField>
|
||||||
|
<%--<asp:BoundField HeaderText="Estatus" DataField="Estatus" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />--%>
|
||||||
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Cliente" HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Contacto" HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblContacto" runat="server" Text='<%# Eval("Contacto") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Dirección" DataField="Direccion" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
|
||||||
|
|
||||||
|
</Columns>
|
||||||
|
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
|
||||||
|
<ajax:TabPanel ID="TabRecoleccion" runat="server" HeaderText="Recolección">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpDatosRecoleccion" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
|
||||||
|
<asp:GridView ID="GvDatosRecoleccion" runat="server" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="CveEntregaAlmacen,FechaIng,Nombre,NombreComercial,TipoDocto,Orden,CveDireccionOrigen,CveSubProyectoOrigen"
|
||||||
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de recolecciones"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||||
|
data-sort="true"
|
||||||
|
data-freezerows="1"
|
||||||
|
GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<%--<asp:BoundField HeaderText="SerieFolio" DataField="Serie Folio" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />--%>
|
||||||
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Cliente" HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Contacto" HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LblContacto" runat="server" Text='<%# Eval("Contacto") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Dirección" DataField="Direccion" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Opciones">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkGvDatosRecoleccionEditar" runat="server" OnClick="LnkGvDatosRecoleccionEditar_Click" AlternateText="Editar" ToolTip="Actualizar" CausesValidation="False" CssClass="btn btn-circle btn-xs blue" Text="<i class='fa fa-pencil'></i>" />
|
||||||
|
<asp:LinkButton ID="LnkGvDatosRecoleccionEliminar" runat="server" CssClass="btn btn-circle btn-xs red" OnClick="LnkGvDatosRecoleccionEliminar_Click" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar la recolección?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle Width="160px" HorizontalAlign="Center"></ItemStyle>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
</Columns>
|
||||||
|
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
|
||||||
|
</ajax:TabContainer>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="DivModalRecoleccion" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<asp:UpdatePanel ID="UpModalRecoleccion" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title" id="H3" runat="server"> <asp:Literal runat="server" ID="LtlModalRecoleccionTitulo">Agregar Recolección</asp:Literal> </h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="tools">
|
<div class="modal-body">
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<div class="row">
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="portlet-body rowpadding">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row" runat="server" id="DVGvPaqueteriasGuias" >
|
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
|
|
||||||
<asp:GridView ID="GvPaqueteriasGuias" runat="server" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="SerieFolio,FechaIng,Nombre,CveVenta,OrdenCompra,NombreComercial,TipoDocto,CorreoNotificacion,CveVendedor,Orden,CveMovimiento,CveDireccionEnvio,CveSubProyectoOrigen"
|
|
||||||
EmptyDataText="No se encontraron registros" ToolTip="Listado de entregas"
|
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
|
||||||
data-sort="true"
|
|
||||||
data-freezerows="1"
|
|
||||||
GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" HeaderStyle-Width="3%">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:CheckBox ID="ChkAsigna" runat="server" Checked="false" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:BoundField HeaderText="Cons" DataField="Num" HeaderStyle-Width="25px" ItemStyle-HorizontalAlign="Center" />
|
|
||||||
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="LblFolio" runat="server" NavigateUrl='<%# Eval("CveVenta","/Ventas/Ventas.aspx?CveVenta={0}") %>' Text='<%# Eval("SerieFolio") %>'></asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
|
|
||||||
</asp:TemplateField>
|
|
||||||
<%--<asp:BoundField HeaderText="Estatus" DataField="Estatus" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />--%>
|
|
||||||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Cliente" HeaderStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Contacto" HeaderStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblContacto" runat="server" Text='<%# Eval("Contacto") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:BoundField HeaderText="Dirección" DataField="Direccion" ItemStyle-HorizontalAlign="Left" />
|
|
||||||
</Columns>
|
|
||||||
|
|
||||||
</asp:GridView>
|
|
||||||
|
|
||||||
|
<div class=" col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlModalRecoleccionCliente" Width="100%" runat="server" DataTextField="Nombre" DataValueField="CveCliente" AutoPostBack="true" OnSelectedIndexChanged="DdlModalRecoleccionCliente_SelectedIndexChanged"
|
||||||
|
Class="form-control select2me">
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlModalRecoleccionCliente.ClientID.ToString()%>">Cliente:</label>
|
||||||
|
<i></i>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvDdlModalRecoleccionCliente" runat="server" ControlToValidate="DdlModalRecoleccionCliente" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cliente1''</b> es necesario." InitialValue="-1" ValidationGroup="GrpModalRecoleccionGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VceRfvDdlModalRecoleccionCliente" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlModalRecoleccionCliente" Width="250px" PopupPosition="BottomLeft"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=" col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlmodalRecoleccionDirecion" Width="100%" runat="server" DataTextField="EnvioDireccion" DataValueField="CveDireccionEnvio"
|
||||||
|
Class="form-control select2me">
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlmodalRecoleccionDirecion.ClientID.ToString()%>">Dirección:</label>
|
||||||
|
<i></i>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvDdlmodalRecoleccionDirecion" runat="server" ControlToValidate="DdlmodalRecoleccionDirecion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cliente1''</b> es necesario." InitialValue="-1" ValidationGroup="GrpModalRecoleccionGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VceRfvDdlmodalRecoleccionDirecion" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlmodalRecoleccionDirecion" Width="250px" PopupPosition="BottomLeft"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<hr />
|
||||||
|
<div class="row">
|
||||||
|
<div class=" col-md-2">
|
||||||
|
|
||||||
</div>
|
<div class="form-group form-md-line-input input-iconright" style="max-width:85px">
|
||||||
|
<asp:TextBox ID="TxtModalRecoleccionCantidad" Width="50px" MaxLength="7" runat="server" TabIndex="1" CssClass="form-control"></asp:TextBox>
|
||||||
|
<label for="<%= TxtModalRecoleccionCantidad.ClientID.ToString()%>">Cantidad:</label>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="FETxtModalRecoleccionCantidad" runat="server" TargetControlID="TxtModalRecoleccionCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||||||
|
<asp:RequiredFieldValidator runat="server" ID="RfvTxtModalRecoleccionCantidad" ControlToValidate="TxtModalRecoleccionCantidad" ValidationGroup="GrpModalRecoleccionGuardaPS" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario por favor introdúzcalo." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="CevRfvTxtModalRecoleccionCantidad" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtModalRecoleccionCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<asp:RangeValidator ID="RVTxtModalRecoleccionCantidad" runat="server" ControlToValidate="TxtModalRecoleccionCantidad" Display="None" Type="Double" MinimumValue="0.001" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor introdúzcalo." ValidationGroup="GrpModalRecoleccionGuardaPS"></asp:RangeValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCECantidad" runat="server" HighlightCssClass="vco" TargetControlID="RVTxtModalRecoleccionCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class=" col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" >
|
||||||
|
<asp:DropDownList ID="DdlModalRecoleccionUnidad" runat="server" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="form-control input-sm select2me" Style="width: 85px !important;"></asp:DropDownList>
|
||||||
|
<label for="<%= TxtModalRecoleccionCantidad.ClientID.ToString()%>">Unidad de Medida:</label>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvDdlModalRecoleccionUnidad" runat="server" ControlToValidate="DdlModalRecoleccionUnidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpModalRecoleccionGuardaPS"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VceRfvDdlModalRecoleccionUnidad" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlModalRecoleccionUnidad" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=" col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<div class="row" runat="server" id="DVGvGenerarDocumentos" visible="false">
|
<div class="psagregar">
|
||||||
<div class="col-md-12">
|
<div class="comboxes">
|
||||||
|
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Clasificaión/Producto:</label>
|
||||||
|
<asp:DropDownList ID="DdlClasificacion" runat="server" Width="100%" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control input-sm select2me">
|
||||||
<asp:GridView ID="GvGenerarDocumentos" runat="server" AutoGenerateColumns="False" Width="100%"
|
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||||||
DataKeyNames="SerieFolio,FechaIng,Nombre,CveVenta,OrdenCompra,NombreComercial,TipoDocto,CorreoNotificacion,CveVendedor,Orden,CveMovimiento,CveDireccionEnvio,CveSubProyectoOrigen"
|
</asp:DropDownList>
|
||||||
EmptyDataText="No se encontraron registros" ToolTip="Listado de entregas"
|
|
||||||
CssClass="GvGenerarDocumentos"
|
|
||||||
data-sort="true"
|
|
||||||
data-freezerows="1"
|
|
||||||
GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" HeaderStyle-Width="3%">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:CheckBox ID="ChkAsigna" runat="server" Checked="false" Visible="false" />
|
|
||||||
|
|
||||||
<a class="blue"><i class="fa fa-arrows-v green" aria-hidden="true"></i></a>
|
<br />
|
||||||
|
<ADS:Dropdownlost runat="server" ID="DdlProducto2" CssStyle="width: 100%;" IncluyeTodos="false" CssClassDdl="select2me" TabIndex="2" DataTextField="PSCodigo" DataValueField="CvePS" Onselectedindexchange="DdlProducto_ValueChanged" />
|
||||||
</ItemTemplate>
|
</div>
|
||||||
</asp:TemplateField>
|
</div>
|
||||||
<%--<asp:BoundField HeaderText="Cons" DataField="Num" HeaderStyle-Width="25px" ItemStyle-HorizontalAlign="Center" />--%>
|
</div>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Cons" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="LblNum" runat="server" Text='<%# Eval("Num") %>' CssClass="RowOrdenamiento" ></asp:Label>
|
|
||||||
<input type="hidden" name="OrdenMovimientos" value='<%# Eval("CveMovimiento") %>' />
|
|
||||||
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblFolio" runat="server" Text='<%# Eval("SerieFolio") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
|
|
||||||
</asp:TemplateField>
|
|
||||||
<%--<asp:BoundField HeaderText="Estatus" DataField="Estatus" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />--%>
|
|
||||||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderStyle-Width="10%">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Cliente" HeaderStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Contacto" HeaderStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LblContacto" runat="server" Text='<%# Eval("Contacto") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:BoundField HeaderText="Dirección" DataField="Direccion" ItemStyle-HorizontalAlign="Left" />
|
|
||||||
|
|
||||||
|
|
||||||
</Columns>
|
|
||||||
|
|
||||||
</asp:GridView>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2" style="text-align:right!important">
|
||||||
|
<asp:LinkButton ID="LnkModalAgregarPS" runat="server" CssClass="Texto" ValidationGroup="GrpModalRecoleccionGuardaPS" Text="Agregar" OnClick="LnkModalAgregarPS_Click" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<asp:GridView ID="GvModalPSRecoleccion" DataKeyNames="CveEntregaAlmacenDetalle,CodigoPS,CvePS,CveUnidadMedida,Cantidad" runat="server"
|
||||||
|
ShowHeader="true" AutoGenerateColumns="False" EmptyDataText="" ToolTip="Listado de Movimientos" CssClass="Widthall table table-striped table-hover" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
|
||||||
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" ItemStyle-Width="86px" HeaderStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Unidad" DataField="Abreviatura" ItemStyle-Width="86px" />
|
||||||
|
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-Width="500px" />
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkModalGvModalPSRecoleccionEliminar" runat="server" CssClass="btn btn-circle btn-xs red" OnClick="LnkModalGvModalPSRecoleccionEliminar_Click" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar el producto?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle Width="160px" HorizontalAlign="Center"></ItemStyle>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Button ID="BtnModalRecoleccionGuardar" runat="server" OnClick="BtnModalRecoleccionGuardar_Click" CssClass="btn btn-primary" Text="Agregar Recolección" ValidationGroup="GrpModalRecoleccionGuardar" />
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</asp:Panel>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,27 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DataTable DTRecoleccion
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (ViewState["DTRecoleccion"] == null)
|
||||||
|
{
|
||||||
|
ViewState["DTRecoleccion"] = InitDTRecoleccion();
|
||||||
|
}
|
||||||
|
return (DataTable)ViewState["DTRecoleccion"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["DTRecoleccion"] = (DataTable)value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool SelecionEntrega
|
bool SelecionEntrega
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -64,25 +85,50 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int CveEntregaAlmacen
|
||||||
|
{
|
||||||
|
get {
|
||||||
|
|
||||||
|
if (ViewState["CveEntregaAlmacen"] == null)
|
||||||
|
{
|
||||||
|
ViewState["CveEntregaAlmacen"] = -1;
|
||||||
|
}
|
||||||
|
return (int)ViewState["CveEntregaAlmacen"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["CveEntregaAlmacen"] = (int)value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SelecionEntrega = true;
|
SelecionEntrega = true;
|
||||||
|
|
||||||
CargaCombos();
|
CargaCombos();
|
||||||
CargaDatos();
|
CargaDatos();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region RECOLEECION
|
||||||
|
CargaDatosRecoleccion();
|
||||||
|
CargaModalClasificaiones();
|
||||||
|
CargaModalDdlPS();
|
||||||
|
|
||||||
|
ModalRecoleccionCargaClientes();
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void BtnAsignar_Click(object sender, EventArgs e)
|
protected void BtnAsignar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(DdlChofer.SelectedValue.ToEntero() <= 0)
|
if(DdlChofer.SelectedValue.ToEntero() <= 0)
|
||||||
@@ -132,7 +178,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
TieneError = true;
|
TieneError = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int CveEntregaAlmacen = ObjGeneral.AddInvEntregaAlmacenRuta(row.DataKey("CveSubProyectoOrigen").ToEntero(), row.DataKey("CveMovimiento").ToEntero(), CveDireccionOrigen, CveDireccionDestino, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), "E",Orden);
|
int CveEntregaAlmacen = ObjGeneral.AddInvEntregaAlmacenRuta(row.DataKey("CveSubProyectoOrigen").ToEntero(), row.DataKey("CveMovimiento").ToEntero(), CveDireccionOrigen, CveDireccionDestino, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), "E",Orden,0);
|
||||||
CveDireccionOrigen = row.DataKey("CveDireccionEnvio").ToEntero();
|
CveDireccionOrigen = row.DataKey("CveDireccionEnvio").ToEntero();
|
||||||
|
|
||||||
if (CveEntregaAlmacen > 0)
|
if (CveEntregaAlmacen > 0)
|
||||||
@@ -254,7 +300,34 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void CargaModalClasificaiones()
|
||||||
|
{
|
||||||
|
|
||||||
|
DdlClasificacion.DataSource = get_GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltraParametros(" Codigo = '' OR Codigo IS NULL ", Orderby: "Clasificacion");
|
||||||
|
DdlClasificacion.DataBind();
|
||||||
|
|
||||||
|
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CargaModalDdlPS()
|
||||||
|
{
|
||||||
|
bool EsWS = UsuarioActual.Empresa.Funcionalidad(105) == "1" | UsuarioActual.Empresa.Funcionalidad(141) == "1" ? true : false;
|
||||||
|
DdlProducto2.setEsWebService(EsWS);
|
||||||
|
if (DdlProducto2.UsaWebService)
|
||||||
|
{
|
||||||
|
DdlProducto2.ddlWS.Attributes.Add("data-cveclasificacion", DdlClasificacion.SelectedValue);
|
||||||
|
}
|
||||||
|
else if (!DdlProducto2.UsaWebService && (DataTable)DdlProducto2.DataSource == null)
|
||||||
|
{
|
||||||
|
DdlProducto2.DataSource = get_GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CveClasificacion: DdlClasificacion.SelectedValue.ToEntero()).FiltraParametros("CveTipoPS = 2");
|
||||||
|
DdlProducto2.DataBind();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void LnkGenerarDocumentos_Click(object sender, EventArgs e)
|
protected void LnkGenerarDocumentos_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -307,22 +380,13 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
LnkGenerarDocumentos.Text = "Regresar a Preselección";
|
LnkGenerarDocumentos.Text = "Regresar a Preselección";
|
||||||
LnkGenerarDocumentos.CssClass = "btn btn-default";
|
LnkGenerarDocumentos.CssClass = "btn btn-default";
|
||||||
|
|
||||||
DVDatosEntrega1.Visible = true;
|
|
||||||
DVDatosEntrega2.Visible = true;
|
|
||||||
DVDatosEntrega3.Visible = true;
|
|
||||||
DVDatosEntrega4.Visible = true;
|
|
||||||
DVDatosEntrega5.Visible = true;
|
|
||||||
DVDatosEntrega6.Visible = true;
|
|
||||||
|
|
||||||
DVDatosEntrega7.Attributes.Add("class", "col-md-1");
|
|
||||||
|
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(161).ToEntero() == 1)
|
|
||||||
{
|
|
||||||
DvCartaPorte1.Visible = true;
|
|
||||||
DvCartaPorte2.Visible = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
OcultarmostarDatosEntrega(true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BtnConsultar.Visible = false;
|
BtnConsultar.Visible = false;
|
||||||
|
|
||||||
UpDatos.Update();
|
UpDatos.Update();
|
||||||
@@ -352,21 +416,10 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
BtnConsultar.Visible = true;
|
BtnConsultar.Visible = true;
|
||||||
SelecionEntrega = true;
|
SelecionEntrega = true;
|
||||||
LnkGenerarDocumentos.Text = "Preselección de Entregas";
|
LnkGenerarDocumentos.Text = "Preselección de Entregas";
|
||||||
LnkGenerarDocumentos.CssClass = "btn btn-primary";
|
LnkGenerarDocumentos.CssClass = "btn btn-primary";
|
||||||
DVDatosEntrega7.Attributes.Add("class", "col-md-9");
|
|
||||||
|
|
||||||
DVDatosEntrega1.Visible = false;
|
OcultarmostarDatosEntrega(false);
|
||||||
DVDatosEntrega2.Visible = false;
|
|
||||||
DVDatosEntrega3.Visible = false;
|
|
||||||
DVDatosEntrega4.Visible = false;
|
|
||||||
DVDatosEntrega5.Visible = false;
|
|
||||||
DVDatosEntrega6.Visible = false;
|
|
||||||
|
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(161).ToEntero() == 1)
|
|
||||||
{
|
|
||||||
DvCartaPorte1.Visible = false;
|
|
||||||
DvCartaPorte2.Visible = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
BtnAsignar.Visible = false;
|
BtnAsignar.Visible = false;
|
||||||
DVGvGenerarDocumentos.Visible = false;
|
DVGvGenerarDocumentos.Visible = false;
|
||||||
@@ -379,7 +432,33 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void OcultarmostarDatosEntrega(bool mostrar )
|
||||||
|
{
|
||||||
|
DVDatosEntrega1.Visible = mostrar;
|
||||||
|
DVDatosEntrega2.Visible = mostrar;
|
||||||
|
DVDatosEntrega3.Visible = mostrar;
|
||||||
|
DVDatosEntrega4.Visible = mostrar;
|
||||||
|
DVDatosEntrega5.Visible = mostrar;
|
||||||
|
DVDatosEntrega6.Visible = mostrar;
|
||||||
|
|
||||||
|
if (mostrar)
|
||||||
|
{
|
||||||
|
DVDatosEntrega7.Attributes.Add("class", "col-md-1");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DVDatosEntrega7.Attributes.Add("class", "col-md-9");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (UsuarioActual.Empresa.Funcionalidad(161).ToEntero() == 1)
|
||||||
|
{
|
||||||
|
DvCartaPorte1.Visible = mostrar;
|
||||||
|
DvCartaPorte2.Visible = mostrar;
|
||||||
|
}
|
||||||
|
UpDatosEntrega.Update();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void ActualizaOrdenDTGenrarDocumentos()
|
private void ActualizaOrdenDTGenrarDocumentos()
|
||||||
{
|
{
|
||||||
@@ -415,6 +494,409 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
CargaDatos();
|
if(Tab.ActiveTabIndex == 0)
|
||||||
|
{
|
||||||
|
CargaDatos();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CargaDatosRecoleccion();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#region RECOLECCION
|
||||||
|
|
||||||
|
|
||||||
|
private DataTable InitDTRecoleccion()
|
||||||
|
{
|
||||||
|
DataTable DT = new DataTable();
|
||||||
|
|
||||||
|
DT.Columns.Add("CveEntregaAlmacenDetalle", System.Type.GetType("System.Int32"));
|
||||||
|
DT.Columns.Add("CveEntregaAlmacen", System.Type.GetType("System.Int32"));
|
||||||
|
DT.Columns.Add("CvePS", System.Type.GetType("System.Int32"));
|
||||||
|
DT.Columns.Add("Cantidad", System.Type.GetType("System.Double"));
|
||||||
|
DT.Columns.Add("CveUnidadMedida", System.Type.GetType("System.Int32"));
|
||||||
|
DT.Columns.Add("CveUsuario",System.Type.GetType("System.Int32"));
|
||||||
|
DT.Columns.Add("FechaIng",System.Type.GetType("System.DateTime"));
|
||||||
|
DT.Columns.Add("CodigoPS", System.Type.GetType("System.String"));
|
||||||
|
DT.Columns.Add("Abreviatura", System.Type.GetType("System.String"));
|
||||||
|
|
||||||
|
return DT;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CargaDatosRecoleccion()
|
||||||
|
{
|
||||||
|
ClsGenerales ObjGeneral = new ClsGenerales();
|
||||||
|
if (ObjGeneral.GetInvEntregaAlmacenRuta(DdlSubProyecto.SelectedValue.ToEntero(), TxtFechaI.Text.ToDate(), TxtFechaF.Text.ToDate(), UsuarioActual.CveEmpresa, 2, 0))
|
||||||
|
{
|
||||||
|
GvDatosRecoleccion.DataSource = ObjGeneral.DtResultados;
|
||||||
|
}
|
||||||
|
ObjGeneral.Dispose();
|
||||||
|
GvDatosRecoleccion.DataBind();
|
||||||
|
UpDatosRecoleccion.Update();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void CargaDatosRecoleccionDetallePS()
|
||||||
|
{
|
||||||
|
if (CveEntregaAlmacen > 0)
|
||||||
|
{
|
||||||
|
ClsGenerales ObjGenerales = new ClsGenerales();
|
||||||
|
|
||||||
|
if (ObjGenerales.GetEntregaAlmacenRutaDetalle(CveEntregaAlmacen))
|
||||||
|
{
|
||||||
|
GvModalPSRecoleccion.DataSource = ObjGenerales.DtResultados;
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
GvModalPSRecoleccion.DataSource = null;
|
||||||
|
}
|
||||||
|
ObjGenerales.Dispose();
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
GvModalPSRecoleccion.DataSource = DTRecoleccion;
|
||||||
|
}
|
||||||
|
GvModalPSRecoleccion.DataBind();
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ModalRecoleccionCargaClientes()
|
||||||
|
{
|
||||||
|
ClsClientes ObjCliente = new ClsClientes();
|
||||||
|
if (ObjCliente.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa, 1))
|
||||||
|
{
|
||||||
|
DdlModalRecoleccionCliente.DataSource = ObjCliente.DtResultados;
|
||||||
|
}
|
||||||
|
|
||||||
|
ObjCliente.Dispose();
|
||||||
|
DdlModalRecoleccionCliente.DataBind();
|
||||||
|
DdlModalRecoleccionCliente.Items.Insert(0, new ListItem("Seleccione uno", "-1"));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void DdlModalRecoleccionCliente_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ModalRecoleccionCargaDirecciones();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ModalRecoleccionCargaDirecciones()
|
||||||
|
{
|
||||||
|
if(DdlModalRecoleccionCliente.SelectedValue.ToEntero() > 0)
|
||||||
|
{
|
||||||
|
ClsClientes ObjClientes = new ClsClientes();
|
||||||
|
if (ObjClientes.DireccionEnvioGet(-1, DdlModalRecoleccionCliente.SelectedValue.ToEntero(), -1))
|
||||||
|
{
|
||||||
|
DdlmodalRecoleccionDirecion.DataSource = ObjClientes.DtResultados;
|
||||||
|
}
|
||||||
|
ObjClientes.Dispose();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DdlmodalRecoleccionDirecion.DataSource = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
DdlmodalRecoleccionDirecion.DataBind();
|
||||||
|
DdlmodalRecoleccionDirecion.Items.Insert(0, new ListItem("Seleccione una", "-1"));
|
||||||
|
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected void LnkAgregarRecoleccion_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (DdlChofer.SelectedValue.ToEntero() <= 0)
|
||||||
|
{
|
||||||
|
Alert("Debe seleccionar un chofer.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DdlUnidadCamion.SelectedValue.ToEntero() <= 0)
|
||||||
|
{
|
||||||
|
Alert("Debe seleccionar una unidad", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
LtlModalRecoleccionTitulo.Text = "Agregar Recoleccion";
|
||||||
|
BtnModalRecoleccionGuardar.Text = "Agregar";
|
||||||
|
|
||||||
|
LimpiarModalRecoleccion();
|
||||||
|
RegistraScript("$('#DivModalRecoleccion').modal('show');");
|
||||||
|
CveEntregaAlmacen = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LnkGvDatosRecoleccionEditar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LinkButton LnkEliminar = (LinkButton)sender;
|
||||||
|
GridViewRow GvRow = (GridViewRow)LnkEliminar.NamingContainer;
|
||||||
|
|
||||||
|
CveEntregaAlmacen = GvRow.DataKey("CveEntregaAlmacen").ToEntero();
|
||||||
|
int CveDireccionOrigen = GvRow.DataKey("CveDireccionOrigen").ToEntero();
|
||||||
|
int CveClienteEnvio = -1;
|
||||||
|
ClsClientes ObjClientes = new ClsClientes();
|
||||||
|
DataTable DtTempDirecciones = new DataTable();
|
||||||
|
|
||||||
|
if (ObjClientes.DireccionEnvioGet(CveDireccionOrigen, -1, -1))
|
||||||
|
{
|
||||||
|
CveClienteEnvio = ObjClientes.DtResultados.FiltroPrimeroValor("CveCliente").ToEntero();
|
||||||
|
|
||||||
|
if (ObjClientes.DireccionEnvioGet(-1, CveClienteEnvio, -1))
|
||||||
|
{
|
||||||
|
DdlmodalRecoleccionDirecion.DataSource = ObjClientes.DtResultados;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ObjClientes.Dispose();
|
||||||
|
|
||||||
|
DdlmodalRecoleccionDirecion.DataBind();
|
||||||
|
DdlmodalRecoleccionDirecion.Items.Add(new ListItem("Seleccione una", "-1"));
|
||||||
|
DdlmodalRecoleccionDirecion.SelectedValueExist(CveDireccionOrigen);
|
||||||
|
|
||||||
|
DdlModalRecoleccionCliente.SelectedValueExist(CveClienteEnvio);
|
||||||
|
|
||||||
|
|
||||||
|
CargaDatosRecoleccionDetallePS();
|
||||||
|
|
||||||
|
|
||||||
|
LtlModalRecoleccionTitulo.Text = "Actualizar Recolección";
|
||||||
|
BtnModalRecoleccionGuardar.Text = "Actualizar";
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
|
||||||
|
RegistraScript("$('#DivModalRecoleccion').modal('show');");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LimpiarModalRecoleccion()
|
||||||
|
{
|
||||||
|
|
||||||
|
DdlModalRecoleccionCliente.SelectedValueExist(-1);
|
||||||
|
DdlmodalRecoleccionDirecion.SelectedValueExist(-1);
|
||||||
|
TxtModalRecoleccionCantidad.Text = "";
|
||||||
|
DdlModalRecoleccionUnidad.Items.Clear();
|
||||||
|
DdlModalRecoleccionUnidad.Items.Add(new ListItem("Seleccione una","-1"));
|
||||||
|
DdlProducto2.txtValue.Value = "";
|
||||||
|
DdlProducto2.txtText.Value = "";
|
||||||
|
|
||||||
|
DTRecoleccion.Rows.Clear();
|
||||||
|
GvModalPSRecoleccion.DataSource = DTRecoleccion;
|
||||||
|
GvModalPSRecoleccion.DataBind();
|
||||||
|
|
||||||
|
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void DdlProducto_ValueChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ElProductoChange();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ElProductoChange()
|
||||||
|
{
|
||||||
|
DdlModalRecoleccionUnidad.Items.Clear();
|
||||||
|
DdlModalRecoleccionUnidad.DataSource = get_GlobalDTProductosServiciosEquivalencias(DdlProducto2.SelectedValue.ToEntero(), -1, UsuarioActual.CveEmpresa);
|
||||||
|
DdlModalRecoleccionUnidad.DataBind();
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void BtnModalRecoleccionGuardar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (DdlChofer.SelectedValue.ToEntero() <= 0)
|
||||||
|
{
|
||||||
|
Alert("Debe seleccionar un chofer.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DdlUnidadCamion.SelectedValue.ToEntero() <= 0)
|
||||||
|
{
|
||||||
|
Alert("Debe seleccionar una unidad", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int CveTimbrenuevo = -1;
|
||||||
|
bool ProcesoOK = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int CveSubProyectoCliente = get_GlobalDTCliente(UsuarioActual.CveEmpresa, -1, DdlModalRecoleccionCliente.SelectedValue.ToEntero()).FiltroPrimeroValor("CveSubProyecto").ToEntero();
|
||||||
|
ClsGenerales ObjGenerales = new ClsGenerales();
|
||||||
|
ObjGenerales.IniciaTransacSQL();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if( CveEntregaAlmacen == -1)
|
||||||
|
{
|
||||||
|
CveEntregaAlmacen = ObjGenerales.AddInvEntregaAlmacenRuta(CveSubProyectoCliente, -1, DdlmodalRecoleccionDirecion.SelectedValue.ToEntero(), -1, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), "R", 1,0);
|
||||||
|
if (CveEntregaAlmacen > 0)
|
||||||
|
{
|
||||||
|
CveTimbrenuevo = ObjGenerales.AddGralTimbre("Tra", "-1", -1, "-1", new DateTime(1900, 01, 01), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 0, -1, ChkEmitirCartaPorte.Checked, CveEntregaAlmacen, CveSubProyectoCliente);
|
||||||
|
|
||||||
|
if (CveTimbrenuevo > 0)
|
||||||
|
{
|
||||||
|
foreach (DataRow dRow in DTRecoleccion.Rows)
|
||||||
|
{
|
||||||
|
if(ObjGenerales.AddEntregaAlmacenRutaDetalle(CveEntregaAlmacen,dRow["CvePS"].ToString().ToEntero(), dRow["Cantidad"].ToString().ToDecimal(),dRow["CveUnidadMedida"].ToString().ToEntero(), UsuarioActual.CveUsuario))
|
||||||
|
{
|
||||||
|
ProcesoOK = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
ProcesoOK = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
if(ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen,DdlmodalRecoleccionDirecion.SelectedValue.ToEntero(),-1, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(),TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
ProcesoOK = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ProcesoOK = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (ProcesoOK)
|
||||||
|
{
|
||||||
|
ObjGenerales.Commit();
|
||||||
|
Alert("Recolección Guardada correctamente.");
|
||||||
|
RegistraScript("$('#DivModalRecoleccion').modal('hide');");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ObjGenerales.RollBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
ObjGenerales.Dispose();
|
||||||
|
CargaDatosRecoleccion();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LnkGvDatosRecoleccionEliminar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LinkButton LnkEliminar = (LinkButton)sender;
|
||||||
|
GridViewRow GvRow = (GridViewRow)LnkEliminar.NamingContainer;
|
||||||
|
|
||||||
|
int CveEntregaAlmacenEliminar = GvRow.DataKey("CveEntregaAlmacen").ToEntero();
|
||||||
|
ClsGenerales ObjGenerales = new ClsGenerales();
|
||||||
|
if (ObjGenerales.RemoveInvEntregaAlmacenRuta(CveEntregaAlmacenEliminar, UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
Alert("Producto Eliminado correctamente.");
|
||||||
|
}
|
||||||
|
|
||||||
|
ObjGenerales.Dispose();
|
||||||
|
CargaDatosRecoleccion();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void LnkModalGvModalPSRecoleccionEliminar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LinkButton LnkEliminar = (LinkButton)sender;
|
||||||
|
GridViewRow GvRow = (GridViewRow)LnkEliminar.NamingContainer;
|
||||||
|
|
||||||
|
if (CveEntregaAlmacen > 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
int CveEntregaAlmacenDetalleEliminar = GvRow.DataKey("CveEntregaAlmacenDetalle").ToEntero();
|
||||||
|
ClsGenerales ObjGenerales = new ClsGenerales();
|
||||||
|
|
||||||
|
if (ObjGenerales.RemoveEntregaAlmacenRutaDetalle(CveEntregaAlmacenDetalleEliminar))
|
||||||
|
{
|
||||||
|
Alert("Recolección Eliminada correctamente.");
|
||||||
|
}
|
||||||
|
ObjGenerales.Dispose();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int DTIndex = GvRow.RowIndex;
|
||||||
|
DTRecoleccion.Rows[DTIndex].Delete();
|
||||||
|
DTRecoleccion.AcceptChanges();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CargaDatosRecoleccionDetallePS();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LnkModalAgregarPS_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(CveEntregaAlmacen > 0)
|
||||||
|
{
|
||||||
|
ClsGenerales ObjGenerales = new ClsGenerales();
|
||||||
|
|
||||||
|
if(ObjGenerales.AddEntregaAlmacenRutaDetalle(CveEntregaAlmacen,DdlProducto2.SelectedValue.ToEntero(), TxtModalRecoleccionCantidad.Text.ToEntero(), DdlModalRecoleccionUnidad.SelectedValue.ToEntero(), UsuarioActual.CveUsuario))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
ObjGenerales.Dispose();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DataRow dRow = DTRecoleccion.NewRow() ;
|
||||||
|
|
||||||
|
dRow["CveEntregaAlmacenDetalle"] = -1;
|
||||||
|
dRow["CveEntregaAlmacen"] = CveEntregaAlmacen;
|
||||||
|
dRow["CvePS"] = DdlProducto2.SelectedValue.ToEntero();
|
||||||
|
dRow["Cantidad"] =TxtModalRecoleccionCantidad.Text.ToEntero();
|
||||||
|
dRow["CveUnidadMedida"] = DdlModalRecoleccionUnidad.SelectedValue.ToEntero();
|
||||||
|
dRow["CveUsuario"] =UsuarioActual.CveUsuario;
|
||||||
|
dRow["FechaIng"] = DateTime.Now;
|
||||||
|
dRow["CodigoPS"] = DdlProducto2.txtText.Value;
|
||||||
|
dRow["Abreviatura"] =DdlModalRecoleccionUnidad.SelectedItem.Text;
|
||||||
|
|
||||||
|
DTRecoleccion.Rows.Add(dRow);
|
||||||
|
//GvModalPSRecoleccion.DataSource = DTRecoleccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
LimpiarControlesPS();
|
||||||
|
CargaDatosRecoleccionDetallePS();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void LimpiarControlesPS()
|
||||||
|
{
|
||||||
|
TxtModalRecoleccionCantidad.Text = "";
|
||||||
|
DdlModalRecoleccionUnidad.Items.Clear();
|
||||||
|
DdlProducto2.txtText.Value = "";
|
||||||
|
DdlProducto2.txtValue.Value = "";
|
||||||
|
UpModalRecoleccion.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protected void Tab_ActiveTabChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(Tab.ActiveTabIndex == 0)
|
||||||
|
{
|
||||||
|
SelecionEntrega = false;
|
||||||
|
SeleccioanrGenrar();
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
OcultarmostarDatosEntrega(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -465,7 +465,7 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
Dim GvTemp As GridView = GvF
|
Dim GvTemp As GridView = GvF
|
||||||
|
|
||||||
For Each GvRow As GridViewRow In GvTemp.Rows
|
For Each GvRow As GridViewRow In GvTemp.Rows
|
||||||
GvRow.BackColor = Drawing.ColorTranslator.FromHtml("#white")
|
GvRow.BackColor = Drawing.ColorTranslator.FromHtml("white")
|
||||||
Next
|
Next
|
||||||
|
|
||||||
'GvF.ExportToExcel("Reporte de Inventario Fisico - Productos que Faltan " & Now.ToShortDateString)
|
'GvF.ExportToExcel("Reporte de Inventario Fisico - Productos que Faltan " & Now.ToShortDateString)
|
||||||
|
|||||||
@@ -70,6 +70,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
Finiquito
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -126,8 +127,7 @@
|
|||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<span class="bold">Área geográfica
|
<span class="bold">Área geográfica
|
||||||
<br />
|
<br />
|
||||||
<asp:Literal ID="LtlAreaGeografica" runat="server">--</asp:Literal>
|
<asp:Literal ID="LtlAreaGeografica" runat="server">--</asp:Literal>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row ">
|
<div class="row ">
|
||||||
@@ -147,19 +147,19 @@
|
|||||||
<asp:Label ID="LblSalario" runat="server" Text="--"></asp:Label>
|
<asp:Label ID="LblSalario" runat="server" Text="--"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" Width="100%"
|
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" Width="100%"
|
||||||
CssClass="form-control select2me" ValidationGroup="GrpGuardar">
|
CssClass="form-control select2me" ValidationGroup="GrpGuardar">
|
||||||
<asp:ListItem Text="Ordinario" Value="-1" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="Ordinario" Value="-1" Selected="True"></asp:ListItem>
|
||||||
<asp:ListItem Text="Extraordinario" Value="-2"></asp:ListItem>
|
<asp:ListItem Text="Extraordinario" Value="-2"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:Label runat="server" Text="Tipo perdiodo" AssociatedControlID="DdlTipoPeriodo"></asp:Label>
|
<asp:Label runat="server" Text="Tipo periodo" AssociatedControlID="DdlTipoPeriodo"></asp:Label>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row ">
|
<div class="row ">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -255,12 +255,12 @@
|
|||||||
Indemnización
|
Indemnización
|
||||||
<br />
|
<br />
|
||||||
<asp:CheckBox ID="chkIndemnizacion" CssClass="chksino" Text=" " runat="server" />
|
<asp:CheckBox ID="chkIndemnizacion" CssClass="chksino" Text=" " runat="server" />
|
||||||
<div style="display:inline-block;width:30px;">
|
<div style="display: inline-block; width: 30px;">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="Txtdiasindemnizacion" Text="90" runat="server" CssClass="form-control"></asp:TextBox>
|
<asp:TextBox ID="Txtdiasindemnizacion" Text="90" runat="server" CssClass="form-control"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<asp:Label runat="server" Text="días" AssociatedControlID="Txtdiasindemnizacion"></asp:Label>
|
<asp:Label runat="server" Text="días" AssociatedControlID="Txtdiasindemnizacion"></asp:Label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 text-center">
|
<div class="col-md-4 text-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user