-- obtención de materiales
This commit is contained in:
@@ -4,16 +4,7 @@ Option Strict On
|
|||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Microsoft.Reporting.WebForms
|
|
||||||
Imports ADSNetLibrary.SIGAPI.Models.Sistema
|
|
||||||
Imports Telerik.Charting.Styles
|
|
||||||
Imports Telerik.Web.UI
|
Imports Telerik.Web.UI
|
||||||
Imports DocumentFormat.OpenXml.Drawing.Diagrams
|
|
||||||
Imports Profact.TimbraCFDI.Complementos.InstitucionesEducativas
|
|
||||||
|
|
||||||
|
|
||||||
'Imports msExcel = Microsoft.Office.Interop.Excel
|
|
||||||
'Imports VBIDE
|
|
||||||
|
|
||||||
Partial Class OS_OrdenesServicios
|
Partial Class OS_OrdenesServicios
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -846,7 +837,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
Private Sub CargaMaterialesDetalle(CveOsDetalle As Integer, Consecutivo As Integer, CveConsecutivoDetalle As Integer)
|
Private Sub CargaMaterialesDetalle(CveOsDetalle As Integer, Consecutivo As Integer, CveConsecutivoDetalle As Integer)
|
||||||
Dim ObjMateriales As New ClsOS
|
Dim ObjMateriales As New ClsOS
|
||||||
|
|
||||||
If ObjMateriales.GetDetalleMateriales(CveOsDetalle, CveOS) Then
|
If ObjMateriales.GetDetalleMateriales(CveOsDetalle, CveOS, -1) Then
|
||||||
For Each RowE As DataRow In ObjMateriales.DtResultados.Rows
|
For Each RowE As DataRow In ObjMateriales.DtResultados.Rows
|
||||||
|
|
||||||
Dim Row As DataRow = Nothing
|
Dim Row As DataRow = Nothing
|
||||||
@@ -874,8 +865,8 @@ Partial Class OS_OrdenesServicios
|
|||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaMateriales()
|
Private Sub CargaMateriales()
|
||||||
Dim objOS As New ClsOS
|
Dim objOS As New ClsOS
|
||||||
|
Dim Opcion As Integer = If(DdlTipoVenta.SelectedValue.Contiene("2", "3"), 2, 1)
|
||||||
If objOS.GetDetalleMateriales(-1, CveOS, True) Then
|
If objOS.GetDetalleMateriales(-1, CveOS, Opcion, True) Then
|
||||||
GvMateriales.DataSource = objOS.DtResultados
|
GvMateriales.DataSource = objOS.DtResultados
|
||||||
End If
|
End If
|
||||||
objOS.Dispose()
|
objOS.Dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user