-cambios en globalsDT2
This commit is contained in:
@@ -326,7 +326,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
End If
|
||||
CargaGVClasificacion()
|
||||
|
||||
If objunidadesMedida.GetUnidadesMedida() Then
|
||||
If objunidadesMedida.GetUnidadesMedida(CveEmpresa) Then
|
||||
DtUM = objunidadesMedida.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0}", CveEmpresa))
|
||||
GvUM.DataSource = DtUM
|
||||
GvUM.DataBind()
|
||||
@@ -1259,7 +1259,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
Else
|
||||
Dim ObjFolio As New ClsGralFolios
|
||||
If ModalidadModal = "Insertar" Then
|
||||
If ObjFolio.AddFolios(DdlSubProyecto.SelectedValue.ToEntero, DdlTipoDocto.SelectedValue, TxtFolioInicial.Text.ToEntero, TxtFolioInicial.Text.ToEntero, TxtFolioFinal.Text.ToEntero, "", 100, CveEmpresa) Then
|
||||
If ObjFolio.AddFolios(DdlSubProyecto.SelectedValue.ToEntero, DdlTipoDocto.SelectedValue, "", TxtFolioInicial.Text.ToEntero, TxtFolioInicial.Text.ToEntero, TxtFolioFinal.Text.ToEntero, "", 100, CveEmpresa) Then
|
||||
Alert("El Folio se agrego correctamente.", TipoMensaje.MsgInformacion)
|
||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarFolio"))
|
||||
End If
|
||||
@@ -1267,7 +1267,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
If ModalidadModal = "Actualizar" Then
|
||||
If CveModal > 0 Then
|
||||
Dim CveFolio = CveModal
|
||||
If ObjFolio.UpdateFolios(DdlSubProyecto.SelectedValue.ToEntero, DdlTipoDocto.SelectedValue, TxtFolioInicial.Text.ToEntero, TxtFolioActual.Text.ToEntero, TxtFolioFinal.Text.ToEntero, "", If(ChkEstatus.Checked, True, False), 100, CveFolio) Then
|
||||
If ObjFolio.UpdateFolios(DdlSubProyecto.SelectedValue.ToEntero, DdlTipoDocto.SelectedValue, "", TxtFolioInicial.Text.ToEntero, TxtFolioActual.Text.ToEntero, TxtFolioFinal.Text.ToEntero, "", If(ChkEstatus.Checked, True, False), 100, CveFolio) Then
|
||||
Alert("El Folio se actualizo correctamente.", TipoMensaje.MsgInformacion)
|
||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarFolio"))
|
||||
End If
|
||||
@@ -1781,7 +1781,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
Private Sub CargaDdlUM()
|
||||
DdlUM.Items.Clear()
|
||||
Dim ObjUM As New ClsUnidadesMedida
|
||||
If ObjUM.GetUnidadesMedida() Then
|
||||
If ObjUM.GetUnidadesMedida(CveEmpresa) Then
|
||||
DdlUM.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
DdlUM.DataSource = ObjUM.DtResultados.FiltraParametros("CveEmpresa = " & CveEmpresa)
|
||||
DdlUM.DataBind()
|
||||
@@ -1852,7 +1852,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
|
||||
Alert(String.Format("Se agregaron: <b>{0}</b> Unidades de Medida correctamente.", NumRows), TipoMensaje.MsgInformacion)
|
||||
|
||||
If ObjUnidadesMedida.GetUnidadesMedida() Then
|
||||
If ObjUnidadesMedida.GetUnidadesMedida(CveEmpresa) Then
|
||||
GvUM.DataSource = ObjUnidadesMedida.DtResultados.FiltraParametros($"CveEmpresa = {CveEmpresa}")
|
||||
GvUM.DataBind()
|
||||
End If
|
||||
@@ -1893,7 +1893,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
|
||||
Private Sub CargaGVUM()
|
||||
Dim ObjUM As New ClsUnidadesMedida
|
||||
If ObjUM.GetUnidadesMedida() Then
|
||||
If ObjUM.GetUnidadesMedida(CveEmpresa) Then
|
||||
GvUM.DataSource = ObjUM.DtResultados.FiltraParametros(String.Format("CveEmpresa={0}", CveEmpresa))
|
||||
GvUM.DataBind()
|
||||
End If
|
||||
@@ -2063,7 +2063,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
'Obtengo Unidades de medida
|
||||
Dim ObjUM As New ClsUnidadesMedida
|
||||
Dim DTUM As New DataTable
|
||||
If ObjUM.GetUnidadesMedida() Then
|
||||
If ObjUM.GetUnidadesMedida(CveEmpresa) Then
|
||||
DTUM = ObjUM.DtResultados.FiltraParametros(String.Format("CveEmpresa={0}", CveEmpresa))
|
||||
End If
|
||||
ObjUM.Dispose()
|
||||
@@ -2780,7 +2780,8 @@ Partial Class Sistemas_WizardRegistro
|
||||
|
||||
If Not ErrorClientes Then
|
||||
ObjClientes.Commit()
|
||||
If ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, -1) Then Application("GlobalDTCliente") = ObjClientes.DtResultados
|
||||
'If ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, -1) Then Application("GlobalDTCliente") = ObjClientes.DtResultados
|
||||
|
||||
If Contador > 0 Then
|
||||
Alert(String.Format("Se agregaron: <b>{0}</b> Clientes correctamente. <br>Se Omitieron: <b>{1}</b> Clientes ya que ya se encontraban registrados.", NumRows - Contador, Contador), TipoMensaje.MsgInformacion)
|
||||
Else
|
||||
@@ -2957,7 +2958,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
ObjPS.Dispose()
|
||||
|
||||
Dim ObjUM As New ClsUnidadesMedida
|
||||
If ObjUM.GetUnidadesMedida() Then
|
||||
If ObjUM.GetUnidadesMedida(CveEmpresa) Then
|
||||
CveUnidadMedida = ObjUM.DtResultados.FiltraParametros($"CveEmpresa={CveEmpresa}").FiltroPrimeroValor("CveUnidadMedida").ToString.ToEntero
|
||||
End If
|
||||
ObjUM.Dispose()
|
||||
@@ -3061,7 +3062,7 @@ Partial Class Sistemas_WizardRegistro
|
||||
ObjPS.Dispose()
|
||||
|
||||
Dim ObjUM As New ClsUnidadesMedida
|
||||
If ObjUM.GetUnidadesMedida() Then
|
||||
If ObjUM.GetUnidadesMedida(CveEmpresa) Then
|
||||
CveUnidadMedida = ObjUM.DtResultados.FiltraParametros($"CveEmpresa={CveEmpresa}").FiltroPrimeroValor("CveUnidadMedida").ToString.ToEntero
|
||||
End If
|
||||
ObjUM.Dispose()
|
||||
|
||||
Reference in New Issue
Block a user