-
This commit is contained in:
@@ -1179,6 +1179,23 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function ValidaPSContrato(DtPS As String) As Boolean
|
||||||
|
Dim Retorno = False
|
||||||
|
|
||||||
|
DataAdapter("PA_Con_ValidarPSContrato")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@DtPS", SqlDbType.VarChar).Value = DtPS
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al cargar los Detalles del Contrato.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Contratos detalles Avance"
|
#Region "Contratos detalles Avance"
|
||||||
|
|||||||
@@ -2833,7 +2833,26 @@ Public Class ClsInventarios
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function GetInventarioFisicoUniversoProductos(CveInventarioFisico As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Inv_InventarioFisicoUniversoProductosGet")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveInventarioFisico", SqlDbType.Int).Value = CveInventarioFisico
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
|
||||||
|
Catch Ex1 As SqlException
|
||||||
|
Me.OnError("Ocurrió un error al obtener el universo de productos del inventario fisico.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener el universo de productos del inventario fisico.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " INVENTARIOS - MAXIMO MINIMO"
|
#Region " INVENTARIOS - MAXIMO MINIMO"
|
||||||
|
|||||||
@@ -3325,7 +3325,7 @@ Partial Class Contratos_Default
|
|||||||
End Sub
|
End Sub
|
||||||
Private Function ReadExcelFile(ByVal flatFilePath As String, ByVal firstRowHasHeaders As Boolean) As DataTable
|
Private Function ReadExcelFile(ByVal flatFilePath As String, ByVal firstRowHasHeaders As Boolean) As DataTable
|
||||||
SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
|
SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
|
||||||
Dim excelFile As ExcelFile = ExcelFile.Load(flatFilePath)
|
Dim excelFile As ExcelFile = excelFile.Load(flatFilePath)
|
||||||
|
|
||||||
Dim unnamed As Integer = 0
|
Dim unnamed As Integer = 0
|
||||||
Dim cols As Integer
|
Dim cols As Integer
|
||||||
|
|||||||
@@ -355,10 +355,8 @@
|
|||||||
<label class="col-md-3 truncate ">
|
<label class="col-md-3 truncate ">
|
||||||
<asp:Label ID="LblProveedor" runat="server" Text="Proveedor:"></asp:Label></label>
|
<asp:Label ID="LblProveedor" runat="server" Text="Proveedor:"></asp:Label></label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<asp:DropDownList ID="DdlContratista" runat="server" CssClass="input-sm form-control select2me" AppendDataBoundItems="True" DataTextField="RazonSocial" DataValueField="CveProveedor" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 350px !important;" ValidationGroup="GrpGuardar">
|
<ADS:Dropdownlost ID="DdlContratista" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor" ></ADS:Dropdownlost>
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
</div>
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -744,6 +744,8 @@ Partial Class Contratos_ContratoObra
|
|||||||
TrCliente.Visible = False
|
TrCliente.Visible = False
|
||||||
CargaContratista()
|
CargaContratista()
|
||||||
DdlContratista.SelectedValue = ObjContratos.CveProveedor.ToString
|
DdlContratista.SelectedValue = ObjContratos.CveProveedor.ToString
|
||||||
|
DdlContratista.SelectedText = ObjContratos.RazonSocial.ToString
|
||||||
|
|
||||||
Else
|
Else
|
||||||
cargaClientes()
|
cargaClientes()
|
||||||
DdlCliente.SelectedValue = ObjContratos.CveCliente.ToString
|
DdlCliente.SelectedValue = ObjContratos.CveCliente.ToString
|
||||||
@@ -1205,8 +1207,8 @@ Partial Class Contratos_ContratoObra
|
|||||||
' DdlSubProyectoContrato.Items.Insert(0, New ListItem("Seleccione un Proyecto", "-1"))
|
' DdlSubProyectoContrato.Items.Insert(0, New ListItem("Seleccione un Proyecto", "-1"))
|
||||||
'End Sub
|
'End Sub
|
||||||
Private Sub CargaContratista()
|
Private Sub CargaContratista()
|
||||||
DdlContratista.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
|
DdlContratista.setEsWebService(True)
|
||||||
DdlContratista.DataBind()
|
DdlContratista.Attributes.Add("data-metodo", "getproveedores")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Private Sub CargaVendedores()
|
'Private Sub CargaVendedores()
|
||||||
|
|||||||
Reference in New Issue
Block a user