Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -310,6 +310,17 @@
|
||||
<asp:HyperLink ID="HplSerieFolio" runat="server" Text='<%# Eval("SerieFolio") %>' CssClass="Texto" NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-Width="100">
|
||||
<HeaderTemplate>
|
||||
Folio Fiscal
|
||||
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolioFiscal" runat="server" Text='<%# Eval("FolioFiscal") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-Width="20">
|
||||
<HeaderTemplate>
|
||||
Cant.
|
||||
@@ -477,30 +488,32 @@
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" /></td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkObs" runat="server" Text="Observaciones"/></td>
|
||||
<asp:CheckBox ID="ChkObs" runat="server" Text="Observaciones" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkDesc" runat="server" Text="Descuentos" /></td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkTotal" runat="server" Text="Total" /></td>
|
||||
<td><asp:CheckBox ID="ChkDescripcion" runat="server" Text="Descripción"/></td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkDescripcion" runat="server" Text="Descripción" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkAbre" runat="server" Text="Moneda" /></td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkRazon" runat="server" Text="Proveedor" /></td>
|
||||
<td></td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkFolio" runat="server" Text="Folio Fiscal" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkFolio" runat="server" Text="Folio Inv" /></td>
|
||||
<asp:CheckBox ID="ChkFolioInv" runat="server" Text="Folio Inv" /></td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkFecha" runat="server" Text="Fecha Movimiento" /></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkRetIVA" runat="server" Text="Ret IVA" Checked="true" /></td>
|
||||
<td>
|
||||
|
||||
@@ -596,18 +596,19 @@ Partial Class Compras_RepComprasDetalle
|
||||
#End Region
|
||||
|
||||
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
||||
GvDatos.Columns(4).Visible = ChkIVA.Checked
|
||||
GvDatos.Columns(5).Visible = ChkIEPS.Checked
|
||||
GvDatos.Columns(6).Visible = ChkDesc.Checked
|
||||
GvDatos.Columns(7).Visible = Chkretiva.Checked
|
||||
GvDatos.Columns(8).Visible = Chkretisr.Checked
|
||||
GvDatos.Columns(9).Visible = ChkTotal.Checked
|
||||
GvDatos.Columns(10).Visible = ChkAbre.Checked
|
||||
GvDatos.Columns(11).Visible = ChkRazon.Checked
|
||||
GvDatos.Columns(12).Visible = ChkFolio.Checked
|
||||
GvDatos.Columns(13).Visible = ChkFecha.Checked
|
||||
GvDatos.Columns(14).Visible = ChkObs.Checked
|
||||
GvDatos.Columns(15).Visible = ChkDescripcion.Checked
|
||||
GvDatos.Columns(2).Visible = ChkFolio.Checked
|
||||
GvDatos.Columns(5).Visible = ChkIVA.Checked
|
||||
GvDatos.Columns(6).Visible = ChkIEPS.Checked
|
||||
GvDatos.Columns(7).Visible = ChkDesc.Checked
|
||||
GvDatos.Columns(8).Visible = ChkRetIVA.Checked
|
||||
GvDatos.Columns(9).Visible = ChkRetISR.Checked
|
||||
GvDatos.Columns(10).Visible = ChkTotal.Checked
|
||||
GvDatos.Columns(11).Visible = ChkAbre.Checked
|
||||
GvDatos.Columns(12).Visible = ChkRazon.Checked
|
||||
GvDatos.Columns(13).Visible = ChkFolioInv.Checked
|
||||
GvDatos.Columns(14).Visible = ChkFecha.Checked
|
||||
GvDatos.Columns(15).Visible = ChkObs.Checked
|
||||
GvDatos.Columns(16).Visible = ChkDescripcion.Checked
|
||||
UPDatos.Update()
|
||||
End Sub
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -647,7 +647,7 @@ Partial Class General_SaldosIniciales
|
||||
|
||||
Dim DTCuentasContables As New DataTable
|
||||
|
||||
If UsuarioActual.Empresa.TipoContabilizacion = 1 Or UsuarioActual.CveEmpresa.Contiene(172) Then
|
||||
If UsuarioActual.Empresa.TipoContabilizacion = 1 Or UsuarioActual.CveEmpresa.Contiene(172, 174) Then
|
||||
|
||||
Dim ObjConta As New ClsContabilidad
|
||||
If ObjConta.GetCuentas(-1, "-1", -1, UsuarioActual.CveEmpresa) Then
|
||||
@@ -2344,9 +2344,42 @@ Partial Class General_SaldosIniciales
|
||||
Private Sub ProcesaClasificaciones(dt As DataTable, dTCuentasContables As DataTable)
|
||||
|
||||
|
||||
Dim ErrorProceso As Boolean = False
|
||||
|
||||
|
||||
Dim SBMensajesCuentasNoEncontradas As New StringBuilder
|
||||
|
||||
For Each dRow As DataRow In dt.FiltraParametros(" LEN(Clasificacion) > 0 ").Rows
|
||||
|
||||
Dim Clasificacion As String = dRow("Clasificacion").ToString().Trim.Replace("\r\n", "").Replace(vbCrLf, "").Replace(vbCr, "")
|
||||
|
||||
Dim CuentaContableIngreso As String = dRow("CuentaContableIngreso").ToString().Trim.Replace("-", "").Replace("\r\n", "").Replace(vbCrLf, "").Replace(vbCr, "")
|
||||
Dim CuentaContableGasto As String = dRow("CuentaContableGasto").ToString().Trim.Replace("-", "").Replace("\r\n", "").Replace(vbCrLf, "").Replace(vbCr, "")
|
||||
|
||||
|
||||
Dim CveCuentaContableIngreso As Integer = dTCuentasContables.FiltroPrimeroValor("CveCuenta", $"Codigo ='{CuentaContableIngreso}'").ToEntero()
|
||||
Dim CveCuentaContableGasto As Integer = dTCuentasContables.FiltroPrimeroValor("CveCuenta", $"Codigo ='{CuentaContableGasto}'").ToEntero()
|
||||
|
||||
If CuentaContableIngreso.Trim.Length > 0 AndAlso CveCuentaContableIngreso <= 0 Then
|
||||
SBMensajesCuentasNoEncontradas.AppendLine($"Clasificación {Clasificacion} no se encontro la cuenta de ingreso {CuentaContableIngreso}.<br/>")
|
||||
ErrorProceso = True
|
||||
End If
|
||||
|
||||
If CuentaContableGasto.Trim.Length > 0 AndAlso CveCuentaContableGasto <= 0 Then
|
||||
SBMensajesCuentasNoEncontradas.AppendLine($"Clasificación {Clasificacion} no se encontro la cuenta de gasto {CuentaContableGasto}.<br/>")
|
||||
ErrorProceso = True
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
If ErrorProceso Then
|
||||
Alert($"Cuentas no encontradas.<br/>{SBMensajesCuentasNoEncontradas.ToString}", TipoMensaje.MsgAdvertencia)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
Dim ObjClasificaciones As New ClsClasificaciones
|
||||
Dim ObjConta As New ClsContabilidad(ObjClasificaciones.IniciaTransacSQL)
|
||||
Dim ErrorProceso As Boolean = False
|
||||
|
||||
Dim Contador As Integer = 0
|
||||
|
||||
|
||||
@@ -2411,15 +2444,15 @@ Partial Class General_SaldosIniciales
|
||||
Dim CveCuentaContableIngreso As Integer = dTCuentasContables.FiltroPrimeroValor("CveCuenta", $"Codigo ='{CuentaContableIngreso}'").ToEntero()
|
||||
Dim CveCuentaContableGasto As Integer = dTCuentasContables.FiltroPrimeroValor("CveCuenta", $"Codigo ='{CuentaContableGasto}'").ToEntero()
|
||||
|
||||
If CuentaContableIngreso.Trim.Length > 0 AndAlso CveCuentaContableIngreso <= 0 Then
|
||||
Alert($"Clasificación {Clasificacion} no se encontro la cuenta de ingreso {CuentaContableIngreso}.", TipoMensaje.MsgAdvertencia)
|
||||
ErrorProceso = True
|
||||
End If
|
||||
'If CuentaContableIngreso.Trim.Length > 0 AndAlso CveCuentaContableIngreso <= 0 Then
|
||||
' Alert($"Clasificación {Clasificacion} no se encontro la cuenta de ingreso {CuentaContableIngreso}.", TipoMensaje.MsgAdvertencia)
|
||||
' ErrorProceso = True
|
||||
'End If
|
||||
|
||||
If CuentaContableGasto.Trim.Length > 0 AndAlso CveCuentaContableGasto <= 0 Then
|
||||
Alert($"Clasificación {Clasificacion} no se encontro la cuenta de gasto {CuentaContableGasto}.", TipoMensaje.MsgAdvertencia)
|
||||
ErrorProceso = True
|
||||
End If
|
||||
'If CuentaContableGasto.Trim.Length > 0 AndAlso CveCuentaContableGasto <= 0 Then
|
||||
' Alert($"Clasificación {Clasificacion} no se encontro la cuenta de gasto {CuentaContableGasto}.", TipoMensaje.MsgAdvertencia)
|
||||
' ErrorProceso = True
|
||||
'End If
|
||||
|
||||
|
||||
Dim CveClasificaionTemp = DTClasificaiones.FiltroPrimeroValor("CveClasificacion", $"Clasificacion='{Clasificacion}'").ToEntero()
|
||||
@@ -2435,9 +2468,17 @@ Partial Class General_SaldosIniciales
|
||||
|
||||
CveClasificacion = ObjClasificaciones.CveClasificacion
|
||||
|
||||
If Not CveClasificacion > 0 Then
|
||||
If CveClasificacion > 0 Then
|
||||
If ObjClasificaciones.GetClasificaciones(UsuarioActual.CveEmpresa) Then
|
||||
DTClasificaiones = ObjClasificaciones.DtResultados
|
||||
End If
|
||||
Else
|
||||
|
||||
ErrorProceso = True
|
||||
End If
|
||||
|
||||
|
||||
|
||||
Else
|
||||
ErrorProceso = True
|
||||
End If
|
||||
|
||||
@@ -213,7 +213,8 @@
|
||||
<Columns>
|
||||
<asp:HyperlinkField DataTextField="Folio" HeaderText="Folio" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" DataNavigateUrlFields="CveMovimiento" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Fecha" DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Disponible" DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Cant. Orig." DataField="CantidadOriginal" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Disponible" DataField="Disponible" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"/>
|
||||
|
||||
@@ -55,15 +55,18 @@
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<asp:DropDownList ID="CboProveedores" CssClass="select2me" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor"
|
||||
<%--<asp:DropDownList ID="CboProveedores" CssClass="select2me" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor"
|
||||
Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 200px !important;">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVProveedor" runat="server" ControlToValidate="CboProveedores"
|
||||
</asp:DropDownList>--%>
|
||||
<ADS:Dropdownlost ID="DdlProveedores" CssClassDdl="select2me" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor"></ADS:Dropdownlost>
|
||||
|
||||
<%--<asp:RequiredFieldValidator ID="RFVProveedor" runat="server" ControlToValidate="CboProveedores"
|
||||
Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proveedor''</b> es necesario, por favor ingréselo."
|
||||
ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEProveedor" runat="server" HighlightCssClass="vco"
|
||||
TargetControlID="RFVProveedor" Width="300px">
|
||||
</ajax:ValidatorCalloutExtender>
|
||||
</ajax:ValidatorCalloutExtender>--%>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -100,8 +100,23 @@ Partial Class PopOCCotizacionesDetalle
|
||||
CargaProveedores()
|
||||
End Sub
|
||||
Protected Sub CargaProveedores()
|
||||
CboProveedores.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CveProveedorClasificacion = {0} OR {0} = -1", CboClasificacionProveedor.SelectedValue))
|
||||
CboProveedores.DataBind()
|
||||
'CboProveedores.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CveProveedorClasificacion = {0} OR {0} = -1", CboClasificacionProveedor.SelectedValue))
|
||||
'CboProveedores.DataBind()
|
||||
|
||||
If (UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1") Then
|
||||
DdlProveedores.setEsWebService(True)
|
||||
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
||||
DdlProveedores.SelectedText = "Todos"
|
||||
DdlProveedores.SelectedValue = "-1"
|
||||
Else
|
||||
DdlProveedores.setEsWebService(False)
|
||||
DdlProveedores.ddl.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CveProveedorClasificacion = {0} OR {0} = -1", CboClasificacionProveedor.SelectedValue))
|
||||
DdlProveedores.ddl.DataBind()
|
||||
DdlProveedores.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
End If
|
||||
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub CargaMonedas()
|
||||
@@ -135,7 +150,7 @@ Partial Class PopOCCotizacionesDetalle
|
||||
If objCotizacion.CveUsuario = 0 Then Deshabilitar()
|
||||
|
||||
TxtFolio.Text = objCotizacion.Folio.ToString
|
||||
CboProveedores.SelectedValue = objCotizacion.CveProveedor.ToString
|
||||
DdlProveedores.SelectedValue = objCotizacion.CveProveedor.ToString
|
||||
TxtFecha.Text = objCotizacion.Fecha.ToShortDateString
|
||||
ddlMoneda.SelectedValue = objCotizacion.CveMoneda.ToString
|
||||
TxtDiasCredito.Text = objCotizacion.DiasCredito.ToString
|
||||
@@ -159,7 +174,7 @@ Partial Class PopOCCotizacionesDetalle
|
||||
|
||||
Protected Sub Deshabilitar()
|
||||
CboClasificacionProveedor.Enabled = False
|
||||
CboProveedores.Enabled = False
|
||||
DdlProveedores.Enabled = False
|
||||
ddlMoneda.Enabled = False
|
||||
TxtDiasCredito.Enabled = False
|
||||
TxtFecha.Enabled = False
|
||||
@@ -180,6 +195,12 @@ Partial Class PopOCCotizacionesDetalle
|
||||
#Region " GUARDAR "
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
||||
|
||||
If Not DdlProveedores.SelectedValue.ToEntero > 0 Then
|
||||
Alert("El campo proveedor es requerido.", TipoMensaje.MsgAdvertencia)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
|
||||
Dim objCotizacion As New ClsOC
|
||||
objCotizacion.IniciaTransacSQL()
|
||||
Dim TieneError = False
|
||||
@@ -195,7 +216,7 @@ Partial Class PopOCCotizacionesDetalle
|
||||
|
||||
Try
|
||||
If EsNuevo Then
|
||||
If objCotizacion.AddCotizacion(CveOrdenCompra, CboProveedores.SelectedValue.ToEntero, -1, TxtFolio.Text, TxtFecha.Text, FileExtension, ddlMoneda.SelectedValue.ToEntero,
|
||||
If objCotizacion.AddCotizacion(CveOrdenCompra, DdlProveedores.SelectedValue.ToEntero, -1, TxtFolio.Text, TxtFecha.Text, FileExtension, ddlMoneda.SelectedValue.ToEntero,
|
||||
TxtDiasCredito.Text.ToEntero, UsuarioActual.CveUsuario) Then
|
||||
|
||||
'verificar que exista el directorio
|
||||
@@ -217,7 +238,7 @@ Partial Class PopOCCotizacionesDetalle
|
||||
End If
|
||||
Else
|
||||
|
||||
If objCotizacion.UpdateCotizacion(CboProveedores.SelectedValue.ToEntero, -1, TxtFolio.Text, TxtFecha.Text, FileExtension, ddlMoneda.SelectedValue.ToEntero, TxtDiasCredito.Text.ToEntero, UsuarioActual.CveUsuario, CveCotizacion) Then
|
||||
If objCotizacion.UpdateCotizacion(DdlProveedores.SelectedValue.ToEntero, -1, TxtFolio.Text, TxtFecha.Text, FileExtension, ddlMoneda.SelectedValue.ToEntero, TxtDiasCredito.Text.ToEntero, UsuarioActual.CveUsuario, CveCotizacion) Then
|
||||
|
||||
'verificar que exista el directorio
|
||||
If Not System.IO.Directory.Exists(String.Format("{0}Cotizaciones/", UsuarioActual.Empresa.Ruta)) Then
|
||||
|
||||
@@ -177,11 +177,11 @@
|
||||
<div visible="true" runat="server" id="DivAF">
|
||||
<label class="colf-1">Activo Fijo</label>
|
||||
<div class="colf-2">
|
||||
<asp:DropDownList ID="DdlActivoFijo" runat="server" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="Codigo" DataValueField="CveActivoFijo">
|
||||
<asp:DropDownList ID="DdlActivoFijo" runat="server" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="Codigo" DataValueField="CveActivoFijo" Width="100%">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<label class="colf-1">Usuario</label>
|
||||
<label class="colf-1">Solicitó</label>
|
||||
<div class="colf-2">
|
||||
<asp:DropDownList ID="ddlUsuario" runat="server" CssClass="form-control input-sm select2me" Width="100%" DataTextField="Nombre" DataValueField="CveUsuario">
|
||||
</asp:DropDownList>
|
||||
@@ -201,7 +201,7 @@
|
||||
<div class="row rownomargin">
|
||||
<label class="colf-1 truncate">Clasificación</label>
|
||||
<div class="colf-2">
|
||||
<asp:DropDownList ID="DDlClasificacion" runat="server" CssClass="form-control input-sm select2me" DataTextField="Clasificacion" DataValueField="CveClasificacion" AutoPostBack="true">
|
||||
<asp:DropDownList ID="DDlClasificacion" runat="server" CssClass="form-control input-sm select2me" DataTextField="Clasificacion" DataValueField="CveClasificacion" AutoPostBack="true" Width="100%">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<label class="colf-1 truncate">Producto Servicio</label>
|
||||
@@ -242,7 +242,9 @@
|
||||
<div class="row rownomargin">
|
||||
<label class="colf-1 truncate">Proveedor</label>
|
||||
<div class="colf-2">
|
||||
<asp:DropDownList ID="ddlProveedor" runat="server" CssClass="form-control input-sm select2me" DataTextField="RazonSocial" DataValueField="CveProveedor"></asp:DropDownList>
|
||||
<%--<asp:DropDownList ID="ddlProveedor" runat="server" CssClass="form-control input-sm select2me" DataTextField="RazonSocial" DataValueField="CveProveedor"></asp:DropDownList>--%>
|
||||
<ADS:Dropdownlost ID="DdlProveedores" CssClassDdl="select2me" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor"></ADS:Dropdownlost>
|
||||
|
||||
</div>
|
||||
<label class="colf-1 truncate" id="clintesdiv1" runat="server" visible="false">Cliente</label>
|
||||
<div class="colf-2" id="clintesdiv2" runat="server" visible="false">
|
||||
|
||||
@@ -88,6 +88,9 @@ Partial Class RepOC
|
||||
|
||||
|
||||
#Region " CARGA COMBOS "
|
||||
|
||||
|
||||
|
||||
Protected Sub CargaProyectos()
|
||||
'DdlProyectos.DataSource = If(UsuarioActual.Empresa.Funcionalidad(102) = "1" AndAlso Not UsuarioActual.TienePermisoProceso(110), GlobalDTProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1), GlobalDTProyectos(UsuarioActual.CveEmpresa, -1))
|
||||
'DdlProyectos.DataBind()
|
||||
@@ -120,9 +123,17 @@ Partial Class RepOC
|
||||
|
||||
End Sub
|
||||
Protected Sub CargaProveedores()
|
||||
ddlProveedor.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
|
||||
ddlProveedor.DataBind()
|
||||
ddlProveedor.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
If (UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1") Then
|
||||
DdlProveedores.setEsWebService(True)
|
||||
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
||||
DdlProveedores.SelectedText = "Todos"
|
||||
DdlProveedores.SelectedValue = "-1"
|
||||
Else
|
||||
DdlProveedores.setEsWebService(False)
|
||||
DdlProveedores.ddl.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
|
||||
DdlProveedores.ddl.DataBind()
|
||||
DdlProveedores.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub CargaClientes()
|
||||
clintesdiv1.Visible = True
|
||||
@@ -366,7 +377,7 @@ Partial Class RepOC
|
||||
|
||||
Dim OC As New ClsOC
|
||||
If OC.GetOrdenesCompraRep(DdlTipo.SelectedValue.ToString, DdlProyectos.SelectedValue.ToEntero, DdlSubProyectos.SelectedValue.ToEntero, DDlClasificacion.SelectedValue.ToEntero,
|
||||
DdlEstatus.SelectedValue.ToEntero, FI, FF, -1, ddlProveedor.SelectedValue.ToEntero, If(txtFolio.Text.ToEntero = 0, -1, txtFolio.Text.ToEntero), ddlUsuario.SelectedValue.ToEntero,
|
||||
DdlEstatus.SelectedValue.ToEntero, FI, FF, -1, DdlProveedores.SelectedValue.ToEntero, If(txtFolio.Text.ToEntero = 0, -1, txtFolio.Text.ToEntero), ddlUsuario.SelectedValue.ToEntero,
|
||||
If(CheckNoCompleta.Checked, -1, UsuarioActual.CveUsuario), UsuarioActual.Empresa.CveEmpresa, If(DDlPS.SelectedValue = "", -1, DDlPS.SelectedValue.ToEntero), If(CheckNoCompleta.Checked, True, False),
|
||||
ddlcliente.SelectedValue.ToEntero, CveActivoFijo:=DdlActivoFijo.SelectedValue.ToEntero, SoloSubProyectosConPermiso:=If(UsuarioActual.Empresa.Funcionalidad(530) = "1", True, False),
|
||||
CveUsuarioAutorizo:=DdlUsuarioAutorizo.SelectedValue.ToEntero(), CveUsuarioAsignado:=DdlUsuarioAsignado.SelectedValue.ToEntero(), EntregaDirecta:=DdlEntregaDirecta.SelectedValue.ToEntero()) Then
|
||||
@@ -512,7 +523,7 @@ Partial Class RepOC
|
||||
Dim Clasificacion = If(DDlClasificacion.SelectedValue = "-1", "", $" <b>Clasificación:</b> {DDlClasificacion.SelectedItem.Text}")
|
||||
Dim Producto = If(DDlPS.SelectedValue = "-1", "", $" <b>Producto/Servicio:</b> {DDlPS.SelectedText}")
|
||||
Dim Completa As String = If(CheckNoCompleta.Checked = False, "", $" , <b>No completa</b> ")
|
||||
Dim Proveedor = If(ddlProveedor.SelectedValue = "-1", "", $" <b>Proveedor:</b> {ddlProveedor.SelectedItem.Text}")
|
||||
Dim Proveedor = If(DdlProveedores.SelectedValue = "-1", "", $" <b>Proveedor:</b> {DdlProveedores.txtText.Value }")
|
||||
Dim Cliente = If(ddlcliente.SelectedValue = "-1", "", $" <b>Cliente:</b> {ddlcliente.SelectedItem.Text}")
|
||||
|
||||
If DtPorAtender IsNot Nothing AndAlso DtPorAtender.Rows.Count > 0 Then
|
||||
|
||||
Reference in New Issue
Block a user