cambios en los materiales de ordenes de servicio
This commit is contained in:
@@ -1300,8 +1300,8 @@ Partial Class OS_OrdenesServicios
|
|||||||
Row.FCLinkButton("imgEstatus").CssClass = "btn btn-circle btn-sm green"
|
Row.FCLinkButton("imgEstatus").CssClass = "btn btn-circle btn-sm green"
|
||||||
Else
|
Else
|
||||||
Row.FCLinkButton("imgEstatus").Enabled = False
|
Row.FCLinkButton("imgEstatus").Enabled = False
|
||||||
'TmpDT.Rows(Row.RowIndex)("Estatus") = "False"
|
TmpDT.Rows(Row.RowIndex)("Estatus") = "False"
|
||||||
'Row.FCLinkButton("imgEstatus").CssClass = "btn btn-circle btn-sm red"
|
Row.FCLinkButton("imgEstatus").CssClass = "btn btn-circle btn-sm red"
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub BtnAddGvDetalle_Click(sender As Object, e As EventArgs) Handles BtnAddGvDetalle.Click
|
Private Sub BtnAddGvDetalle_Click(sender As Object, e As EventArgs) Handles BtnAddGvDetalle.Click
|
||||||
@@ -2265,9 +2265,16 @@ Partial Class OS_OrdenesServicios
|
|||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'SI OCURRIO UN ERROR EN LA EXISTENCIA RECARGAMOS EL GRID PARA COLOREAR LOS DETALLES CON ERROR
|
||||||
|
If ErrorExistencia Then
|
||||||
|
Alert("Ocurrió un error en la existencia", TipoMensaje.MsgError)
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
|
||||||
If Not TieneError Then
|
If Not TieneError Then
|
||||||
Dim ObjOS As New ClsOS
|
Dim ObjOS As New ClsOS
|
||||||
For Each Row As DataRow In TmpDTMaterialesDetalle.Rows
|
Dim MaterialesDetalleNuevos As DataTable = TmpDTMaterialesDetalle.FiltraParametros("CveMaterial = -1")
|
||||||
|
For Each Row As DataRow In MaterialesDetalleNuevos.Rows
|
||||||
Dim CveUM As Integer = Row("CveUM").ToString.ToEntero
|
Dim CveUM As Integer = Row("CveUM").ToString.ToEntero
|
||||||
Dim CvePS As Integer = Row("CvePS").ToString.ToEntero
|
Dim CvePS As Integer = Row("CvePS").ToString.ToEntero
|
||||||
Dim Cantidad As Integer = Row("Cantidad").ToString.ToEntero
|
Dim Cantidad As Integer = Row("Cantidad").ToString.ToEntero
|
||||||
@@ -2287,13 +2294,6 @@ Partial Class OS_OrdenesServicios
|
|||||||
ObjOS.Dispose()
|
ObjOS.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
'SI OCURRIO UN ERROR EN LA EXISTENCIA RECARGAMOS EL GRID PARA COLOREAR LOS DETALLES CON ERROR
|
|
||||||
If ErrorExistencia Then
|
|
||||||
Alert("Ocurrió un error en la existencia", TipoMensaje.MsgError)
|
|
||||||
TieneError = True
|
|
||||||
End If
|
|
||||||
|
|
||||||
If Not TieneError Then
|
If Not TieneError Then
|
||||||
ObjInventario.Commit()
|
ObjInventario.Commit()
|
||||||
Alert($"El Traspaso se guardó correctamente con el folio #: <b>{Folio}</b>.", TipoMensaje.MsgInformacion, $"document.location.href=""/Inventarios/TrasladoSolicitud.aspx?CveTraspasoSolicitud={CveTraspasoSolicitud}""")
|
Alert($"El Traspaso se guardó correctamente con el folio #: <b>{Folio}</b>.", TipoMensaje.MsgInformacion, $"document.location.href=""/Inventarios/TrasladoSolicitud.aspx?CveTraspasoSolicitud={CveTraspasoSolicitud}""")
|
||||||
|
|||||||
Reference in New Issue
Block a user