SMS - OS, poder hacer la cancelación de una OS/Pedido. cuando la OS no esté como finalizada.
This commit is contained in:
@@ -141,8 +141,8 @@
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Folio" ItemStyle-Width="5%">
|
||||
<ItemTemplate>
|
||||
<asp:Label Text='<%# Eval("Folio") %>' ID="LbFolio" runat="server" Style="width: 70px!important" />
|
||||
<asp:HyperLink Text='<%# Eval("Folio") %>' ID="HLFolio" Visible="false" CssClass="Texto" Style="text-align: center" runat="server" Width="70px" />
|
||||
<asp:Label Text='<%# Eval("SerieFolio") %>' ID="LbFolio" runat="server" Style="width: 70px!important" />
|
||||
<asp:HyperLink Text='<%# Eval("SerieFolio") %>' ID="HLFolio" Visible="false" CssClass="Texto" Style="text-align: center" runat="server" Width="70px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
@@ -176,13 +176,38 @@ Partial Class OC_PopUpBuscarReq
|
||||
Dim guia As String = If(TxtGuia.Text.Trim = "", "-1", TxtGuia.Text)
|
||||
'Cargar Datos
|
||||
|
||||
|
||||
Dim Serie As String = "-1"
|
||||
Dim Folio As Integer = -1
|
||||
|
||||
If TxtFolio.Text.Trim.Length = 0 Then
|
||||
Serie = "-1"
|
||||
Folio = -1
|
||||
Else
|
||||
Dim Array() As String = TxtFolio.Text.Trim.Split(CChar("-"))
|
||||
|
||||
If Array.Length >= 2 Then
|
||||
If Array.Length = 2 Then
|
||||
Serie = Array(0)
|
||||
Folio = Array(1).ToEntero
|
||||
End If
|
||||
If Array.Length = 3 Then
|
||||
Serie = Array(0) + "-" + Array(1)
|
||||
Folio = Array(2).ToEntero
|
||||
End If
|
||||
Else
|
||||
Serie = "-1"
|
||||
Folio = TxtFolio.Text.Trim.ToEntero
|
||||
End If
|
||||
End If
|
||||
|
||||
If ValidarFiltrosSeleccionado() Then
|
||||
Dim CveProveedor As Integer = If(DdlProveedor.SelectedValue.ToEntero > 0, DdlProveedor.SelectedValue.ToEntero, -1)
|
||||
|
||||
Dim ObjOC As New ClsOC
|
||||
ObjOC.GetOrdenesCompraRep(DdlTipo.SelectedValue, CveProyecto, CveSubProyecto, -1, DdlEstatus.SelectedValue.ToEntero, FI, MaxFecha, -1, CveProveedor,
|
||||
If(TxtFolio.Text.ToEntero <= 0, -1, TxtFolio.Text.ToEntero), -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, Guia:=guia,
|
||||
SoloSubProyectosConPermiso:=If(UsuarioActual.Empresa.Funcionalidad(530) = "1", True, False), TopSelect:=100)
|
||||
Folio, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, Guia:=guia,
|
||||
SoloSubProyectosConPermiso:=If(UsuarioActual.Empresa.Funcionalidad(530) = "1", True, False), TopSelect:=100, Serie:=Serie)
|
||||
Dim DtOC As Data.DataTable = ObjOC.DtResultados ' tipotermino, esattus inicial
|
||||
ObjOC.Dispose()
|
||||
|
||||
@@ -262,7 +287,7 @@ Partial Class OC_PopUpBuscarReq
|
||||
If DdlTipo.SelectedValue = "REQ" OrElse DdlTipo.SelectedValue = "OC" Then Return True
|
||||
If DdlEstatus.SelectedValue.ToEntero > 0 Then Return True
|
||||
If DdlProveedor.SelectedValue.ToEntero > 0 Then Return True
|
||||
If TxtFolio.Text.ToEntero > 0 Then Return True
|
||||
If TxtFolio.Text.Trim.Length > 0 Then Return True
|
||||
If DdlSubProyectos.SelectedValue.ToEntero > 0 Then Return True
|
||||
If DdlProyectos.SelectedValue.ToEntero > 0 Then Return True
|
||||
Return False
|
||||
|
||||
Reference in New Issue
Block a user