Compilacion correciones
This commit is contained in:
@@ -279,7 +279,7 @@ Partial Class Inventarios_AjustesSeccionAlmacen
|
||||
End Sub
|
||||
|
||||
Private Sub DescargarExcel()
|
||||
Dim DtExcel As DataTable = (From row As GridViewRow In GvD.Rows
|
||||
Dim DtExcel As DataTable = (From row As GridViewRow In GvD.Rows.Cast(Of GridViewRow)()
|
||||
Where row.RowType = DataControlRowType.DataRow
|
||||
Select New With
|
||||
{
|
||||
|
||||
@@ -244,8 +244,8 @@ Partial Class Inventarios_CatAlmacenes
|
||||
'CargaSucursal()
|
||||
Dim ObjAlmacen As New ClsInventarios
|
||||
Dim TieneError = False
|
||||
Dim Estatus = 0
|
||||
If ChkEstatus.Checked Then Estatus = 1
|
||||
Dim Estatus As Boolean = False
|
||||
If ChkEstatus.Checked Then Estatus = True
|
||||
Dim CuentaContable As Integer = 0
|
||||
Dim CveCuenta As Integer = 0
|
||||
|
||||
@@ -271,7 +271,7 @@ Partial Class Inventarios_CatAlmacenes
|
||||
Else
|
||||
TieneError = True
|
||||
End If
|
||||
ElseIf ObjAlmacen.UpdateAlmacen(TxtAlmacen.Text.Trim, DdlTipoAlmacen.SelectedValue.ToEntero, DdlModalidad.SelectedValue.ToEntero, (CByte(Estatus)), HdnID.Value.ToEntero, CByte(DdlInventariable.SelectedValue), DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, TxtOrden.Text.ToEntero, CveCuenta, CveUsuarioAutoriza:=DdlUsuariosAutoriza.SelectedValue.ToEntero, CveAlmacenVirtual:=DdlAlmacenesVirtuales.SelectedValue.ToEntero) Then
|
||||
ElseIf ObjAlmacen.UpdateAlmacen(TxtAlmacen.Text.Trim, DdlTipoAlmacen.SelectedValue.ToEntero, DdlModalidad.SelectedValue.ToEntero, Estatus, HdnID.Value.ToEntero, CByte(DdlInventariable.SelectedValue), DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, TxtOrden.Text.ToEntero, CveCuenta, CveUsuarioAutoriza:=DdlUsuariosAutoriza.SelectedValue.ToEntero, CveAlmacenVirtual:=DdlAlmacenesVirtuales.SelectedValue.ToEntero) Then
|
||||
Alert("El Almacen se actualizo correctamente.", TipoMensaje.MsgInformacion)
|
||||
UpDatos.Update()
|
||||
ViewState("DTAlmacenes") = ObjAlmacen.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
@@ -290,7 +290,7 @@ Partial Class Inventarios_CatAlmacenes
|
||||
Public Sub Agregar()
|
||||
HdnModalidad.Value = "A"
|
||||
UpDatos.Update()
|
||||
If DdlModalidad.SelectedValue = 1 Then
|
||||
If DdlModalidad.SelectedValue.ToEntero = 1 Then
|
||||
DdlCuentasContables.Visible = True
|
||||
End If
|
||||
BtnAgregarAlmacen.Text = "Agregar"
|
||||
@@ -328,9 +328,9 @@ Partial Class Inventarios_CatAlmacenes
|
||||
UpDatos.Update()
|
||||
BtnAgregarAlmacen.Text = "Actualizar"
|
||||
myModalLabel.InnerText = "Actualizar Almacén"
|
||||
DdlInventariable.SelectedValue = If((GvRow.DataKey("Inventariable")) = "True", 1, 0)
|
||||
DdlModalidad.SelectedValue = If((GvRow.DataKey("Modalidad")) = "Solo Existencia", 0, 1)
|
||||
divddlcc.Visible = If((DdlModalidad.SelectedValue) = 1, True, False)
|
||||
DdlInventariable.SelectedValueExist(If((GvRow.DataKey("Inventariable")) = "True", 1, 0))
|
||||
DdlModalidad.SelectedValueExist(If((GvRow.DataKey("Modalidad")) = "Solo Existencia", 0, 1))
|
||||
divddlcc.Visible = If((DdlModalidad.SelectedValue.ToEntero) = 1, True, False)
|
||||
DdlCuentasContables.SelectedValueExist(GvRow.DataKey("IdCtaContable"))
|
||||
DdlCuentasSig.SelectedValueExist(-1)
|
||||
DdlCuentasSig.SelectedValueExist(GvRow.DataKey("CveCuenta"))
|
||||
@@ -354,7 +354,7 @@ Partial Class Inventarios_CatAlmacenes
|
||||
End Sub
|
||||
|
||||
Private Sub DdlModalidad_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlModalidad.SelectedIndexChanged
|
||||
If DdlModalidad.SelectedValue = 1 Then
|
||||
If DdlModalidad.SelectedValue.ToEntero = 1 Then
|
||||
divddlcc.Visible = True
|
||||
CargaCuentasContables()
|
||||
Else
|
||||
@@ -366,7 +366,7 @@ Partial Class Inventarios_CatAlmacenes
|
||||
Private Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
|
||||
Dim ObjAlmacen As New ClsInventarios
|
||||
If ObjAlmacen.GetAlmacenes(DdlTipoAlmacenFiltro.SelectedValue, DdlModalidadFiltro.SelectedValue, UsuarioActual.CveEmpresa, DdlSubProyectoFiltro.SelectedValue.ToEntero) Then
|
||||
If ObjAlmacen.GetAlmacenes(DdlTipoAlmacenFiltro.SelectedValue.ToEntero, DdlModalidadFiltro.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, DdlSubProyectoFiltro.SelectedValue.ToEntero) Then
|
||||
GvDatos.DataSource = ObjAlmacen.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
GvDatos.DataBind()
|
||||
Else
|
||||
|
||||
@@ -29,7 +29,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
CreaDTCons()
|
||||
InicializarListas()
|
||||
|
||||
TxtFecha.Text = Now
|
||||
TxtFecha.Text = Now.ToString("dd/MM/yyyy")
|
||||
End If
|
||||
End Sub
|
||||
Private Sub CreaDTCons()
|
||||
@@ -108,7 +108,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
|
||||
|
||||
CveMovimientoC = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 6, 1, TxtFecha.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
CveMovimientoC = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 6, 1, TxtFecha.Text.ToDate, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
|
||||
If CveMovimientoC <= 0 Then
|
||||
Alert("No se pudo almacenar el movimiento correctamente", TipoMensaje.MsgError)
|
||||
@@ -120,7 +120,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
If Not gr.FCTextBox("tbCantR").Text.ToString = "" Then
|
||||
|
||||
If Not Mov.AddMovimientoDetalle(CveMovimientoC, gr.FCTextBox("tbCantR").Text.ToString.ToDouble, DTmp.Rows(gr.RowIndex)("CveUnidadMedida").ToString.ToEntero, DTmp.Rows(gr.RowIndex)("CvePS").ToString.ToEntero,
|
||||
DTmp.Rows(gr.RowIndex)("PU").ToString.ToDouble, DTmp.Rows(gr.RowIndex)("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
DTmp.Rows(gr.RowIndex)("PU").ToString.ToEntero, DTmp.Rows(gr.RowIndex)("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
Mensaje = "Error al guardar los movimientos"
|
||||
Exit For
|
||||
End If
|
||||
@@ -128,7 +128,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
Next
|
||||
|
||||
|
||||
CveMovimiento = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 3, 1, TxtFecha.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
CveMovimiento = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 3, 1, TxtFecha.Text.ToDate, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
|
||||
If CveMovimiento <= 0 Then
|
||||
Alert("No se pudo almacenar el movimiento correctamente", TipoMensaje.MsgError)
|
||||
@@ -138,7 +138,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
For Each gr As GridViewRow In GvConsignacion.Rows
|
||||
If Not gr.FCTextBox("tbCantR").Text.ToString = "" Then
|
||||
If Not Mov.AddMovimientoDetalle(CveMovimiento, gr.FCTextBox("tbCantR").Text.ToString.ToDouble, DTmp.Rows(gr.RowIndex)("CveUnidadMedida").ToString.ToEntero, DTmp.Rows(gr.RowIndex)("CvePS").ToString.ToEntero,
|
||||
DTmp.Rows(gr.RowIndex)("PU").ToString.ToDouble, DTmp.Rows(gr.RowIndex)("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
DTmp.Rows(gr.RowIndex)("PU").ToString.ToEntero, DTmp.Rows(gr.RowIndex)("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
Mensaje = "Error al guardar los movimientos"
|
||||
Exit For
|
||||
End If
|
||||
@@ -181,7 +181,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
If CveConcepto = 7 Then
|
||||
|
||||
If tbCant.Text >= Total Then
|
||||
If tbCant.Text.ToDouble >= Total Then
|
||||
|
||||
Alert("No hay existencia suficiente en el Inventario.", TipoMensaje.MsgInformacion)
|
||||
ObjInventario.Dispose()
|
||||
@@ -204,7 +204,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
|
||||
End If
|
||||
AddDTmp(tbCant.Text.ToDouble, ddlUnidad.SelectedValue.ToEntero, ddlUnidad.SelectedItem.ToString, ddlProducto.SelectedValue, ddlProducto.SelectedItem.ToString, DdlAlmacen.SelectedItem.ToString, DdlAlmacen.SelectedValue.ToEntero, DdlSeccion.SelectedValue.ToEntero)
|
||||
AddDTmp(tbCant.Text.ToEntero, ddlUnidad.SelectedValue.ToEntero, ddlUnidad.SelectedItem.ToString, ddlProducto.SelectedValue.ToEntero, ddlProducto.SelectedItem.ToString, DdlAlmacen.SelectedItem.ToString, DdlAlmacen.SelectedValue.ToEntero, DdlSeccion.SelectedValue.ToEntero)
|
||||
tbCant.Text = ""
|
||||
GvConsignacion.DataSource = DTmp
|
||||
GvConsignacion.DataBind()
|
||||
@@ -240,7 +240,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
Protected Sub DdlPersonal_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlPersonal.SelectedIndexChanged
|
||||
Dim ObjInventario As New ClsInventarios
|
||||
If ObjInventario.GetConsignaciones(UsuarioActual.CveEmpresa, DdlPersonal.SelectedValue) Then
|
||||
If ObjInventario.GetConsignaciones(UsuarioActual.CveEmpresa, DdlPersonal.SelectedValue.ToEntero) Then
|
||||
GvConsignacion.DataSource = ObjInventario.DtResultados
|
||||
DTmp = ObjInventario.DtResultados
|
||||
|
||||
@@ -264,7 +264,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
CvePersonal = DdlPersonal.SelectedValue.ToEntero
|
||||
For Each dr As DataRow In DTmp.FiltraParametros("", DistinctColumns:={"CveAlmacen"}).Rows
|
||||
CveMovimiento = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 6, 1, TxtFecha.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
CveMovimiento = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 6, 1, TxtFecha.Text.ToDate, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
|
||||
If CveMovimiento <= 0 Then
|
||||
Alert("No se pudo almacenar el movimiento correctamente", TipoMensaje.MsgError)
|
||||
@@ -274,7 +274,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
For Each gr As GridViewRow In GvConsignacion.Rows
|
||||
If Not gr.FCTextBox("tbCantR").Text.ToString = "" Then
|
||||
If Not Mov.AddMovimientoDetalle(CveMovimiento, gr.FCTextBox("tbCantR").Text.ToString.ToDouble, DTmp.Rows(gr.RowIndex)("CveUnidadMedida").ToString.ToEntero, DTmp.Rows(gr.RowIndex)("CvePS").ToString.ToEntero,
|
||||
DTmp.Rows(gr.RowIndex)("PU").ToString.ToDouble, DTmp.Rows(gr.RowIndex)("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
DTmp.Rows(gr.RowIndex)("PU").ToString.ToEntero, DTmp.Rows(gr.RowIndex)("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
Mensaje = "Error al guardar los movimientos"
|
||||
Exit For
|
||||
End If
|
||||
@@ -314,7 +314,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
Protected Sub cbEC_CheckedChanged(sender As Object, e As EventArgs) Handles cbEC.CheckedChanged
|
||||
If Not DdlPersonal.SelectedValue.ToEntero = -1 Then
|
||||
Dim ObjInventario As New ClsInventarios
|
||||
If ObjInventario.GetConsignaciones(UsuarioActual.CveEmpresa, DdlPersonal.SelectedValue) Then
|
||||
If ObjInventario.GetConsignaciones(UsuarioActual.CveEmpresa, DdlPersonal.SelectedValue.ToEntero) Then
|
||||
GvConsignacion.DataSource = ObjInventario.DtResultados
|
||||
DTmp = ObjInventario.DtResultados
|
||||
|
||||
@@ -368,7 +368,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
|
||||
|
||||
CveMovimiento = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 7, 1, TxtFecha.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
CveMovimiento = Mov.AddMovimiento(dr("CveAlmacen").ToString.ToEntero, 7, 1, TxtFecha.Text.ToDate, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, -1, CvePersonal)
|
||||
|
||||
If CveMovimiento <= 0 Then
|
||||
Alert("No se pudo almacenar el movimiento correctamente", TipoMensaje.MsgError)
|
||||
@@ -379,7 +379,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
|
||||
For Each row As DataRow In DTmp.FiltraParametros("Nuevo=1").Rows
|
||||
|
||||
If Not Mov.AddMovimientoDetalle(CveMovimiento, row("Cantidad").ToString.ToDouble, row("CveUnidadMedida").ToString.ToEntero, row("CvePS").ToString.ToEntero, row("PU").ToString.ToDouble,
|
||||
If Not Mov.AddMovimientoDetalle(CveMovimiento, row("Cantidad").ToString.ToDouble, row("CveUnidadMedida").ToString.ToEntero, row("CvePS").ToString.ToEntero, row("PU").ToString.ToDecimal,
|
||||
row("CveSeccionAlmacen").ToString.ToEntero) Then
|
||||
Mensaje = "Error al guardar los movimientos"
|
||||
Exit For
|
||||
@@ -420,7 +420,7 @@ Partial Class Inventarios_ConsignacionesMaterial
|
||||
Protected Sub GvConsignacion_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvConsignacion.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
If e.Row.DBCampo("Nuevo") = 0 Then
|
||||
If e.Row.DBCampo("Nuevo").ToEntero = 0 Then
|
||||
e.Row.FCImageButton("imgD").Visible = False
|
||||
e.Row.FCTextBox("tbCantR").Attributes.Add("onchange", String.Format("ValidarCantidad(this,{0})", e.Row.DBCampo("Cantidad")))
|
||||
End If
|
||||
|
||||
@@ -72,12 +72,12 @@ Partial Class Inventarios_Equivalencia
|
||||
End If
|
||||
|
||||
|
||||
If psEquivalencias.AddPSEquivalencias(ddlProducto.SelectedValue.ToEntero, CveUnidadMedida, Cantidad, UnidadBase, Precio, 1) Then
|
||||
If psEquivalencias.AddPSEquivalencias(ddlProducto.SelectedValue.ToEntero, CveUnidadMedida, Cantidad.ToDecimal, UnidadBase, Precio, 1) Then
|
||||
|
||||
gvEquivalencias.DataSource = psEquivalencias.DtResultados
|
||||
|
||||
ViewState("dtEquivalencias") = psEquivalencias.DtResultados
|
||||
|
||||
|
||||
|
||||
|
||||
txtCantidad.Text = ""
|
||||
@@ -137,7 +137,7 @@ Partial Class Inventarios_Equivalencia
|
||||
|
||||
If dt.Rows(i).Item("Base").ToString = "True" Then
|
||||
Dim psEquivalencias As New ClsProductosServicios
|
||||
If Not psEquivalencias.UpdatePSEquivalencias(ddlProducto.SelectedValue.ToEntero, dt.Rows(i).Item("CveUnidadMedida").ToString.ToEntero, dt.Rows(i).Item("Cantidad").ToString.ToDouble, False, dt.Rows(i).Item("Precio").ToString.ToDouble, 1) Then
|
||||
If Not psEquivalencias.UpdatePSEquivalencias(ddlProducto.SelectedValue.ToEntero, dt.Rows(i).Item("CveUnidadMedida").ToString.ToEntero, dt.Rows(i).Item("Cantidad").ToString.ToDecimal, False, dt.Rows(i).Item("Precio").ToString.ToDouble, 1) Then
|
||||
Alert("Error al actualizar registro.", TipoMensaje.MsgError)
|
||||
Return dt
|
||||
End If
|
||||
@@ -266,7 +266,7 @@ Partial Class Inventarios_Equivalencia
|
||||
Dim base As Boolean = DirectCast(gvEquivalencias.Rows(e.RowIndex).FindControl("cbEBase"), CheckBox).Checked
|
||||
Dim CveUnidadMedida As Integer = DirectCast(gvEquivalencias.Rows(e.RowIndex).FindControl("ddlEUnidad"), DropDownList).SelectedValue.ToEntero
|
||||
|
||||
If psEquivalencias.UpdatePSEquivalencias(ddlProducto.SelectedValue.ToEntero, CveUnidadMedida, cantidad, base, precio, UsuarioActual.CveUsuario) Then
|
||||
If psEquivalencias.UpdatePSEquivalencias(ddlProducto.SelectedValue.ToEntero, CveUnidadMedida, cantidad.ToDecimal, base, precio, UsuarioActual.CveUsuario) Then
|
||||
dt = psEquivalencias.DtResultados
|
||||
|
||||
If base Then
|
||||
@@ -277,7 +277,7 @@ Partial Class Inventarios_Equivalencia
|
||||
|
||||
|
||||
ViewState("dtEquivalencias") = dt
|
||||
|
||||
|
||||
gvEquivalencias.EditIndex = -1
|
||||
gvEquivalencias.DataSource = dt
|
||||
gvEquivalencias.DataBind()
|
||||
|
||||
@@ -313,7 +313,7 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
||||
GvIFD.DataSource = Nothing
|
||||
End If
|
||||
' DtDatos = Inventario.DtResultados
|
||||
LtlTotalRegistros.Text = Inventario.DtResultados.Rows.Count
|
||||
LtlTotalRegistros.Text = Inventario.DtResultados.Rows.Count.ToString
|
||||
End If
|
||||
Inventario.Dispose()
|
||||
GvIFD.DataBind()
|
||||
@@ -354,10 +354,10 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
||||
CveProducto = dr("CvePS").ToString.ToEntero
|
||||
CveUnidadMedida = dr("CveUnidadMedida").ToString.ToEntero
|
||||
'Dim AplicaSeccion As Boolean = dr("AplicaSeccion") = "1"
|
||||
Dim AplicaCaducidad As Boolean = dr("AplicaCaducidad") = "1"
|
||||
Dim AplicaLote As Boolean = dr("AplicaLote") = "1"
|
||||
Dim AplicaSerie As Boolean = dr("AplicaSerie") = "1"
|
||||
Dim AplicaSeccion As Boolean = dr("AplicaSeccion") = "1"
|
||||
Dim AplicaCaducidad As Boolean = dr("AplicaCaducidad").ToString = "1"
|
||||
Dim AplicaLote As Boolean = dr("AplicaLote").ToString = "1"
|
||||
Dim AplicaSerie As Boolean = dr("AplicaSerie").ToString = "1"
|
||||
Dim AplicaSeccion As Boolean = dr("AplicaSeccion").ToString = "1"
|
||||
|
||||
'divSeccionAlmacen.Visible = AplicaSeccion
|
||||
divLote.Visible = AplicaLote
|
||||
@@ -453,7 +453,7 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
||||
|
||||
If GvIFDUltimoRegistrado.Rows.Count > 0 Then
|
||||
|
||||
GvIFDUltimoRegistrado.Rows(0).Cells(0).Text = Now
|
||||
GvIFDUltimoRegistrado.Rows(0).Cells(0).Text = Now.ToString("dd/MM/yyyy")
|
||||
GvIFDUltimoRegistrado.Rows(0).Cells(1).Text = dr("CodigoBarras").ToString
|
||||
GvIFDUltimoRegistrado.Rows(0).Cells(2).Text = dr("Codigo").ToString
|
||||
GvIFDUltimoRegistrado.Rows(0).Cells(3).Text = dr("PSCodigo").ToString
|
||||
@@ -620,7 +620,7 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
||||
Protected Sub Impimir(Optional Formato As String = "PDF", Optional Agrupar As Boolean = False)
|
||||
Dim DtDatos As New DataTable
|
||||
Dim ObjInventario As New ClsInventarios()
|
||||
If ObjInventario.GetInventarioFisicoDetalle(CveInventarioFisico, ddlUsuario.SelectedValue, Agrupar:=Agrupar) Then
|
||||
If ObjInventario.GetInventarioFisicoDetalle(CveInventarioFisico, ddlUsuario.SelectedValue.ToEntero, Agrupar:=Agrupar) Then
|
||||
DtDatos = ObjInventario.DtResultados.FiltraParametros("CveInventarioFisico > 0 ").Copy
|
||||
End If
|
||||
ObjInventario.Dispose()
|
||||
@@ -773,9 +773,9 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
||||
Alert("La cantidad debe ser mayor a 0", TipoMensaje.MsgAdvertencia)
|
||||
Exit Sub
|
||||
End If
|
||||
Dim serie As String = IIf(TxtSerieLote.Text.ToString = "", "-1", TxtSerieLote.Text.ToString)
|
||||
Dim Lote As String = IIf(TxtLoteEdit.Text.ToString = "", "-1", TxtLoteEdit.Text.ToString)
|
||||
Dim FechaCaducidad As Date = IIf(TxtFechaCaducida.Text.ToString = "", MinFecha, TxtFechaCaducida.Text.ToString.ToDate)
|
||||
Dim serie As String = If(TxtSerieLote.Text.ToString = "", "-1", TxtSerieLote.Text.ToString)
|
||||
Dim Lote As String = If(TxtLoteEdit.Text.ToString = "", "-1", TxtLoteEdit.Text.ToString)
|
||||
Dim FechaCaducidad As Date = If(TxtFechaCaducida.Text.ToString = "", MinFecha, TxtFechaCaducida.Text.ToString.ToDate)
|
||||
|
||||
If objInventario.UpdateInventarioFisicoDetalles(HfCveInventarioFisicoDetalle.Value.ToEntero, HfCvePS.Value.ToEntero, HfCveUM.Value.ToEntero, TxtCantidad.Text.ToDecimal, serie, Lote, FechaCaducidad) Then
|
||||
If objInventario.GetInventarioFisicoDetalle(CveInventarioFisico, ddlUsuario.SelectedValue.ToString.ToEntero) Then
|
||||
|
||||
@@ -66,7 +66,7 @@ Partial Class Inventarios_KardexAlmacen
|
||||
Private Sub CargaPS()
|
||||
|
||||
If Not ddlProducto2.UsaWebService Then
|
||||
Dim Filtro = If(DdlClasificacion.SelectedValue >= 0, String.Format("CveClasificacion={0} And CveTipoPS=2", DdlClasificacion.SelectedValue), "CveTipoPS=2")
|
||||
Dim Filtro = If(DdlClasificacion.SelectedValue.ToEntero >= 0, String.Format("CveClasificacion={0} And CveTipoPS=2", DdlClasificacion.SelectedValue), "CveTipoPS=2")
|
||||
ddlProducto2.ddl.Items.Clear()
|
||||
ddlProducto2.DataSource = GlobalDTPS(UsuarioActual.CveEmpresa).FiltraParametros(Filtro, "PSCodigo")
|
||||
ddlProducto2.DataBind()
|
||||
|
||||
@@ -22,7 +22,7 @@ Partial Class Inventarios_KardexAlmacen
|
||||
DdlOrden.Visible = True
|
||||
LblMarca.Visible = True
|
||||
DdlMarca.Visible = True
|
||||
DdlOrden.SelectedValue = 2
|
||||
DdlOrden.SelectedValueExist(2)
|
||||
End If
|
||||
|
||||
If UsuarioActual.CveEmpresa = 119 Then
|
||||
@@ -154,7 +154,7 @@ Partial Class Inventarios_KardexAlmacen
|
||||
Dim IncluyeTransitorios As Integer = DdlIncluyeTransitorios.SelectedValue.ToEntero
|
||||
|
||||
If ObjMovimientos.GetKardexAlmacenHorizontal(CvePS, FechaF, -1, DdlUnidadMedida.SelectedValue.ToEntero, CveProveedorCompra, DdlTipoAlmacen.SelectedValue.ToEntero(), IncluyeTransitorios,
|
||||
DdlClasificacion.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CondicionExistencias:=DdlExistencia.SelectedValue,
|
||||
DdlClasificacion.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CondicionExistencias:=DdlExistencia.SelectedValue.ToEntero,
|
||||
Orden:=DdlOrden.SelectedValue.ToEntero(), Marcas:=Marcas, IncluyeProyectado:=DdlProyeccionFiltro.SelectedValue.ToEntero, CveAlmacenes:=CveAlmacenes, GPO:=GPO) Then
|
||||
If ObjMovimientos.DtResultados IsNot Nothing AndAlso ObjMovimientos.DtResultados.Rows.Count > 0 Then
|
||||
dt = ObjMovimientos.DtResultados
|
||||
@@ -189,7 +189,7 @@ Partial Class Inventarios_KardexAlmacen
|
||||
GvDatos.DataBind()
|
||||
|
||||
For index = 4 To GvDatos.Rows(0).Cells.Count - 1
|
||||
GvDatos.HeaderRow.Cells(index).Text = GvDatos.HeaderRow.Cells(index).Text.Split("|")(0)
|
||||
GvDatos.HeaderRow.Cells(index).Text = GvDatos.HeaderRow.Cells(index).Text.Split("|"c)(0)
|
||||
Next
|
||||
End Sub
|
||||
|
||||
@@ -214,9 +214,9 @@ Partial Class Inventarios_KardexAlmacen
|
||||
If IsNumeric(Celda) Then
|
||||
Dim CveAlmacen2 As Integer = -1
|
||||
If Index >= 5 Then
|
||||
Dim Array = GvDatos.HeaderRow.Cells(Index).Text.Split("|")
|
||||
Dim Array As String() = GvDatos.HeaderRow.Cells(Index).Text.Split("|"c)
|
||||
If Array.Length > 1 Then
|
||||
CveAlmacen2 = Array(1)
|
||||
CveAlmacen2 = Array(1).ToEntero
|
||||
End If
|
||||
End If
|
||||
|
||||
@@ -511,7 +511,7 @@ Partial Class Inventarios_KardexAlmacen
|
||||
Protected Sub BtnDescargarPOG_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Dim Fecha As Date = txtFechaI.Text.ToDate
|
||||
Dim Nombre As String = IIf(RBLPOG.SelectedValue = "0", "Ventas-", "Existencias-")
|
||||
Dim Nombre As String = If(RBLPOG.SelectedValue = "0", "Ventas-", "Existencias-")
|
||||
|
||||
Using ObjInventario As New ClsInventarios
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ Partial Class Inventarios_PrestamosdeProveedor
|
||||
ErrorMovInv = True
|
||||
End If
|
||||
|
||||
Dim CveClasifCosto As Integer = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveClasificacion", String.Format("CvePS ={0} ", CvePS))
|
||||
Dim CveClasifCosto As Integer = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveClasificacion", String.Format("CvePS ={0} ", CvePS)).ToEntero
|
||||
|
||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoAlmacen, tValorInventario, tValorInventario, 68, TxtObservacionesEntrega.Text.Trim, TxtObservacionesEntrega.Text.Trim, CveMovimientoAlmacen:=CveMovimientoSalida) Then
|
||||
ErrorMovInv = True
|
||||
|
||||
@@ -22,7 +22,7 @@ Partial Class Inventarios_RepUMEquivalencia
|
||||
Public Sub CargaDatos()
|
||||
Dim ObjInv As New ClsInventarios
|
||||
|
||||
If ObjInv.RepExistenciasEquivalencias( DdlClasificacion.SelectedValue,-1,UsuarioActual.CveEmpresa) Then
|
||||
If ObjInv.RepExistenciasEquivalencias(DdlClasificacion.SelectedValue.ToEntero, -1, UsuarioActual.CveEmpresa) Then
|
||||
GVDatos.DataSource = ObjInv.DtResultados
|
||||
If ObjInv.DtResultados.Columns.Count <= 5 Then
|
||||
divGvdatos.Style.Add("width", "50%")
|
||||
@@ -44,7 +44,7 @@ Partial Class Inventarios_RepUMEquivalencia
|
||||
divHeader.Style.Add("width", "96.5%")
|
||||
End If
|
||||
End If
|
||||
divGvdatos.Visible = True
|
||||
divGvdatos.Visible = True
|
||||
UpDatos.Update()
|
||||
ObjInv.Dispose()
|
||||
GVDatos.DataBind()
|
||||
|
||||
Reference in New Issue
Block a user