Merge branch 'master' of http://agonzalez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -434,6 +434,7 @@
|
||||
<asp:HyperLink ID="HplImporte" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group proveedoreespes" id="trSaldo" runat="server" visible="False">
|
||||
@@ -442,6 +443,7 @@
|
||||
<asp:HyperLink ID="HplSaldoAuxiliar" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group proveedoreespes" id="trContabilizada" runat="server" visible="true">
|
||||
@@ -623,10 +625,18 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:HyperLink ID="HplAddClasificacion" data-toggle="tooltip" data-placement="top" NavigateUrl="/Ventas/CatClasificaciones.aspx" CssClass="btn btn-default btn-circle btn-xs " ToolTip="Agregar Clasificacion" runat="server"><i class="fa fa-plus" style="color:black" aria-hidden="true"></i></asp:HyperLink>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Reclasificar productos"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||||
<asp:LinkButton ID="ImgClasificacion" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" ToolTip="Aplicar Clasificación a Productos" runat="server" Style="display: none;"><i class="fa fa-arrow-circle-down" style="color:green" aria-hidden="true"></i></asp:LinkButton>
|
||||
@@ -638,6 +648,8 @@
|
||||
<asp:Label ID="LitHProyecto" runat="server" Text=""></asp:Label>
|
||||
<asp:Label runat="server" ID="LblSubProyectoHeader" Text=""></asp:Label>
|
||||
|
||||
|
||||
|
||||
<asp:LinkButton ID="ImgActualizarProyecto" CssClass="btn btn-default btn-circle" data-toggle="tooltip" data-placement="top" ToolTip="Actualizar Cambios" runat="server" Visible="False"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></asp:LinkButton>
|
||||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar sucursal"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||||
@@ -649,6 +661,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar tipo de gasto"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||||
</span>
|
||||
@@ -827,6 +843,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -854,6 +871,7 @@
|
||||
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -862,6 +880,7 @@
|
||||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField Visible="False">
|
||||
@@ -944,6 +963,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:HyperLink ID="HLAplicaNCFact" NavigateUrl="#" Visible="false" data-toggle="modal" data-target="#FacturaNC" runat="server"><i title="Aplicar Notas de Credito" data-toggle="tooltip" class='fa fa-money font-green'></i></asp:HyperLink>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1065,6 +1088,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:TextBox ID="TxtTC" Text="" Width="50px" runat="server" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
@@ -1102,6 +1129,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:CheckBox Text="" ID="ChkConsignacion" OnCheckedChanged="ChkConsignacion_CheckedChanged" AutoPostBack="true" Enabled="false" runat="server" />
|
||||
</li>
|
||||
<br />
|
||||
@@ -1115,6 +1146,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:DropDownList runat="server" ID="DdlConsignacion" DataValueField="CveConsignacion" DataTextField="SerieFolioFecha" Width="180px"></asp:DropDownList>
|
||||
</li>
|
||||
<%--<li>Folio Consignación:
|
||||
@@ -1391,6 +1426,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:TextBox ID="TxtTipoCambioOC" runat="server" align="right" MaxLength="12" Text="" Width="100px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtTipoCambioOC" FilterType="Custom, Numbers" ValidChars="." />
|
||||
<asp:RequiredFieldValidator ID="RFVTipoCambioOC" runat="server" ControlToValidate="TxtTipoCambioOC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Cambio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTipoCambioOC"></asp:RequiredFieldValidator>
|
||||
@@ -1793,10 +1832,15 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br />
|
||||
Producto/Servicio
|
||||
|
||||
|
||||
|
||||
</HeaderTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField HeaderText="Producto/Servicio SAT" DataField="SATClaveProductoServicio" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Left" Visible="false" />
|
||||
@@ -2022,6 +2066,7 @@
|
||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -2115,6 +2160,7 @@
|
||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -2211,6 +2257,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br />
|
||||
<asp:DropDownList ID="DdlPersonalHeader" runat="server" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" AppendDataBoundItems="true" Width="100%" CssClass="form-control input-sm select2me">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
@@ -2231,6 +2281,7 @@
|
||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -2397,6 +2448,8 @@
|
||||
<tr id="TrRembolsoUpdate" runat="server" visible="False">
|
||||
<td>Reembolso:
|
||||
|
||||
|
||||
|
||||
<asp:RadioButtonList ID="RblRembolso" OnSelectedIndexChanged="RblRembolso_SelectedIndexChanged" RepeatDirection="Horizontal" runat="server" AutoPostBack="True">
|
||||
<asp:ListItem Value="1">Personal/Empleado</asp:ListItem>
|
||||
<asp:ListItem Value="2">Caja Chica</asp:ListItem>
|
||||
@@ -2669,6 +2722,7 @@
|
||||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -2803,6 +2857,7 @@
|
||||
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Mon" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||
@@ -2810,6 +2865,7 @@
|
||||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Amort." ItemStyle-HorizontalAlign="Right">
|
||||
@@ -2879,7 +2935,6 @@
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<%--<asp:CheckBox ID="cbInv" runat="server" Checked="false" />--%>
|
||||
<asp:TextBox ID="TxtCantidadNCInv" CssClass="form-control" runat="server" />
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumerosFolio" runat="server" TargetControlID="TxtCantidadNCInv" FilterType="Numbers, custom" ValidChars="." />
|
||||
</ItemTemplate>
|
||||
@@ -2965,6 +3020,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:Label ID="lbPS" runat="server" ClientIDMode="Static"></asp:Label>
|
||||
a otro Almacén </h4>
|
||||
</td>
|
||||
@@ -3027,7 +3086,7 @@
|
||||
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green' style='font-weight: 700 !important;' ><span class='caption-subject bold'>Agregar</span></i>" Style="cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
||||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green' style='font-weight: 700 !important;' >Agendar</i>" Visible="false" Style="cursor: pointer;" ToolTip="Agendar"></asp:HyperLink><br />
|
||||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||||
<UserControl:TareaNueva runat="server" id="TareaNueva" />
|
||||
<UserControl:TareaNueva runat="server" ID="TareaNueva" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -3509,6 +3568,7 @@
|
||||
Tipo Cambio:
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtConvertirPesos" runat="server" Width="100px"></asp:TextBox>
|
||||
@@ -3745,7 +3805,7 @@
|
||||
|
||||
<br />
|
||||
<div style="text-align: center">
|
||||
<asp:CheckBox runat="server" ID="ChkCreditoMultiple" AutoPostBack="true" Text=" Múltiple Crédito" visible="false" />
|
||||
<asp:CheckBox runat="server" ID="ChkCreditoMultiple" AutoPostBack="true" Text=" Múltiple Crédito" Visible="false" />
|
||||
</div>
|
||||
|
||||
<br />
|
||||
@@ -3856,6 +3916,7 @@
|
||||
<div class="row" style="text-align: left; padding-left: 20px">
|
||||
Observaciones:
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-8" style="width: 100%; text-align: left">
|
||||
@@ -4020,6 +4081,7 @@
|
||||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
@@ -4029,6 +4091,7 @@
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaDocumento", "{0:d}") %>'></asp:Literal>
|
||||
|
||||
|
||||
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
@@ -4092,6 +4155,7 @@
|
||||
<asp:DropDownList ID="DdlCredito" Width="300px" CssClass="form-control input-sm select2me" DataTextField="ReferenciaImporte" DataValueField="CveCredito" runat="server" AutoPostBack="True"></asp:DropDownList></td>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="DivCreditoMensualidad" runat="server">
|
||||
@@ -4101,6 +4165,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:RequiredFieldValidator ID="RFVCreditoDetalle" runat="server" ControlToValidate="DdlCreditoDetalle" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Crédito''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCECreditoDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVCreditoDetalle" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
@@ -4236,6 +4304,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<label for="<%= ddlUM.ClientID.ToString()%>">Unidad de Medida:</label>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
@@ -4392,6 +4464,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:Label ID="LblTotalPS" ClientIDMode="Static" runat="server" Text="0.00"></asp:Label>
|
||||
</div>
|
||||
|
||||
@@ -4543,6 +4619,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<label id="LbUMActual" class="bold"></label>
|
||||
Equivale:</label>
|
||||
<div class="col-md-9">
|
||||
@@ -4559,6 +4639,7 @@
|
||||
Agregar como nueva unidad de medida
|
||||
|
||||
|
||||
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -4643,6 +4724,9 @@
|
||||
<h4 class="modal-title">Facturas</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<ajax:TabContainer ID="TabModoNC" runat="server" AutoPostBack="true" ActiveTabIndex="0" Width="100%" OnActiveTabChanged="TabModoNC_ActiveTabChanged">
|
||||
<ajax:TabPanel runat="server" HeaderText="Saldo">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label class="col-md-6"><b>Total NC.: </b></label>
|
||||
@@ -4693,11 +4777,58 @@
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabNCAlmacen" runat="server" HeaderText="Almacen">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12 h4 text-right">
|
||||
Saldo: $<asp:Label Text="0.00" ID="LbNCInvSaldoAlmacen" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:GridView ID="GVNCInvAlmacen" runat="server" EmptyDataText="Aun no hay registros." Width="100%" AutoGenerateColumns="False" ShowHeader="true" ShowHeaderWhenEmpty="True" DataKeyNames="CveCompraDetalle" CssClass="table table-striped table-hover Widthall ScrollAD" data-heighterror="450" data-freezerows="1" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Cantidad">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtCantidadNCInv" CssClass="form-control input-sm" runat="server" />
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumerosFolio" runat="server" TargetControlID="TxtCantidadNCInv" FilterType="Numbers, custom" ValidChars="." />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="10%" />
|
||||
</asp:TemplateField>
|
||||
<asp:HyperLinkField HeaderText="SerieFolio" DataTextField="SerieFolio" Target="_blank" DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="/Compras/Compras.aspx?={0}" />
|
||||
<asp:BoundField HeaderText="Original" DataField="CantidadC" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Surtido" DataField="CantidadS" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Pendiente" DataField="CantidadF" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||||
<asp:BoundField HeaderText="Unidad" DataField="UM" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="7.5%" />
|
||||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
|
||||
<asp:BoundField HeaderText="P.U." DataField="PU" DataFormatString="{0:#,##0.####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LbTotal" Text='<%# (CDbl(Eval("PU").ToString) * CDbl(Eval("CantidadF").ToString)).ToString("N2") %>' runat="server"></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 h5 text-right">
|
||||
Importe: $<asp:Label Text="0.00" ID="LbNCInvImporteAlmacen" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabContainer>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel ID="UpFooterFacturaNC" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button Text="Guardar" ID="BtnFacturaNC" OnClick="BtnFacturaNC_Click" CssClass="btn btn-primary" ValidationGroup="GrpFacturaNC" runat="server" />
|
||||
<asp:Button Text="Guardar" ID="BtnFacturaNC" OnClick="BtnFacturaNC_Click" CssClass="btn btn-primary" ValidationGroup="GrpFacturaNC" runat="server" Visible="false" />
|
||||
<asp:Button Text="Aplicar NC" ID="BtnNCInvAlmacen" OnClick="BtnNCInvAlmacen_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalNCInv" runat="server" Visible="false" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
@@ -4815,13 +4946,11 @@
|
||||
<asp:UpdatePanel ID="UPPSolDev" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header">
|
||||
<h4>
|
||||
Productos a devolver
|
||||
<h4>Productos a devolver
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
@@ -4835,8 +4964,8 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="Cantidad" HeaderText="Total" />
|
||||
<asp:BoundField DataField="UM" headertext="UM" />
|
||||
<asp:BoundField DataField="CodigoPS" headertext="Producto" />
|
||||
<asp:BoundField DataField="UM" HeaderText="UM" />
|
||||
<asp:BoundField DataField="CodigoPS" HeaderText="Producto" />
|
||||
<asp:BoundField DataField="Total" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
@@ -4867,7 +4996,7 @@
|
||||
<div class="col-md-1" style="width: 100%">
|
||||
<asp:RadioButtonList ID="RblGastosVincularCrear" runat="server" OnSelectedIndexChanged="RblGastosVincularCrear_Click" AutoPostBack="true" CssClass="GastoIndirectoOpciones" RepeatDirection="Horizontal">
|
||||
<asp:ListItem Text="Gasto y Servicios" Value="1" />
|
||||
<asp:ListItem Text="Costo Indirecto/Importaciones" Value="0" selected="True" />
|
||||
<asp:ListItem Text="Costo Indirecto/Importaciones" Value="0" Selected="True" />
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
</div>
|
||||
@@ -5278,7 +5407,9 @@
|
||||
</div>
|
||||
|
||||
<div class="col-md-10" style="text-align: right!important">Sub Total: </div>
|
||||
<div class="col-md-2"><asp:Label runat="server" ClientIDMode="Static" id="LblTotalContrato"></asp:Label></div>
|
||||
<div class="col-md-2">
|
||||
<asp:Label runat="server" ClientIDMode="Static" ID="LblTotalContrato"></asp:Label>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
@@ -5809,6 +5940,7 @@
|
||||
alert("El Importe no debe de exceder a el saldo.[" + Sumatoria + " " + saldoAmortizacion + "]");
|
||||
}
|
||||
$('#C_LbNCInvImporte').text(FormatoNumero(Sumatoria, 2));
|
||||
$('#C_LbNCInvImporteAlmacen').text(FormatoNumero(Sumatoria, 2));
|
||||
}
|
||||
|
||||
function SumaValoresInvNC() {
|
||||
|
||||
@@ -8295,6 +8295,16 @@ Partial Class Compras_Compras
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
For Each Gvr As GridViewRow In GVNCInvAlmacen.Rows
|
||||
If Gvr.FCTextBox("TxtCantidadNCInv").Text.ToDouble > 0 Then
|
||||
If Not ObjCompras.ComprasDetalleDevolucionesAdd(Gvr.DataKey("CveCompraDetalle").ToEntero, CveCompra, Gvr.FCTextBox("TxtCantidadNCInv").Text.ToDouble, UsuarioActual.CveEmpresa) Then
|
||||
ErrorMovInv = True
|
||||
Exit For
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
End If
|
||||
|
||||
|
||||
@@ -18816,6 +18826,7 @@ Partial Class Compras_Compras
|
||||
HLAplicaNCFact.Visible = True
|
||||
LblTotalNC.Text = TxtTotal.Text.FormatoNumero
|
||||
CargaCuentasXPagar()
|
||||
TabModoNC_ActiveTabChanged(TabModoNC, EventArgs.Empty)
|
||||
End Sub
|
||||
|
||||
Private Sub CargaCuentasXPagar()
|
||||
@@ -18949,6 +18960,9 @@ Partial Class Compras_Compras
|
||||
ChkNCInv.Visible = True
|
||||
GVNCInv.DataSource = DtPendientesAlmacen
|
||||
GVNCInv.DataBind()
|
||||
|
||||
GVNCInvAlmacen.DataSource = DtPendientesAlmacen
|
||||
GVNCInvAlmacen.DataBind()
|
||||
End If
|
||||
|
||||
End If
|
||||
@@ -18978,20 +18992,22 @@ Partial Class Compras_Compras
|
||||
SaldoAnticipo += gvr.FCTextBox("TxtAnticipo").Text.ToDouble
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
|
||||
|
||||
If SaldoAnticipo <= 0 Then
|
||||
Alert("No hay movimientos seleccionados para aplicar", TipoMensaje.MsgAdvertencia)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
LbNCInvSaldo.Text = SaldoAnticipo.FormatoNumero()
|
||||
LbNCInvSaldoAlmacen.Text = SaldoAnticipo.FormatoNumero()
|
||||
|
||||
If ChkNCInvNC.Checked Then
|
||||
Dim ObjInventarios As New ClsInventarios
|
||||
If ObjInventarios.RecepcionAlmacenGet(-1, -1, UsuarioActual.CveEmpresa, CveProveedor) AndAlso ObjInventarios.DtResultados.FiltraParametros($"CveCompra IN ({CveCompras}) AND CantidadF > 0").Rows.Count > 0 Then
|
||||
DtPendientesAlmacen = ObjInventarios.DtResultados.FiltraParametros($"CveCompra IN ({CveCompras}) AND CantidadF > 0").Copy
|
||||
If ObjInventarios.RecepcionAlmacenGet(-1, -1, UsuarioActual.CveEmpresa, CveProveedor) AndAlso ObjInventarios.DtResultados.FiltraParametros($"CantidadF > 0").Rows.Count > 0 Then
|
||||
DtPendientesAlmacen = ObjInventarios.DtResultados.FiltraParametros($"CantidadF > 0").Copy
|
||||
End If
|
||||
ObjInventarios.Dispose()
|
||||
End If
|
||||
@@ -19000,10 +19016,12 @@ Partial Class Compras_Compras
|
||||
If ChkNCInvNC.Checked Then
|
||||
GVNCInv.DataSource = DtPendientesAlmacen
|
||||
GVNCInv.DataBind()
|
||||
UpNCInv.Update()
|
||||
RegistraScript("$('#FacturaNC').modal('hide');", "FacturaNC")
|
||||
|
||||
GVNCInvAlmacen.DataSource = DtPendientesAlmacen
|
||||
GVNCInvAlmacen.DataBind()
|
||||
|
||||
End If
|
||||
RegistraScript("$('#ModalNCInv').modal('show');", "ModalNCInv")
|
||||
|
||||
Else
|
||||
If ChkNCInvNC.Checked Then
|
||||
Alert("Niguna de las facturas seleccionadas cuenta con productos pendientes de darles entrada.", TipoMensaje.MsgAdvertencia)
|
||||
@@ -19016,14 +19034,22 @@ Partial Class Compras_Compras
|
||||
End If
|
||||
|
||||
UpNCInv.Update()
|
||||
UpFacturaNC.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub GVNCInv_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GVNCInv.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
'e.Row.FCCheckBox("cbInv").Attributes.Add("onclick", "FnCambiaInvNC(this);")
|
||||
e.Row.FCTextBox("TxtCantidadNCInv").Attributes.Add("onkeyup", $"ValidarCantidad(this,{e.Row.DBCampo("CantidadF")});FnCambiaInvNC(this);")
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub GVNCInvAlmacen_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GVNCInvAlmacen.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
'e.Row.FCCheckBox("cbInv").Attributes.Add("onclick", "FnCambiaInvNC(this);")
|
||||
e.Row.FCTextBox("TxtCantidadNCInv").Attributes.Add("onkeyup", $"ValidarCantidad(this,{e.Row.DBCampo("CantidadF")});FnCambiaInvNC(this);")
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub BtnNCInv_Click(sender As Object, e As EventArgs)
|
||||
|
||||
If ChkNCInvNC.Checked Then
|
||||
@@ -19081,6 +19107,34 @@ Partial Class Compras_Compras
|
||||
Protected Sub BtnNCConfirmacion_Click(sender As Object, e As EventArgs)
|
||||
GuardaAnticipos(Nothing, Nothing)
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnNCInvAlmacen_Click(sender As Object, e As EventArgs)
|
||||
|
||||
'Dim ObjCompras As New ClsCompras
|
||||
'Dim ObjConta As New ClsContabilidad(ObjCompras.IniciaTransacSQL)
|
||||
'Dim TieneError = False
|
||||
|
||||
'For Each Gvr As GridViewRow In GVNCInvAlmacen.Rows
|
||||
' If Gvr.FCTextBox("TxtCantidadNCInv").Text.ToDouble > 0 Then
|
||||
' If Not ObjCompras.ComprasDetalleDevolucionesAdd(Gvr.DataKey("CveCompraDetalle").ToEntero, Gvr.DataKey("CveCompra").ToEntero, Gvr.FCTextBox("TxtCantidadNCInv").Text.ToDouble, UsuarioActual.CveEmpresa) Then
|
||||
' TieneError = True
|
||||
' Exit For
|
||||
' End If
|
||||
' End If
|
||||
'Next
|
||||
|
||||
'If Not TieneError Then
|
||||
' Alert("Se guardo la devolución correctamente", TipoMensaje.MsgInformacion)
|
||||
' ObjCompras.Commit()
|
||||
'Else
|
||||
' Alert("Ocurrió un error al guardar la devolución", TipoMensaje.MsgError)
|
||||
' ObjCompras.RollBack()
|
||||
'End If
|
||||
|
||||
'ObjCompras.Dispose()
|
||||
RegistraScript("$('#FacturaNC').modal('hide');", "ModalNCInv")
|
||||
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
#Region " INVENTARIO: MOVIMIENTOS DE LA COMPRA "
|
||||
@@ -20228,6 +20282,10 @@ Partial Class Compras_Compras
|
||||
Protected Sub BtnFacturaNC_Click(sender As Object, e As EventArgs)
|
||||
If ChkNCInvNC.Checked Then
|
||||
CargaNCINV()
|
||||
|
||||
TabModoNC.ActiveTabIndex = 1
|
||||
TabModoNC_ActiveTabChanged(TabModoNC, EventArgs.Empty)
|
||||
UpFacturaNC.Update()
|
||||
Else
|
||||
RegistraScript("$('#FacturaNC').modal('hide');", "FacturaNC")
|
||||
End If
|
||||
@@ -20721,6 +20779,20 @@ Partial Class Compras_Compras
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub TabModoNC_ActiveTabChanged(sender As Object, e As EventArgs)
|
||||
Select Case TabModoNC.ActiveTabIndex
|
||||
Case 0
|
||||
BtnFacturaNC.Visible = True
|
||||
BtnNCInvAlmacen.Visible = False
|
||||
TabNCAlmacen.Enabled = False
|
||||
Case 1
|
||||
BtnFacturaNC.Visible = False
|
||||
BtnNCInvAlmacen.Visible = True
|
||||
TabNCAlmacen.Enabled = True
|
||||
End Select
|
||||
|
||||
UpFooterFacturaNC.Update()
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
Public Class MMensajeDevolucion
|
||||
|
||||
@@ -1153,6 +1153,29 @@ Partial Class PopUpVerFactura
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso (Vta.DtDocumentosRelacionados Is Nothing OrElse Vta.DtDocumentosRelacionados.Rows.Count = 0) Then
|
||||
If ObjVentas.GetVentasRelacionadas(CveVenta, UsuarioActual.CveEmpresa) Then
|
||||
Vta.DtNCVinculadas = ObjVentas.DtResultados
|
||||
Vta.DtDocumentosRelacionados = ObjVentas.DtResultados '.FiltraParametros("FolioFiscal IS NOT NULL")
|
||||
If Vta.DtDocumentosRelacionados.Rows.Count > 0 Then
|
||||
If Vta.TipoDocto.Contiene("Ing") Then
|
||||
Vta.Timbre.CFDIRelacionados.TipoRelacion = "01"
|
||||
Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Nota de Crédito aplicada a Ingreso"
|
||||
End If
|
||||
|
||||
If Vta.TipoDocto.Contiene("Egs") Then
|
||||
Vta.Timbre.CFDIRelacionados.TipoRelacion = "01"
|
||||
Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Nota de Crédito aplicada a Ingreso"
|
||||
End If
|
||||
|
||||
If Vta.TipoDocto.Contiene("Dev") Then
|
||||
Vta.Timbre.CFDIRelacionados.TipoRelacion = "03"
|
||||
Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Devolución aplicada a Ingreso"
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
'If UsuarioActual.CveEmpresa.Contiene(72, 80, 119) Then
|
||||
|
||||
@@ -3981,7 +3981,7 @@ Partial Class Ventas
|
||||
|
||||
Dim TipoEstatus As Integer = GlobalDTEstatusFactura().FiltroPrimeroValor("TipoEstatus", $"CveEstatusFactura = {CveEstatus}").ToEntero()
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(135) = "1" AndAlso DdlTipoComprobante.SelectedValue.Contiene("Cot") AndAlso TipoEstatus = 5 Then
|
||||
If UsuarioActual.Empresa.Funcionalidad(135).Contiene("1", "2") AndAlso DdlTipoComprobante.SelectedValue.Contiene("Cot") AndAlso TipoEstatus = 5 Then
|
||||
If UsuarioActual.TienePermisoProceso(159) Then
|
||||
Dim TienePermiso As String = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, -1).FiltroPrimeroValor("CveSubProyecto", String.Format("CveSubProyecto = {0}", DbRowVenta("CveSubProyecto")))
|
||||
If TienePermiso <> "" Then
|
||||
@@ -4087,7 +4087,7 @@ Partial Class Ventas
|
||||
End If
|
||||
|
||||
|
||||
|
||||
'SI LA AUTORIZACION ES POR SUPERVISOR, BUSCA EL SUPERVISOR QUE TIENE EL VENDEDOR
|
||||
If UsuarioActual.Empresa.Funcionalidad(135) = "1" Then
|
||||
'Reviso cuales son los supervisores
|
||||
Dim Objeto As New ClsVtaVendedores
|
||||
@@ -4104,7 +4104,7 @@ Partial Class Ventas
|
||||
|
||||
If TipoEstatus = 2 Then
|
||||
LkCotizacionAutorizar.Visible = False
|
||||
ElseIf TipoEstatus = 2 Then
|
||||
ElseIf TipoEstatus = 5 Then
|
||||
LkCotizacionAutorizar.Visible = False
|
||||
End If
|
||||
End If
|
||||
@@ -4113,8 +4113,18 @@ Partial Class Ventas
|
||||
Objeto.Dispose()
|
||||
End If
|
||||
|
||||
String.Format("CveVendedor = {0}", DbRowVenta("CveVendedor").ToString())
|
||||
|
||||
'SI LA AUTORIZACION ES POR PERMISO, BUSCA QUE EL USUARIO TENGA EL PERMISO PARA AUTORIZAR
|
||||
If UsuarioActual.Empresa.Funcionalidad(135) = "2" Then
|
||||
'Reviso cuales son los supervisores
|
||||
If UsuarioActual.TienePermisoProceso(116) Then
|
||||
LkCotizacionAutorizar.Visible = True
|
||||
If TipoEstatus = 2 Then
|
||||
LkCotizacionAutorizar.Visible = False
|
||||
ElseIf TipoEstatus = 5 Then
|
||||
LkCotizacionAutorizar.Visible = False
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
Case "Ant"
|
||||
Trsaldo.Visible = True
|
||||
@@ -4872,8 +4882,10 @@ Partial Class Ventas
|
||||
|
||||
|
||||
'Verifico si tiene la funcionalidad (135)
|
||||
If DdlTipoComprobante.SelectedValue = "Cot" AndAlso UsuarioActual.Empresa.Funcionalidad(135) = "1" Then
|
||||
'Reviso cuales son los supervisores
|
||||
If DdlTipoComprobante.SelectedValue = "Cot" AndAlso UsuarioActual.Empresa.Funcionalidad(135).Contiene("1", "2") Then
|
||||
|
||||
Select Case UsuarioActual.Empresa.Funcionalidad(135)
|
||||
Case "1" ' POR SUPERVISOR
|
||||
Dim ObjVendedores As New ClsVtaVendedores
|
||||
|
||||
If ObjVendedores.GetVendedores(UsuarioActual.CveEmpresa) Then
|
||||
@@ -4896,6 +4908,21 @@ Partial Class Ventas
|
||||
DTVendedores.Dispose()
|
||||
End If
|
||||
ObjVendedores.Dispose()
|
||||
|
||||
Case "2" ' POR PERMISO
|
||||
If UsuarioActual.TienePermisoProceso(116) Then
|
||||
If GlobalDTEstatusFactura().FiltroPrimeroValor("TipoEstatus", $"CveEstatusFactura = {Me.CveEstatus}").ToEntero() = 2 Then
|
||||
BtnsFacturar.Visible = True
|
||||
BtnGenerarRemision.Visible = True
|
||||
Else
|
||||
BtnsFacturar.Visible = False
|
||||
BtnGenerarRemision.Visible = False
|
||||
End If
|
||||
End If
|
||||
|
||||
End Select
|
||||
|
||||
|
||||
End If
|
||||
|
||||
If DdlTipoComprobante.SelectedValue = "Cot" Then
|
||||
@@ -10131,6 +10158,8 @@ Partial Class Ventas
|
||||
End If
|
||||
End If
|
||||
|
||||
tPS = tPS.Replace("|", " ")
|
||||
|
||||
If tPS.Length >= 1000 Then
|
||||
Dim tPSRecortado = tPS.Remove(999, tPS.Length - 999)
|
||||
tPS = tPSRecortado
|
||||
@@ -15478,7 +15507,7 @@ Partial Class Ventas
|
||||
TrAlmacenAsignado.Visible = False
|
||||
TrAlmacenOrigen.Visible = False
|
||||
|
||||
If DdlTipoComprobante.SelectedValue = "Cot" And UsuarioActual.Empresa.Funcionalidad(135) = "1" Then
|
||||
If DdlTipoComprobante.SelectedValue = "Cot" And UsuarioActual.Empresa.Funcionalidad(135).Contiene("1", "2") Then
|
||||
Alert("Se ocupa una autorización.", TipoMensaje.MsgAdvertencia)
|
||||
TrDireccion.Visible = False
|
||||
TrCiudad.Visible = False
|
||||
@@ -21210,8 +21239,14 @@ Partial Class Ventas
|
||||
ObjVentas.Dispose()
|
||||
|
||||
If ActualizoEstatus Then
|
||||
'GeneraPDFCotizacion(True)
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(135) = "1" Then
|
||||
GeneraPDFCotizacion(True)
|
||||
Alert("La cotización ha sido enviada al correo de nuestro cliente:" & Mail)
|
||||
ElseIf UsuarioActual.Empresa.Funcionalidad(135) = "2" Then
|
||||
Alert("La cotización ha sido autorizada.")
|
||||
End If
|
||||
|
||||
Else
|
||||
Alert("No se pudo autorizar la cotización", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user