Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -274,4 +274,7 @@ __pycache__/
|
|||||||
/App_WebReferences/WSRDLC
|
/App_WebReferences/WSRDLC
|
||||||
/wwwSIGGIT.rar
|
/wwwSIGGIT.rar
|
||||||
/Front
|
/Front
|
||||||
|
/PortalCliente/ePagos/
|
||||||
|
|
||||||
|
vwd.webinfo
|
||||||
/Bin.rar
|
/Bin.rar
|
||||||
|
|||||||
@@ -55,223 +55,346 @@
|
|||||||
<asp:UpdatePanel ID="UpFiltro" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpFiltro" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="col-md-4 ">
|
<div class="row">
|
||||||
<div class="portlet light bordered xspadding">
|
|
||||||
<div class="portlet-title">
|
<div class="col-md-4 ">
|
||||||
<div class="caption font-green">
|
<div class="portlet light bordered xspadding">
|
||||||
<i class="fa fa-table font-green"></i>
|
<div class="portlet-title">
|
||||||
<span class="caption-subject bold uppercase"><asp:Label runat="server" ID="LblSubProyecto2"></asp:Label></span>
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-table font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">
|
||||||
|
<asp:Label runat="server" ID="LblSubProyecto2"></asp:Label></span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<%--<asp:Button ID="BtnCargarClientes" runat="server" ClientIDMode="Static" Text="CargarClientes" Style="display: none;" class="btn btn-success" />--%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="portlet-body form">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlSubProyecto" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" AutoPostBack="true" OnSelectedIndexChanged="DdlSubProyecto_SelectedIndexChanged"></asp:DropDownList>
|
||||||
|
<label for="<%= DdlSubProyecto.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="LblSubProyecto" Text=""></asp:Label>
|
||||||
|
</label>
|
||||||
|
<i></i>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVDdlSubProyecto" runat="server" InitialValue="-1" ControlToValidate="DdlSubProyecto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlAF" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="CodDesc" DataValueField="CveActivoFijo" ></asp:DropDownList>
|
||||||
|
<label for="<%= DdlAF.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="LblAF" Text="Equipo A.F."></asp:Label>
|
||||||
|
</label>
|
||||||
|
<i></i>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVDdlAF" runat="server" InitialValue="-1" ControlToValidate="DdlAF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Equipo A.F.''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlTipoServicio" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="Nombre" DataValueField="CveTipoServicio"></asp:DropDownList>
|
||||||
|
<label for="<%= DdlTipoServicio.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="LblTipoServicio" Text="Tipo"></asp:Label>
|
||||||
|
</label>
|
||||||
|
<i></i>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVDdlTipoServicio" runat="server" InitialValue="-1" ControlToValidate="DdlAF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Equipo A.F.''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtServicio" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
|
<asp:Label AssociatedControlID="TxtServicio" runat="server" Text="Servicio"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVTxtServicio" runat="server" ControlToValidate="TxtServicio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<div class="btn-group">
|
<div class="col-md-4 ">
|
||||||
<%--<asp:Button ID="BtnCargarClientes" runat="server" ClientIDMode="Static" Text="CargarClientes" Style="display: none;" class="btn btn-success" />--%>
|
<div class="portlet light bordered xspadding">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-table font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">
|
||||||
|
<asp:Label runat="server" ID="Label1"></asp:Label></span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<%--<asp:Button ID="BtnCargarClientes" runat="server" ClientIDMode="Static" Text="CargarClientes" Style="display: none;" class="btn btn-success" />--%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="portlet-body form">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlPrioridad" CssClass="form-control input-sm select2me" Width="100%" runat="server" >
|
||||||
|
<asp:ListItem Value="1">Baja</asp:ListItem>
|
||||||
|
<asp:ListItem Value="2">Media</asp:ListItem>
|
||||||
|
<asp:ListItem Value="3">Alta</asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlPrioridad.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="LblPrioridad" Text="Prioridad"></asp:Label>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<label for="<%= txtFechaI.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="LblFechaInicio" Text="Fecha Inicio"></asp:Label>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Width="100px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div runat="server" id="DVFechaFin" visible="false" class="form-group form-md-line-input input-iconright">
|
||||||
|
<label for="<%= txtFechaF.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="LblFechaFin" Text="Fecha Fin"></asp:Label>
|
||||||
|
</label>
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Width="100px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<%--<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>--%>
|
||||||
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||||
|
<%--<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>--%>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div runat="server" id="DVEstatus" visible="true" class="form-group form-md-line-input input-iconright" >
|
||||||
|
<asp:DropDownList ID="DdlOrdenesTrabajoEstatus" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="EstatusOT" DataValueField="CveEstatusOT" >
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlOrdenesTrabajoEstatus.ClientID.ToString()%>">
|
||||||
|
<asp:Label runat="server" ID="Label2" Text="Estatus"></asp:Label>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%" Visible="false">
|
||||||
|
|
||||||
|
<ajax:TabPanel ID="TabMaterial" runat="server" HeaderText="Material">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpGvMaterial" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<asp:GridView ID="GvMaterial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
||||||
|
OnRowDataBound="GvMaterial_RowDataBound"
|
||||||
|
DataKeyNames="CveMaterial,Cantidad,CvePS,Importe"
|
||||||
|
GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
|
||||||
|
<asp:BoundField DataField="Cantidad" ItemStyle-Width="15%" HeaderText="Cantidad" />
|
||||||
|
<asp:BoundField DataField="Abreviatura" ItemStyle-Width="15%" HeaderText="U.M." />
|
||||||
|
<asp:TemplateField ItemStyle-Width="45%" HeaderText="Producto">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LblPS" runat="server" Text='<%# Eval("PS") %>' Width="220px"></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField ItemStyle-Width="45%" HeaderText="Importe">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtImporte" runat="server" Text='<%# Eval("Importe") %>' Width="100px"></asp:TextBox>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
<ajax:TabPanel ID="TabActividades" runat="server" HeaderText="Actividades" >
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpGvActividades" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
||||||
|
OnRowDataBound="GvActividades_RowDataBound"
|
||||||
|
DataKeyNames="CveOrdenTrabajoActividad,CveActividad,Terminado" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="">
|
||||||
|
<ItemStyle Width="20px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox runat="server" ID="Chk" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:BoundField DataField="Actividad" ItemStyle-Width="30%" HeaderText="Detalle" />
|
||||||
|
<asp:BoundField DataField="Duracion" ItemStyle-Width="30%" HeaderText="Duración (hrs)" />
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Observaciones">
|
||||||
|
<ItemStyle Width="300px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox runat="server" ID="Observaciones" Text='<%# Eval("Observaciones") %>' Width="300px" MaxLength="200"></asp:TextBox>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<%-- <asp:BoundField DataField="Nombre" ItemStyle-Width="30%" HeaderText="Actividad" />
|
||||||
|
<asp:BoundField DataField="Puesto" ItemStyle-Width="30%" HeaderText="Puesto" />--%>
|
||||||
|
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<div class="portlet-body form">
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
</div>
|
||||||
<asp:DropDownList ID="DdlTipoServicio" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="Nombre" DataValueField="CveTipoServicio" ></asp:DropDownList>
|
|
||||||
<label for="<%= DdlTipoServicio.ClientID.ToString()%>">
|
|
||||||
<asp:Label runat="server" ID="LblTipo" Text="Tipo"></asp:Label>
|
|
||||||
</label>
|
|
||||||
<i></i>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVDdlTipoServicio" runat="server" InitialValue="-1" ControlToValidate="DdlTipoServicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
</div>
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
<ajax:TabPanel ID="TabCheckList" runat="server" HeaderText="Check List">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpGvCheckList" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView ID="GvCheckList" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
||||||
|
OnRowDataBound="GvCheckList_RowDataBound"
|
||||||
|
DataKeyNames="CveOrdenTrabajoCheckList,CveCheckListActividad,CheckListActividadGrupo,Observaciones,Estatus,Terminado"
|
||||||
|
GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="">
|
||||||
|
<ItemStyle Width="20px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox runat="server" ID="Chk" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="No.">
|
||||||
|
<ItemStyle Width="200px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlNROW" runat="server" Text='<%# Eval("NROWO")%>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Componentes Inspección">
|
||||||
|
<ItemStyle Width="350px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlCheckListActividad" runat="server" Text='<%# Eval("CheckListActividad")%>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtDescripcion" runat="server" MaxLength="30"></asp:TextBox>
|
<asp:TemplateField HeaderText="Condiciones operativas" ItemStyle-HorizontalAlign="Center">
|
||||||
<asp:Label AssociatedControlID="TxtDescripcion" runat="server" Text="Descripción:"></asp:Label>
|
<ItemStyle Width="180px" />
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtDescripcion" runat="server" ControlToValidate="TxtDescripcion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<HeaderTemplate>
|
||||||
<i></i>
|
<table style="width:180px">
|
||||||
</div>
|
<tr><td colspan="3">Condiciones Operativas</td></tr>
|
||||||
|
<tr>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<td style="width:60px">Si</td>
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtDuracion" runat="server" MaxLength="30"></asp:TextBox>
|
<td style="width:60px">No</td>
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtDuracion" FilterType="Numbers,Custom" InvalidChars="-*+" ValidChars="1234567890." />
|
<td style="width:60px">ND</td>
|
||||||
<asp:Label AssociatedControlID="TxtDuracion" runat="server" Text="Duración:"></asp:Label>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" ControlToValidate="TxtDuracion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Duración''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
</tr>
|
||||||
<i></i>
|
</table>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<asp:RadioButtonList ID="RDLSINOND" runat="server" RepeatDirection="Horizontal" Width="180px" >
|
||||||
|
<asp:ListItem Value="1" ><label style="width:30px!important"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="2"><label style="width:30px!important"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="3"><label style="width:30px!important"></asp:ListItem>
|
||||||
|
</asp:RadioButtonList>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Observaciones">
|
||||||
|
<ItemStyle Width="300px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox runat="server" ID="TxtObservaciones" Text='<%# Eval("Observaciones") %>' Width="300px" MaxLength="200"></asp:TextBox>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</ajax:TabContainer>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
|
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="Listado de metricas" CssClass="table table-smallpadding Widthall"
|
|
||||||
DataKeyNames="CveActivoFijo,Unidad,CvePersonaResponsable"
|
|
||||||
GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Unidad">
|
|
||||||
<ItemStyle Width="350px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Unidad")%>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica1" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica1" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica2" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica2" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica3" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica3" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica4" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica4" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica5" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica5" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica6" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica6" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica7" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica7" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica8" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica8" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica9" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica9" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica10" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica10" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica11" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica11" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica12" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica12" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica13" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica13" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica14" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica14" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField >
|
|
||||||
<ItemStyle Width="90px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtMetrica15" runat="server"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtMetrica15" FilterType="Numbers,Custom" FilterMode="ValidChars" ValidChars="0123456789." />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Operador">
|
|
||||||
<ItemStyle Width="350px" />
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:DropDownList ID="DDLPersonal" CssClass="form-control input-sm select2me" runat="server" Width="100%" DataTextField="Nombre" DataValueField="CvePersonal"></asp:DropDownList>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px" HeaderText="Opciones" Visible="false">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="LnkEliminarMetricaValor" OnClick="LnkEliminarMetricaValor_Click" runat="server" AlternateText="Eliminar" CausesValidation="False" CssClass="btn btn-circle btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -318,13 +441,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<br />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12" style="text-align:center">
|
<div class="col-md-12" style="text-align:center">
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" CssClass="btn btn-primary" OnClick="BtnGuardar_Click" Visible="false" />
|
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" CssClass="btn btn-primary" OnClick="BtnGuardar_Click" Visible="true" />
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ Partial Class AF_OrdenTrabajo
|
|||||||
|
|
||||||
If Request("CveOrdenTrabajo") IsNot Nothing Then
|
If Request("CveOrdenTrabajo") IsNot Nothing Then
|
||||||
CveOrdenTrabajo = Request("CveOrdenTrabajo").ToEntero
|
CveOrdenTrabajo = Request("CveOrdenTrabajo").ToEntero
|
||||||
|
Tab.Visible = True
|
||||||
|
CargaDatos()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CargaCombos()
|
CargaCombos()
|
||||||
@@ -50,6 +52,15 @@ Partial Class AF_OrdenTrabajo
|
|||||||
#Region " CARGA COMBOS "
|
#Region " CARGA COMBOS "
|
||||||
Protected Sub CargaCombos()
|
Protected Sub CargaCombos()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyecto)
|
||||||
|
|
||||||
|
DdlAF.DataSource = GlobalDTActivoFijos(UsuarioActual.CveEmpresa, -1)
|
||||||
|
DdlAF.DataBind()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim ObjAF As New ClsAF
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
If ObjAF.GetTiposServicios(-1, -1, -1, UsuarioActual.CveEmpresa) Then
|
If ObjAF.GetTiposServicios(-1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
@@ -58,10 +69,21 @@ Partial Class AF_OrdenTrabajo
|
|||||||
DdlTipoServicio.DataSource = Nothing
|
DdlTipoServicio.DataSource = Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If ObjAF.GetOrdenesTrabajoEstatus(UsuarioActual.CveEmpresa) Then
|
||||||
|
DdlOrdenesTrabajoEstatus.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
DdlOrdenesTrabajoEstatus.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
ObjAF.Dispose()
|
ObjAF.Dispose()
|
||||||
|
|
||||||
DdlTipoServicio.DataBind()
|
DdlTipoServicio.DataBind()
|
||||||
|
DdlOrdenesTrabajoEstatus.DataBind()
|
||||||
|
|
||||||
DdlTipoServicio.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
DdlTipoServicio.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||||
|
DdlOrdenesTrabajoEstatus.SelectedValueExist(1)
|
||||||
|
|
||||||
UpFiltro.Update()
|
UpFiltro.Update()
|
||||||
|
|
||||||
@@ -85,26 +107,15 @@ Partial Class AF_OrdenTrabajo
|
|||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
|
||||||
Dim ObjAF As New ClsAF
|
CargaMaterial()
|
||||||
|
CargaActividades()
|
||||||
|
CargaCheckList()
|
||||||
ObjAF.Dispose()
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub LnkEliminarMetricaValor_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkEliminarMetricaValor_Click(sender As Object, e As EventArgs)
|
||||||
@@ -114,6 +125,34 @@ Partial Class AF_OrdenTrabajo
|
|||||||
|
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
If CveOrdenTrabajo <= 0 Then
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjAF As New ClsAF
|
||||||
|
ObjAF.IniciaTransacSQL()
|
||||||
|
Dim ErrorProceso As Boolean = False
|
||||||
|
|
||||||
|
If Not ObjAF.AddOrdenesTrabajo(DdlTipoServicio.SelectedValue.ToEntero, DdlAF.SelectedValue.ToEntero, TxtServicio.Text.Trim, DdlSubProyecto.SelectedValue.ToEntero, DdlPrioridad.SelectedValue.ToEntero, txtFechaI.Text.ToDate, MaxFecha, MaxFecha, DdlOrdenesTrabajoEstatus.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not ErrorProceso Then
|
||||||
|
ObjAF.Commit()
|
||||||
|
Alert($"Orden de trabajo guardada corectamente <a href='./OrdenTrabajo.aspx?CveOrdenTrabajo={ObjAF.CveOrdenTrabajo}' class='Texto'> Folio {ObjAF.FolioOT}</a>")
|
||||||
|
Else
|
||||||
|
ObjAF.RollBack()
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ObjAF.Dispose()
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -282,4 +321,153 @@ Partial Class AF_OrdenTrabajo
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#Region "FOLIOS"
|
||||||
|
|
||||||
|
|
||||||
|
Private Function CargaFolios() As Boolean
|
||||||
|
|
||||||
|
Dim Respuesta As Boolean = False
|
||||||
|
|
||||||
|
If DdlSubProyecto.SelectedValue.ToEntero() <= 0 Then
|
||||||
|
Alert("No se tienen asignadas sucursales", TipoMensaje.MsgError)
|
||||||
|
Return False
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim ObjFolios As New ClsGralFolios()
|
||||||
|
|
||||||
|
If ObjFolios.GetFolios("OT", UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
Dim DT As DataTable = ObjFolios.DtResultados.FiltraParametros(String.Format(" CveSubProyecto = {0} And Estado = 'Activo'", DdlSubProyecto.SelectedValue))
|
||||||
|
|
||||||
|
If DT.Rows.Count > 0 Then
|
||||||
|
Respuesta = True
|
||||||
|
Else
|
||||||
|
|
||||||
|
Alert("No tiene registrados Folios para " & DdlSubProyecto.SelectedItem.Text & " ", TipoMensaje.MsgAdvertencia)
|
||||||
|
End If
|
||||||
|
|
||||||
|
DT.Dispose()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjFolios.Dispose()
|
||||||
|
|
||||||
|
|
||||||
|
Return Respuesta
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub DdlSubProyecto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
If CargaFolios() Then
|
||||||
|
BtnGuardar.Enabled = True
|
||||||
|
Else
|
||||||
|
BtnGuardar.Enabled = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
UpGuardar.Update()
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub CargaMaterial()
|
||||||
|
|
||||||
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
|
If ObjAF.GetOrdenesTrabajoMateriales(CveOrdenTrabajo, UsuarioActual.CveEmpresa) Then
|
||||||
|
GvMaterial.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
GvMaterial.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjAF.Dispose()
|
||||||
|
|
||||||
|
GvMaterial.DataBind()
|
||||||
|
UpGvMaterial.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaActividades()
|
||||||
|
|
||||||
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
|
|
||||||
|
If ObjAF.GetOrdenesTrabajoActividades(CveOrdenTrabajo, UsuarioActual.CveEmpresa) Then
|
||||||
|
GvActividades.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
GvActividades.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjAF.Dispose()
|
||||||
|
|
||||||
|
GvActividades.DataBind()
|
||||||
|
UpGvActividades.Update()
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaCheckList()
|
||||||
|
|
||||||
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
|
|
||||||
|
If ObjAF.GetOrdenesTrabajoCheckList(CveOrdenTrabajo, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
|
||||||
|
GvCheckList.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
GvCheckList.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjAF.Dispose()
|
||||||
|
|
||||||
|
GvCheckList.DataBind()
|
||||||
|
UpGvCheckList.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub GvMaterial_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Protected Sub GvActividades_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Protected Sub GvCheckList_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
|
Dim Chk As CheckBox = e.Row.FCCheckBox("Chk")
|
||||||
|
Dim RDLSINOND As RadioButtonList = e.Row.FCRadioButtonList("RDLSINOND")
|
||||||
|
Dim TxtObservaciones As TextBox = e.Row.FCTextBox("TxtObservaciones")
|
||||||
|
|
||||||
|
If e.Row.DataKey("CveOrdenTrabajoCheckList").ToEntero = 0 Then
|
||||||
|
|
||||||
|
e.Row.FCLiteral("LtlNROW").Text = e.Row.DataKey("CheckListActividadGrupo").ToString
|
||||||
|
|
||||||
|
e.Row.Attributes.Add("style", "background-color:#DDD")
|
||||||
|
|
||||||
|
Chk.Visible = False
|
||||||
|
RDLSINOND.Visible = False
|
||||||
|
TxtObservaciones.Visible = False
|
||||||
|
Else
|
||||||
|
|
||||||
|
If Boolean.Parse(e.Row.DataKey("Terminado")) Then
|
||||||
|
Chk.Checked = True
|
||||||
|
Else
|
||||||
|
Chk.Checked = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table.dataTable {
|
.table.dataTable {
|
||||||
margin-top: 0px !important;
|
margin-top: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_scrollBody table th {
|
.dataTables_scrollBody table th {
|
||||||
@@ -81,36 +81,24 @@
|
|||||||
|
|
||||||
<div class="portlet-body form">
|
<div class="portlet-body form">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtTipoServicio" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
||||||
<asp:Label AssociatedControlID="TxtTipoServicio" runat="server" Text="Tipo:"></asp:Label>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtTipoServicio" runat="server" ControlToValidate="TxtTipoServicio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<i></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtDescripcion" runat="server" MaxLength="30"></asp:TextBox>
|
|
||||||
<asp:Label AssociatedControlID="TxtDescripcion" runat="server" Text="Descripción:"></asp:Label>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVDdlTipoMantenimiento" InitialValue="-1" runat="server" ControlToValidate="TxtDescripcion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<i></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:DropDownList ID="DdlTipoMantenimiento" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="TipoMantenimiento" DataValueField="CveTipoMantenimiento"></asp:DropDownList>
|
<asp:DropDownList ID="DdlTipoMantenimiento" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="TipoMantenimiento" DataValueField="CveTipoMantenimiento"></asp:DropDownList>
|
||||||
<label for="<%= DdlTipoMantenimiento.ClientID.ToString()%>">
|
<label for="<%= DdlTipoMantenimiento.ClientID.ToString()%>">
|
||||||
<asp:Label runat="server" ID="LblTipo" Text="Tipo Mantenimiento:"></asp:Label>
|
<asp:Label runat="server" ID="LblTipo" Text="Tipo :"></asp:Label>
|
||||||
</label>
|
</label>
|
||||||
<i></i>
|
<i></i>
|
||||||
<asp:RequiredFieldValidator ID="RFVDdlTipoServicio" runat="server" InitialValue="-1" ControlToValidate="DdlTipoMantenimiento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Mantenimientp''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVDdlTipoServicio" runat="server" InitialValue="-1" ControlToValidate="DdlTipoMantenimiento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Mantenimientp''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- <div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtDuracion" runat="server" MaxLength="5"></asp:TextBox>
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtDuracion" FilterType="Numbers,Custom" InvalidChars="-*+" ValidChars="1234567890." />
|
<asp:TextBox ID="TxtTipoServicio" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<asp:Label AssociatedControlID="TxtDuracion" runat="server" Text="Duración:"></asp:Label>
|
<asp:Label AssociatedControlID="TxtTipoServicio" runat="server" Text="Descripción:"></asp:Label>
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" ControlToValidate="TxtDuracion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Duración''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTxtTipoServicio" runat="server" ControlToValidate="TxtTipoServicio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>--%>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -133,7 +121,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -181,13 +169,14 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
||||||
DataKeyNames="CveActividad" GridLines="None">
|
OnRowDataBound="GvActividades_RowDataBound"
|
||||||
|
DataKeyNames="CveTipoServicioActividad,CveActividad,Duracion" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="">
|
<asp:TemplateField HeaderText="">
|
||||||
<ItemStyle Width="20px" />
|
<ItemStyle Width="20px" />
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:CheckBox runat="server" ID="Chk" />
|
<asp:CheckBox runat="server" ID="Chk" OnCheckedChanged="Chk_CheckedChanged" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
@@ -217,19 +206,35 @@
|
|||||||
<ajax:TabPanel ID="TabCheckList" runat="server" HeaderText="Check List">
|
<ajax:TabPanel ID="TabCheckList" runat="server" HeaderText="Check List">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpGvCheckList" UpdateMode="Conditional" >
|
<asp:UpdatePanel runat="server" ID="UpGvCheckList" UpdateMode="Conditional" >
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvCheckList" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
<asp:GridView ID="GvCheckList" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ToolTip="" CssClass="table table-smallpadding Widthall"
|
||||||
DataKeyNames=""
|
OnRowDataBound="GvCheckList_RowDataBound"
|
||||||
|
DataKeyNames="CveCheckListActividad,CheckListActividadGrupo,CveCheckList,CveTipoServicio"
|
||||||
GridLines="None">
|
GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Unidad">
|
<asp:TemplateField HeaderText="">
|
||||||
|
<ItemStyle Width="20px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox runat="server" ID="Chk" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="No.">
|
||||||
|
<ItemStyle Width="100px" />
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlNROW" runat="server" Text='<%# Eval("NROW")%>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Componentes Inspección">
|
||||||
<ItemStyle Width="350px" />
|
<ItemStyle Width="350px" />
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Unidad")%>'></asp:Literal>
|
<asp:Literal ID="LtlCheckListActividad" runat="server" Text='<%# Eval("CheckListActividad")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,9 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
@@ -77,57 +80,23 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
CveTipoServicio = Request("CveTipoServicio").ToEntero
|
CveTipoServicio = Request("CveTipoServicio").ToEntero
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
CargaCombos()
|
||||||
|
|
||||||
|
|
||||||
If CveTipoServicio = -1 Then
|
If CveTipoServicio = -1 Then
|
||||||
CrearTablas()
|
CrearTablas()
|
||||||
|
CargaActividades()
|
||||||
|
CargaCheckList()
|
||||||
|
Else
|
||||||
|
CargaDatos()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CargaCombos()
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Property IndexMaterial As Integer
|
|
||||||
Get
|
|
||||||
If ViewState("IndexMaterial") Is Nothing Then
|
|
||||||
Return -1
|
|
||||||
Else
|
|
||||||
Return ViewState("IndexMaterial").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
Set(value As Integer)
|
|
||||||
ViewState("IndexMaterial") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Property IndexActividades As Integer
|
|
||||||
Get
|
|
||||||
If ViewState("IndexActividades") Is Nothing Then
|
|
||||||
Return -1
|
|
||||||
Else
|
|
||||||
Return ViewState("IndexActividades").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
Set(value As Integer)
|
|
||||||
ViewState("IndexActividades") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property IndexCheckList As Integer
|
|
||||||
Get
|
|
||||||
If ViewState("IndexCheckList") Is Nothing Then
|
|
||||||
Return -1
|
|
||||||
Else
|
|
||||||
Return ViewState("IndexCheckList").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
Set(value As Integer)
|
|
||||||
ViewState("IndexCheckList") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -157,10 +126,6 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
DdlPS.setEsWebService(UsuarioActual.Empresa.Funcionalidad(105) = "1")
|
DdlPS.setEsWebService(UsuarioActual.Empresa.Funcionalidad(105) = "1")
|
||||||
|
|
||||||
|
|
||||||
If CveTipoServicio <= 0 Then
|
|
||||||
CargaActividades()
|
|
||||||
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -221,6 +186,25 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
|
||||||
|
Dim ErrorProceso As Boolean = False
|
||||||
|
|
||||||
|
Dim ObjAf As New ClsAF
|
||||||
|
|
||||||
|
If ObjAf.GetTiposServicios(CveTipoServicio, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
|
||||||
|
If ObjAf.DtResultados.Rows.Count > 0 Then
|
||||||
|
TxtTipoServicio.Text = ObjAf.DtResultados(0)("Nombre").ToString
|
||||||
|
DdlTipoMantenimiento.SelectedValueExist(ObjAf.DtResultados(0)("CveTipoMantenimiento").ToString)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjAf.Dispose()
|
||||||
|
|
||||||
CargaMateriales()
|
CargaMateriales()
|
||||||
CargaActividades()
|
CargaActividades()
|
||||||
CargaCheckList()
|
CargaCheckList()
|
||||||
@@ -233,7 +217,9 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
|
|
||||||
Dim ObjAF As New ClsAF
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
If ObjAF.GetTiposServiciosMaterial(-1, CveTipoServicio) Then
|
If ObjAF.GetTiposServiciosMaterial(-1, CveTipoServicio, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
DTMateriales = ObjAF.DtResultados
|
||||||
GvMaterial.DataSource = DTMateriales
|
GvMaterial.DataSource = DTMateriales
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -256,20 +242,26 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
|
|
||||||
Dim ObjAF As New ClsAF
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
If CveTipoServicio <= 0 Then
|
If CveTipoServicio > 0 Then
|
||||||
|
|
||||||
If ObjAF.GetActividades(-1, -1, -1, UsuarioActual.CveEmpresa) Then
|
If ObjAF.GetTiposServiciosActividades(-1, CveTipoServicio, -1) Then
|
||||||
GvActividades.DataSource = ObjAF.DtResultados
|
GvActividades.DataSource = ObjAF.DtResultados
|
||||||
Else
|
Else
|
||||||
GvActividades.DataSource = Nothing
|
GvActividades.DataSource = Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
If ObjAF.GetActividades(-1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
GvActividades.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
GvActividades.DataSource = Nothing
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
ObjAF.Dispose()
|
ObjAF.Dispose()
|
||||||
|
|
||||||
GvActividades.DataBind()
|
GvActividades.DataBind()
|
||||||
|
|
||||||
UpGvActividades.Update()
|
UpGvActividades.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -278,18 +270,55 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
|
|
||||||
Dim ObjAF As New ClsAF
|
Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
|
If CveTipoServicio > 0 Then
|
||||||
|
|
||||||
|
If ObjAF.GetCheckList(-1, CveTipoServicio, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
GvCheckList.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
GvCheckList.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
If ObjAF.GetCheckListActividad(-1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
GvCheckList.DataSource = ObjAF.DtResultados
|
||||||
|
Else
|
||||||
|
GvCheckList.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ObjAF.Dispose()
|
ObjAF.Dispose()
|
||||||
|
|
||||||
|
GvCheckList.DataBind()
|
||||||
|
UpGvCheckList.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs)
|
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub GvCheckList_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
Dim Chk As CheckBox = e.Row.FCCheckBox("Chk")
|
||||||
|
|
||||||
|
|
||||||
|
If e.Row.DataKey("CveCheckListActividad").ToEntero = 0 Then
|
||||||
|
|
||||||
|
e.Row.FCLiteral("LtlNROW").Text = e.Row.DataKey("CheckListActividadGrupo").ToString
|
||||||
|
e.Row.Attributes.Add("style", "background-color:#DDD")
|
||||||
|
|
||||||
|
Chk.Visible = False
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If e.Row.DataKey("CveTipoServicio").ToEntero > 0 Then
|
||||||
|
Chk.Checked = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -572,36 +601,146 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
|
|
||||||
'validacion?
|
'validacion?
|
||||||
|
|
||||||
|
If CveTipoServicio = -1 Then
|
||||||
|
|
||||||
|
If ObjAF.AddTiposServicios(TxtTipoServicio.Text.Trim, DdlTipoMantenimiento.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
|
||||||
If ObjAF.AddTiposServicios(TxtTipoServicio.Text.Trim, DdlTipoMantenimiento.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
CveTipoServicio = ObjAF.CveTipoServicio
|
||||||
|
|
||||||
|
For Each GvRow As GridViewRow In GvMaterial.Rows
|
||||||
|
|
||||||
|
If Not ObjAF.AddTiposServiciosMaterial(CveTipoServicio, GvRow.DataKey("Cantidad").ToDecimal, GvRow.DataKey("CveUM").ToEntero, GvRow.DataKey("CvePS").ToEntero, GvRow.DataKey("Tipo").ToEntero) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each GvRow As GridViewRow In GvActividades.Rows
|
||||||
|
|
||||||
|
Dim Chk As CheckBox = GvRow.FCCheckBox("Chk")
|
||||||
|
Dim Horas As Decimal = GvRow.FCTextBox("TxtHoras").Text.ToDecimal
|
||||||
|
|
||||||
|
If Chk.Checked Then
|
||||||
|
If Not ObjAF.AddTiposServiciosActividades(GvRow.DataKey("CveActividad").ToEntero, CveTipoServicio, Horas, "") Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
CveTipoServicio = ObjAF.CveTipoServicio
|
For Each GvRow As GridViewRow In GvCheckList.Rows
|
||||||
|
|
||||||
For Each GvRow As GridViewRow In GvMaterial.Rows
|
Dim Chk As CheckBox = GvRow.FCCheckBox("Chk")
|
||||||
|
Dim CveCheckListActividad As Integer = GvRow.DataKey("CveCheckListActividad").ToEntero
|
||||||
|
|
||||||
|
If Chk.Checked Then
|
||||||
|
If Not ObjAF.AddCheckList(CveTipoServicio, CveCheckListActividad) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
If Not ObjAF.UpdateTiposServicios(CveTipoServicio, TxtTipoServicio.Text.Trim, DdlTipoMantenimiento.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Not ErrorProceso Then
|
||||||
|
|
||||||
|
For Each GvRow As GridViewRow In GvActividades.Rows
|
||||||
|
|
||||||
|
|
||||||
|
Dim Chk As CheckBox = GvRow.FCCheckBox("Chk")
|
||||||
|
Dim CveTipoServicioActividad As Integer = GvRow.DataKey("CveTipoServicioActividad").ToEntero
|
||||||
|
Dim CveActividad As Integer = GvRow.DataKey("CveActividad").ToEntero
|
||||||
|
|
||||||
|
Dim Horas As Decimal = GvRow.FCTextBox("TxtHoras").Text.ToDecimal
|
||||||
|
|
||||||
|
If Chk.Checked Then
|
||||||
|
|
||||||
|
If CveTipoServicioActividad > 0 Then
|
||||||
|
If Not ObjAF.UpdateTiposServiciosActividades(CveTipoServicioActividad, CveActividad, Horas, "") Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If Not ObjAF.AddTiposServiciosActividades(CveActividad, CveTipoServicio, Horas, "") Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
If CveTipoServicioActividad > 0 Then
|
||||||
|
If Not ObjAF.DeleteTiposServiciosActividades(CveTipoServicioActividad, UsuarioActual.CveEmpresa) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
If Not ErrorProceso Then
|
||||||
|
|
||||||
|
For Each GvRow As GridViewRow In GvCheckList.Rows
|
||||||
|
Dim Chk As CheckBox = GvRow.FCCheckBox("Chk")
|
||||||
|
|
||||||
|
|
||||||
|
If Chk.Visible Then
|
||||||
|
|
||||||
|
Dim CveTipoServicioTmp As Integer = GvRow.DataKey("CveTipoServicio").ToEntero
|
||||||
|
Dim CveCheckList As Integer = GvRow.DataKey("CveCheckList").ToEntero
|
||||||
|
Dim CveCheckListActividad As Integer = GvRow.DataKey("CveCheckListActividad").ToEntero
|
||||||
|
|
||||||
|
If CveTipoServicioTmp > 0 Then
|
||||||
|
|
||||||
|
If Not Chk.Checked Then
|
||||||
|
|
||||||
|
If Not ObjAF.DeleteCheckList(CveCheckList) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
If Chk.Checked Then
|
||||||
|
If Not ObjAF.AddCheckList(CveTipoServicio, CveCheckListActividad) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
If Not ObjAF.AddTiposServiciosMaterial(CveTipoServicio, GvRow.DataKey("Cantidad").ToDecimal, GvRow.DataKey("CveUM").ToEntero, GvRow.DataKey("CvePS").ToEntero, GvRow.DataKey("Tipo").ToEntero) Then
|
|
||||||
ErrorProceso = True
|
|
||||||
Exit For
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Next
|
End If
|
||||||
|
|
||||||
For Each GvRow As GridViewRow In GvActividades.Rows
|
|
||||||
|
|
||||||
Dim Chk As CheckBox = GvRow.FCCheckBox("Chk")
|
|
||||||
Dim Horas As Decimal = GvRow.FCTextBox("").Text.ToDecimal
|
|
||||||
|
|
||||||
|
|
||||||
If ObjAF.AddTiposServiciosActividades(GvRow.DataKey("").ToEntero) Then
|
|
||||||
|
|
||||||
Next
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ErrorProceso Then
|
If ErrorProceso Then
|
||||||
ObjAF.RollBack()
|
ObjAF.RollBack()
|
||||||
Else
|
Else
|
||||||
@@ -612,6 +751,77 @@ Partial Class AF_TipoOrdenTrabajo
|
|||||||
|
|
||||||
ObjAF.Dispose()
|
ObjAF.Dispose()
|
||||||
|
|
||||||
|
CargaDatos()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub Chk_CheckedChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
'Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, CheckBox).BindingContainer, GridViewRow)
|
||||||
|
'Dim Chk As CheckBox = GvRow.FCCheckBox("Chk")
|
||||||
|
|
||||||
|
'Dim CveTipoServicioActividad As Integer = GvRow.DataKey("CveTipoServicioActividad").ToEntero
|
||||||
|
'Dim CveActividad As Integer = GvRow.DataKey("CveActividad").ToEntero
|
||||||
|
|
||||||
|
'Dim Horas As Decimal = GvRow.FCTextBox("TxtHoras").Text.ToDecimal
|
||||||
|
|
||||||
|
'Dim ObjAF As New ClsAF
|
||||||
|
|
||||||
|
|
||||||
|
'If Chk.Checked Then
|
||||||
|
|
||||||
|
' If CveTipoServicioActividad > 0 Then
|
||||||
|
' If ObjAF.UpdateTiposServiciosActividades(CveTipoServicioActividad, CveActividad, Horas, "") Then
|
||||||
|
|
||||||
|
' End If
|
||||||
|
' Else
|
||||||
|
' If ObjAF.AddTiposServiciosActividades(CveActividad, CveTipoServicio, Horas, "") Then
|
||||||
|
|
||||||
|
' End If
|
||||||
|
' End If
|
||||||
|
|
||||||
|
'Else
|
||||||
|
|
||||||
|
|
||||||
|
' If CveTipoServicioActividad > 0 Then
|
||||||
|
|
||||||
|
' If ObjAF.DeleteTiposServiciosActividades(CveTipoServicioActividad, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
' End If
|
||||||
|
|
||||||
|
' End If
|
||||||
|
|
||||||
|
'End If
|
||||||
|
|
||||||
|
|
||||||
|
'ObjAF.Dispose()
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub GvActividades_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
|
Dim CveTipoServicioActividad As Integer = e.Row.DataKey("CveTipoServicioActividad").ToEntero
|
||||||
|
Dim TxtHoras As TextBox = e.Row.FCTextBox("TxtHoras")
|
||||||
|
Dim Chk As CheckBox = e.Row.FCCheckBox("Chk")
|
||||||
|
|
||||||
|
If CveTipoServicioActividad > 0 Then
|
||||||
|
|
||||||
|
Chk.Checked = True
|
||||||
|
TxtHoras.Text = e.Row.DataKey("Duracion")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ Public Class ClsAF
|
|||||||
Public Property CveDispositivo As Integer
|
Public Property CveDispositivo As Integer
|
||||||
Public Property MedidaVehicular As Integer
|
Public Property MedidaVehicular As Integer
|
||||||
Public Property CveTipoServicio As Integer
|
Public Property CveTipoServicio As Integer
|
||||||
|
Public Property CveOrdenTrabajo As Integer
|
||||||
|
Public Property FolioOT As Integer
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
@@ -3480,6 +3482,7 @@ Public Class ClsAF
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "TIPO SERVICIO"
|
#Region "TIPO SERVICIO"
|
||||||
|
|
||||||
Public Function GetTiposServicios(CveTipoServicio As Integer, CveTipoMantenimiento As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetTiposServicios(CveTipoServicio As Integer, CveTipoMantenimiento As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -3572,7 +3575,7 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetTiposServiciosActividades(CveTipoServicioActividad As Integer, CveActividad As Integer) As Boolean
|
Public Function GetTiposServiciosActividades(CveTipoServicioActividad As Integer, CveTipoServicio As Integer, CveActividad As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_TiposServiciosActividadesGet")
|
DataAdapter("PA_AF_TiposServiciosActividadesGet")
|
||||||
@@ -3580,6 +3583,7 @@ Public Class ClsAF
|
|||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveTipoServicioActividad", SqlDbType.Int).Value = CveTipoServicioActividad
|
.Add("@CveTipoServicioActividad", SqlDbType.Int).Value = CveTipoServicioActividad
|
||||||
.Add("@CveActividad", SqlDbType.Int).Value = CveActividad
|
.Add("@CveActividad", SqlDbType.Int).Value = CveActividad
|
||||||
|
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -3592,14 +3596,15 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddTiposServiciosActividades(CveActividad As Integer, Duracion As Integer, Observaciones As String) As Boolean
|
Public Function AddTiposServiciosActividades(CveActividad As Integer, CveTipoServicio As Integer, Duracion As Decimal, Observaciones As String) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_TiposServiciosActividadesAdd")
|
DataAdapter("PA_AF_TiposServiciosActividadesAdd")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveActividad", SqlDbType.Int).Value = CveActividad
|
.Add("@CveActividad", SqlDbType.Int).Value = CveActividad
|
||||||
.Add("@Duracion", SqlDbType.Int).Value = Duracion
|
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
||||||
|
.Add("@Duracion", SqlDbType.SmallMoney).Value = Duracion
|
||||||
.Add("@Observaciones", SqlDbType.NVarChar).Value = Observaciones
|
.Add("@Observaciones", SqlDbType.NVarChar).Value = Observaciones
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -3613,7 +3618,7 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateTiposServiciosActividades(CveTipoServicioActividad As Integer, CveActividad As Integer, Duracion As Integer, Observaciones As String) As Boolean
|
Public Function UpdateTiposServiciosActividades(CveTipoServicioActividad As Integer, CveActividad As Integer, Duracion As Decimal, Observaciones As String) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_TiposServiciosActividadesUpdate")
|
DataAdapter("PA_AF_TiposServiciosActividadesUpdate")
|
||||||
@@ -3621,7 +3626,7 @@ Public Class ClsAF
|
|||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveTipoServicioActividad", SqlDbType.Int).Value = CveTipoServicioActividad
|
.Add("@CveTipoServicioActividad", SqlDbType.Int).Value = CveTipoServicioActividad
|
||||||
.Add("@CveActividad", SqlDbType.Int).Value = CveActividad
|
.Add("@CveActividad", SqlDbType.Int).Value = CveActividad
|
||||||
.Add("@Duracion", SqlDbType.Int).Value = Duracion
|
.Add("@Duracion", SqlDbType.SmallMoney).Value = Duracion
|
||||||
.Add("@Observaciones", SqlDbType.NVarChar).Value = Observaciones
|
.Add("@Observaciones", SqlDbType.NVarChar).Value = Observaciones
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -3635,13 +3640,14 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function DeleteTiposServiciosActividades(CveTipoServicioActividad As Integer) As Boolean
|
Public Function DeleteTiposServiciosActividades(CveTipoServicioActividad As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_TiposServiciosActividadesDelete")
|
DataAdapter("PA_AF_TiposServiciosActividadesDelete")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveTipoServicioActividad", SqlDbType.Int).Value = CveTipoServicioActividad
|
.Add("@CveTipoServicioActividad", SqlDbType.Int).Value = CveTipoServicioActividad
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -3654,7 +3660,7 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetTiposServiciosMaterial(CveTipoServicioMaterial As Integer, CveTipoServicio As Integer) As Boolean
|
Public Function GetTiposServiciosMaterial(CveTipoServicioMaterial As Integer, CveTipoServicio As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_TiposServiciosMaterialGet")
|
DataAdapter("PA_AF_TiposServiciosMaterialGet")
|
||||||
@@ -3662,6 +3668,7 @@ Public Class ClsAF
|
|||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveTipoServicioMaterial", SqlDbType.Int).Value = CveTipoServicioMaterial
|
.Add("@CveTipoServicioMaterial", SqlDbType.Int).Value = CveTipoServicioMaterial
|
||||||
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -4005,7 +4012,7 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetCheckListActividad(CveCheckListActividad As Integer, CveCheckListActividadGrupo As Integer) As Boolean
|
Public Function GetCheckListActividad(CveCheckListActividad As Integer, CveCheckListActividadGrupo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_CheckListActividadGet")
|
DataAdapter("PA_AF_CheckListActividadGet")
|
||||||
@@ -4013,6 +4020,7 @@ Public Class ClsAF
|
|||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveCheckListActividad", SqlDbType.Int).Value = CveCheckListActividad
|
.Add("@CveCheckListActividad", SqlDbType.Int).Value = CveCheckListActividad
|
||||||
.Add("@CveCheckListActividadGrupo", SqlDbType.Int).Value = CveCheckListActividadGrupo
|
.Add("@CveCheckListActividadGrupo", SqlDbType.Int).Value = CveCheckListActividadGrupo
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -4085,7 +4093,7 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetCheckList(CveCheckList As Integer, CveTipoServicio As Integer, CveCheckListActividad As Integer) As Boolean
|
Public Function GetCheckList(CveCheckList As Integer, CveTipoServicio As Integer, CveCheckListActividad As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AF_CheckListGet")
|
DataAdapter("PA_AF_CheckListGet")
|
||||||
@@ -4094,6 +4102,7 @@ Public Class ClsAF
|
|||||||
.Add("@CveCheckList", SqlDbType.Int).Value = CveCheckList
|
.Add("@CveCheckList", SqlDbType.Int).Value = CveCheckList
|
||||||
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
||||||
.Add("@CveCheckListActividad", SqlDbType.Int).Value = CveCheckListActividad
|
.Add("@CveCheckListActividad", SqlDbType.Int).Value = CveCheckListActividad
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -4166,6 +4175,188 @@ Public Class ClsAF
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#Region "O R D E N E S D E T R A B A J O"
|
||||||
|
|
||||||
|
Public Function GetOrdenesTrabajoEstatus(CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_AF_OrdenesTrabajoEstatusGet")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener los estatus", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetOrdenesTrabajo(CveOrdenTrabajo As Integer, CveTipoServicio As Integer, Folio As Integer, CveAF As Integer, CveSubProyecto As Integer, Prioridad As Integer, FechaInicio As Date, FechaFin As Date, FechaFinReal As Date, CveEstatusOT As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_AF_OrdenesTrabajoGet")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveOrdenTrabajo", SqlDbType.Int).Value = CveOrdenTrabajo
|
||||||
|
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
||||||
|
.Add("@Folio", SqlDbType.Int).Value = Folio
|
||||||
|
.Add("@CveAF", SqlDbType.Int).Value = CveAF
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
|
.Add("@Prioridad", SqlDbType.Int).Value = Prioridad
|
||||||
|
.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
|
||||||
|
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
||||||
|
'.Add("@FechaFinReal", SqlDbType.Date).Value = FechaFinReal
|
||||||
|
.Add("@CveEstatusOT", SqlDbType.Int).Value = CveEstatusOT
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al consultar las ordenes de trabajo", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Function AddOrdenesTrabajo(CveTipoServicio As Integer, CveAF As Integer, Servicio As String, CveSubProyecto As Integer, Prioridad As Integer, FechaInicio As Date, FechaFin As Date, FechaFinReal As Date, CveEstatusOT As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_AF_OrdenesTrabajoAdd")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTipoServicio", SqlDbType.Int).Value = CveTipoServicio
|
||||||
|
.Add("@CveAF", SqlDbType.Int).Value = CveAF
|
||||||
|
.Add("@Servicio", SqlDbType.VarChar).Value = Servicio
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
|
.Add("@Prioridad", SqlDbType.Int).Value = Prioridad
|
||||||
|
.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
|
||||||
|
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
||||||
|
.Add("@FechaFinReal", SqlDbType.Date).Value = FechaFinReal
|
||||||
|
.Add("@CveEstatusOT", SqlDbType.Int).Value = CveEstatusOT
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
|
||||||
|
.Add("@CveOrdenTrabajo", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
|
.Add("@Folio", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
|
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
|
||||||
|
CveOrdenTrabajo = SqlAdapter.SelectCommand.Parameters("@CveOrdenTrabajo").Value.ToString.ToEntero
|
||||||
|
FolioOT = SqlAdapter.SelectCommand.Parameters("@Folio").Value.ToString.ToEntero
|
||||||
|
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al agregar la orden de trabajo", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function GetOrdenesTrabajoMateriales(CveOrdenTrabajo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_AF_OrdenesTrabajoMaterialesGet")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|
||||||
|
.Add("@CveOrdenTrabajo", SqlDbType.Int).Value = CveOrdenTrabajo
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener los materiales", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetOrdenesTrabajoActividades(CveOrdenTrabajo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_AF_OrdenesTrabajoActividadesGet")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|
||||||
|
.Add("@CveOrdenTrabajo", SqlDbType.Int).Value = CveOrdenTrabajo
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener las actividades", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetOrdenesTrabajoCheckList(CveOrdenTrabajo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
DataAdapter("PA_AF_OrdenesTrabajoCheckListGet")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|
||||||
|
.Add("@CveOrdenTrabajo", SqlDbType.Int).Value = CveOrdenTrabajo
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener el check list", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1646,12 +1646,14 @@ Public Class ClsCompProveedores
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetTiposContratosDcumentos(CveEmpresa As Integer) As Boolean
|
Public Function GetTiposContratosDcumentos(CveEmpresa As Integer, Optional CveDocumentacion As Integer = -1, Optional CveTipoContrato As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Prov_SAT_CatTipoContratosDocumentosGet")
|
DataAdapter("PA_Prov_SAT_CatTipoContratosDocumentosGet")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveDocumentacion", SqlDbType.Int).Value = CveDocumentacion
|
||||||
|
.Add("@CveTipoContrato", SqlDbType.Int).Value = CveTipoContrato
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -1756,7 +1758,7 @@ Public Class ClsCompProveedores
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
Public Function GetContrato(CveContrato As Integer, CveSubProyecto As Integer, CveProveedor As Integer, CveTipoContrato As Integer, CveRepresentanteLegal As Integer, Estatus As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContrato(CveContrato As Integer, CveSubProyecto As Integer, CveProveedor As Integer, CveTipoContrato As Integer, CveRepresentanteLegal As Integer, Estatus As Integer, CveEmpresa As Integer, FechaI As Date, FechaF As Date) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -1771,6 +1773,10 @@ Public Class ClsCompProveedores
|
|||||||
.Add("@CveRepresentanteLegal", SqlDbType.Int).Value = CveRepresentanteLegal
|
.Add("@CveRepresentanteLegal", SqlDbType.Int).Value = CveRepresentanteLegal
|
||||||
.Add("@Estatus", SqlDbType.Int).Value = Estatus
|
.Add("@Estatus", SqlDbType.Int).Value = Estatus
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@FechaI", SqlDbType.Date).Value = FechaI
|
||||||
|
.Add("@FechaF", SqlDbType.Date).Value = FechaF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|||||||
@@ -5466,6 +5466,108 @@ Public Class ClsGPS
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "K I M B E R L Y - C L A R K"
|
||||||
|
Public Function AddKimberlyClarkTracking(Dominio As String, Codigo As String, Serie As String, CveDispositivo As Integer, CveUsuarioIngreso As Integer, CveCliente As Integer, CveEmpresa As Integer) As Integer
|
||||||
|
Dim retorno As Integer = -1
|
||||||
|
DataAdapter("PA_GPS_KimberlyClarkTrackingAdd", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@Dominio", SqlDbType.VarChar).Value = Dominio
|
||||||
|
.Add("@Codigo", SqlDbType.VarChar).Value = Codigo
|
||||||
|
.Add("@Serie", SqlDbType.VarChar).Value = Serie
|
||||||
|
.Add("@CveDispositivo", SqlDbType.Int).Value = CveDispositivo
|
||||||
|
.Add("@CveUsuarioIngreso", SqlDbType.Int).Value = CveUsuarioIngreso
|
||||||
|
.Add("@CveCliente", SqlDbType.Int).Value = CveCliente
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@CveKimberlyClarkTracking", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = SqlAdapter.SelectCommand.Parameters("@CveKimberlyClarkTracking").Value.ToString.ToEntero
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al agregar un tracking.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function UpdateKimberlyClarkTrackingEstatus(CveKimberlyClarkTracking As Integer, CveEstatus As Boolean, CveUsuarioModifico As Integer) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_GPS_KimberlyClarkTrackingUpdate", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveKimberlyClarkTracking", SqlDbType.Int).Value = CveKimberlyClarkTracking
|
||||||
|
.Add("@CveEstatus", SqlDbType.Bit).Value = CveEstatus
|
||||||
|
.Add("@CveUsuarioModifico", SqlDbType.Int).Value = CveUsuarioModifico
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al actualizar un tracking.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetKimberlyClarkTracking(CveKimberlyClarkTracking As Integer, CveDispositivo As Integer, CveEstatus As Integer, CveCliente As Integer, CveEmpresa As Integer, Optional FechaI As DateTime = ModExtensiones.MinFecha, Optional FechaF As DateTime = ModExtensiones.MaxFecha) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_GPS_KimberlyClarkTrackingGet", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveKimberlyClarkTracking", SqlDbType.Int).Value = CveKimberlyClarkTracking
|
||||||
|
.Add("@CveDispositivo", SqlDbType.Int).Value = CveDispositivo
|
||||||
|
.Add("@CveEstatus", SqlDbType.Int).Value = CveEstatus
|
||||||
|
.Add("@CveCliente", SqlDbType.Int).Value = CveCliente
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@FechaI", SqlDbType.DateTime).Value = FechaI
|
||||||
|
.Add("@FechaF", SqlDbType.DateTime).Value = FechaF
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener un tracking.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetKimberlyClarkTrackingDatos(CveKimberlyClarkTracking As Integer) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_GPS_KimberlyClarkTrackingGet", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveKimberlyClarkTracking", SqlDbType.Int).Value = CveKimberlyClarkTracking
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener los datos de un tracking.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function RemoveKimberlyClarkTracking(CveKimberlyClarkTracking As Integer) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_GPS_KimberlyClarkTrackingRemove", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveKimberlyClarkTracking", SqlDbType.Int).Value = CveKimberlyClarkTracking
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar un tracking.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub addParameters(name As String, tipo As SqlDbType, valor As Object)
|
Protected Sub addParameters(name As String, tipo As SqlDbType, valor As Object)
|
||||||
|
|||||||
@@ -3928,7 +3928,8 @@ Public Class ClsInventarios
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddTrasladoSolicitudDetalle(CveTrasladoSolicitud As Integer, Cantidad As Integer, CveUM As Integer, CvePS As Integer, Precio As Double, Observaciones As String, CveContratoDetalle As Integer) As Boolean
|
Public Function AddTrasladoSolicitudDetalle(CveTrasladoSolicitud As Integer, Cantidad As Integer, CveUM As Integer, CvePS As Integer, Precio As Double, Observaciones As String,
|
||||||
|
CveContratoDetalle As Integer, Optional Serie As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
Dim CveTraspasoSolicitud As Integer = 0
|
Dim CveTraspasoSolicitud As Integer = 0
|
||||||
DataAdapter("PA_Inv_TraspasoSolicitudDetalleAdd")
|
DataAdapter("PA_Inv_TraspasoSolicitudDetalleAdd")
|
||||||
@@ -3941,6 +3942,7 @@ Public Class ClsInventarios
|
|||||||
.Add("@Precio", SqlDbType.Float).Value = Precio
|
.Add("@Precio", SqlDbType.Float).Value = Precio
|
||||||
.Add("@Observaciones", SqlDbType.VarChar).Value = Observaciones
|
.Add("@Observaciones", SqlDbType.VarChar).Value = Observaciones
|
||||||
.Add("@CveContratoDetalle", SqlDbType.Int).Value = CveContratoDetalle
|
.Add("@CveContratoDetalle", SqlDbType.Int).Value = CveContratoDetalle
|
||||||
|
.Add("@Serie", SqlDbType.NVarChar).Value = Serie
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -4460,7 +4460,7 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/GPS/Shipments.aspx".ToUpper(), 673)
|
PaginaDict.Add("/GPS/Shipments.aspx".ToUpper(), 673)
|
||||||
PaginaDict.Add("/GPS/RepGastos.aspx".ToUpper(), 685)
|
PaginaDict.Add("/GPS/RepGastos.aspx".ToUpper(), 685)
|
||||||
PaginaDict.Add("/GPS/RecursoConfiableTracking.aspx".ToUpper(), 692)
|
PaginaDict.Add("/GPS/RecursoConfiableTracking.aspx".ToUpper(), 692)
|
||||||
|
PaginaDict.Add("/GPS/KimberlyClarkTracking.aspx".ToUpper(), -1)
|
||||||
#End Region
|
#End Region
|
||||||
'INVENTARIOS
|
'INVENTARIOS
|
||||||
#Region "Inventarios"
|
#Region "Inventarios"
|
||||||
@@ -8137,7 +8137,7 @@ Public Class ClsPaginas
|
|||||||
Case 1
|
Case 1
|
||||||
If DdlProyecto IsNot Nothing Then DdlProyecto.Visible = False
|
If DdlProyecto IsNot Nothing Then DdlProyecto.Visible = False
|
||||||
If LthProyectoP IsNot Nothing Then LthProyectoP.Visible = False
|
If LthProyectoP IsNot Nothing Then LthProyectoP.Visible = False
|
||||||
If LblSubProyecto IsNot Nothing Then LblSubProyecto.Text = "Centro Costo"
|
If LblSubProyecto IsNot Nothing Then LblSubProyecto.Text = "Centro de costo"
|
||||||
Case 2
|
Case 2
|
||||||
If DdlProyecto IsNot Nothing Then DdlProyecto.Visible = False
|
If DdlProyecto IsNot Nothing Then DdlProyecto.Visible = False
|
||||||
If LthProyectoP IsNot Nothing Then LthProyectoP.Visible = False
|
If LthProyectoP IsNot Nothing Then LthProyectoP.Visible = False
|
||||||
|
|||||||
@@ -1956,14 +1956,14 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateSalarioImss(CvePersonal As Integer, CveEmpresa As Integer, SDI As Double, SalarioDiarioSS As Double) As Boolean
|
Public Function UpdateSalariointegrado(CvePersonal As Integer, CveEmpresa As Integer, SDI As Double, SalarioDiario As Double) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
SqlDataAdapter("PA_RH_PersonalUpdateSalarioImss")
|
SqlDataAdapter("PA_RH_PersonalUpdateSalarioIntegrado")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CvePersonal", SqlDbType.Int).Value = CvePersonal
|
.Add("@CvePersonal", SqlDbType.Int).Value = CvePersonal
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@SDI", SqlDbType.Money).Value = SDI
|
.Add("@SDI", SqlDbType.Money).Value = SDI
|
||||||
.Add("@SalarioDiarioSS", SqlDbType.Money).Value = SalarioDiarioSS
|
.Add("@SalarioDiario", SqlDbType.Money).Value = SalarioDiario
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -4889,6 +4889,8 @@ Namespace Modelos
|
|||||||
CveEstatus = 12
|
CveEstatus = 12
|
||||||
Case "Com"
|
Case "Com"
|
||||||
CveEstatus = 9
|
CveEstatus = 9
|
||||||
|
Case "Ped", "DPe"
|
||||||
|
CveEstatus = 14
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If CveEstatus.Contiene(4, 5) Then
|
If CveEstatus.Contiene(4, 5) Then
|
||||||
|
|||||||
@@ -2053,7 +2053,166 @@ Namespace Extensiones
|
|||||||
style.Clear()
|
style.Clear()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
<Runtime.CompilerServices.Extension()>
|
||||||
|
Public Sub ExportToExcelGembox(GridView As GridView, NombreArchivoXLSx As String, Usuario As Usuario, FechaIMes As String, FechaFMes As String, Titulo As String, SubProyecto As String, Divisor As Integer, Optional AlturaImagen As Double = 100, Optional AnchoImagen As Double = 100, Optional DatoTituloExtra As String = "")
|
||||||
|
|
||||||
|
Dim sw1 As New StringWriter()
|
||||||
|
Dim htw1 As New HtmlTextWriter(sw1)
|
||||||
|
GridView.RenderControl(htw1)
|
||||||
|
|
||||||
|
Dim options = GemBox.Spreadsheet.LoadOptions.HtmlDefault
|
||||||
|
|
||||||
|
Dim htmlStream1 = New MemoryStream(options.Encoding.GetBytes(sw1.ToString()))
|
||||||
|
|
||||||
|
htmlStream1.Position = 0
|
||||||
|
Dim sr1 As New StreamReader(htmlStream1)
|
||||||
|
Dim myStr1 = sr1.ReadToEnd()
|
||||||
|
sr1.Dispose()
|
||||||
|
htmlStream1.Dispose()
|
||||||
|
sw1.Dispose()
|
||||||
|
|
||||||
|
Dim HtmlCompleto As String = myStr1
|
||||||
|
|
||||||
|
HtmlCompleto = Regex.Replace(HtmlCompleto, "\<[\/]*a[^\>]*\>", "")
|
||||||
|
|
||||||
|
Dim htmlStream5 = New MemoryStream(options.Encoding.GetBytes(HtmlCompleto))
|
||||||
|
|
||||||
|
GemBox.Spreadsheet.SpreadsheetInfo.SetLicense(SerialGemBoxSpreadsheet)
|
||||||
|
|
||||||
|
Dim excel As GemBox.Spreadsheet.ExcelFile
|
||||||
|
|
||||||
|
excel = GemBox.Spreadsheet.ExcelFile.Load(htmlStream5, options)
|
||||||
|
|
||||||
|
If Usuario IsNot Nothing Then
|
||||||
|
|
||||||
|
Dim TotalRowHeader As Integer = 8
|
||||||
|
Dim TotalRowFooter As Integer = 2
|
||||||
|
|
||||||
|
|
||||||
|
Dim worksheet = excel.Worksheets(0)
|
||||||
|
worksheet.Rows.InsertEmpty(0, TotalRowHeader)
|
||||||
|
Dim celdasConTexto = worksheet.GetUsedCellRange(True)
|
||||||
|
celdasConTexto.Style.Font.Name = "Calibri Light"
|
||||||
|
|
||||||
|
Dim RangoNombreEmpresa = worksheet.Cells.GetSubrangeAbsolute(1, celdasConTexto.FirstColumnIndex, 1, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoNombreEmpresa.Merged = True
|
||||||
|
RangoNombreEmpresa.Value = Usuario.Empresa.Empresa
|
||||||
|
RangoNombreEmpresa.Style.Font.Size = 18 * 20
|
||||||
|
RangoNombreEmpresa.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoNombreEmpresa.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoNombreEmpresa.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
|
||||||
|
|
||||||
|
Dim RangoTitulo = worksheet.Cells.GetSubrangeAbsolute(3, celdasConTexto.FirstColumnIndex, 3, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoTitulo.Merged = True
|
||||||
|
RangoTitulo.Value = Titulo
|
||||||
|
RangoTitulo.Style.Font.Size = 20 * 20
|
||||||
|
RangoTitulo.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoTitulo.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoTitulo.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
|
||||||
|
|
||||||
|
If FechaIMes.Trim.Length > 0 And FechaFMes.Trim.Length > 0 Then
|
||||||
|
Dim RangoFechas = worksheet.Cells.GetSubrangeAbsolute(4, celdasConTexto.FirstColumnIndex, 4, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoFechas.Merged = True
|
||||||
|
RangoFechas.Value = $"Fechas: {FechaIMes} a {FechaFMes}"
|
||||||
|
RangoFechas.Style.Font.Size = 15 * 20
|
||||||
|
RangoFechas.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoFechas.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoFechas.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If SubProyecto.Length > 0 Then
|
||||||
|
Dim RangoSubProyecto = worksheet.Cells.GetSubrangeAbsolute(5, celdasConTexto.FirstColumnIndex, 5, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoSubProyecto.Merged = True
|
||||||
|
RangoSubProyecto.Value = SubProyecto
|
||||||
|
RangoSubProyecto.Style.Font.Size = 20 * 20
|
||||||
|
RangoSubProyecto.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoSubProyecto.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoSubProyecto.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If DatoTituloExtra.Length > 0 Then
|
||||||
|
Dim RangoDatoTituloExtra = worksheet.Cells.GetSubrangeAbsolute(6, celdasConTexto.FirstColumnIndex, 6, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoDatoTituloExtra.Merged = True
|
||||||
|
RangoDatoTituloExtra.Value = DatoTituloExtra
|
||||||
|
RangoDatoTituloExtra.Style.Font.Size = 20 * 20
|
||||||
|
RangoDatoTituloExtra.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoDatoTituloExtra.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoDatoTituloExtra.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
For i = celdasConTexto.FirstColumnIndex To celdasConTexto.LastColumnIndex
|
||||||
|
|
||||||
|
worksheet.Rows(8).Cells(i).Style.Font.Size = 12 * 20
|
||||||
|
worksheet.Rows(8).Cells(i).Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
worksheet.Rows(8).Cells(i).Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
|
||||||
|
worksheet.Rows(8).Cells(i).Style.FillPattern.SetPattern(GemBox.Spreadsheet.FillPatternStyle.Solid, GemBox.Spreadsheet.SpreadsheetColor.FromArgb(75, 119, 190), GemBox.Spreadsheet.SpreadsheetColor.FromArgb(255, 255, 255))
|
||||||
|
worksheet.Rows(8).Cells(i).Style.Font.Color = GemBox.Spreadsheet.SpreadsheetColor.FromArgb(255, 255, 255)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If i > 0 Then
|
||||||
|
Try
|
||||||
|
worksheet.Columns(i).AutoFit(1)
|
||||||
|
Catch ex As Exception
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
|
Dim IndexEndTable As Integer = GridView.Rows.Count + TotalRowHeader + TotalRowFooter
|
||||||
|
|
||||||
|
worksheet.Rows(IndexEndTable).Cells(0).Value = "Usuario Imprimió"
|
||||||
|
worksheet.Rows(IndexEndTable + 1).Cells(0).Value = Usuario.Nombre
|
||||||
|
|
||||||
|
worksheet.Rows(IndexEndTable).Cells(2).Value = "Fecha Impresión"
|
||||||
|
worksheet.Rows(IndexEndTable + 1).Cells(2).Value = DateTime.Now.ToString("dd/MM/yyyy")
|
||||||
|
|
||||||
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", Usuario.Empresa.Ruta))
|
||||||
|
|
||||||
|
If Imagen.Exists Then
|
||||||
|
Dim Ruta As String = String.Format("{0}/Logo.png", Usuario.Empresa.Ruta)
|
||||||
|
Using sr As New StreamReader(Ruta)
|
||||||
|
Dim ms As New MemoryStream()
|
||||||
|
sr.BaseStream.CopyTo(ms)
|
||||||
|
worksheet.Pictures.Add(ms, ExcelPictureFormat.Png, "A1", AnchoImagen, AlturaImagen, LengthUnit.Pixel)
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
For I = celdasConTexto.FirstColumnIndex To celdasConTexto.LastColumnIndex
|
||||||
|
|
||||||
|
If I > 0 Then
|
||||||
|
|
||||||
|
If Divisor = 1 Then
|
||||||
|
worksheet.Columns(I + 1).Style.NumberFormat = "#,##0.00"
|
||||||
|
Else
|
||||||
|
worksheet.Columns(I + 1).Style.NumberFormat = "#,##"
|
||||||
|
End If
|
||||||
|
|
||||||
|
Try
|
||||||
|
worksheet.Columns(I).AutoFit(1)
|
||||||
|
Catch ex As Exception
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
excel.Save(HttpContext.Current.Response, $"{NombreArchivoXLSx}.xlsx")
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
<Runtime.CompilerServices.Extension()>
|
<Runtime.CompilerServices.Extension()>
|
||||||
Public Sub ExportToExcel(GridView As HtmlTable, NombreArchivoXLS As String)
|
Public Sub ExportToExcel(GridView As HtmlTable, NombreArchivoXLS As String)
|
||||||
Dim sb As StringBuilder = New StringBuilder()
|
Dim sb As StringBuilder = New StringBuilder()
|
||||||
|
|||||||
31
App_WebReferences/WSKimberlyClark/Reference.svcmap
Normal file
31
App_WebReferences/WSKimberlyClark/Reference.svcmap
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="bdc7e363-d932-4145-bd7c-94fd0d512a15" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
|
||||||
|
<ClientOptions>
|
||||||
|
<GenerateAsynchronousMethods>false</GenerateAsynchronousMethods>
|
||||||
|
<EnableDataBinding>true</EnableDataBinding>
|
||||||
|
<ExcludedTypes />
|
||||||
|
<ImportXmlTypes>false</ImportXmlTypes>
|
||||||
|
<GenerateInternalTypes>false</GenerateInternalTypes>
|
||||||
|
<GenerateMessageContracts>false</GenerateMessageContracts>
|
||||||
|
<NamespaceMappings />
|
||||||
|
<CollectionMappings />
|
||||||
|
<GenerateSerializableTypes>true</GenerateSerializableTypes>
|
||||||
|
<Serializer>Auto</Serializer>
|
||||||
|
<UseSerializerForFaults>true</UseSerializerForFaults>
|
||||||
|
<ReferenceAllAssemblies>true</ReferenceAllAssemblies>
|
||||||
|
<ReferencedAssemblies />
|
||||||
|
<ReferencedDataContractTypes />
|
||||||
|
<ServiceContractMappings />
|
||||||
|
</ClientOptions>
|
||||||
|
<MetadataSources>
|
||||||
|
<MetadataSource Address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" Protocol="http" SourceId="1" />
|
||||||
|
</MetadataSources>
|
||||||
|
<Metadata>
|
||||||
|
<MetadataFile FileName="Service.disco" MetadataType="Disco" ID="7cedcbed-5aaf-4466-8cb9-67a9c36e48f5" SourceId="1" SourceUrl="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx?disco" />
|
||||||
|
<MetadataFile FileName="Service.wsdl" MetadataType="Wsdl" ID="df65f924-16f4-4b7b-bb70-15850488f862" SourceId="1" SourceUrl="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx?wsdl" />
|
||||||
|
</Metadata>
|
||||||
|
<Extensions>
|
||||||
|
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
|
||||||
|
<ExtensionFile FileName="configuration.svcinfo" Name="configuration.svcinfo" />
|
||||||
|
</Extensions>
|
||||||
|
</ReferenceGroup>
|
||||||
6
App_WebReferences/WSKimberlyClark/Service.disco
Normal file
6
App_WebReferences/WSKimberlyClark/Service.disco
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||||
|
<contractRef ref="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx?wsdl" docRef="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
|
||||||
|
<soap address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" xmlns:q1="http://unisolutions.com.ar/" binding="q1:ServiceSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||||
|
<soap address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" xmlns:q2="http://unisolutions.com.ar/" binding="q2:ServiceSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||||
|
</discovery>
|
||||||
1435
App_WebReferences/WSKimberlyClark/Service.wsdl
Normal file
1435
App_WebReferences/WSKimberlyClark/Service.wsdl
Normal file
File diff suppressed because it is too large
Load Diff
13
App_WebReferences/WSKimberlyClark/configuration.svcinfo
Normal file
13
App_WebReferences/WSKimberlyClark/configuration.svcinfo
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configurationSnapshot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
|
||||||
|
<behaviors />
|
||||||
|
<bindings>
|
||||||
|
<binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="ServiceSoap"><security mode="Transport" /></Data>" bindingType="basicHttpBinding" name="ServiceSoap" />
|
||||||
|
<binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="ServiceSoap1" />" bindingType="basicHttpBinding" name="ServiceSoap1" />
|
||||||
|
<binding digest="System.ServiceModel.Configuration.CustomBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="ServiceSoap12"><httpsTransport /><textMessageEncoding messageVersion="Soap12" /></Data>" bindingType="customBinding" name="ServiceSoap12" />
|
||||||
|
</bindings>
|
||||||
|
<endpoints>
|
||||||
|
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap" contract="WSKimberlyClark.ServiceSoap" name="ServiceSoap" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap" contract="WSKimberlyClark.ServiceSoap" name="ServiceSoap" />" contractName="WSKimberlyClark.ServiceSoap" name="ServiceSoap" />
|
||||||
|
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" binding="customBinding" bindingConfiguration="ServiceSoap12" contract="WSKimberlyClark.ServiceSoap" name="ServiceSoap12" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" binding="customBinding" bindingConfiguration="ServiceSoap12" contract="WSKimberlyClark.ServiceSoap" name="ServiceSoap12" />" contractName="WSKimberlyClark.ServiceSoap" name="ServiceSoap12" />
|
||||||
|
</endpoints>
|
||||||
|
</configurationSnapshot>
|
||||||
549
App_WebReferences/WSKimberlyClark/configuration91.svcinfo
Normal file
549
App_WebReferences/WSKimberlyClark/configuration91.svcinfo
Normal file
@@ -0,0 +1,549 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="4+BXG4vA1S3Tc6NHeL0a0Xq2nhI=">
|
||||||
|
<bindingConfigurations>
|
||||||
|
<bindingConfiguration bindingType="basicHttpBinding" name="ServiceSoap">
|
||||||
|
<properties>
|
||||||
|
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/openTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/receiveTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/sendTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/allowCookies" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/bypassProxyOnLocal" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/hostNameComparisonMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HostNameComparisonMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>StrongWildcard</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/maxBufferPoolSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/maxBufferSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>65536</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/maxReceivedMessageSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/proxyAddress" isComplexType="false" isExplicitlyDefined="false" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxDepth" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxStringContentLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxArrayLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxBytesPerRead" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxNameTableCharCount" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.Text.Encoding, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.Text.UTF8Encoding</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/transferMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.TransferMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Buffered</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/useDefaultWebProxy" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/messageEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.WSMessageEncoding, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Text</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.BasicHttpSecurityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/mode" isComplexType="false" isExplicitlyDefined="true" clrType="System.ServiceModel.BasicHttpSecurityMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Transport</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.HttpTransportSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.HttpTransportSecurityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpClientCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>None</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/proxyCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpProxyCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>None</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy/policyEnforcement" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.PolicyEnforcement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Never</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy/protectionScenario" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.ProtectionScenario, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>TransportSelected</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy/customServiceNames" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>(Collection)</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/realm" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/security/message" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpMessageSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.BasicHttpMessageSecurityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/message/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpMessageCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>UserName</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/message/algorithmSuite" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.Security.SecurityAlgorithmSuite, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Default</serializedValue>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</bindingConfiguration>
|
||||||
|
<bindingConfiguration bindingType="basicHttpBinding" name="ServiceSoap1">
|
||||||
|
<properties>
|
||||||
|
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap1</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/openTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/receiveTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/sendTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/allowCookies" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/bypassProxyOnLocal" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/hostNameComparisonMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HostNameComparisonMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>StrongWildcard</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/maxBufferPoolSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/maxBufferSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>65536</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/maxReceivedMessageSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/proxyAddress" isComplexType="false" isExplicitlyDefined="false" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxDepth" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxStringContentLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxArrayLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxBytesPerRead" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/readerQuotas/maxNameTableCharCount" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.Text.Encoding, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.Text.UTF8Encoding</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/transferMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.TransferMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Buffered</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/useDefaultWebProxy" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/messageEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.WSMessageEncoding, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Text</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.BasicHttpSecurityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/mode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpSecurityMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>None</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.HttpTransportSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.HttpTransportSecurityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpClientCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>None</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/proxyCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpProxyCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>None</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy/policyEnforcement" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.PolicyEnforcement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Never</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy/protectionScenario" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.ProtectionScenario, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>TransportSelected</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/extendedProtectionPolicy/customServiceNames" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>(Collection)</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/transport/realm" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/security/message" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpMessageSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.BasicHttpMessageSecurityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/message/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpMessageCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>UserName</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/security/message/algorithmSuite" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.Security.SecurityAlgorithmSuite, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Default</serializedValue>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</bindingConfiguration>
|
||||||
|
<bindingConfiguration bindingType="customBinding" name="ServiceSoap12">
|
||||||
|
<properties>
|
||||||
|
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap12</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/openTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/receiveTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/sendTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.TextMessageEncodingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.TextMessageEncodingElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/maxReadPoolSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>64</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/maxWritePoolSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>16</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/messageVersion" isComplexType="false" isExplicitlyDefined="true" clrType="System.ServiceModel.Channels.MessageVersion, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Soap12</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/readerQuotas" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/readerQuotas/maxDepth" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/readerQuotas/maxStringContentLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/readerQuotas/maxArrayLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/readerQuotas/maxBytesPerRead" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/readerQuotas/maxNameTableCharCount" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/textMessageEncoding/writeEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.Text.Encoding, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.Text.UTF8Encoding</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.HttpsTransportElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.HttpsTransportElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/manualAddressing" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/maxBufferPoolSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>524288</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/maxReceivedMessageSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>65536</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/allowCookies" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/requestInitializationTimeout" isComplexType="false" isExplicitlyDefined="false" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>00:00:00</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/authenticationScheme" isComplexType="false" isExplicitlyDefined="false" clrType="System.Net.AuthenticationSchemes, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Anonymous</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/bypassProxyOnLocal" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/decompressionEnabled" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>True</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/hostNameComparisonMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HostNameComparisonMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>StrongWildcard</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/keepAliveEnabled" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>True</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/maxBufferSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>65536</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/maxPendingAccepts" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/messageHandlerFactory" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.HttpMessageHandlerFactoryElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.HttpMessageHandlerFactoryElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/messageHandlerFactory/handlers" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.DelegatingHandlerElementCollection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>(Collection)</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/messageHandlerFactory/type" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/proxyAddress" isComplexType="false" isExplicitlyDefined="false" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/proxyAuthenticationScheme" isComplexType="false" isExplicitlyDefined="false" clrType="System.Net.AuthenticationSchemes, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Anonymous</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/realm" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/transferMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.TransferMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Buffered</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/unsafeConnectionNtlmAuthentication" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/useDefaultWebProxy" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>True</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/extendedProtectionPolicy" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/extendedProtectionPolicy/policyEnforcement" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.PolicyEnforcement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Never</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/extendedProtectionPolicy/protectionScenario" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.ProtectionScenario, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>TransportSelected</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/extendedProtectionPolicy/customServiceNames" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>(Collection)</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.WebSocketTransportSettingsElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.WebSocketTransportSettingsElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings/transportUsage" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.Channels.WebSocketTransportUsage, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>Never</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings/createNotificationOnConnection" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings/keepAliveInterval" isComplexType="false" isExplicitlyDefined="false" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>00:00:00</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings/subProtocol" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings/disablePayloadMasking" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/webSocketSettings/maxPendingConnections" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>0</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/httpsTransport/requireClientCertificate" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</bindingConfiguration>
|
||||||
|
</bindingConfigurations>
|
||||||
|
<endpoints>
|
||||||
|
<endpoint name="ServiceSoap" contract="WSKimberlyClark.ServiceSoap" bindingType="basicHttpBinding" address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" bindingConfiguration="ServiceSoap">
|
||||||
|
<properties>
|
||||||
|
<property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/binding" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>basicHttpBinding</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/bindingConfiguration" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/contract" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>WSKimberlyClark.ServiceSoap</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/headers" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.AddressHeaderCollectionElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.AddressHeaderCollectionElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/headers/headers" isComplexType="false" isExplicitlyDefined="true" clrType="System.ServiceModel.Channels.AddressHeaderCollection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue><Header /></serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.IdentityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.IdentityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/userPrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.UserPrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.UserPrincipalNameElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/userPrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/servicePrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.ServicePrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.ServicePrincipalNameElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/servicePrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/dns" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.DnsElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.DnsElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/dns/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/rsa" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.RsaElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.RsaElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/rsa/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificate" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.CertificateElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.CertificateReferenceElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/storeName" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreName, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>My</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/storeLocation" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreLocation, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>LocalMachine</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/x509FindType" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.X509FindType, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>FindBySubjectDistinguishedName</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/findValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/isChainIncluded" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/kind" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/endpointConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</endpoint>
|
||||||
|
<endpoint name="ServiceSoap12" contract="WSKimberlyClark.ServiceSoap" bindingType="customBinding" address="https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx" bindingConfiguration="ServiceSoap12">
|
||||||
|
<properties>
|
||||||
|
<property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/binding" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>customBinding</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/bindingConfiguration" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap12</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/contract" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>WSKimberlyClark.ServiceSoap</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/headers" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.AddressHeaderCollectionElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.AddressHeaderCollectionElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/headers/headers" isComplexType="false" isExplicitlyDefined="true" clrType="System.ServiceModel.Channels.AddressHeaderCollection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue><Header /></serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.IdentityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.IdentityElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/userPrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.UserPrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.UserPrincipalNameElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/userPrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/servicePrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.ServicePrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.ServicePrincipalNameElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/servicePrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/dns" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.DnsElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.DnsElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/dns/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/rsa" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.RsaElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.RsaElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/rsa/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificate" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.CertificateElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>System.ServiceModel.Configuration.CertificateReferenceElement</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/storeName" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreName, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>My</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/storeLocation" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreLocation, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>LocalMachine</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/x509FindType" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.X509FindType, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>FindBySubjectDistinguishedName</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/findValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/identity/certificateReference/isChainIncluded" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>False</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue>ServiceSoap12</serializedValue>
|
||||||
|
</property>
|
||||||
|
<property path="/kind" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
<property path="/endpointConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<serializedValue />
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</endpoint>
|
||||||
|
</endpoints>
|
||||||
|
</SavedWcfConfigurationInformation>
|
||||||
@@ -22,12 +22,11 @@ Public Class GenerarPDFFactura : Implements IHttpHandler
|
|||||||
|
|
||||||
Public ReadOnly Property EsProduccion As Boolean
|
Public ReadOnly Property EsProduccion As Boolean
|
||||||
Get
|
Get
|
||||||
Return False
|
If IsNothing(System.Configuration.ConfigurationManager.AppSettings("EsProduccion")) Then
|
||||||
'If IsNothing(System.Configuration.ConfigurationManager.AppSettings("EsProduccion")) Then
|
Return False
|
||||||
' Return False
|
Else
|
||||||
'Else
|
Return (System.Configuration.ConfigurationManager.AppSettings("EsProduccion").ToString() = "1")
|
||||||
' Return (System.Configuration.ConfigurationManager.AppSettings("EsProduccion").ToString() = "1")
|
End If
|
||||||
'End If
|
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -160,7 +159,7 @@ Public Class GenerarPDFFactura : Implements IHttpHandler
|
|||||||
|
|
||||||
Dim objxml As XmlSatCFDI = XmlSatCFDI.readXML(RutaXml)
|
Dim objxml As XmlSatCFDI = XmlSatCFDI.readXML(RutaXml)
|
||||||
|
|
||||||
Dim rutaReporte As String = "\Empresas\Grales\Formatos\FacturaSALI.rdlc"
|
Dim rutaReporte As String = "Empresas\Grales\Formatos\FacturaSALI.rdlc"
|
||||||
|
|
||||||
Dim QR As ClbNegBICFDv3_2.ClsNegCBBGenerar = New ClbNegBICFDv3_2.ClsNegCBBGenerar()
|
Dim QR As ClbNegBICFDv3_2.ClsNegCBBGenerar = New ClbNegBICFDv3_2.ClsNegCBBGenerar()
|
||||||
Dim cQr As Byte() = QR.GenerarCBBBytes(objxml.emisor.Rfc, objxml.receptor.Rfc, objxml.comprobante.Total, objxml.complemento.UUID)
|
Dim cQr As Byte() = QR.GenerarCBBBytes(objxml.emisor.Rfc, objxml.receptor.Rfc, objxml.comprobante.Total, objxml.complemento.UUID)
|
||||||
@@ -199,6 +198,7 @@ Public Class GenerarPDFFactura : Implements IHttpHandler
|
|||||||
parametros.Add(New ReportParameter("complemento_SelloSAT", objxml.complemento.SelloSAT))
|
parametros.Add(New ReportParameter("complemento_SelloSAT", objxml.complemento.SelloSAT))
|
||||||
parametros.Add(New ReportParameter("complemento_UUID", objxml.complemento.UUID))
|
parametros.Add(New ReportParameter("complemento_UUID", objxml.complemento.UUID))
|
||||||
parametros.Add(New ReportParameter("complemento_CadenaOriginal", objxml.complemento.CadenaOriginal))
|
parametros.Add(New ReportParameter("complemento_CadenaOriginal", objxml.complemento.CadenaOriginal))
|
||||||
|
parametros.Add(New ReportParameter("Observaciones", datos.Factura.Observaciones))
|
||||||
|
|
||||||
|
|
||||||
Dim ds As New List(Of ReportDataSource)
|
Dim ds As New List(Of ReportDataSource)
|
||||||
@@ -222,34 +222,30 @@ Public Class GenerarPDFFactura : Implements IHttpHandler
|
|||||||
|
|
||||||
ltotales.Add(New utilValores("Total", objxml.comprobante.Total.ToString("N2")))
|
ltotales.Add(New utilValores("Total", objxml.comprobante.Total.ToString("N2")))
|
||||||
rdsTotales.Name = "dsTotales"
|
rdsTotales.Name = "dsTotales"
|
||||||
rdsTotales.Value = ltotales
|
rdsTotales.Value = ltotales.QueryToDataTable(True)
|
||||||
ds.Add(rdsTotales)
|
ds.Add(rdsTotales)
|
||||||
|
|
||||||
Dim rds2 As ReportDataSource = New ReportDataSource()
|
Dim rds2 As ReportDataSource = New ReportDataSource()
|
||||||
Dim limagenes As List(Of utilImage) = New List(Of utilImage)()
|
Dim limagenes As List(Of utilImage) = New List(Of utilImage)()
|
||||||
limagenes.Add(New utilImage(cQr))
|
limagenes.Add(New utilImage(cQr))
|
||||||
rds2.Name = "dsImagenes"
|
rds2.Name = "dsImagenes"
|
||||||
rds2.Value = limagenes
|
rds2.Value = limagenes.QueryToDataTable(True)
|
||||||
ds.Add(rds2)
|
ds.Add(rds2)
|
||||||
|
|
||||||
Dim rdsrelacionados As ReportDataSource = New ReportDataSource()
|
Dim rdsrelacionados As ReportDataSource = New ReportDataSource()
|
||||||
rdsrelacionados.Name = "dsRelacionados"
|
rdsrelacionados.Name = "dsRelacionados"
|
||||||
rdsrelacionados.Value = objxml.cFDIRelacionados
|
rdsrelacionados.Value = objxml.cFDIRelacionados.QueryToDataTable(True)
|
||||||
ds.Add(rdsrelacionados)
|
ds.Add(rdsrelacionados)
|
||||||
|
|
||||||
Dim rds1 As ReportDataSource = New ReportDataSource()
|
Dim rds1 As ReportDataSource = New ReportDataSource()
|
||||||
rds1.Name = "dsConceptos"
|
rds1.Name = "dsConceptos"
|
||||||
rds1.Value = objxml.GetConceptosforpdf()
|
rds1.Value = objxml.GetConceptosforpdf().QueryToDataTable(True)
|
||||||
|
|
||||||
ds.Add(rds1)
|
ds.Add(rds1)
|
||||||
|
|
||||||
Try
|
bytes = StreamPDF(context, rutaReporte, ds, parametros)
|
||||||
bytes = StreamPDF(context, rutaReporte, ds, parametros)
|
|
||||||
|
|
||||||
System.IO.File.Delete(RutaXml)
|
System.IO.File.Delete(RutaXml)
|
||||||
Catch ex As Exception
|
|
||||||
|
|
||||||
End Try
|
|
||||||
|
|
||||||
Return bytes
|
Return bytes
|
||||||
|
|
||||||
@@ -269,8 +265,8 @@ Public Class GenerarPDFFactura : Implements IHttpHandler
|
|||||||
|
|
||||||
If EsProduccion Then
|
If EsProduccion Then
|
||||||
|
|
||||||
Dim CveUsuario As Integer = -1
|
Dim CveUsuario As Integer = 100
|
||||||
Dim CveEmpresa As Integer = -1
|
Dim CveEmpresa As Integer = 1
|
||||||
|
|
||||||
Dim wsreport As New WSRDLC.WebServiceSoapClient
|
Dim wsreport As New WSRDLC.WebServiceSoapClient
|
||||||
Dim params As New List(Of WSRDLC.ReportParameter)
|
Dim params As New List(Of WSRDLC.ReportParameter)
|
||||||
@@ -285,12 +281,14 @@ Public Class GenerarPDFFactura : Implements IHttpHandler
|
|||||||
dt.TableName = rpds.Name
|
dt.TableName = rpds.Name
|
||||||
ds.Tables.Add(dt)
|
ds.Tables.Add(dt)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
For Each rpds As ReportParameter In Parametros
|
For Each rpds As ReportParameter In Parametros
|
||||||
Dim param As New WSRDLC.ReportParameter
|
Dim param As New WSRDLC.ReportParameter
|
||||||
param.Name = rpds.Name
|
param.Name = rpds.Name
|
||||||
param.Values = {rpds.Values(0)}
|
param.Values = {rpds.Values(0)}
|
||||||
params.Add(param)
|
params.Add(param)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Bytes = wsreport.StreamPDFBytes(RutaReporte, ds, params.ToArray(), NombreArchivo, Formato, CveEmpresa, CveUsuario)
|
Bytes = wsreport.StreamPDFBytes(RutaReporte, ds, params.ToArray(), NombreArchivo, Formato, CveEmpresa, CveUsuario)
|
||||||
wsreport = Nothing
|
wsreport = Nothing
|
||||||
params = Nothing
|
params = Nothing
|
||||||
|
|||||||
@@ -2598,7 +2598,7 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
|
|
||||||
If Dep.DtResultados.Rows.Count > 0 Then
|
If Dep.DtResultados.Rows.Count > 0 Then
|
||||||
|
|
||||||
DdlCuentaDeposito.DataSource = Dep.DtResultados
|
DdlCuentaDeposito.DataSource = Dep.DtResultados.FiltraParametros(" Estatus ='True'")
|
||||||
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
||||||
|
|
||||||
trCuentaDeposito.Visible = True
|
trCuentaDeposito.Visible = True
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<asp:HyperLink Visible="false" NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
|
<asp:HyperLink Visible="false" NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||||
<asp:Label ID="LblTitulo" runat="server" Text="Cortes"></asp:Label>
|
<asp:Label ID="LblTitulo" runat="server" Text="Reporte Cortes"></asp:Label>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -72,7 +72,8 @@
|
|||||||
<br />
|
<br />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
SubProyecto
|
<asp:Label runat="server" ID="LblSubProyecto" Text="SubProyecto"/>
|
||||||
|
<%--SubProyecto--%>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList runat="server" ID="DdlSubProyectos" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm">
|
<asp:DropDownList runat="server" ID="DdlSubProyectos" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm">
|
||||||
@@ -160,7 +161,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label Text="Ventas Credito" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:Label Text="Ventas Crédito" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -187,7 +188,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label Text="Tarj. Debito" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:Label Text="Tarj. Débito" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -196,7 +197,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label Text="Tarj. Credito" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:Label Text="Tarj. Crédito" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -298,7 +299,7 @@
|
|||||||
<b>Detalles del Corte</b>
|
<b>Detalles del Corte</b>
|
||||||
<asp:GridView ID="GvP" runat="server" AutoGenerateColumns="False" GridLines="None" Caption="Resumen" CssClass="table table-striped table-advance table-hover ScrollAD">
|
<asp:GridView ID="GvP" runat="server" AutoGenerateColumns="False" GridLines="None" Caption="Resumen" CssClass="table table-striped table-advance table-hover ScrollAD">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Metodo Pago" DataField="MetodoPago" />
|
<asp:BoundField HeaderText="Método Pago" DataField="MetodoPago" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="Importe" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Importe" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
@@ -306,15 +307,15 @@
|
|||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
SerieFolio
|
Serie - Folio
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink ID="LBDescripcion" runat="server" Text='<%# Eval("SerieFolio") %>' NavigateUrl='<%# Eval("CveVenta", "/Ventas/Ventas.aspx?CveVenta={0}")%>' ></asp:HyperLink>
|
<asp:HyperLink ID="LBDescripcion" runat="server" Text='<%# Eval("SerieFolio") %>' NavigateUrl='<%# Eval("CveVenta", "/Ventas/Ventas.aspx?CveVenta={0}")%>' ></asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="NombreComercial" DataField="NombreComercial" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Cliente" DataField="NombreComercial" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="ImportePagado" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="ImportePagado" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Metodo Pago" DataField="MetodoPago" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Método Pago" DataField="MetodoPago" ItemStyle-HorizontalAlign="Left" />
|
||||||
</Columns>
|
</Columns>
|
||||||
<HeaderStyle CssClass="Titulos" />
|
<HeaderStyle CssClass="Titulos" />
|
||||||
<RowStyle CssClass="Texto" />
|
<RowStyle CssClass="Texto" />
|
||||||
|
|||||||
@@ -61,9 +61,7 @@ Partial Class Bancos_RepCortes
|
|||||||
txtFechaVI.Text = Now.ToShortDateString
|
txtFechaVI.Text = Now.ToShortDateString
|
||||||
txtFechaVF.Text = Now.ToShortDateString
|
txtFechaVF.Text = Now.ToShortDateString
|
||||||
Me.Form.DefaultButton = BtnConsultar.UniqueID
|
Me.Form.DefaultButton = BtnConsultar.UniqueID
|
||||||
DdlSubProyectos.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa)
|
CargarCentrosDeCosto(Nothing, DdlSubProyectos, Nothing, LblSubProyecto)
|
||||||
DdlSubProyectos.DataBind()
|
|
||||||
DdlSubProyectos.Items.Insert(0, New ListItem("Todos", "-1"))
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -518,7 +518,7 @@ Partial Class PopUpVerFactura
|
|||||||
End If
|
End If
|
||||||
ObjVenta.Dispose()
|
ObjVenta.Dispose()
|
||||||
ObjPuntoVenta.Dispose()
|
ObjPuntoVenta.Dispose()
|
||||||
Dim FechaCorte As String = $" <b>Fecha Corte:</b> {Fecha}"
|
Dim FechaCorte As String = $" <b>Fecha fin:</b> {Fecha}"
|
||||||
Dim Usuario As String = $" <b>Usuario:</b> {Nombre}"
|
Dim Usuario As String = $" <b>Usuario:</b> {Nombre}"
|
||||||
If DtCortesVentas.Rows.Count > 0 Or DtCortesVentasResumen.Rows.Count > 0 Then
|
If DtCortesVentas.Rows.Count > 0 Or DtCortesVentasResumen.Rows.Count > 0 Then
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
|
|||||||
@@ -1,38 +1,70 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogoAnual.aspx.vb" Inherits="Contabilidad2_RepAnexoCatalogoAnual" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogoAnual.aspx.vb" Inherits="Contabilidad2_RepAnexoCatalogoAnual" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
</asp:Content>
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<style>
|
||||||
Anexo del Catálogo - Anual
|
#chartdiv {
|
||||||
</asp:Content>
|
width: 100%;
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
height: 500px;
|
||||||
</asp:Content>
|
}
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
||||||
</asp:Content>
|
.fa.fa-bar-chart {
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
width: 16px;
|
||||||
</asp:Content>
|
height: 14px;
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
}
|
||||||
|
</style>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltros">
|
</asp:Content>
|
||||||
<ContentTemplate>
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
Anexo del Catálogo - Anual
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
</asp:Content>
|
||||||
<div class="portlet-title portlet-filterT smalltitle magindate">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
<div class="tools">
|
</asp:Content>
|
||||||
<asp:Button ID="BtnCargaAsignados" runat="server" Text="Consultar" class="btn btn-default" />
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</div>
|
|
||||||
<div class="titlefiltros caption ">
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpAcciones">
|
||||||
<ul class="list-inline" style="font-size: 12px;">
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkExportar" runat="server" Visible="false"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
<Triggers>
|
||||||
|
<asp:PostBackTrigger ControlID="LnkExportar" />
|
||||||
|
</Triggers>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltros">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
||||||
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
|
<div class="portlet-title portlet-filterT smalltitle magindate">
|
||||||
|
<div class="tools">
|
||||||
|
<asp:Button ID="BtnCargaAsignados" runat="server" Text="Consultar" class="btn btn-default" />
|
||||||
|
</div>
|
||||||
|
<div class="titlefiltros caption ">
|
||||||
|
<ul class="list-inline" style="font-size: 12px;">
|
||||||
<li>Ejercicio Inicio:
|
<li>Ejercicio Inicio:
|
||||||
<asp:DropDownList ID="DdlEjercicio" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
|
||||||
</li>
|
<asp:DropDownList ID="DdlEjercicio" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
||||||
<li>Ejercicio Fin:
|
</li>
|
||||||
<asp:DropDownList ID="DdlEjercicio2" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
<li>Ejercicio Fin:
|
||||||
</li>
|
|
||||||
<li> <label class="col-md-2" style="width: 80px;" runat="server" id="LiPeriodoLbl" >Periodo: </label>
|
<asp:DropDownList ID="DdlEjercicio2" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label class="col-md-2" style="width: 80px;" runat="server" id="LiPeriodoLbl">Periodo: </label>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
||||||
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
||||||
@@ -47,145 +79,407 @@
|
|||||||
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
||||||
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li>SubProyecto:
|
<li>SubProyecto:
|
||||||
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
||||||
</li>
|
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||||||
|
</li>
|
||||||
<li>Divisor:
|
<li>Divisor:
|
||||||
<asp:DropDownList ID="DdlDivisor" Width="100px" runat="server" CssClass="form-control input-sm select2me" ClientIDMode="Static">
|
|
||||||
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
<asp:DropDownList ID="DdlDivisor" Width="100px" runat="server" CssClass="form-control input-sm select2me" ClientIDMode="Static">
|
||||||
<asp:ListItem Text="1,000" Value="1000"></asp:ListItem>
|
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
|
<asp:ListItem Text="1,000" Value="1000"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
|
||||||
</li>
|
</asp:DropDownList>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</div>
|
||||||
</ContentTemplate>
|
</asp:Panel>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpAnual" UpdateMode="Conditional" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView ID="GvAnual" runat="server" AutoGenerateColumns="False" ShowHeader="true" EmptyDataText="No se encontraron datos" GridLines="none"
|
||||||
|
CssClass="ADSCROLLER2 table table-striped table-advance table-hover" data-cols="2" data-heightmenos="300">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<HeaderTemplate>
|
||||||
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica gral" NavigateUrl="javascript:void(0);" onclick="return cargaGraficaBarras2();"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<div style="white-space: nowrap">
|
||||||
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
<asp:CheckBox ID="chkgraf" CssClass="chkgraf" runat="server" />
|
||||||
|
</div>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="250px" ControlStyle-Width="250px">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<div style="width: 200px;">Nombre</div>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Label ID="LblTituloGrafica" CssClass="LblTituloGrafica" runat="server" ClientIDMode="Static" Text=""></asp:Label>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2"></div>
|
||||||
|
<label class="col-md-1 truncate">Grafica:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlGrafica" runat="server" AppendDataBoundItems="true" Class="DdlGrafica select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Pastel" Value="2"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div id="chartdiv"></div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
|
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
|
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let cdatos;
|
||||||
|
let currentid = 1;
|
||||||
|
function HandlerGraf(obj, evt) {
|
||||||
|
$("#DivModalGrafica").modal();
|
||||||
|
cdatos = $(obj).data('values');
|
||||||
|
if (currentid == 1) {
|
||||||
|
CargaGraficaBarras();
|
||||||
|
} else {
|
||||||
|
CargaGraficaPastel();
|
||||||
|
}
|
||||||
|
$('.LblTituloGrafica').text($(obj).parent().parent().text());
|
||||||
|
}
|
||||||
|
function CargaGraficaBarras() {
|
||||||
|
let data = cdatos;
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2,
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": [{
|
||||||
|
"balloonText": "[[category]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"valueField": "Valor"
|
||||||
|
}],
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function CargaGraficaPastel() {
|
||||||
|
let data = cdatos;
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "pie",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider":
|
||||||
|
data,
|
||||||
|
"valueField": "Valor",
|
||||||
|
"titleField": "Texto",
|
||||||
|
"outlineAlpha": 0.4,
|
||||||
|
"depth3D": 0,
|
||||||
|
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]% [[Moneda]])</span>",
|
||||||
|
"angle": 0,
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function ADSBegin() {
|
||||||
|
$('.DdlGrafica').on('select2:select', function (e) {
|
||||||
|
var data = e.params.data;
|
||||||
|
currentid = data.id;
|
||||||
|
if (currentid == 1) {
|
||||||
|
CargaGraficaBarras();
|
||||||
|
} else {
|
||||||
|
CargaGraficaPastel();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('.DdlGrafica').removeClass('DdlGrafica');
|
||||||
|
initamgrafica();
|
||||||
|
}
|
||||||
|
|
||||||
|
function cargaGraficaBarras2() {
|
||||||
|
//Hypgrafica
|
||||||
|
$("#DivModalGrafica").modal();
|
||||||
|
$('.LblTituloGrafica').text('grafica');
|
||||||
|
let items = []
|
||||||
|
let data;
|
||||||
|
let series = [];
|
||||||
|
$('.chkgraf input:checked').each(function () {
|
||||||
|
data = $(this).closest('tr').find('.Hypgrafica').data('values')
|
||||||
|
let name = $(this).closest('tr').text().trim()
|
||||||
|
items.push({ data: data, name: name })
|
||||||
|
});
|
||||||
|
if (items) {
|
||||||
|
data = items[0].data;
|
||||||
|
series.push({
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[0].name,
|
||||||
|
"valueField": 'Valor'
|
||||||
|
})
|
||||||
|
for (var indexcol = 1; indexcol < items.length; indexcol++) {
|
||||||
|
let cdatos = items[indexcol].data;
|
||||||
|
let valueField = 'Valor' + indexcol;
|
||||||
|
for (var i = 0; i < cdatos.length; i++) {
|
||||||
|
data[i][valueField] = cdatos[i].Valor
|
||||||
|
}
|
||||||
|
series.push({
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[indexcol].name,
|
||||||
|
"valueField": valueField
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2, "legend": {
|
||||||
|
|
||||||
|
"generateFromData": true // "data": data.map(function(num) { return {title:num.Texto ,color:num.Color}; })
|
||||||
|
},
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": series,
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function initamgrafica() {
|
||||||
|
AmCharts.addInitHandler(function (chart) {
|
||||||
|
function handleCustomMarkerToggle(legendEvent) {
|
||||||
|
var dataProvider = legendEvent.chart.dataProvider;
|
||||||
|
var itemIndex;
|
||||||
|
legendEvent.chart.toggleLegend = true;
|
||||||
|
if (undefined !== legendEvent.dataItem.hidden && legendEvent.dataItem.hidden) {
|
||||||
|
legendEvent.dataItem.hidden = false;
|
||||||
|
dataProvider.push(legendEvent.dataItem.storedObj);
|
||||||
|
legendEvent.dataItem.storedObj = undefined;
|
||||||
|
dataProvider.sort(function (lhs, rhs) {
|
||||||
|
return lhs.dataIdx - rhs.dataIdx;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
legendEvent.dataItem.hidden = true;
|
||||||
|
for (var i = 0; i < dataProvider.length; ++i) {
|
||||||
|
if (dataProvider[i].dataIdx === legendEvent.dataItem.dataIdx) {
|
||||||
|
itemIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
legendEvent.dataItem.storedObj = dataProvider[itemIndex];
|
||||||
|
dataProvider.splice(itemIndex, 1);
|
||||||
|
}
|
||||||
|
legendEvent.chart.validateData();
|
||||||
|
}
|
||||||
|
if (!chart.legend || !chart.legend.enabled || !chart.legend.generateFromData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var categoryField = chart.categoryField;
|
||||||
|
var colorField = chart.graphs[0].lineColorField || chart.graphs[0].fillColorsField || chart.graphs[0].colorField;
|
||||||
|
var legendData = chart.dataProvider.map(function (data, idx) {
|
||||||
|
var markerData = {
|
||||||
|
"title": data[categoryField],
|
||||||
|
"color": data[colorField],
|
||||||
|
"dataIdx": idx
|
||||||
|
};
|
||||||
|
if (!markerData.color) {
|
||||||
|
markerData.color = chart.graphs[0].lineColor;
|
||||||
|
}
|
||||||
|
data.dataIdx = idx;
|
||||||
|
return markerData;
|
||||||
|
});
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpAnual" UpdateMode="Conditional" runat="server">
|
chart.legend.data = legendData;
|
||||||
<ContentTemplate>
|
chart.legend.switchable = true;
|
||||||
<asp:GridView ID="GvAnual" runat="server" AutoGenerateColumns="False" ShowHeader="true" EmptyDataText="No se encontraron datos" GridLines="none" CssClass="table table-hover">
|
chart.legend.addListener("clickMarker", handleCustomMarkerToggle);
|
||||||
<Columns>
|
|
||||||
<asp:BoundField HeaderText="Nombre" DataField="Nombre" ItemStyle-HorizontalAlign="Left" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
|
|
||||||
|
}, ["serial"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function LimpiaCeros() {
|
function LimpiaCeros() {
|
||||||
|
|
||||||
let Divisor = $("#DdlDivisor option:selected").val();
|
let Divisor = $("#DdlDivisor option:selected").val();
|
||||||
|
|
||||||
$('.ceros').each(function (i, obj) {
|
$('.ceros').each(function (i, obj) {
|
||||||
debugger;
|
|
||||||
|
|
||||||
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
||||||
$(this).html('-');
|
$(this).html('-');
|
||||||
@@ -200,7 +494,7 @@
|
|||||||
//}
|
//}
|
||||||
///$(this).html(FormatoNumeroIPP(ToDouble($(this).html()) / Divisor, ((Divisor == 1) ? 2 : 0)));
|
///$(this).html(FormatoNumeroIPP(ToDouble($(this).html()) / Divisor, ((Divisor == 1) ? 2 : 0)));
|
||||||
|
|
||||||
$(this).html(FormatoNumeroIPP(ToDouble($(this).html()) , ((Divisor == 1) ? 2 : 0)));
|
$(this).html(FormatoNumeroIPP(ToDouble($(this).html()), ((Divisor == 1) ? 2 : 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ToDouble($(this).html()) < 0) {
|
if (ToDouble($(this).html()) < 0) {
|
||||||
@@ -210,7 +504,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function FormatoNumeroIPP(Importe, Decimales) {
|
function FormatoNumeroIPP(Importe, Decimales) {
|
||||||
debugger;
|
|
||||||
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
||||||
|
|
||||||
if (isNaN(parseInt(Importe))) return "NaN";
|
if (isNaN(parseInt(Importe))) return "NaN";
|
||||||
@@ -229,7 +522,7 @@
|
|||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,45 @@ Partial Class Contabilidad2_RepAnexoCatalogoAnual
|
|||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
ViewState("EsVertical") = value
|
ViewState("EsVertical") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property listacolores As List(Of String)
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listacolores"), List(Of String))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String))
|
||||||
|
ViewState("listacolores") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property listaCamposanios As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCamposanios"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCamposanios") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
|
||||||
|
listacolores = New List(Of String)
|
||||||
|
listaCamposanios = New List(Of String())
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
listacolores.Add("#FF6600")
|
||||||
|
listacolores.Add("#F8FF01")
|
||||||
|
listacolores.Add("#04D215")
|
||||||
|
listacolores.Add("#2A0CD0")
|
||||||
|
listacolores.Add("#8A0CCF")
|
||||||
|
listacolores.Add("#CD0D74")
|
||||||
|
listacolores.Add("#754DEB")
|
||||||
|
listacolores.Add("#DDDDDD")
|
||||||
|
listacolores.Add("#999999")
|
||||||
|
listacolores.Add("#000000")
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
Dim EjercicioParametro, EjercicioParametroFinal, SubProyectoParametro, DivisorParametro, Periodo As Integer
|
Dim EjercicioParametro, EjercicioParametroFinal, SubProyectoParametro, DivisorParametro, Periodo As Integer
|
||||||
|
|
||||||
CveCuenta = IfNull(Request("CveCuenta"), "-1").ToString.ToEntero
|
CveCuenta = IfNull(Request("CveCuenta"), "-1").ToString.ToEntero
|
||||||
@@ -95,26 +128,27 @@ Partial Class Contabilidad2_RepAnexoCatalogoAnual
|
|||||||
Dim DtHeaders As DataTable = Conta.DSResultados.Tables(0)
|
Dim DtHeaders As DataTable = Conta.DSResultados.Tables(0)
|
||||||
GvAnual.DataSource = Conta.DSResultados.Tables(1)
|
GvAnual.DataSource = Conta.DSResultados.Tables(1)
|
||||||
|
|
||||||
Dim Index = 1
|
Dim Index = 2
|
||||||
For Index = 1 To GvAnual.Columns.Count - 1
|
For Index = 2 To GvAnual.Columns.Count - 1
|
||||||
GvAnual.Columns(Index).Visible = False
|
GvAnual.Columns(Index).Visible = False
|
||||||
Next Index
|
Next Index
|
||||||
|
listaCamposanios.Clear()
|
||||||
Index = 1
|
Index = 2
|
||||||
For Each Dr As DataRow In DtHeaders.Rows
|
For Each Dr As DataRow In DtHeaders.Rows
|
||||||
GvAnual.Columns(Index).Visible = True
|
GvAnual.Columns(Index).Visible = True
|
||||||
CType(GvAnual.Columns(Index), BoundField).DataField = $"Ejercicio{Dr("Ejercicio").ToString}"
|
CType(GvAnual.Columns(Index), BoundField).DataField = String.Format("Ejercicio{0}", Dr("Ejercicio"))
|
||||||
GvAnual.Columns(Index).HeaderText = Dr("Ejercicio").ToString
|
GvAnual.Columns(Index).HeaderText = Dr("Ejercicio").ToString
|
||||||
|
listaCamposanios.Add(New String() {String.Format("Ejercicio{0}", Dr("Ejercicio")), Dr("Ejercicio").ToString()})
|
||||||
|
|
||||||
If Not DdlEjercicio.SelectedValue = Dr("Ejercicio").ToString Then
|
If Not DdlEjercicio.SelectedValue = Dr("Ejercicio").ToString Then
|
||||||
If EsVertical <> 1 Then
|
If EsVertical <> 1 Then
|
||||||
GvAnual.Columns(Index + 1).Visible = True
|
GvAnual.Columns(Index + 1).Visible = True
|
||||||
CType(GvAnual.Columns(Index + 1), BoundField).DataField = $"Ejercicio{Dr("Ejercicio").ToString}VariacionImporte"
|
CType(GvAnual.Columns(Index + 1), BoundField).DataField = String.Format("Ejercicio{0}VariacionImporte", Dr("Ejercicio"))
|
||||||
GvAnual.Columns(Index + 1).HeaderText = "$"
|
GvAnual.Columns(Index + 1).HeaderText = "$"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvAnual.Columns(Index + 2).Visible = True
|
GvAnual.Columns(Index + 2).Visible = True
|
||||||
CType(GvAnual.Columns(Index + 2), BoundField).DataField = $"Ejercicio{Dr("Ejercicio").ToString}{If(EsVertical = 1, "", "Variacion")}Porcentaje"
|
CType(GvAnual.Columns(Index + 2), BoundField).DataField = String.Format("Ejercicio{0}{1}Porcentaje", Dr("Ejercicio"), If(EsVertical = 1, "", "Variacion"))
|
||||||
GvAnual.Columns(Index + 2).HeaderText = "%"
|
GvAnual.Columns(Index + 2).HeaderText = "%"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -133,26 +167,68 @@ Partial Class Contabilidad2_RepAnexoCatalogoAnual
|
|||||||
|
|
||||||
'RegistraScript($"LimpiaCeros({DdlDivisor.SelectedValue});")
|
'RegistraScript($"LimpiaCeros({DdlDivisor.SelectedValue});")
|
||||||
RegistraScript($"LimpiaCeros();")
|
RegistraScript($"LimpiaCeros();")
|
||||||
Conta.Dispose()
|
Conta.Dispose()
|
||||||
End Sub
|
|
||||||
|
|
||||||
|
|
||||||
|
If GvAnual.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
LnkExportar.Visible = True
|
||||||
|
UpAcciones.Update()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region " GV ROW DATABOUND "
|
#Region " GV ROW DATABOUND "
|
||||||
Protected Sub GvAnual_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvAnual.RowDataBound
|
Protected Sub GvAnual_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvAnual.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCC(e)
|
||||||
If e.Row.RowIndex = 0 Then
|
If e.Row.RowIndex = 0 Then
|
||||||
e.Row.Style.Add("font-weight", "bold")
|
e.Row.Style.Add("font-weight", "bold")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
e.Row.Style.Add("text-indent", $"{e.Row.DBCampo("Level").ToString.ToEntero * 2}em")
|
e.Row.Cells(1).Style.Add("text-indent", $"{e.Row.DBCampo("Level").ToString.ToEntero * 2}em")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Public Sub setgraficaCC(e As GridViewRowEventArgs)
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
Dim colorindex As Integer = 0
|
||||||
|
For Each campo As String() In listaCamposanios
|
||||||
|
lista.Add(New With {.Texto = campo(1), .Valor = e.Row.DBCampo(campo(0)).ToDecimal(), .Color = listacolores(colorindex)})
|
||||||
|
colorindex = colorindex + 1
|
||||||
|
If colorindex >= listacolores.Count Then
|
||||||
|
colorindex = 0
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||||
|
|
||||||
|
Dim SubProyecto As String = ""
|
||||||
|
|
||||||
|
If DdlSubProyecto.SelectedValue.ToEntero > 0 Then
|
||||||
|
SubProyecto = DdlSubProyecto.SelectedItem.Text
|
||||||
|
End If
|
||||||
|
|
||||||
|
GvAnual.ExportToExcelGembox("AnexoCatálogoAnual", UsuarioActual, $"01/01/{DdlEjercicio.SelectedValue}", $"31/12/{DdlEjercicio2.SelectedValue}", "Anexo del Catálogo - Anual", SubProyecto, DdlDivisor.SelectedValue.ToEntero, DatoTituloExtra:=$"Periodo {DdlPeriodo.SelectedItem.Text}")
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,41 +1,68 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogoCC.aspx.vb" Inherits="Contabilidad2_RepAnexoCatalogoCC" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogoCC.aspx.vb" Inherits="Contabilidad2_RepAnexoCatalogoCC" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
</asp:Content>
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<style>
|
||||||
|
#chartdiv {
|
||||||
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fa.fa-bar-chart {
|
||||||
|
width: 16px;
|
||||||
|
height: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Anexo de Catálogo - Centro Costo
|
Anexo de Catálogo - Centro Costo
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpAcciones">
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
<ContentTemplate>
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkExportar" runat="server" Visible="false"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton>
|
||||||
|
</li>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltros">
|
|
||||||
<ContentTemplate>
|
</ContentTemplate>
|
||||||
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
<Triggers>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<asp:PostBackTrigger ControlID="LnkExportar" />
|
||||||
<div class="portlet-title portlet-filterT smalltitle magindate">
|
</Triggers>
|
||||||
<div class="tools">
|
</asp:UpdatePanel>
|
||||||
<asp:Button ID="BtnCargaAsignados" runat="server" Text="Consultar" class="btn btn-default" />
|
</asp:Content>
|
||||||
</div>
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
<div class="titlefiltros caption ">
|
</asp:Content>
|
||||||
<ul class="list-inline" style="font-size: 12px;">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltros">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
||||||
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
|
<div class="portlet-title portlet-filterT smalltitle magindate">
|
||||||
|
<div class="tools">
|
||||||
|
<asp:Button ID="BtnCargaAsignados" runat="server" Text="Consultar" class="btn btn-default" />
|
||||||
|
</div>
|
||||||
|
<div class="titlefiltros caption ">
|
||||||
|
<ul class="list-inline" style="font-size: 12px;">
|
||||||
<li>Ejercicio:
|
<li>Ejercicio:
|
||||||
<asp:DropDownList ID="DdlEjercicio" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
|
||||||
</li>
|
<asp:DropDownList ID="DdlEjercicio" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
||||||
<li><asp:Label runat="server" ID="LblSubProyecto" ></asp:Label>
|
</li>
|
||||||
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
<li>
|
||||||
</li>
|
<asp:Label runat="server" ID="LblSubProyecto"></asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||||||
<li> <label class="col-md-2" style="width: 80px;" runat="server" id="LiPeriodoLbl" >Periodo: </label>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<label class="col-md-2" style="width: 80px;" runat="server" id="LiPeriodoLbl">Periodo: </label>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
||||||
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
||||||
@@ -50,182 +77,444 @@
|
|||||||
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
||||||
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>Divisor:
|
<li>Divisor:
|
||||||
<asp:DropDownList ID="DdlDivisor" Width="100px" runat="server" CssClass="form-control input-sm select2me">
|
|
||||||
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
<asp:DropDownList ID="DdlDivisor" Width="100px" runat="server" CssClass="form-control input-sm select2me">
|
||||||
<asp:ListItem Text="1,000" Value="1000" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
|
<asp:ListItem Text="1,000" Value="1000" Selected="True"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
|
||||||
</li>
|
</asp:DropDownList>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</div>
|
||||||
</ContentTemplate>
|
</asp:Panel>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpCC" UpdateMode="Conditional" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div style="background-color: #fff;">
|
||||||
|
<asp:GridView ID="GvCC" runat="server" AutoGenerateColumns="False" ShowHeader="true" EmptyDataText="No se encontraron datos" GridLines="none"
|
||||||
|
CssClass="ADSCROLLER2 table table-striped table-advance table-hover" data-cols="2" data-heightmenos="300">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<HeaderTemplate>
|
||||||
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica gral" NavigateUrl="javascript:void(0);" onclick="return cargaGraficaBarras2();"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<div style="white-space: nowrap">
|
||||||
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
<asp:CheckBox ID="chkgraf" CssClass="chkgraf" runat="server" />
|
||||||
|
</div>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="250px" ControlStyle-Width="250px">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<div style="width: 200px;">Nombre</div>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" DataField="SubProyectoGeneral" HeaderText="Total" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" DataField="SubProyectoNA" HeaderText="Sin SubProyecto" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" DataField="SubProyectoNAPorcentaje" HeaderText="%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Label ID="LblTituloGrafica" CssClass="LblTituloGrafica" runat="server" ClientIDMode="Static" Text=""></asp:Label>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2"></div>
|
||||||
|
<label class="col-md-1 truncate">Grafica:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlGrafica" runat="server" AppendDataBoundItems="true" Class="DdlGrafica select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Pastel" Value="2"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div id="chartdiv"></div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
|
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
|
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let cdatos;
|
||||||
|
let currentid = 1;
|
||||||
|
function HandlerGraf(obj, evt) {
|
||||||
|
$("#DivModalGrafica").modal();
|
||||||
|
cdatos = $(obj).data('values');
|
||||||
|
if (currentid == 1) {
|
||||||
|
CargaGraficaBarras();
|
||||||
|
} else {
|
||||||
|
CargaGraficaPastel();
|
||||||
|
}
|
||||||
|
$('.LblTituloGrafica').text($(obj).parent().parent().text());
|
||||||
|
}
|
||||||
|
function CargaGraficaBarras() {
|
||||||
|
let data = cdatos;
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2,
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": [{
|
||||||
|
"balloonText": "[[category]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"valueField": "Valor"
|
||||||
|
}],
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function CargaGraficaPastel() {
|
||||||
|
let data = cdatos;
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "pie",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider":
|
||||||
|
data,
|
||||||
|
"valueField": "Valor",
|
||||||
|
"titleField": "Texto",
|
||||||
|
"outlineAlpha": 0.4,
|
||||||
|
"depth3D": 0,
|
||||||
|
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]% [[Moneda]])</span>",
|
||||||
|
"angle": 0,
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function ADSBegin() {
|
||||||
|
$('.DdlGrafica').on('select2:select', function (e) {
|
||||||
|
var data = e.params.data;
|
||||||
|
currentid = data.id;
|
||||||
|
if (currentid == 1) {
|
||||||
|
CargaGraficaBarras();
|
||||||
|
} else {
|
||||||
|
CargaGraficaPastel();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('.DdlGrafica').removeClass('DdlGrafica');
|
||||||
|
initamgrafica();
|
||||||
|
}
|
||||||
|
|
||||||
|
function cargaGraficaBarras2() {
|
||||||
|
//Hypgrafica
|
||||||
|
$("#DivModalGrafica").modal();
|
||||||
|
$('.LblTituloGrafica').text('grafica');
|
||||||
|
let items = []
|
||||||
|
let data;
|
||||||
|
let series = [];
|
||||||
|
$('.chkgraf input:checked').each(function () {
|
||||||
|
data = $(this).closest('tr').find('.Hypgrafica').data('values')
|
||||||
|
let name = $(this).closest('tr').text().trim()
|
||||||
|
items.push({ data: data, name: name })
|
||||||
|
});
|
||||||
|
if (items) {
|
||||||
|
data = items[0].data;
|
||||||
|
series.push({
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[0].name,
|
||||||
|
"valueField": 'Valor'
|
||||||
|
})
|
||||||
|
for (var indexcol = 1; indexcol < items.length; indexcol++) {
|
||||||
|
let cdatos = items[indexcol].data;
|
||||||
|
let valueField = 'Valor' + indexcol;
|
||||||
|
for (var i = 0; i < cdatos.length; i++) {
|
||||||
|
data[i][valueField] = cdatos[i].Valor
|
||||||
|
}
|
||||||
|
series.push({
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[indexcol].name,
|
||||||
|
"valueField": valueField
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2, "legend": {
|
||||||
|
|
||||||
|
"generateFromData": true // "data": data.map(function(num) { return {title:num.Texto ,color:num.Color}; })
|
||||||
|
},
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": series,
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function initamgrafica() {
|
||||||
|
AmCharts.addInitHandler(function (chart) {
|
||||||
|
function handleCustomMarkerToggle(legendEvent) {
|
||||||
|
var dataProvider = legendEvent.chart.dataProvider;
|
||||||
|
var itemIndex;
|
||||||
|
legendEvent.chart.toggleLegend = true;
|
||||||
|
if (undefined !== legendEvent.dataItem.hidden && legendEvent.dataItem.hidden) {
|
||||||
|
legendEvent.dataItem.hidden = false;
|
||||||
|
dataProvider.push(legendEvent.dataItem.storedObj);
|
||||||
|
legendEvent.dataItem.storedObj = undefined;
|
||||||
|
dataProvider.sort(function (lhs, rhs) {
|
||||||
|
return lhs.dataIdx - rhs.dataIdx;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
legendEvent.dataItem.hidden = true;
|
||||||
|
for (var i = 0; i < dataProvider.length; ++i) {
|
||||||
|
if (dataProvider[i].dataIdx === legendEvent.dataItem.dataIdx) {
|
||||||
|
itemIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
legendEvent.dataItem.storedObj = dataProvider[itemIndex];
|
||||||
|
dataProvider.splice(itemIndex, 1);
|
||||||
|
}
|
||||||
|
legendEvent.chart.validateData();
|
||||||
|
}
|
||||||
|
if (!chart.legend || !chart.legend.enabled || !chart.legend.generateFromData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var categoryField = chart.categoryField;
|
||||||
|
var colorField = chart.graphs[0].lineColorField || chart.graphs[0].fillColorsField || chart.graphs[0].colorField;
|
||||||
|
var legendData = chart.dataProvider.map(function (data, idx) {
|
||||||
|
var markerData = {
|
||||||
|
"title": data[categoryField],
|
||||||
|
"color": data[colorField],
|
||||||
|
"dataIdx": idx
|
||||||
|
};
|
||||||
|
if (!markerData.color) {
|
||||||
|
markerData.color = chart.graphs[0].lineColor;
|
||||||
|
}
|
||||||
|
data.dataIdx = idx;
|
||||||
|
return markerData;
|
||||||
|
});
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpCC" UpdateMode="Conditional" runat="server">
|
chart.legend.data = legendData;
|
||||||
<ContentTemplate>
|
chart.legend.switchable = true;
|
||||||
|
chart.legend.addListener("clickMarker", handleCustomMarkerToggle);
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12" style="overflow:auto!important">
|
|
||||||
<asp:GridView ID="GvCC" runat="server" AutoGenerateColumns="False" ShowHeader="true" EmptyDataText="No se encontraron datos" GridLines="none" CssClass="table table-hover">
|
|
||||||
<Columns>
|
|
||||||
<asp:BoundField HeaderText="Nombre" DataField="Nombre" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="500px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" DataField="SubProyectoGeneral" HeaderText="Total" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" DataField="SubProyectoNA" HeaderText="Sin SubProyecto" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" DataField="SubProyectoNAPorcentaje" HeaderText="%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
|
||||||
<asp:BoundField DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
|
|
||||||
|
}, ["serial"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function LimpiaCeros(Divisor) {
|
function LimpiaCeros(Divisor) {
|
||||||
$('.ceros').each(function (i, obj) {
|
$('.ceros').each(function (i, obj) {
|
||||||
@@ -270,7 +559,7 @@
|
|||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Option Strict On
|
|||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Partial Class Contabilidad2_RepAnexoCatalogoCC
|
Partial Class Contabilidad2_RepAnexoCatalogoCC
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
#Region " PROPIEDADES "
|
#Region " PROPIEDADES "
|
||||||
Public Property CveCuenta As Integer
|
Public Property CveCuenta As Integer
|
||||||
Get
|
Get
|
||||||
@@ -14,12 +14,44 @@ Partial Class Contabilidad2_RepAnexoCatalogoCC
|
|||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
ViewState("CveCuenta") = value
|
ViewState("CveCuenta") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property listacolores As List(Of String)
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listacolores"), List(Of String))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String))
|
||||||
|
ViewState("listacolores") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property listaCampos As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCampos"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCampos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
|
||||||
|
listacolores = New List(Of String)
|
||||||
|
listaCampos = New List(Of String())
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
listacolores.Add("#FF6600")
|
||||||
|
listacolores.Add("#F8FF01")
|
||||||
|
listacolores.Add("#04D215")
|
||||||
|
listacolores.Add("#2A0CD0")
|
||||||
|
listacolores.Add("#8A0CCF")
|
||||||
|
listacolores.Add("#CD0D74")
|
||||||
|
listacolores.Add("#754DEB")
|
||||||
|
listacolores.Add("#DDDDDD")
|
||||||
|
listacolores.Add("#999999")
|
||||||
|
listacolores.Add("#000000")
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
'Dim EjercicioParametro, SubProyectoParametro, DivisorParametro As Integer
|
'Dim EjercicioParametro, SubProyectoParametro, DivisorParametro As Integer
|
||||||
'CveCuenta = IfNull(Request("C"), "-1").ToString.ToEntero
|
'CveCuenta = IfNull(Request("C"), "-1").ToString.ToEntero
|
||||||
'EjercicioParametro = IfNull(Request("E"), "-1").ToString.ToEntero
|
'EjercicioParametro = IfNull(Request("E"), "-1").ToString.ToEntero
|
||||||
@@ -91,17 +123,19 @@ Partial Class Contabilidad2_RepAnexoCatalogoCC
|
|||||||
Dim Index = 4
|
Dim Index = 4
|
||||||
For Index = 4 To GvCC.Columns.Count - 1
|
For Index = 4 To GvCC.Columns.Count - 1
|
||||||
GvCC.Columns(Index).Visible = False
|
GvCC.Columns(Index).Visible = False
|
||||||
Next Index
|
Next Index
|
||||||
|
listaCampos.Clear()
|
||||||
|
|
||||||
Index = 4
|
Index = 4
|
||||||
For Each Dr As DataRow In DtHeaders.Rows
|
For Each Dr As DataRow In DtHeaders.Rows
|
||||||
GvCC.Columns(Index).Visible = True
|
GvCC.Columns(Index).Visible = True
|
||||||
CType(GvCC.Columns(Index), BoundField).DataField = $"SubProyecto{Dr("SubProyecto").ToString}"
|
CType(GvCC.Columns(Index), BoundField).DataField = String.Format("SubProyecto{0}", Dr("SubProyecto"))
|
||||||
GvCC.Columns(Index).HeaderText = Dr("SubProyecto").ToString
|
GvCC.Columns(Index).HeaderText = Dr("SubProyecto").ToString()
|
||||||
|
listaCampos.Add(New String() {String.Format("SubProyecto{0}", Dr("SubProyecto")), Dr("SubProyecto").ToString()})
|
||||||
|
|
||||||
|
|
||||||
GvCC.Columns(Index + 1).Visible = True
|
GvCC.Columns(Index + 1).Visible = True
|
||||||
CType(GvCC.Columns(Index + 1), BoundField).DataField = $"SubProyecto{Dr("SubProyecto").ToString}Porcentaje"
|
CType(GvCC.Columns(Index + 1), BoundField).DataField = String.Format("SubProyecto{0}Porcentaje", Dr("SubProyecto"))
|
||||||
GvCC.Columns(Index + 1).HeaderText = "%"
|
GvCC.Columns(Index + 1).HeaderText = "%"
|
||||||
|
|
||||||
Index += 2
|
Index += 2
|
||||||
@@ -112,15 +146,23 @@ Partial Class Contabilidad2_RepAnexoCatalogoCC
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
GvCC.DataSource = Nothing
|
GvCC.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If GvCC.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
LnkExportar.Visible = True
|
||||||
|
UpAcciones.Update()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
RegistraScript($"LimpiaCeros({DdlDivisor.SelectedValue});")
|
RegistraScript($"LimpiaCeros({DdlDivisor.SelectedValue});")
|
||||||
Conta.Dispose()
|
Conta.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region " GV ROW DATABOUND "
|
#Region " GV ROW DATABOUND "
|
||||||
Protected Sub GvCC_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvCC.RowDataBound
|
Protected Sub GvCC_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvCC.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -128,13 +170,39 @@ Partial Class Contabilidad2_RepAnexoCatalogoCC
|
|||||||
If e.Row.RowIndex = 0 Then
|
If e.Row.RowIndex = 0 Then
|
||||||
e.Row.Style.Add("font-weight", "bold")
|
e.Row.Style.Add("font-weight", "bold")
|
||||||
End If
|
End If
|
||||||
|
setgraficaCC(e)
|
||||||
e.Row.Style.Add("text-indent", $"{e.Row.DBCampo("Level").ToString.ToEntero * 2}em")
|
e.Row.Cells(1).Style.Add("text-indent", $"{e.Row.DBCampo("Level").ToString.ToEntero * 2}em")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgraficaCC(e As GridViewRowEventArgs)
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
Dim colorindex As Integer = 0
|
||||||
|
For Each campo As String() In listaCampos
|
||||||
|
lista.Add(New With {.Texto = campo(1), .Valor = e.Row.DBCampo(campo(0)).ToDecimal(), .Color = listacolores(colorindex)})
|
||||||
|
colorindex = colorindex + 1
|
||||||
|
If colorindex >= listacolores.Count Then
|
||||||
|
colorindex = 0
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
Private Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||||
|
|
||||||
|
Dim SubProyecto As String = ""
|
||||||
|
|
||||||
|
If DdlSubProyecto.SelectedValue.ToEntero > 0 Then
|
||||||
|
SubProyecto = DdlSubProyecto.SelectedItem.Text
|
||||||
|
End If
|
||||||
|
|
||||||
|
GvCC.ExportToExcelGembox("AnexoCatálogoMensual", UsuarioActual, $"01/01/{DdlEjercicio.SelectedValue}", $"31/12/{DdlEjercicio.SelectedValue}", "Anexo del Catálogo - Mensual", SubProyecto, DdlDivisor.SelectedValue.ToEntero, DatoTituloExtra:=$"Periodo {DdlPeriodo.SelectedItem.Text}")
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,43 +1,70 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogoMensual.aspx.vb" Inherits="Contabilidad2_RepAnexoCatalogoMensual" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogoMensual.aspx.vb" Inherits="Contabilidad2_RepAnexoCatalogoMensual" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
<style>
|
<style>
|
||||||
#C_GvMensual2 > tbody > tr:nth-child(1) > th:nth-child(1), #C_GvMensual2 > tbody > tr:nth-child(2) > td:nth-child(1){
|
#chartdiv {
|
||||||
width:500px!important;
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
</asp:Content>
|
.fa.fa-bar-chart {
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
width: 16px;
|
||||||
|
height: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*#C_GvMensual2 > tbody > tr:nth-child(1) > th:nth-child(1), #C_GvMensual2 > tbody > tr:nth-child(2) > td:nth-child(1) {
|
||||||
|
width: 500px !important;
|
||||||
|
}*/
|
||||||
|
</style>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Anexo del Catálogo - Mensual
|
Anexo del Catálogo - Mensual
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpAcciones">
|
||||||
</asp:Content>
|
<ContentTemplate>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
||||||
|
<li>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltros">
|
<asp:LinkButton ID="LnkExportar" runat="server" Visible="false"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton>
|
||||||
<ContentTemplate>
|
</li>
|
||||||
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
</ContentTemplate>
|
||||||
<div class="portlet-title portlet-filterT smalltitle magindate">
|
<Triggers>
|
||||||
<div class="tools">
|
<asp:PostBackTrigger ControlID="LnkExportar" />
|
||||||
<asp:Button ID="BtnCargaAsignados" runat="server" Text="Consultar" class="btn btn-default" />
|
</Triggers>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
<div class="titlefiltros caption ">
|
|
||||||
<ul class="list-inline" style="font-size: 12px;">
|
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltros">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
||||||
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
|
<div class="portlet-title portlet-filterT smalltitle magindate">
|
||||||
|
<div class="tools">
|
||||||
|
<asp:Button ID="BtnCargaAsignados" runat="server" Text="Consultar" class="btn btn-default" />
|
||||||
|
</div>
|
||||||
|
<div class="titlefiltros caption ">
|
||||||
|
<ul class="list-inline" style="font-size: 12px;">
|
||||||
<li>Ejercicio:
|
<li>Ejercicio:
|
||||||
<asp:DropDownList ID="DdlEjercicio" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
|
||||||
</li>
|
<asp:DropDownList ID="DdlEjercicio" runat="server" DataTextField="Ejercicio" DataValueField="Ejercicio" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
||||||
|
</li>
|
||||||
<li>
|
|
||||||
<label class="col-md-2" style="width: 80px;" runat="server" id="LiPeriodoLbl" >Periodo: </label>
|
<li>
|
||||||
|
<label class="col-md-2" style="width: 80px;" runat="server" id="LiPeriodoLbl">Periodo: </label>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
||||||
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
||||||
@@ -52,91 +79,352 @@
|
|||||||
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
||||||
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li>SubProyecto:
|
<li>SubProyecto:
|
||||||
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
||||||
</li>
|
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||||||
|
</li>
|
||||||
<li>Divisor:
|
<li>Divisor:
|
||||||
<asp:DropDownList ID="DdlDivisor" Width="100px" runat="server" CssClass="form-control input-sm select2me">
|
|
||||||
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
<asp:DropDownList ID="DdlDivisor" Width="100px" runat="server" CssClass="form-control input-sm select2me">
|
||||||
<asp:ListItem Text="1,000" Value="1000" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
|
<asp:ListItem Text="1,000" Value="1000" Selected="True"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
|
||||||
</li>
|
</asp:DropDownList>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</div>
|
||||||
</ContentTemplate>
|
</asp:Panel>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpMensual" UpdateMode="Conditional" runat="server">
|
<asp:UpdatePanel ID="UpMensual" UpdateMode="Conditional" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div style="overflow:auto">
|
<div style="background-color: #fff;">
|
||||||
<asp:GridView ID="GvMensual2" runat="server" AutoGenerateColumns="False" ShowHeader="true" EmptyDataText="No se encontraron datos" GridLines="none" CssClass="table table-hover">
|
<asp:GridView ID="GvMensual2" runat="server" AutoGenerateColumns="False" ShowHeader="true" EmptyDataText="No se encontraron datos" GridLines="none"
|
||||||
<Columns>
|
CssClass="ADSCROLLER2 table table-striped table-advance table-hover" data-cols="2" data-heightmenos="300">
|
||||||
<asp:BoundField HeaderText="Nombre" DataField="Nombre" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="500px" ControlStyle-Width="500px" />
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Enero" DataField="Enero" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="Febrero" DataField="Febrero" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<HeaderTemplate>
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionFebreroImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica gral" NavigateUrl="javascript:void(0);" onclick="return cargaGraficaBarras2();"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionFebreroPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
</HeaderTemplate>
|
||||||
<asp:BoundField HeaderText="Marzo" DataField="Marzo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<ItemTemplate>
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionMarzoImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<div style="white-space: nowrap">
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionMarzoPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
<asp:BoundField HeaderText="Abril" DataField="Abril" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:CheckBox ID="chkgraf" CssClass="chkgraf" runat="server" />
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionAbrilImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
</div>
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionAbrilPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
</ItemTemplate>
|
||||||
<asp:BoundField HeaderText="Mayo" DataField="Mayo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionMayoImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="250px" ControlStyle-Width="250px">
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionMayoPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<HeaderTemplate>
|
||||||
<asp:BoundField HeaderText="Junio" DataField="Junio" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<div style="width: 200px;">Nombre</div>
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionJunioImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
</HeaderTemplate>
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionJunioPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<ItemTemplate>
|
||||||
<asp:BoundField HeaderText="Julio" DataField="Julio" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:Label runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionJulioImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
</ItemTemplate>
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionJulioPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="Agosto" DataField="Agosto" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:BoundField HeaderText="Enero" DataField="Enero" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionAgostoImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:BoundField HeaderText="Febrero" DataField="Febrero" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionAgostoPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<asp:BoundField HeaderText="$" DataField="VariacionFebreroImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
<asp:BoundField HeaderText="Septiembre" DataField="Septiembre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:BoundField HeaderText="%" DataField="VariacionFebreroPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionSeptiembreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:BoundField HeaderText="Marzo" DataField="Marzo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionSeptiembrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<asp:BoundField HeaderText="$" DataField="VariacionMarzoImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
<asp:BoundField HeaderText="Octubre" DataField="Octubre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:BoundField HeaderText="%" DataField="VariacionMarzoPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionOctubreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:BoundField HeaderText="Abril" DataField="Abril" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionOctubrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<asp:BoundField HeaderText="$" DataField="VariacionAbrilImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
<asp:BoundField HeaderText="Noviembre" DataField="Noviembre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:BoundField HeaderText="%" DataField="VariacionAbrilPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionNoviembreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:BoundField HeaderText="Mayo" DataField="Mayo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionNoviembrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<asp:BoundField HeaderText="$" DataField="VariacionMayoImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
<asp:BoundField HeaderText="Diciembre" DataField="Diciembre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
<asp:BoundField HeaderText="%" DataField="VariacionMayoPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
<asp:BoundField HeaderText="$" DataField="VariacionDiciembreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
<asp:BoundField HeaderText="Junio" DataField="Junio" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
<asp:BoundField HeaderText="%" DataField="VariacionDiciembrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
<asp:BoundField HeaderText="$" DataField="VariacionJunioImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
</Columns>
|
<asp:BoundField HeaderText="%" DataField="VariacionJunioPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
</asp:GridView>
|
<asp:BoundField HeaderText="Julio" DataField="Julio" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField HeaderText="$" DataField="VariacionJulioImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField HeaderText="%" DataField="VariacionJulioPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField HeaderText="Agosto" DataField="Agosto" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField HeaderText="$" DataField="VariacionAgostoImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField HeaderText="%" DataField="VariacionAgostoPorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField HeaderText="Septiembre" DataField="Septiembre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField HeaderText="$" DataField="VariacionSeptiembreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField HeaderText="%" DataField="VariacionSeptiembrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField HeaderText="Octubre" DataField="Octubre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField HeaderText="$" DataField="VariacionOctubreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField HeaderText="%" DataField="VariacionOctubrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField HeaderText="Noviembre" DataField="Noviembre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField HeaderText="$" DataField="VariacionNoviembreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField HeaderText="%" DataField="VariacionNoviembrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
<asp:BoundField HeaderText="Diciembre" DataField="Diciembre" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="100px" />
|
||||||
|
<asp:BoundField HeaderText="$" DataField="VariacionDiciembreImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="75px" />
|
||||||
|
<asp:BoundField HeaderText="%" DataField="VariacionDiciembrePorcentaje" DataFormatString="{0:N2}%" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="ceros" ItemStyle-Width="50px" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Label ID="LblTituloGrafica" CssClass="LblTituloGrafica" runat="server" ClientIDMode="Static" Text=""></asp:Label>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2"></div>
|
||||||
|
<label class="col-md-1 truncate">Grafica:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlGrafica" runat="server" AppendDataBoundItems="true" Class="DdlGrafica select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Pastel" Value="2"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div id="chartdiv"></div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
|
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
|
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let cdatos;
|
||||||
|
let currentid = 1;
|
||||||
|
function HandlerGraf(obj, evt) {
|
||||||
|
$("#DivModalGrafica").modal();
|
||||||
|
cdatos = $(obj).data('values');
|
||||||
|
if (currentid == 1) {
|
||||||
|
CargaGraficaBarras();
|
||||||
|
} else {
|
||||||
|
CargaGraficaPastel();
|
||||||
|
}
|
||||||
|
$('.LblTituloGrafica').text($(obj).parent().parent().text().trim());
|
||||||
|
}
|
||||||
|
function CargaGraficaBarras() {
|
||||||
|
let data = cdatos;
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2,
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": [{
|
||||||
|
"balloonText": "[[category]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"valueField": "Valor"
|
||||||
|
}],
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function CargaGraficaPastel() {
|
||||||
|
let data = cdatos;
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "pie",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider":
|
||||||
|
data,
|
||||||
|
"valueField": "Valor",
|
||||||
|
"titleField": "Texto",
|
||||||
|
"outlineAlpha": 0.4,
|
||||||
|
"depth3D": 0,
|
||||||
|
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]% [[Moneda]])</span>",
|
||||||
|
"angle": 0,
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function ADSBegin() {
|
||||||
|
$('.DdlGrafica').on('select2:select', function (e) {
|
||||||
|
var data = e.params.data;
|
||||||
|
currentid = data.id;
|
||||||
|
if (currentid == 1) {
|
||||||
|
CargaGraficaBarras();
|
||||||
|
} else {
|
||||||
|
CargaGraficaPastel();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('.DdlGrafica').removeClass('DdlGrafica')
|
||||||
|
initamgrafica();
|
||||||
|
}
|
||||||
|
|
||||||
|
function cargaGraficaBarras2() {
|
||||||
|
//Hypgrafica
|
||||||
|
$("#DivModalGrafica").modal();
|
||||||
|
$('.LblTituloGrafica').text('grafica');
|
||||||
|
let items = []
|
||||||
|
let data;
|
||||||
|
let series = [];
|
||||||
|
$('.chkgraf input:checked').each(function () {
|
||||||
|
data = $(this).closest('tr').find('.Hypgrafica').data('values')
|
||||||
|
let name = $(this).closest('tr').text().trim()
|
||||||
|
items.push({ data: data, name: name })
|
||||||
|
});
|
||||||
|
if (items) {
|
||||||
|
data = items[0].data;
|
||||||
|
series.push({
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[0].name,
|
||||||
|
"valueField": 'Valor'
|
||||||
|
})
|
||||||
|
for (var indexcol = 1; indexcol < items.length; indexcol++) {
|
||||||
|
let cdatos = items[indexcol].data;
|
||||||
|
let valueField = 'Valor' + indexcol;
|
||||||
|
for (var i = 0; i < cdatos.length; i++) {
|
||||||
|
data[i][valueField] = cdatos[i].Valor
|
||||||
|
}
|
||||||
|
series.push({
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[indexcol].name,
|
||||||
|
"valueField": valueField
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2, "legend": {
|
||||||
|
|
||||||
</asp:Content>
|
"generateFromData": true // "data": data.map(function(num) { return {title:num.Texto ,color:num.Color}; })
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
},
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": series,
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function initamgrafica() {
|
||||||
|
AmCharts.addInitHandler(function (chart) {
|
||||||
|
function handleCustomMarkerToggle(legendEvent) {
|
||||||
|
var dataProvider = legendEvent.chart.dataProvider;
|
||||||
|
var itemIndex;
|
||||||
|
legendEvent.chart.toggleLegend = true;
|
||||||
|
if (undefined !== legendEvent.dataItem.hidden && legendEvent.dataItem.hidden) {
|
||||||
|
legendEvent.dataItem.hidden = false;
|
||||||
|
dataProvider.push(legendEvent.dataItem.storedObj);
|
||||||
|
legendEvent.dataItem.storedObj = undefined;
|
||||||
|
dataProvider.sort(function (lhs, rhs) {
|
||||||
|
return lhs.dataIdx - rhs.dataIdx;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
legendEvent.dataItem.hidden = true;
|
||||||
|
for (var i = 0; i < dataProvider.length; ++i) {
|
||||||
|
if (dataProvider[i].dataIdx === legendEvent.dataItem.dataIdx) {
|
||||||
|
itemIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
legendEvent.dataItem.storedObj = dataProvider[itemIndex];
|
||||||
|
dataProvider.splice(itemIndex, 1);
|
||||||
|
}
|
||||||
|
legendEvent.chart.validateData();
|
||||||
|
}
|
||||||
|
if (!chart.legend || !chart.legend.enabled || !chart.legend.generateFromData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var categoryField = chart.categoryField;
|
||||||
|
var colorField = chart.graphs[0].lineColorField || chart.graphs[0].fillColorsField || chart.graphs[0].colorField;
|
||||||
|
var legendData = chart.dataProvider.map(function (data, idx) {
|
||||||
|
var markerData = {
|
||||||
|
"title": data[categoryField],
|
||||||
|
"color": data[colorField],
|
||||||
|
"dataIdx": idx
|
||||||
|
};
|
||||||
|
if (!markerData.color) {
|
||||||
|
markerData.color = chart.graphs[0].lineColor;
|
||||||
|
}
|
||||||
|
data.dataIdx = idx;
|
||||||
|
return markerData;
|
||||||
|
});
|
||||||
|
|
||||||
|
chart.legend.data = legendData;
|
||||||
|
chart.legend.switchable = true;
|
||||||
|
chart.legend.addListener("clickMarker", handleCustomMarkerToggle);
|
||||||
|
|
||||||
|
}, ["serial"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function LimpiaCeros() {
|
function LimpiaCeros() {
|
||||||
|
|
||||||
let Divisor = 1;
|
let Divisor = 1;
|
||||||
|
|
||||||
$('.ceros').each(function (i, obj) {
|
$('.ceros').each(function (i, obj) {
|
||||||
debugger;
|
|
||||||
|
|
||||||
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
||||||
$(this).html('-');
|
$(this).html('-');
|
||||||
@@ -158,7 +446,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function FormatoNumeroIPP(Importe, Decimales) {
|
function FormatoNumeroIPP(Importe, Decimales) {
|
||||||
debugger;
|
|
||||||
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
||||||
|
|
||||||
if (isNaN(parseInt(Importe))) return "NaN";
|
if (isNaN(parseInt(Importe))) return "NaN";
|
||||||
@@ -178,7 +465,7 @@
|
|||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -14,13 +14,44 @@ Partial Class Contabilidad2_RepAnexoCatalogoMensual
|
|||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
ViewState("CveCuenta") = value
|
ViewState("CveCuenta") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property listacolores As List(Of String)
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listacolores"), List(Of String))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String))
|
||||||
|
ViewState("listacolores") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property listaCampos As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCampos"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCampos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
|
||||||
|
listacolores = New List(Of String)
|
||||||
|
listaCampos = New List(Of String())
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
listacolores.Add("#FF6600")
|
||||||
|
listacolores.Add("#F8FF01")
|
||||||
|
listacolores.Add("#04D215")
|
||||||
|
listacolores.Add("#2A0CD0")
|
||||||
|
listacolores.Add("#8A0CCF")
|
||||||
|
listacolores.Add("#CD0D74")
|
||||||
|
listacolores.Add("#754DEB")
|
||||||
|
listacolores.Add("#DDDDDD")
|
||||||
|
listacolores.Add("#999999")
|
||||||
|
listacolores.Add("#000000")
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
Dim EjercicioParametro, SubProyectoParametro, DivisorParametro, Periodo As Integer
|
Dim EjercicioParametro, SubProyectoParametro, DivisorParametro, Periodo As Integer
|
||||||
CveCuenta = IfNull(Request("CveCuenta"), "-1").ToString.ToEntero
|
CveCuenta = IfNull(Request("CveCuenta"), "-1").ToString.ToEntero
|
||||||
EjercicioParametro = IfNull(Request("Ejercicio"), "-1").ToString.ToEntero
|
EjercicioParametro = IfNull(Request("Ejercicio"), "-1").ToString.ToEntero
|
||||||
@@ -79,15 +110,23 @@ Partial Class Contabilidad2_RepAnexoCatalogoMensual
|
|||||||
GvMensual2.DataSource = Nothing
|
GvMensual2.DataSource = Nothing
|
||||||
End If
|
End If
|
||||||
GvMensual2.DataBind()
|
GvMensual2.DataBind()
|
||||||
UpMensual.Update()
|
UpMensual.Update()
|
||||||
|
|
||||||
|
If GvMensual2.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
LnkExportar.Visible = True
|
||||||
|
UpAcciones.Update()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
RegistraScript($"LimpiaCeros();")
|
RegistraScript($"LimpiaCeros();")
|
||||||
Conta.Dispose()
|
Conta.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region " GV ROW DATABOUND "
|
#Region " GV ROW DATABOUND "
|
||||||
Protected Sub GvMensual1_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvMensual2.RowDataBound
|
Protected Sub GvMensual1_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvMensual2.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -95,13 +134,44 @@ Partial Class Contabilidad2_RepAnexoCatalogoMensual
|
|||||||
If e.Row.RowIndex = 0 Then
|
If e.Row.RowIndex = 0 Then
|
||||||
e.Row.Style.Add("font-weight", "bold")
|
e.Row.Style.Add("font-weight", "bold")
|
||||||
End If
|
End If
|
||||||
|
setgrafica(e)
|
||||||
e.Row.Style.Add("text-indent", $"{e.Row.DBCampo("Level").ToString.ToEntero * 2}em")
|
e.Row.Cells(1).Style.Add("text-indent", $"{e.Row.DBCampo("Level").ToString.ToEntero * 2}em")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgrafica(e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
lista.Add(New With {.Texto = "Enero", .Valor = e.Row.DBCampo("Enero").ToDecimal(), .Color = "#FF0F00"})
|
||||||
|
lista.Add(New With {.Texto = "Febrero", .Valor = e.Row.DBCampo("Febrero").ToDecimal(), .Color = "#FF6600"})
|
||||||
|
lista.Add(New With {.Texto = "Marzo", .Valor = e.Row.DBCampo("Marzo").ToDecimal(), .Color = "#F8FF01"})
|
||||||
|
lista.Add(New With {.Texto = "Abril", .Valor = e.Row.DBCampo("Abril").ToDecimal(), .Color = "#04D215"})
|
||||||
|
lista.Add(New With {.Texto = "Mayo", .Valor = e.Row.DBCampo("Mayo").ToDecimal(), .Color = "#2A0CD0"})
|
||||||
|
lista.Add(New With {.Texto = "Junio", .Valor = e.Row.DBCampo("Junio").ToDecimal(), .Color = "#8A0CCF"})
|
||||||
|
lista.Add(New With {.Texto = "Julio", .Valor = e.Row.DBCampo("Julio").ToDecimal(), .Color = "#CD0D74"})
|
||||||
|
lista.Add(New With {.Texto = "Agosto", .Valor = e.Row.DBCampo("Agosto").ToDecimal(), .Color = "#754DEB"})
|
||||||
|
lista.Add(New With {.Texto = "Septiembre", .Valor = e.Row.DBCampo("Septiembre").ToDecimal(), .Color = "#DDDDDD"})
|
||||||
|
lista.Add(New With {.Texto = "Octubre", .Valor = e.Row.DBCampo("Octubre").ToDecimal(), .Color = "#999999"})
|
||||||
|
lista.Add(New With {.Texto = "Noviembre", .Valor = e.Row.DBCampo("Noviembre").ToDecimal(), .Color = "#000000"})
|
||||||
|
lista.Add(New With {.Texto = "Diciembre", .Valor = e.Row.DBCampo("Diciembre").ToDecimal(), .Color = "#FF0F00"})
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
Private Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||||
|
|
||||||
|
Dim SubProyecto As String = ""
|
||||||
|
|
||||||
|
If DdlSubProyecto.SelectedValue.ToEntero > 0 Then
|
||||||
|
SubProyecto = DdlSubProyecto.SelectedItem.Text
|
||||||
|
End If
|
||||||
|
|
||||||
|
GvMensual2.ExportToExcelGembox("AnexoCatálogoMensual", UsuarioActual, $"01/01/{DdlEjercicio.SelectedValue}", $"31/12/{DdlEjercicio.SelectedValue}", "Anexo del Catálogo - Mensual", SubProyecto, DdlDivisor.SelectedValue.ToEntero, DatoTituloExtra:=$"Periodo {DdlPeriodo.SelectedItem.Text}")
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -75,6 +75,48 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property listacolores As List(Of String)
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listacolores"), List(Of String))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String))
|
||||||
|
ViewState("listacolores") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property listaCampos As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCampos"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCampos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property listaCamposanios As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCamposanios"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCamposanios") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property listaCamposaniosGastos As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCamposaniosGastos"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCamposaniosGastos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property listaCamposaniosTotal As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCamposaniosTotal"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCamposaniosTotal") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
'Private Property ReporteComplementario As Boolean
|
'Private Property ReporteComplementario As Boolean
|
||||||
' Get
|
' Get
|
||||||
' ReporteComplementario = CBool(ViewState("ReporteComplementario").ToString)
|
' ReporteComplementario = CBool(ViewState("ReporteComplementario").ToString)
|
||||||
@@ -174,6 +216,22 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property CountDinamicoAnual As Integer
|
||||||
|
|
||||||
|
Get
|
||||||
|
If ViewState("CountDinamicoAnual") Is Nothing Then
|
||||||
|
Return 0
|
||||||
|
Else
|
||||||
|
Return ViewState("CountDinamicoAnual").ToString.ToEntero
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CountDinamicoAnual") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " S U B P R O Y E C T O H O R I Z O N T A L "
|
#Region " S U B P R O Y E C T O H O R I Z O N T A L "
|
||||||
@@ -230,12 +288,45 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property CountDinamicoSubProyecto As Integer
|
||||||
|
|
||||||
|
Get
|
||||||
|
If ViewState("CountDinamicoSubProyecto") Is Nothing Then
|
||||||
|
Return 0
|
||||||
|
Else
|
||||||
|
Return ViewState("CountDinamicoSubProyecto").ToString.ToEntero
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CountDinamicoSubProyecto") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
|
listacolores = New List(Of String)
|
||||||
|
listaCampos = New List(Of String())
|
||||||
|
listaCamposanios = New List(Of String())
|
||||||
|
listaCamposaniosGastos = New List(Of String())
|
||||||
|
listaCamposaniosTotal = New List(Of String())
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
listacolores.Add("#FF6600")
|
||||||
|
listacolores.Add("#F8FF01")
|
||||||
|
listacolores.Add("#04D215")
|
||||||
|
listacolores.Add("#2A0CD0")
|
||||||
|
listacolores.Add("#8A0CCF")
|
||||||
|
listacolores.Add("#CD0D74")
|
||||||
|
listacolores.Add("#754DEB")
|
||||||
|
listacolores.Add("#DDDDDD")
|
||||||
|
listacolores.Add("#999999")
|
||||||
|
listacolores.Add("#000000")
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
|
||||||
TotalActualMes = 0
|
TotalActualMes = 0
|
||||||
TotalAnteriorMes = 0
|
TotalAnteriorMes = 0
|
||||||
@@ -243,7 +334,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
CargaEjercicios()
|
CargaEjercicios()
|
||||||
|
|
||||||
CargarCentrosDeCosto(Nothing, DdlSubproyecto, Nothing, LblSubProyecto)
|
CargarCentrosDeCosto(Nothing, DdlSubproyecto, Nothing, LblSubProyecto)
|
||||||
TabSubProyecto.HeaderText = LblSubProyecto.Text & " H."
|
TabSubProyecto.HeaderText = LblSubProyecto.Text & " "
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -859,6 +950,10 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
setgrafica(e)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
||||||
@@ -955,6 +1050,10 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
setgrafica(e)
|
||||||
|
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
||||||
@@ -1017,6 +1116,8 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
e.Row.FCHyperLink("HLDiciembre").Text = e.Row.DataKey("Diciembre").ToDecimal.ToString("###,###,##0.00")
|
e.Row.FCHyperLink("HLDiciembre").Text = e.Row.DataKey("Diciembre").ToDecimal.ToString("###,###,##0.00")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
setgrafica(e)
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
||||||
@@ -1035,6 +1136,23 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgrafica(e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
lista.Add(New With {.Texto = "Enero", .Valor = e.Row.DataKey("Enero").ToDecimal(), .Color = "#FF0F00"})
|
||||||
|
lista.Add(New With {.Texto = "Febrero", .Valor = e.Row.DataKey("Febrero").ToDecimal(), .Color = "#FF6600"})
|
||||||
|
lista.Add(New With {.Texto = "Marzo", .Valor = e.Row.DataKey("Marzo").ToDecimal(), .Color = "#F8FF01"})
|
||||||
|
lista.Add(New With {.Texto = "Abril", .Valor = e.Row.DataKey("Abril").ToDecimal(), .Color = "#04D215"})
|
||||||
|
lista.Add(New With {.Texto = "Mayo", .Valor = e.Row.DataKey("Mayo").ToDecimal(), .Color = "#2A0CD0"})
|
||||||
|
lista.Add(New With {.Texto = "Junio", .Valor = e.Row.DataKey("Junio").ToDecimal(), .Color = "#8A0CCF"})
|
||||||
|
lista.Add(New With {.Texto = "Julio", .Valor = e.Row.DataKey("Julio").ToDecimal(), .Color = "#CD0D74"})
|
||||||
|
lista.Add(New With {.Texto = "Agosto", .Valor = e.Row.DataKey("Agosto").ToDecimal(), .Color = "#754DEB"})
|
||||||
|
lista.Add(New With {.Texto = "Septiembre", .Valor = e.Row.DataKey("Septiembre").ToDecimal(), .Color = "#DDDDDD"})
|
||||||
|
lista.Add(New With {.Texto = "Octubre", .Valor = e.Row.DataKey("Octubre").ToDecimal(), .Color = "#999999"})
|
||||||
|
lista.Add(New With {.Texto = "Noviembre", .Valor = e.Row.DataKey("Noviembre").ToDecimal(), .Color = "#000000"})
|
||||||
|
lista.Add(New With {.Texto = "Diciembre", .Valor = e.Row.DataKey("Diciembre").ToDecimal(), .Color = "#FF0F00"})
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
@@ -1081,6 +1199,19 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
Dim IndexGv As Integer = 1
|
Dim IndexGv As Integer = 1
|
||||||
Dim IndexMax As Integer = 1
|
Dim IndexMax As Integer = 1
|
||||||
|
|
||||||
|
|
||||||
|
Dim IDX_LIMPIAR As Integer = 1
|
||||||
|
|
||||||
|
For IDX_LIMPIAR = 1 To 25
|
||||||
|
|
||||||
|
GvIngresosAnualH.Columns(IDX_LIMPIAR).Visible = False
|
||||||
|
GvGastosAnualH.Columns(IDX_LIMPIAR).Visible = False
|
||||||
|
GvTotalesAnualH.Columns(IDX_LIMPIAR).Visible = False
|
||||||
|
Next
|
||||||
|
listaCamposanios.Clear()
|
||||||
|
listaCamposaniosGastos.Clear()
|
||||||
|
listaCamposaniosTotal.Clear()
|
||||||
|
|
||||||
If DtIngresosAnualH.Rows.Count > 0 Then
|
If DtIngresosAnualH.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
|
||||||
@@ -1096,6 +1227,9 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
CType(GvIngresosAnualH.Columns(IndexGv), BoundField).HeaderText = dCoumn.ColumnName
|
CType(GvIngresosAnualH.Columns(IndexGv), BoundField).HeaderText = dCoumn.ColumnName
|
||||||
|
|
||||||
|
|
||||||
|
listaCamposanios.Add(New String() {dCoumn.ColumnName.ToString(), dCoumn.ColumnName.ToString()})
|
||||||
|
|
||||||
|
listaCamposaniosTotal.Add(New String() {dCoumn.ColumnName.ToString(), dCoumn.ColumnName.ToString()})
|
||||||
'CType(GvIngresosAnualH.Columns(IndexGv), BoundField).DataField = dCoumn.ColumnName
|
'CType(GvIngresosAnualH.Columns(IndexGv), BoundField).DataField = dCoumn.ColumnName
|
||||||
'CType(GvIngresosAnualH.Columns(IndexGv), BoundField).HeaderText = dCoumn.ColumnName
|
'CType(GvIngresosAnualH.Columns(IndexGv), BoundField).HeaderText = dCoumn.ColumnName
|
||||||
GvIngresosAnualH.Columns(IndexGv).Visible = True
|
GvIngresosAnualH.Columns(IndexGv).Visible = True
|
||||||
@@ -1142,6 +1276,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
Row.Item("PorcentajeAcumulado") = "100.00"
|
Row.Item("PorcentajeAcumulado") = "100.00"
|
||||||
Row.Item("CtaMayor") = -1
|
Row.Item("CtaMayor") = -1
|
||||||
Row.Item("CountDinamico") = DtGastosAnualH.MAX("CountDinamico")
|
Row.Item("CountDinamico") = DtGastosAnualH.MAX("CountDinamico")
|
||||||
|
CountDinamicoAnual = DtGastosAnualH.MAX("CountDinamico").ToEntero
|
||||||
DtIngresosAnualH.Rows.Add(Row)
|
DtIngresosAnualH.Rows.Add(Row)
|
||||||
Else
|
Else
|
||||||
Row.Item("Nombre") = "TOTAL INGRESOS "
|
Row.Item("Nombre") = "TOTAL INGRESOS "
|
||||||
@@ -1174,6 +1309,8 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
CType(GvGastosAnualH.Columns(IndexGv), BoundField).DataField = dCoumn.ColumnName
|
CType(GvGastosAnualH.Columns(IndexGv), BoundField).DataField = dCoumn.ColumnName
|
||||||
CType(GvGastosAnualH.Columns(IndexGv), BoundField).HeaderText = dCoumn.ColumnName
|
CType(GvGastosAnualH.Columns(IndexGv), BoundField).HeaderText = dCoumn.ColumnName
|
||||||
|
listaCamposaniosGastos.Add(New String() {dCoumn.ColumnName.ToString(), dCoumn.ColumnName.ToString()})
|
||||||
|
|
||||||
'CType(GvGastosAnualH.Columns(IndexGv), HyperLinkField).DataNavigateUrlFields = {"CveCuenta", "FechaInicial", "FechaFActual", "CveSubProyecto"}
|
'CType(GvGastosAnualH.Columns(IndexGv), HyperLinkField).DataNavigateUrlFields = {"CveCuenta", "FechaInicial", "FechaFActual", "CveSubProyecto"}
|
||||||
'CType(GvGastosAnualH.Columns(IndexGv), HyperLinkField).DataNavigateUrlFormatString = "/Contabilidad2/RepAnexoCatalogo.aspx?CveCuenta={0}&FF={1}&FI={2}&ER=1&CveSubProyecto{3}"
|
'CType(GvGastosAnualH.Columns(IndexGv), HyperLinkField).DataNavigateUrlFormatString = "/Contabilidad2/RepAnexoCatalogo.aspx?CveCuenta={0}&FF={1}&FI={2}&ER=1&CveSubProyecto{3}"
|
||||||
|
|
||||||
@@ -1258,10 +1395,8 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
|
|
||||||
Protected Sub GvIngresosAnualH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvIngresosAnualH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCCAnual(e, listaCamposanios)
|
||||||
|
|
||||||
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
||||||
TotalActualMes += e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
TotalActualMes += e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
||||||
TotalAnteriorMes += e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
TotalAnteriorMes += e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
||||||
@@ -1323,6 +1458,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
Protected Sub GvGastosAnualH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvGastosAnualH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCCAnual(e, listaCamposaniosGastos)
|
||||||
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
||||||
TotalActualMes -= e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
TotalActualMes -= e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
||||||
TotalAnteriorMes -= e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
TotalAnteriorMes -= e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
||||||
@@ -1383,12 +1519,24 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCCAnual(e, listaCamposaniosTotal)
|
||||||
e.Row.Attributes.Add("style", "Font-weight: bold")
|
e.Row.Attributes.Add("style", "Font-weight: bold")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgraficaCCAnual(e As GridViewRowEventArgs, listaCampos As List(Of String()))
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
Dim colorindex As Integer = 0
|
||||||
|
For Each campo As String() In listaCampos
|
||||||
|
lista.Add(New With {.Texto = campo(1), .Valor = e.Row.DBCampo(campo(0)).ToDecimal(), .Color = listacolores(colorindex)})
|
||||||
|
colorindex = colorindex + 1
|
||||||
|
If colorindex >= listacolores.Count Then
|
||||||
|
colorindex = 0
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
@@ -1441,11 +1589,12 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
'34
|
'34
|
||||||
Dim IDX_LIMPIAR As Integer = 1
|
Dim IDX_LIMPIAR As Integer = 1
|
||||||
|
|
||||||
For IDX_LIMPIAR = 1 To 34
|
For IDX_LIMPIAR = 1 To 35
|
||||||
CType(GvIngresosSubProyectoH.Columns(IDX_LIMPIAR), BoundField).DataField = Nothing
|
CType(GvIngresosSubProyectoH.Columns(IDX_LIMPIAR), BoundField).DataField = Nothing
|
||||||
CType(GvIngresosSubProyectoH.Columns(IDX_LIMPIAR), BoundField).HeaderText = ""
|
CType(GvIngresosSubProyectoH.Columns(IDX_LIMPIAR), BoundField).HeaderText = ""
|
||||||
|
GvIngresosSubProyectoH.Columns(IDX_LIMPIAR).Visible = False
|
||||||
Next
|
Next
|
||||||
|
listaCampos.Clear()
|
||||||
|
|
||||||
|
|
||||||
If DtIngresosSubProyectoH.Rows.Count > 0 Then
|
If DtIngresosSubProyectoH.Rows.Count > 0 Then
|
||||||
@@ -1467,7 +1616,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
CType(GvTotalesSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
CType(GvTotalesSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
||||||
CType(GvGastosSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
CType(GvGastosSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
||||||
End If
|
End If
|
||||||
|
listaCampos.Add(New String() {dCoumn.ColumnName.ToString(), DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString()})
|
||||||
Else
|
Else
|
||||||
GvIngresosSubProyectoH.Columns(IndexGv).Visible = False
|
GvIngresosSubProyectoH.Columns(IndexGv).Visible = False
|
||||||
GvTotalesSubProyectoH.Columns(IndexGv).Visible = False
|
GvTotalesSubProyectoH.Columns(IndexGv).Visible = False
|
||||||
@@ -1499,6 +1648,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
Row.Item("PorcentajeAcumulado") = "100.00"
|
Row.Item("PorcentajeAcumulado") = "100.00"
|
||||||
Row.Item("CtaMayor") = -1
|
Row.Item("CtaMayor") = -1
|
||||||
Row.Item("CountDinamico") = DtIngresosSubProyectoH.MAX("CountDinamico")
|
Row.Item("CountDinamico") = DtIngresosSubProyectoH.MAX("CountDinamico")
|
||||||
|
CountDinamicoSubProyecto = DtIngresosSubProyectoH.MAX("CountDinamico").ToEntero
|
||||||
DtIngresosSubProyectoH.Rows.Add(Row)
|
DtIngresosSubProyectoH.Rows.Add(Row)
|
||||||
Else
|
Else
|
||||||
Row.Item("Nombre") = "TOTAL INGRESOS "
|
Row.Item("Nombre") = "TOTAL INGRESOS "
|
||||||
@@ -1631,9 +1781,8 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
e.Row.ControlStyle.Font.Bold = True
|
e.Row.ControlStyle.Font.Bold = True
|
||||||
e.Row.ControlStyle.Font.Size = 13
|
e.Row.ControlStyle.Font.Size = 13
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Dim CveCuenta As Integer = e.Row.DataKey("CveCuenta").ToEntero
|
Dim CveCuenta As Integer = e.Row.DataKey("CveCuenta").ToEntero
|
||||||
|
setgraficaCC(e)
|
||||||
'Dim CveSubProyecto As Integer = e.Row.DataKey("CveSubProyecto").ToEntero
|
'Dim CveSubProyecto As Integer = e.Row.DataKey("CveSubProyecto").ToEntero
|
||||||
If e.Row.DBCampo("CtaMayor").ToString.ToEntero > 0 Then
|
If e.Row.DBCampo("CtaMayor").ToString.ToEntero > 0 Then
|
||||||
|
|
||||||
@@ -1686,18 +1835,18 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLAnterior").Text = If(DdlDivisor.SelectedValue.ToEntero > 1, e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0"), e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0.00"))
|
e.Row.FCHyperLink("HLAnterior").Text = If(DdlDivisor.SelectedValue.ToEntero > 1, e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0"), e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0.00"))
|
||||||
|
|
||||||
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
||||||
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvGastosSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvGastosSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCC(e)
|
||||||
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
||||||
TotalActualMes -= e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
TotalActualMes -= e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
||||||
TotalAnteriorMes -= e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
TotalAnteriorMes -= e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
||||||
@@ -1706,9 +1855,6 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
'e.Row.CssClass = "SubTotales"
|
'e.Row.CssClass = "SubTotales"
|
||||||
e.Row.ControlStyle.Font.Bold = True
|
e.Row.ControlStyle.Font.Bold = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
||||||
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
||||||
End If
|
End If
|
||||||
@@ -1716,18 +1862,27 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvTotalesSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvTotalesSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.Header Then
|
If e.Row.RowType = DataControlRowType.Header Then
|
||||||
' e.Row.Attributes.Add("style", "display:none")
|
' e.Row.Attributes.Add("style", "display:none")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCC(e)
|
||||||
e.Row.Attributes.Add("style", "Font-weight: bold")
|
e.Row.Attributes.Add("style", "Font-weight: bold")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgraficaCC(e As GridViewRowEventArgs)
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
Dim colorindex As Integer = 0
|
||||||
|
For Each campo As String() In listaCampos
|
||||||
|
lista.Add(New With {.Texto = campo(1), .Valor = e.Row.DBCampo(campo(0)).ToDecimal(), .Color = listacolores(colorindex)})
|
||||||
|
colorindex = colorindex + 1
|
||||||
|
If colorindex >= listacolores.Count Then
|
||||||
|
colorindex = 0
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
@@ -1751,7 +1906,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
ExportToExcelG(GvIngresosAnualH, GvGastosAnualH, TMesT1, "Reporte_Anual_Horizontal", UsuarioActual, "Anual Horizontal", Gv3:=GvTotalesAnualH)
|
ExportToExcelG(GvIngresosAnualH, GvGastosAnualH, TMesT1, "Reporte_Anual_Horizontal", UsuarioActual, "Anual Horizontal", Gv3:=GvTotalesAnualH)
|
||||||
|
|
||||||
ElseIf Tab.ActiveTabIndex = 3 AndAlso GvIngresosSubProyectoH.Rows.Count > 0 Then
|
ElseIf Tab.ActiveTabIndex = 3 AndAlso GvIngresosSubProyectoH.Rows.Count > 0 Then
|
||||||
ExportToExcelG(GvIngresosSubProyectoH, GvGastosSubProyectoH, TMesT1, "Reporte_Proyecto_Horizontal", UsuarioActual, "Proyecto Horizontal", Gv3:=GvTotalesSubProyectoH, EsPorSubProtyecto:=True)
|
ExportToExcelG(GvIngresosSubProyectoH, GvGastosSubProyectoH, TMesT1, "Reporte_Proyecto_Horizontal", UsuarioActual, $"{LblSubProyecto.Text} Horizontal", Gv3:=GvTotalesSubProyectoH, EsPorSubProtyecto:=True)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1829,28 +1984,21 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
HtmlCompleto = Regex.Replace(HtmlCompleto, "\<[\/]*a[^\>]*\>", "")
|
HtmlCompleto = Regex.Replace(HtmlCompleto, "\<[\/]*a[^\>]*\>", "")
|
||||||
|
|
||||||
Dim asd As String = ""
|
|
||||||
|
|
||||||
|
|
||||||
Dim htmlStream5 = New MemoryStream(options.Encoding.GetBytes(HtmlCompleto))
|
Dim htmlStream5 = New MemoryStream(options.Encoding.GetBytes(HtmlCompleto))
|
||||||
|
|
||||||
|
GemBox.Spreadsheet.SpreadsheetInfo.SetLicense(SerialGemBoxSpreadsheet)
|
||||||
|
|
||||||
|
|
||||||
GemBox.Spreadsheet.SpreadsheetInfo.SetLicense("ESWN-4QFD-26JF-1SZ8")
|
|
||||||
|
|
||||||
Dim excel As GemBox.Spreadsheet.ExcelFile
|
Dim excel As GemBox.Spreadsheet.ExcelFile
|
||||||
'Dim options = GemBox.Spreadsheet.LoadOptions.HtmlDefault
|
|
||||||
|
|
||||||
'Using htmlStream = New MemoryStream(options.Encoding.GetBytes(sw.ToString()))
|
|
||||||
' excel = GemBox.Spreadsheet.ExcelFile.Load(htmlStream, options)
|
|
||||||
|
|
||||||
excel = GemBox.Spreadsheet.ExcelFile.Load(htmlStream5, options)
|
excel = GemBox.Spreadsheet.ExcelFile.Load(htmlStream5, options)
|
||||||
|
|
||||||
If Usuario IsNot Nothing Then
|
If Usuario IsNot Nothing Then
|
||||||
|
|
||||||
Dim TotalRowHeader As Integer = 8
|
Dim TotalRowHeader As Integer = 8
|
||||||
Dim TotalRowFooter As Integer = 2
|
Dim TotalRowFooter As Integer = 2
|
||||||
|
|
||||||
|
|
||||||
Dim worksheet = excel.Worksheets(0)
|
Dim worksheet = excel.Worksheets(0)
|
||||||
worksheet.Rows.InsertEmpty(0, TotalRowHeader)
|
worksheet.Rows.InsertEmpty(0, TotalRowHeader)
|
||||||
Dim celdasConTexto = worksheet.GetUsedCellRange(True)
|
Dim celdasConTexto = worksheet.GetUsedCellRange(True)
|
||||||
@@ -1865,15 +2013,6 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
RangoNombreEmpresa.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
RangoNombreEmpresa.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
|
||||||
|
|
||||||
'Dim RangoFiltros = worksheet.Cells.GetSubrangeAbsolute(6, celdasConTexto.FirstColumnIndex, 6, celdasConTexto.LastColumnIndex)
|
|
||||||
'RangoFiltros.Merged = True
|
|
||||||
'RangoFiltros.Value = "Filtros"
|
|
||||||
'RangoFiltros.Style.Font.Size = 15 * 20
|
|
||||||
'RangoFiltros.Style.Font.Name = "Calibri Light"
|
|
||||||
'RangoFiltros.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Left
|
|
||||||
'RangoFiltros.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
|
||||||
|
|
||||||
|
|
||||||
Dim RangoTitulo = worksheet.Cells.GetSubrangeAbsolute(3, celdasConTexto.FirstColumnIndex, 3, celdasConTexto.LastColumnIndex)
|
Dim RangoTitulo = worksheet.Cells.GetSubrangeAbsolute(3, celdasConTexto.FirstColumnIndex, 3, celdasConTexto.LastColumnIndex)
|
||||||
RangoTitulo.Merged = True
|
RangoTitulo.Merged = True
|
||||||
RangoTitulo.Value = Titulo
|
RangoTitulo.Value = Titulo
|
||||||
@@ -1882,7 +2021,27 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
RangoTitulo.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
RangoTitulo.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
RangoTitulo.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
RangoTitulo.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
|
||||||
|
Dim RangoFechas = worksheet.Cells.GetSubrangeAbsolute(4, celdasConTexto.FirstColumnIndex, 4, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoFechas.Merged = True
|
||||||
|
RangoFechas.Value = $"Fechas: {FechaIMes} a {FechaFMes}"
|
||||||
|
RangoFechas.Style.Font.Size = 15 * 20
|
||||||
|
RangoFechas.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoFechas.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoFechas.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
|
||||||
|
|
||||||
|
If EsPorSubProtyecto And DdlSubproyecto.SelectedValue.ToEntero > 0 Then
|
||||||
|
Dim RangoSubProyecto = worksheet.Cells.GetSubrangeAbsolute(5, celdasConTexto.FirstColumnIndex, 5, celdasConTexto.LastColumnIndex)
|
||||||
|
RangoSubProyecto.Merged = True
|
||||||
|
RangoSubProyecto.Value = DdlSubproyecto.SelectedItem.Text
|
||||||
|
RangoSubProyecto.Style.Font.Size = 20 * 20
|
||||||
|
RangoSubProyecto.Style.Font.Name = "Calibri Light"
|
||||||
|
RangoSubProyecto.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
|
RangoSubProyecto.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
|
End If
|
||||||
|
|
||||||
For i = celdasConTexto.FirstColumnIndex To celdasConTexto.LastColumnIndex
|
For i = celdasConTexto.FirstColumnIndex To celdasConTexto.LastColumnIndex
|
||||||
|
|
||||||
worksheet.Rows(8).Cells(i).Style.Font.Size = 12 * 20
|
worksheet.Rows(8).Cells(i).Style.Font.Size = 12 * 20
|
||||||
worksheet.Rows(8).Cells(i).Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
worksheet.Rows(8).Cells(i).Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||||
worksheet.Rows(8).Cells(i).Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
worksheet.Rows(8).Cells(i).Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||||
@@ -1929,10 +2088,30 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End Using
|
End Using
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
|
||||||
|
|
||||||
'End Using
|
|
||||||
'htw.Dispose()
|
|
||||||
|
|
||||||
|
|
||||||
|
For I = celdasConTexto.FirstColumnIndex To celdasConTexto.LastColumnIndex
|
||||||
|
|
||||||
|
If I > 0 Then
|
||||||
|
|
||||||
|
If DdlDivisor.SelectedValue.ToEntero = 1 Then
|
||||||
|
worksheet.Columns(I + 1).Style.NumberFormat = "#,##0.00"
|
||||||
|
Else
|
||||||
|
worksheet.Columns(I + 1).Style.NumberFormat = "#,##"
|
||||||
|
End If
|
||||||
|
|
||||||
|
Try
|
||||||
|
worksheet.Columns(I).AutoFit(1)
|
||||||
|
Catch ex As Exception
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
excel.Save(HttpContext.Current.Response, $"{NombreArchivoXLSx}.xlsx")
|
excel.Save(HttpContext.Current.Response, $"{NombreArchivoXLSx}.xlsx")
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,70 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
||||||
|
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 49px; position: relative;">
|
||||||
|
|
||||||
|
<div class="tools">
|
||||||
|
<asp:Button ID="btConsultar" CssClass="btn btn-primary" runat="server" ValidationGroup="GrpConsultar" Text="Consultar" OnClick="btConsultar_Click" /></td>
|
||||||
|
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
||||||
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
||||||
|
</div>
|
||||||
|
<div class="titlefiltros caption magindate">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-1 ">Documento:</div>
|
||||||
|
<div class="col-md-2 ">
|
||||||
|
<asp:DropDownList ID="DdlDocumentacion" runat="server" CssClass="select2me" Width="100%" DataTextField="Documentacion" DataValueField="CveDocumentacion" >
|
||||||
|
</asp:DropDownList >
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-1 ">Tipo Contrato:</div>
|
||||||
|
<div class="col-md-2 ">
|
||||||
|
<asp:DropDownList ID="DdlTipoContratoFiltro" runat="server" CssClass="select2me" Width="100%" DataTextField="TipoContrato" DataValueField="CveTipoContrato">
|
||||||
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<%-- <div class="portlet-body">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-1 ">Estatus:</div>
|
||||||
|
<div class="col-md-2 ">
|
||||||
|
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="select2me" Width="100%" >
|
||||||
|
|
||||||
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
||||||
|
<asp:ListItem Value="1" >Vigente</asp:ListItem>
|
||||||
|
<asp:ListItem Value="2" >Rescindido</asp:ListItem>
|
||||||
|
<asp:ListItem Value="3" >Suspendido</asp:ListItem>
|
||||||
|
<asp:ListItem Value="4" >Terminado</asp:ListItem>
|
||||||
|
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> --%>
|
||||||
|
|
||||||
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
<%-- <asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>--%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
|
|||||||
@@ -11,17 +11,53 @@ Partial Class Edoc_CatDocumentosContratos
|
|||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
|
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
|
CargaDropDownList()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub CargaDropDownList()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjProveedor As New ClsCompProveedores
|
||||||
|
|
||||||
|
|
||||||
|
If ObjProveedor.GetTiposContratos(-1, UsuarioActual.CveEmpresa, 1) Then
|
||||||
|
DdlTipoContratoFiltro.DataSource = ObjProveedor.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ObjProveedor.Dispose()
|
||||||
|
|
||||||
|
DdlTipoContratoFiltro.DataBind()
|
||||||
|
DdlTipoContratoFiltro.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjEdoc As New ClsEdocumentacion
|
||||||
|
|
||||||
|
If ObjEdoc.DocumentacionGet(-1, -1, 1, UsuarioActual.CveEmpresa, 3) Then
|
||||||
|
DdlDocumentacion.DataSource = ObjEdoc.DtResultados
|
||||||
|
Else
|
||||||
|
DdlDocumentacion.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjEdoc.Dispose()
|
||||||
|
|
||||||
|
DdlDocumentacion.DataBind()
|
||||||
|
DdlDocumentacion.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
|
||||||
Dim ObjProv As New ClsCompProveedores
|
Dim ObjProv As New ClsCompProveedores
|
||||||
|
|
||||||
If ObjProv.GetTiposContratosDcumentos(UsuarioActual.CveEmpresa) Then
|
If ObjProv.GetTiposContratosDcumentos(UsuarioActual.CveEmpresa, DdlDocumentacion.SelectedValue.ToEntero, DdlTipoContratoFiltro.SelectedValue.ToEntero) Then
|
||||||
GvDatos.DataSource = ObjProv.DtResultados
|
GvDatos.DataSource = ObjProv.DtResultados
|
||||||
Else
|
Else
|
||||||
GvDatos.DataSource = Nothing
|
GvDatos.DataSource = Nothing
|
||||||
@@ -30,7 +66,7 @@ Partial Class Edoc_CatDocumentosContratos
|
|||||||
ObjProv.Dispose()
|
ObjProv.Dispose()
|
||||||
|
|
||||||
GvDatos.DataBind()
|
GvDatos.DataBind()
|
||||||
|
UpDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
@@ -49,4 +85,7 @@ Partial Class Edoc_CatDocumentosContratos
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub btConsultar_Click(sender As Object, e As EventArgs)
|
||||||
|
CargaDatos()
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -71,23 +71,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%-- <div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-1 ">Estatus:</div>
|
<div class="col-md-1 truncate">
|
||||||
<div class="col-md-2 ">
|
Fecha Inicio:
|
||||||
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="select2me" Width="100%" >
|
</div>
|
||||||
|
<div class="col-md-2" style="min-width: 115px">
|
||||||
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:ListItem Value="1" >Vigente</asp:ListItem>
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<asp:ListItem Value="2" >Rescindido</asp:ListItem>
|
<span class="input-group-btn ">
|
||||||
<asp:ListItem Value="3" >Suspendido</asp:ListItem>
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
<asp:ListItem Value="4" >Terminado</asp:ListItem>
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1 truncate">
|
||||||
|
Fecha Fin:
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2" style="min-width: 115px">
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div> --%>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ Partial Class Proveedores_Contratos
|
|||||||
CargaCombos()
|
CargaCombos()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
|
|
||||||
|
txtFechaI.Text = $"01/01/{Now.Year}"
|
||||||
|
txtFechaF.Text = $"31/12/{Now.AddYears(3).Year}"
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -47,7 +50,7 @@ Partial Class Proveedores_Contratos
|
|||||||
|
|
||||||
Dim ObjProv As New ClsCompProveedores
|
Dim ObjProv As New ClsCompProveedores
|
||||||
|
|
||||||
If ObjProv.GetContrato(-1, DdlSubProyectoFiltro.SelectedValue.ToEntero, DdlProveedorFiltro.SelectedValue.ToEntero, DdlTipoContratoFiltro.SelectedValue.ToEntero, -1, -1, UsuarioActual.CveEmpresa) Then
|
If ObjProv.GetContrato(-1, DdlSubProyectoFiltro.SelectedValue.ToEntero, DdlProveedorFiltro.SelectedValue.ToEntero, DdlTipoContratoFiltro.SelectedValue.ToEntero, -1, -1, UsuarioActual.CveEmpresa, txtFechaI.Text.ToDate, txtFechaF.Text.ToDate) Then
|
||||||
GvDatos.DataSource = ObjProv.DtResultados
|
GvDatos.DataSource = ObjProv.DtResultados
|
||||||
DtDatos = ObjProv.DtResultados
|
DtDatos = ObjProv.DtResultados
|
||||||
Else
|
Else
|
||||||
|
|||||||
1093
Empresas/Grales/Formatos/RepAuxiliarFacturas.rdlc
Normal file
1093
Empresas/Grales/Formatos/RepAuxiliarFacturas.rdlc
Normal file
File diff suppressed because it is too large
Load Diff
163
GPS/KimberlyClarkTracking.aspx
Normal file
163
GPS/KimberlyClarkTracking.aspx
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="KimberlyClarkTracking.aspx.vb" Inherits="GPS_KimberlyClarkTracking" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
Integración Kimberly-Clark
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpAcciones" RenderMode="Inline" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkAgregarTracking" runat="server" OnClick="LnkAgregarTracking_Click" Text="<i class='fa fa-truck'></i> Agregar Tracking"></asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
||||||
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
||||||
|
<div class="tools">
|
||||||
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" OnClick="BtnConsultar_Click" class="btn btn-primary" />
|
||||||
|
</div>
|
||||||
|
<div class="titlefiltros caption" style="margin-top: -8px;">
|
||||||
|
<ul class="list-inline" style="font-size: 12px;">
|
||||||
|
<li>Vehículo:
|
||||||
|
<asp:DropDownList ID="DdlDispositivoFiltro" runat="server" Width="200px" DataTextField="Display" DataValueField="CveDispositivo" CssClass="form-control input-sm select2me">
|
||||||
|
</asp:DropDownList>
|
||||||
|
</li>
|
||||||
|
<li>Estatus:
|
||||||
|
<asp:DropDownList ID="DdlEstatus" runat="server" Width="200px" CssClass="form-control input-sm select2me">
|
||||||
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Activo" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Inactivo" Value="0"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</li>
|
||||||
|
<li>Fecha Inicio:
|
||||||
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaI" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li>Fecha Fin:
|
||||||
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaF" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
||||||
|
<div style="margin-right: 15px">
|
||||||
|
<input type="text" id="TxtBusquedaG" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaG','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaG','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView ID="GvDatos" runat="server" Style="overflow-x: auto;" GridLines="None" OnRowDeleting="GvDatos_RowDeleting"
|
||||||
|
DataKeyNames="CveKimberlyClarkTracking,CveEstatus,CveDispositivo,Dominio,Serie,Codigo" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-sortindex="1" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Trayectos">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="Dominio" HeaderText="Dominio" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20%" />
|
||||||
|
<asp:BoundField DataField="Codigo" HeaderText="Codigo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
|
||||||
|
<asp:BoundField DataField="Serie" HeaderText="Serie" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
|
||||||
|
<asp:BoundField DataField="NoEconomico" HeaderText="Vehículo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
||||||
|
<asp:BoundField DataField="FechaIngreso" HeaderText="Fecha Ingreso" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" />
|
||||||
|
<asp:BoundField DataField="UsuarioIngreso" HeaderText="Usuario Ingresó" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
||||||
|
<asp:TemplateField HeaderText="Estatus" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LblEstatus" Text='<%# Eval("Estatus") %>' runat="server"></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField DataField="FechaCambioEstatus" HeaderText="Fecha Cambio Estatus" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" />
|
||||||
|
<asp:BoundField DataField="UsuarioModifico" HeaderText="Usuario Modificó" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
||||||
|
<asp:TemplateField HeaderText="Cambiar Estatus" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkCambiarEstatus" runat="server" OnClick="LnkCambiarEstatus_Click" CssClass="Texto" Text="<i class='fa fa-pencil-square-o'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Desea cambiar el estatus?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Enviar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkEnviarPosicion" runat="server" OnClick="LnkEnviarPosicion_Click" CssClass="Texto" Text="<i class='fa fa-paper-plane'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Desea cambiar el estatus?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Comandos" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Desea eliminar el trayecto?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="DivAgregar" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpAgregar" UpdateMode="Conditional" class="modal-dialog">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title" id="ModalAgregarTitle" runat="server">Agregar Tracking</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtDominio" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDominio" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dominio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpShipment"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= TxtDominio.ClientID.ToString()%>">Dominio:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlDispositivo" DataTextField="Display" DataValueField="CveDispositivo" CssClass="form-control select2me" Style="width: 100%" runat="server"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" InitialValue="-1" CssClass="help-block errorimput" ControlToValidate="DdlDispositivo" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dispositivo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpShipment"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= DdlDispositivo.ClientID.ToString()%>">Vehículo:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSerie" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
|
<label for="<%= TxtSerie.ClientID.ToString()%>">Serie:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtCodigo" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
|
<label for="<%= TxtCodigo.ClientID.ToString()%>">Código:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:LinkButton ID="BtnAgregar" runat="server" Text="Agregar" OnClick="BtnAgregar_Click" CssClass="btn btn-primary" ValidationGroup="GrpShipment"></asp:LinkButton>
|
||||||
|
<button data-dismiss="modal" class="btn btn-default">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
143
GPS/KimberlyClarkTracking.aspx.vb
Normal file
143
GPS/KimberlyClarkTracking.aspx.vb
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System.Data
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Net
|
||||||
|
Imports Extensiones
|
||||||
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
Imports Newtonsoft.Json.Linq
|
||||||
|
Imports System.Linq
|
||||||
|
Imports System.Net.Http
|
||||||
|
|
||||||
|
Partial Class GPS_KimberlyClarkTracking
|
||||||
|
Inherits ClsPaginas
|
||||||
|
|
||||||
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
|
If Not Page.IsPostBack Then
|
||||||
|
CargaDatos()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
Private Sub CargaDatos()
|
||||||
|
CargaDispositivos()
|
||||||
|
CargaTracking()
|
||||||
|
End Sub
|
||||||
|
Public Sub CargaDispositivos()
|
||||||
|
Dim DtDispositivos As DataTable = GlobalDTDispositivosUsuarios(UsuarioActual.CveCliente, UsuarioActual.CveUsuario).FiltraParametros("Estatus = 1")
|
||||||
|
|
||||||
|
DdlDispositivoFiltro.DataSource = DtDispositivos
|
||||||
|
DdlDispositivoFiltro.DataBind()
|
||||||
|
DdlDispositivoFiltro.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
DdlDispositivo.DataSource = DtDispositivos
|
||||||
|
DdlDispositivo.DataBind()
|
||||||
|
DdlDispositivo.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
|
UpAgregar.Update()
|
||||||
|
End Sub
|
||||||
|
Private Sub CargaTracking()
|
||||||
|
Dim FechaI As DateTime = If(IsDate(txtFechaI.Text), txtFechaI.Text.ToDateTime(), MinFecha)
|
||||||
|
Dim FechaF As DateTime = If(IsDate(txtFechaF.Text), txtFechaF.Text.ToDateTime(), MaxFecha)
|
||||||
|
|
||||||
|
Dim ObjGPS As New ClsGPS
|
||||||
|
If ObjGPS.GetKimberlyClarkTracking(-1, DdlDispositivoFiltro.SelectedValue.ToEntero(), DdlEstatus.SelectedValue.ToEntero(), UsuarioActual.CveCliente, UsuarioActual.CveEmpresa, FechaI, FechaF) Then
|
||||||
|
GvDatos.DataSource = ObjGPS.DtResultados
|
||||||
|
End If
|
||||||
|
ObjGPS.Dispose()
|
||||||
|
|
||||||
|
GvDatos.DataBind()
|
||||||
|
UpDatos.Update()
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkAgregarTracking_Click(sender As Object, e As EventArgs)
|
||||||
|
RegistraScript("$('#DivAgregar').modal('show');")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
||||||
|
CargaTracking()
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkCambiarEstatus_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
|
||||||
|
Dim CveKimberlyClarkTracking As Integer = GvRow.DataKey("CveKimberlyClarkTracking").ToEntero()
|
||||||
|
Dim Estatus As Boolean = CBool(GvRow.DataKey("CveEstatus").ToEntero())
|
||||||
|
|
||||||
|
Dim ObjGPS As New ClsGPS
|
||||||
|
If ObjGPS.UpdateKimberlyClarkTrackingEstatus(CveKimberlyClarkTracking, Not Estatus, UsuarioActual.CveUsuario) Then
|
||||||
|
Alert("El tracking fue desactivado correctamente")
|
||||||
|
Else
|
||||||
|
Alert("Ocurrió un error al actualizar el estatus", TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
ObjGPS.Dispose()
|
||||||
|
|
||||||
|
CargaDatos()
|
||||||
|
End Sub
|
||||||
|
Protected Sub GvDatos_RowDeleting(sender As Object, e As GridViewDeleteEventArgs)
|
||||||
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
|
||||||
|
Dim CveKimberlyClarkTracking As Integer = GvRow.DataKey("CveKimberlyClarkTracking").ToEntero()
|
||||||
|
|
||||||
|
Dim ObjGPS As New ClsGPS
|
||||||
|
If ObjGPS.RemoveKimberlyClarkTracking(CveKimberlyClarkTracking) Then
|
||||||
|
Alert("El tracking fue eliminado")
|
||||||
|
Else
|
||||||
|
Alert("Ocurrió un error al actualizar el estatus", TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
ObjGPS.Dispose()
|
||||||
|
|
||||||
|
CargaDatos()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub BtnAgregar_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim Dominio As String = TxtDominio.Text.Trim()
|
||||||
|
Dim Codigo As String = TxtCodigo.Text.Trim()
|
||||||
|
Dim Serie As String = TxtSerie.Text.Trim()
|
||||||
|
Dim CveDispositivo As Integer = DdlDispositivo.SelectedValue.ToEntero()
|
||||||
|
|
||||||
|
Dim ObjGPS As New ClsGPS
|
||||||
|
Dim CveKimberlyClarkTracking As Integer = ObjGPS.AddKimberlyClarkTracking(Dominio, Codigo, Serie, CveDispositivo, UsuarioActual.CveUsuario, UsuarioActual.CveCliente, UsuarioActual.CveEmpresa)
|
||||||
|
If CveKimberlyClarkTracking > 0 Then
|
||||||
|
Alert("El tracking fue agregado correctamente")
|
||||||
|
Else
|
||||||
|
Alert("Ocurrió un error el tracking", TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
ObjGPS.Dispose()
|
||||||
|
|
||||||
|
CargaDatos()
|
||||||
|
RegistraScript("$('#DivAgregar').modal('hide');")
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkEnviarPosicion_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
|
||||||
|
Dim CveDispositivo As Integer = GvRow.DataKey("CveDispositivo").ToEntero()
|
||||||
|
Dim Dominio As String = GvRow.DataKey("Dominio")
|
||||||
|
Dim Serie As String = GvRow.DataKey("Serie")
|
||||||
|
Dim Codigo As String = GvRow.DataKey("Codigo")
|
||||||
|
Dim Lat As Double = 0
|
||||||
|
Dim Lng As Double = 0
|
||||||
|
Dim Velocidad As Double = 0
|
||||||
|
Dim FechaEvento As DateTime = Nothing
|
||||||
|
|
||||||
|
Using ObjGPS As New ClsGPS
|
||||||
|
If ObjGPS.UltimaPosicionEquipoGet(CveDispositivo, MinFecha, MaxFecha) AndAlso ObjGPS.DtResultados.Rows.Count > 0 Then
|
||||||
|
Lat = ObjGPS.DtResultados.Rows(0)("Lat").ToString().ToDouble()
|
||||||
|
Lng = ObjGPS.DtResultados.Rows(0)("Lng").ToString().ToDouble()
|
||||||
|
FechaEvento = ObjGPS.DtResultados.Rows(0)("FechaTrama").ToString().ToDateTime()
|
||||||
|
Velocidad = ObjGPS.DtResultados.Rows(0)("SPD").ToString().ToDouble()
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
|
||||||
|
Try
|
||||||
|
Dim WS = New WSKimberlyClark.ServiceSoapClient()
|
||||||
|
|
||||||
|
Dim Retorno = WS.LoginYInsertarEvento("USUARIO", "CONTRASEÑA", Dominio, Serie, Codigo, Lat, Lng, 0, Velocidad, FechaEvento, FechaEvento)
|
||||||
|
If Retorno > 0 Then
|
||||||
|
Alert("El evento se envió correctamente")
|
||||||
|
Else
|
||||||
|
Alert("No se envió el evento", TipoMensaje.MsgAdvertencia)
|
||||||
|
End If
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al enviar la posición", ex)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
@@ -864,17 +864,18 @@ public partial class General_PopUpPaqueteriasGuias : ClsPaginas
|
|||||||
{
|
{
|
||||||
|
|
||||||
ClsVentas ObjVenta = new ClsVentas();
|
ClsVentas ObjVenta = new ClsVentas();
|
||||||
if (ObjVenta.GetVentaDetalle(CveVenta))
|
if (ObjVenta.GetVenta(CveVenta,UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
DataTable VentasDetalle = ObjVenta.DtResultados;
|
if (ObjVenta.DtResultados.Rows.Count > 0)
|
||||||
if (VentasDetalle.Rows.Count > 0)
|
|
||||||
{
|
{
|
||||||
double Total = VentasDetalle.SUM("Total");
|
DataRow VentasDetalle = ObjVenta.DtResultados.Rows[0];
|
||||||
|
double Total = VentasDetalle["Total"].ToString().ToDouble();
|
||||||
bool Mostrar = (Total >= 100000.00);
|
bool Mostrar = (Total >= 100000.00);
|
||||||
tdLblPolizaSeguro.Visible = Mostrar;
|
tdLblPolizaSeguro.Visible = Mostrar;
|
||||||
tdTxtPolizaSeguro.Visible = Mostrar;
|
tdTxtPolizaSeguro.Visible = Mostrar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ObjVenta.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -290,6 +290,11 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
TxtFecha.Text = Now.ToShortDateString
|
TxtFecha.Text = Now.ToShortDateString
|
||||||
RVFecha.MaximumValue = Now.ToShortDateString
|
RVFecha.MaximumValue = Now.ToShortDateString
|
||||||
|
|
||||||
|
If Not UsuarioActual.CveEmpresa = 48 Then
|
||||||
|
TxtFecha.Enabled = False
|
||||||
|
ImgFecha.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
CantidadTotal = 0
|
CantidadTotal = 0
|
||||||
IndexSeccionAlmacen = 0
|
IndexSeccionAlmacen = 0
|
||||||
@@ -482,6 +487,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
DdlCConcepto.DataSource = GlobalDTInvConceptos.FiltraParametros("CveConcepto NOT IN (4,5)")
|
DdlCConcepto.DataSource = GlobalDTInvConceptos.FiltraParametros("CveConcepto NOT IN (4,5)")
|
||||||
DdlCConcepto.DataBind()
|
DdlCConcepto.DataBind()
|
||||||
|
|
||||||
|
|
||||||
'Llenar el dropdownlist de almacén
|
'Llenar el dropdownlist de almacén
|
||||||
If Not IfNull(Request("CI"), -1).ToString.ToEntero > 0 Then
|
If Not IfNull(Request("CI"), -1).ToString.ToEntero > 0 Then
|
||||||
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
||||||
@@ -508,6 +514,8 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
DdlConcepto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlConcepto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CargaPS()
|
CargaPS()
|
||||||
|
|
||||||
' CargaDdlPaqueteria()
|
' CargaDdlPaqueteria()
|
||||||
@@ -2025,11 +2033,16 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
DdlConcepto.Items.Insert(0, New ListItem("Entrada Almacen ", "2"))
|
DdlConcepto.Items.Insert(0, New ListItem("Entrada Almacen ", "2"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 72 AndAlso CveTipoAlmacen.Contiene(12, 14, 19) AndAlso (UsuarioActual.CveUsuario = 2185 OrElse UsuarioActual.CveRol = 1) Then
|
|
||||||
|
If UsuarioActual.CveEmpresa = 72 AndAlso (UsuarioActual.CveUsuario = 2185 OrElse UsuarioActual.CveRol = 1) Then
|
||||||
|
|
||||||
'DdlConcepto.Items.Add(New ListItem("Seleccione", "-1"))
|
'DdlConcepto.Items.Add(New ListItem("Seleccione", "-1"))
|
||||||
DdlConcepto.Items.Add(New ListItem("Entrada por Ajuste", "32"))
|
DdlConcepto.Items.Add(New ListItem("Entrada por Ajuste", "32"))
|
||||||
DdlConcepto.Items.Add(New ListItem("Salida por Ajuste", "34"))
|
|
||||||
|
If CveTipoAlmacen.Contiene(12, 14, 19) Then
|
||||||
|
DdlConcepto.Items.Add(New ListItem("Salida por Ajuste", "34"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -2075,6 +2075,8 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
Me.ObjRemisionNC.DescripcionContrato = ""
|
Me.ObjRemisionNC.DescripcionContrato = ""
|
||||||
Me.ObjRemisionNC.CveCorte = -1
|
Me.ObjRemisionNC.CveCorte = -1
|
||||||
Me.ObjRemisionNC.TipoDocumento = "Remisión"
|
Me.ObjRemisionNC.TipoDocumento = "Remisión"
|
||||||
|
'NUM 1- CARGO 2- BONIFICACION
|
||||||
|
Me.ObjRemisionNC.Num1 = 1
|
||||||
Me.ObjRemisionNC.Alfa1 = ""
|
Me.ObjRemisionNC.Alfa1 = ""
|
||||||
Me.ObjRemisionNC.Alfa2 = ""
|
Me.ObjRemisionNC.Alfa2 = ""
|
||||||
Me.ObjRemisionNC.Alfa3 = ""
|
Me.ObjRemisionNC.Alfa3 = ""
|
||||||
|
|||||||
@@ -152,6 +152,11 @@
|
|||||||
<asp:Label ID="LtMarca" CssClass="truncate2" runat="server" Text='<%# Eval("Marca")%>'></asp:Label>
|
<asp:Label ID="LtMarca" CssClass="truncate2" runat="server" Text='<%# Eval("Marca")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="30%" HeaderText="Almacen">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LtAlmacen" CssClass="truncate2" runat="server" Text='<%# Eval("Almacen")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Existencia" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Existencia" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtExistencia" runat="server" Text='<%# If(Eval("Existencia").ToString() = "0" Or Eval("Existencia").ToString() = "", "-", (Eval("Existencia", "{0:#,##0.##}"))) %>'></asp:Literal>
|
<asp:Literal ID="LtExistencia" runat="server" Text='<%# If(Eval("Existencia").ToString() = "0" Or Eval("Existencia").ToString() = "", "-", (Eval("Existencia", "{0:#,##0.##}"))) %>'></asp:Literal>
|
||||||
@@ -397,7 +402,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body rowpadding " style="display: none;">
|
<div class="portlet-body rowpadding " style="display: none;">
|
||||||
|
|
||||||
<asp:TextBox ID="TxtArchivoSua" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtArchivoMaxMin" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ Partial Class Inventarios_RepMaximoMinimo
|
|||||||
DdlSubProyecto.DataBind()
|
DdlSubProyecto.DataBind()
|
||||||
DdlSubProyecto.Items.Insert(0, New ListItem("Todas", "-1"))
|
DdlSubProyecto.Items.Insert(0, New ListItem("Todas", "-1"))
|
||||||
|
|
||||||
|
|
||||||
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1) 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1) 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
||||||
DdlAlmacen.DataBind()
|
DdlAlmacen.DataBind()
|
||||||
DdlAlmacen.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlAlmacen.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
@@ -358,14 +357,81 @@ Partial Class Inventarios_RepMaximoMinimo
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub LnkUpFile_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkUpFile_Click(sender As Object, e As EventArgs)
|
||||||
RegistraScript("$('#DmodalCargarMaximosMinimos').modal('hide');")
|
Dim Filesgral As List(Of Archivo) = TxtArchivoMaxMin.getfiles().Archivos
|
||||||
|
Dim continuar As Boolean = Filesgral.Count > 0
|
||||||
|
Dim stringError As String = ""
|
||||||
|
Dim fileItem As Archivo = If(continuar, Filesgral(0), Nothing)
|
||||||
|
|
||||||
|
If continuar Then
|
||||||
|
Dim FileExtension As String = fileItem.Extencion.ToUpper()
|
||||||
|
|
||||||
|
If FileExtension = "XLS" Or FileExtension = "XLSX" Or FileExtension = "CSV" Then
|
||||||
|
Else
|
||||||
|
continuar = False
|
||||||
|
stringError = "No se inserto un archivo de tipo Excel"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim DTEXcel As DataTable = New DataTable()
|
||||||
|
If continuar Then
|
||||||
|
DTEXcel = Extensiones.ModExtensiones.ReadExcelFile(fileItem.FileUrl, True)
|
||||||
|
DTEXcel.Columns.Add(New DataColumn("CvePS", GetType(Integer)))
|
||||||
|
DTEXcel.Columns.Add(New DataColumn("CveAlmacen", GetType(Integer)))
|
||||||
|
Dim dtAlmacen As DataTable = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1)
|
||||||
|
For Each drow As DataRow In DTEXcel.Rows
|
||||||
|
Dim Drps As DataTable = GlobalDTPS(UsuarioActual.CveEmpresa, -1, "-1", -1, -1, drow("Codigo").ToString())
|
||||||
|
Dim dralmacen As DataRow = dtAlmacen.FiltroPrimero(String.Format("Almacen='{0}'", drow("Almacen")))
|
||||||
|
If Drps.Rows.Count > 0 Then
|
||||||
|
drow("CvePS") = Drps.Rows(0)("CvePS")
|
||||||
|
End If
|
||||||
|
If Not IsNothing(dralmacen) Then
|
||||||
|
drow("CveAlmacen") = dralmacen("CveAlmacen")
|
||||||
|
End If
|
||||||
|
DTEXcel.AcceptChanges()
|
||||||
|
Next
|
||||||
|
continuar = True
|
||||||
|
End If
|
||||||
|
If continuar Then
|
||||||
|
|
||||||
|
Using ObjMaxMin As New ClsInventarios
|
||||||
|
ObjMaxMin.IniciaTransacSQL()
|
||||||
|
Dim DtResultados As New DataTable
|
||||||
|
If ObjMaxMin.RepMaximoMinimo(-1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
DtResultados = ObjMaxMin.DtResultados
|
||||||
|
End If
|
||||||
|
For Each drow As DataRow In DTEXcel.Select("CvePS>0 AND CveAlmacen >0")
|
||||||
|
If continuar Then
|
||||||
|
If IsNothing(DtResultados.FiltroPrimero(String.Format("CveAlmacen={0} AND CvePS={1}", drow("CveAlmacen").ToString().ToEntero(), drow("CvePS").ToString().ToEntero()))) Then
|
||||||
|
continuar = ObjMaxMin.AddAlmacenMaximoMinimo(drow("CveAlmacen").ToString().ToEntero(), drow("CvePS").ToString().ToEntero(), drow("Maximo").ToString().ToDouble(), drow("Minimo").ToString().ToDouble(), UsuarioActual.CveUsuario)
|
||||||
|
Else
|
||||||
|
continuar = ObjMaxMin.UpdateAlmacenMaximoMinimo(drow("CveAlmacen").ToString().ToEntero(), drow("CvePS").ToString().ToEntero(), drow("Maximo").ToString().ToDouble(), drow("Minimo").ToString().ToDouble(), UsuarioActual.CveUsuario)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
If continuar Then
|
||||||
|
ObjMaxMin.Commit()
|
||||||
|
Else
|
||||||
|
ObjMaxMin.RollBack()
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
If continuar Then
|
||||||
|
CargaGrid()
|
||||||
|
Alert("los cambios se han guardado satisfactoriamente")
|
||||||
|
RegistraScript("$('#DmodalCargarMaximosMinimos').modal('hide');")
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkCargarMaximosMinimos_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkCargarMaximosMinimos_Click(sender As Object, e As EventArgs)
|
||||||
|
TxtArchivoMaxMin.Text = ""
|
||||||
RegistraScript("$('#DmodalCargarMaximosMinimos').modal();")
|
RegistraScript("$('#DmodalCargarMaximosMinimos').modal();")
|
||||||
Upcargamasiva.Update()
|
Upcargamasiva.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkDescargarFormato_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkDescargarFormato_Click(sender As Object, e As EventArgs)
|
||||||
|
Using ObjMaxMin As New ClsInventarios
|
||||||
|
If ObjMaxMin.RepMaximoMinimo(-1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
ObjMaxMin.DtResultados.FiltraParametros("", "", New String() {"Codigo", "Almacen", "Maximo", "Minimo"}).ExportToExcel(String.Format("MaximosyMinimos{0:dd-MM-yyyy}", DateTime.Now))
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Using
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -202,14 +202,14 @@
|
|||||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró ningun Traspaso de Almacén"
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró ningun Traspaso de Almacén"
|
||||||
ToolTip="Remisiones sin Facturar"
|
ToolTip="Remisiones sin Facturar" data-rows="2"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||||
data-sort="true" GridLines="None">
|
data-sort="true" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Disponible" DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
|
<asp:BoundField HeaderText="Disponible" DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
|
||||||
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" 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="Código" DataField="Codigo" ItemStyle-Width="5%" />
|
||||||
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"/>
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"/>
|
||||||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left"/>
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left"/>
|
||||||
<asp:BoundField HeaderText="Valor" DataField="Valor" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />
|
<asp:BoundField HeaderText="Valor" DataField="Valor" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|||||||
@@ -107,10 +107,15 @@ Partial Class RepTraspasoAlmacen
|
|||||||
|
|
||||||
e.Row.Cells(0).Text = String.Format("Folio: <a class=""texto"" style=""color:white;"" target='_blank' href='/Inventarios/EntradasSalidas.aspx?CveMovimiento={1}'>{0}</a> ", e.Row.DBCampo("FolioSalida"), e.Row.DBCampo("CveMovimientoSalida"))
|
e.Row.Cells(0).Text = String.Format("Folio: <a class=""texto"" style=""color:white;"" target='_blank' href='/Inventarios/EntradasSalidas.aspx?CveMovimiento={1}'>{0}</a> ", e.Row.DBCampo("FolioSalida"), e.Row.DBCampo("CveMovimientoSalida"))
|
||||||
e.Row.Cells(1).Text = String.Format("{0}", e.Row.DBCampo("FechaMovto").ToString.ToDate.ToShortDateString)
|
e.Row.Cells(1).Text = String.Format("{0}", e.Row.DBCampo("FechaMovto").ToString.ToDate.ToShortDateString)
|
||||||
e.Row.Cells(3).Text = String.Format("Almacen Origen: {0} Almacen Destino: {1} Responsable: {2}", e.Row.DBCampo("Almacen"), e.Row.DBCampo("AlmacenDestino"), e.Row.DBCampo("Recibio"))
|
e.Row.Cells(2).Text = String.Format("<span style =""white-space: nowrap;"">{0}</span>", e.Row.DBCampo("Almacen"))
|
||||||
|
e.Row.Cells(3).Text = String.Format("<span style =""white-space: nowrap;"">{0}</span>", e.Row.DBCampo("AlmacenDestino"))
|
||||||
|
e.Row.Cells(4).Text = String.Format("Responsable: {0}", e.Row.DBCampo("Recibio"))
|
||||||
ElseIf e.Row.DBCampo("FechaMovto") = "" Then
|
ElseIf e.Row.DBCampo("FechaMovto") = "" Then
|
||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
e.Row.Cells(0).Text = "Total General"
|
e.Row.Cells(0).Text = "Total General"
|
||||||
|
e.Row.Cells(2).Text = String.Format("<span style =""white-space: nowrap;"">Almacen Origen</span>")
|
||||||
|
e.Row.Cells(3).Text = String.Format("<span style =""white-space: nowrap;"">Almacen Destino</span>")
|
||||||
|
Else
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
Try
|
Try
|
||||||
Dim CvePersonal As Integer = Request.QueryString("CvePersonal").ToString.ToEntero
|
Dim CvePersonal As Integer = Request.QueryString("CvePersonal").ToString.ToEntero
|
||||||
OcultarControles(CvePersonal)
|
OcultarControles(CvePersonal)
|
||||||
|
TxtFecha.Enabled = False
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
@@ -140,7 +141,8 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
|
|
||||||
Private Sub OcultarControles(CvePersonal As Integer)
|
Private Sub OcultarControles(CvePersonal As Integer)
|
||||||
|
|
||||||
DdlPersonal.ddl.SelectedValueExist(CvePersonal)
|
DdlPersonal.SelectedValue = CvePersonal.ToString()
|
||||||
|
DdlPersonal.SelectedText = GlobalDTRHPersonal(UsuarioActual.CveEmpresa, CvePersonal).FiltroPrimeroValor("NombreCompleto")
|
||||||
DdlPersonal.Enabled = False
|
DdlPersonal.Enabled = False
|
||||||
DVTipo.Visible = False
|
DVTipo.Visible = False
|
||||||
End Sub
|
End Sub
|
||||||
@@ -931,10 +933,11 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
If Not TieneError Then
|
If Not TieneError Then
|
||||||
Dim Msg As New StringBuilder
|
Dim Msg As New StringBuilder
|
||||||
If Concepto = 23 Then
|
If Concepto = 23 Then
|
||||||
Msg.AppendFormat("<br/>Resguardo con Folio: <b><a href=""/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}"" target=""_blank"">{1}</a></b>", CveMovimientoSalida, FolioSalida)
|
'FolioEntrada
|
||||||
|
Msg.AppendFormat("<br/>Resguardo con Folio: <b><a href=""/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}"" target=""_blank"">{1}</a></b>", CveMovimientoSalida, FolioEntrada)
|
||||||
Msg.AppendFormat("<br/><a class=""Texto"" target='_blank' href=""/Compras/PopUpVerFactura.aspx?P={0}"">Imprimir Resguardo</a> ", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimientoSalida)))
|
Msg.AppendFormat("<br/><a class=""Texto"" target='_blank' href=""/Compras/PopUpVerFactura.aspx?P={0}"">Imprimir Resguardo</a> ", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimientoSalida)))
|
||||||
|
|
||||||
Msg.AppendFormat("<br/><br/><br/>El Movimiento de control se registro con el Folio: <b><a href=""/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}"" target=""_blank"">{1}</a></b>", CveMovimientoEntrada, FolioEntrada)
|
Msg.AppendFormat("<br/><br/><br/>El Movimiento de control se registro con el Folio: <b><a href=""/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}"" target=""_blank"">{1}</a></b>", CveMovimientoEntrada, FolioSalida)
|
||||||
Else
|
Else
|
||||||
Msg.AppendFormat("<br/>Liberación de Resguardo con Folio: <b><a href=""/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}"" target=""_blank"">{1}</a></b>", CveMovimientoEntrada, FolioEntrada)
|
Msg.AppendFormat("<br/>Liberación de Resguardo con Folio: <b><a href=""/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}"" target=""_blank"">{1}</a></b>", CveMovimientoEntrada, FolioEntrada)
|
||||||
Msg.AppendFormat("<br/><a class=""Texto"" target='_blank' href=""/Compras/PopUpVerFactura.aspx?P={0}"">Imprimir liberación de Resguardo</a> ", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimientoEntrada)))
|
Msg.AppendFormat("<br/><a class=""Texto"" target='_blank' href=""/Compras/PopUpVerFactura.aspx?P={0}"">Imprimir liberación de Resguardo</a> ", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimientoEntrada)))
|
||||||
|
|||||||
@@ -300,7 +300,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body rowpadding">
|
<div class="portlet-body rowpadding">
|
||||||
|
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS, CodigoPS, CveUM, Cantidad, Precio, Observaciones, CveContratoDetalle,UnidadMedida" EmptyDataText="No se encontraron Productos registrados" ToolTip="Listado de Productos" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall" GridLines="None">
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS, CodigoPS, CveUM, Cantidad, Precio, Observaciones, CveContratoDetalle,UnidadMedida,Serie" EmptyDataText="No se encontraron Productos registrados" ToolTip="Listado de Productos" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Cantidad" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:N}" ItemStyle-HorizontalAlign="Center" DataField="Cantidad" ItemStyle-Width="5%" />
|
<asp:BoundField HeaderText="Cantidad" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:N}" ItemStyle-HorizontalAlign="Center" DataField="Cantidad" ItemStyle-Width="5%" />
|
||||||
<asp:BoundField HeaderText="U.M" HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:N}" ItemStyle-HorizontalAlign="Center" DataField="UnidadMedida" ItemStyle-Width="10%" />
|
<asp:BoundField HeaderText="U.M" HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:N}" ItemStyle-HorizontalAlign="Center" DataField="UnidadMedida" ItemStyle-Width="10%" />
|
||||||
@@ -308,6 +308,7 @@
|
|||||||
<%--<asp:BoundField HeaderText="Direccion Envio" HeaderStyle-HorizontalAlign="Left" DataField="DireccionEnvio" ItemStyle-Width="20%" />--%>
|
<%--<asp:BoundField HeaderText="Direccion Envio" HeaderStyle-HorizontalAlign="Left" DataField="DireccionEnvio" ItemStyle-Width="20%" />--%>
|
||||||
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-Width="20%" />
|
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-Width="20%" />
|
||||||
<asp:BoundField HeaderText="Precio" HeaderStyle-HorizontalAlign="Right" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right" DataField="Precio" Visible="false" ItemStyle-Width="5%" />
|
<asp:BoundField HeaderText="Precio" HeaderStyle-HorizontalAlign="Right" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right" DataField="Precio" Visible="false" ItemStyle-Width="5%" />
|
||||||
|
<asp:BoundField HeaderText="Serie" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" DataField="Serie" Visible="false" ItemStyle-Width="5%" />
|
||||||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="imgD" runat="server" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="Si" />
|
<asp:LinkButton ID="imgD" runat="server" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="Si" />
|
||||||
@@ -475,6 +476,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row marginRowLeft">
|
||||||
|
<div class="col-md-8 form-group form-md-line-input input-iconright" id="Div4" runat="server" visible="false">
|
||||||
|
<asp:TextBox runat="server" ID="TxtSerie" CssClass="form-control"/>
|
||||||
|
<label>Serie:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
ViewState("CveDireccionEnvio") = value
|
ViewState("CveDireccionEnvio") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
'Private Property CveUsuarioAutoriza As Integer
|
'Private Property CveUsuarioAutoriza As Integer
|
||||||
' Get
|
' Get
|
||||||
' If ViewState("CveUsuarioAutoriza") Is Nothing Then
|
' If ViewState("CveUsuarioAutoriza") Is Nothing Then
|
||||||
@@ -94,8 +93,9 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
TempDT.Columns.Add("Precio", Type.GetType("System.Double"))
|
TempDT.Columns.Add("Precio", Type.GetType("System.Double"))
|
||||||
TempDT.Columns.Add("Observaciones", Type.GetType("System.String"))
|
TempDT.Columns.Add("Observaciones", Type.GetType("System.String"))
|
||||||
TempDT.Columns.Add("CveContratoDetalle", Type.GetType("System.Int32"))
|
TempDT.Columns.Add("CveContratoDetalle", Type.GetType("System.Int32"))
|
||||||
|
'TempDT.Columns.Add("CveContratoDetalle", Type.GetType("System.Int32"))
|
||||||
'TempDT.Columns.Add("CveDireccionEnvio", Type.GetType("System.Int32"))
|
'TempDT.Columns.Add("CveDireccionEnvio", Type.GetType("System.Int32"))
|
||||||
'TempDT.Columns.Add("DireccionEnvio", Type.GetType("System.String"))
|
TempDT.Columns.Add("Serie", Type.GetType("System.String"))
|
||||||
|
|
||||||
TempDT.Columns.Add()
|
TempDT.Columns.Add()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -153,6 +153,7 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
If ObjInventarios.DtResultados.Rows.Count > 0 Then
|
If ObjInventarios.DtResultados.Rows.Count > 0 Then
|
||||||
|
|
||||||
GvDatos.Columns(4).Visible = False
|
GvDatos.Columns(4).Visible = False
|
||||||
|
GvDatos.Columns(5).Visible = True
|
||||||
DivFolio.Visible = True
|
DivFolio.Visible = True
|
||||||
LbFolio.Text = ObjInventarios.DtResultados.Rows(0)("FolioTraspaso").ToString
|
LbFolio.Text = ObjInventarios.DtResultados.Rows(0)("FolioTraspaso").ToString
|
||||||
TxtObservaciones.Text = ObjInventarios.DtResultados.Rows(0)("ObservacionesTraspaso").ToString
|
TxtObservaciones.Text = ObjInventarios.DtResultados.Rows(0)("ObservacionesTraspaso").ToString
|
||||||
@@ -284,6 +285,7 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
End If
|
End If
|
||||||
ObjInventarios.Dispose()
|
ObjInventarios.Dispose()
|
||||||
ObjClientes.Dispose()
|
ObjClientes.Dispose()
|
||||||
|
MostarSerieColumn()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -347,6 +349,13 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
Row("UnidadMedida") = DdlUM.SelectedItem.Text
|
Row("UnidadMedida") = DdlUM.SelectedItem.Text
|
||||||
Row("Observaciones") = ""
|
Row("Observaciones") = ""
|
||||||
|
|
||||||
|
If Div4.Visible Then
|
||||||
|
Row("Serie") = TxtSerie.Text
|
||||||
|
GvDatos.Columns(5).Visible = True
|
||||||
|
Else
|
||||||
|
Row("Serie") = "-1"
|
||||||
|
End If
|
||||||
|
|
||||||
Dim ObjInventarios As New ClsInventarios
|
Dim ObjInventarios As New ClsInventarios
|
||||||
Dim Existencia As Double = ObjInventarios.GetExistenciasPS(DdlProductoServicio.SelectedValue.ToEntero, DdlUM.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, DdlAlmacenOrigen.SelectedValue.ToEntero, FechaMovto:=TxtFecha.Text.ToDate.ToString("yyyy/MM/dd 23:59"))
|
Dim Existencia As Double = ObjInventarios.GetExistenciasPS(DdlProductoServicio.SelectedValue.ToEntero, DdlUM.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, DdlAlmacenOrigen.SelectedValue.ToEntero, FechaMovto:=TxtFecha.Text.ToDate.ToString("yyyy/MM/dd 23:59"))
|
||||||
ObjInventarios.Dispose()
|
ObjInventarios.Dispose()
|
||||||
@@ -612,8 +621,9 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
Dim Precio As Double = Row.DataKey("Precio").ToEntero
|
Dim Precio As Double = Row.DataKey("Precio").ToEntero
|
||||||
Dim Observaciones As String = Row.DataKey("Observaciones")
|
Dim Observaciones As String = Row.DataKey("Observaciones")
|
||||||
Dim CveContratoDetalle As Integer = Row.DataKey("CveContratoDetalle").ToEntero
|
Dim CveContratoDetalle As Integer = Row.DataKey("CveContratoDetalle").ToEntero
|
||||||
|
Dim Serie As String = Row.DataKey("Serie")
|
||||||
|
|
||||||
If Not ObjInventarios.AddTrasladoSolicitudDetalle(CveTraspasoSolicitud, Cantidad, CveUM, CvePS, Precio, Observaciones, CveContratoDetalle) Then
|
If Not ObjInventarios.AddTrasladoSolicitudDetalle(CveTraspasoSolicitud, Cantidad, CveUM, CvePS, Precio, Observaciones, CveContratoDetalle, Serie) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -767,6 +777,7 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
params.Add(New ReportParameter("Paqueteria", DdlPaqueteria.SelectedItem.Text))
|
params.Add(New ReportParameter("Paqueteria", DdlPaqueteria.SelectedItem.Text))
|
||||||
params.Add(New ReportParameter("NumeroContrato", NumContrato))
|
params.Add(New ReportParameter("NumeroContrato", NumContrato))
|
||||||
params.Add(New ReportParameter("FechaEnvio", TxtFecha.Text.Substring(0, 10)))
|
params.Add(New ReportParameter("FechaEnvio", TxtFecha.Text.Substring(0, 10)))
|
||||||
|
params.Add(New ReportParameter("TieneSerie", GvDatos.Columns(5).Visible.ToString()))
|
||||||
|
|
||||||
Dim RutaFormato As String = String.Format("Empresas\{0}\Formatos\RepTrasladoSolicitud.rdlc", UsuarioActual.CveEmpresa)
|
Dim RutaFormato As String = String.Format("Empresas\{0}\Formatos\RepTrasladoSolicitud.rdlc", UsuarioActual.CveEmpresa)
|
||||||
Dim RutaFormatoDefault As String = String.Format("Empresas\Grales\Formatos\RepTrasladoSolicitud.rdlc")
|
Dim RutaFormatoDefault As String = String.Format("Empresas\Grales\Formatos\RepTrasladoSolicitud.rdlc")
|
||||||
@@ -963,6 +974,8 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
DdlUM.SelectedValue = "-1"
|
DdlUM.SelectedValue = "-1"
|
||||||
DdlUM.DataBind()
|
DdlUM.DataBind()
|
||||||
DdlUM.SelectedValueExist(drPS("CveUnidadMedida").ToString)
|
DdlUM.SelectedValueExist(drPS("CveUnidadMedida").ToString)
|
||||||
|
Dim AplicaSerie As Boolean = drPS("AplicaSerie").ToString = "True"
|
||||||
|
Div4.Visible = AplicaSerie
|
||||||
End If
|
End If
|
||||||
UpPS.Update()
|
UpPS.Update()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
@@ -1028,16 +1041,20 @@ Partial Class Inventarios_TrasladoSolicitud
|
|||||||
Dim MandaCorre As New ClsSisMail
|
Dim MandaCorre As New ClsSisMail
|
||||||
MandaCorre.SendMail(ClsPaginas.EmpresaNotificaciones, CorreoDestino, $"Solicitud de Autorización de traspaso #{Folio}", SB.ToString, Displayname:="SIG Notificaciones: Solicitud de Traspaso")
|
MandaCorre.SendMail(ClsPaginas.EmpresaNotificaciones, CorreoDestino, $"Solicitud de Autorización de traspaso #{Folio}", SB.ToString, Displayname:="SIG Notificaciones: Solicitud de Traspaso")
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub MostarSerieColumn()
|
||||||
|
Dim Mostrar As Boolean = False
|
||||||
|
For Each row As GridViewRow In GvDatos.Rows
|
||||||
|
Dim Serie As String = row.DataKey("Serie").ToString
|
||||||
|
If Serie IsNot "-1" And Serie IsNot "" Then
|
||||||
|
Mostrar = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
GvDatos.Columns(5).Visible = Mostrar
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -44,17 +44,18 @@ table > tr > th.adsCol, table.table > tr > th.adsCol {
|
|||||||
.AdsBody .ADSCroll::-webkit-scrollbar-track {
|
.AdsBody .ADSCroll::-webkit-scrollbar-track {
|
||||||
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
border-radius: 10px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.AdsBody .ADSCroll::-webkit-scrollbar {
|
.AdsBody .ADSCroll::-webkit-scrollbar {
|
||||||
width: 10px;
|
width: 8px;
|
||||||
|
height:10px;
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.AdsBody .ADSCroll::-webkit-scrollbar-thumb {
|
.AdsBody .ADSCroll::-webkit-scrollbar-thumb {
|
||||||
background-color: #AAA;
|
background-color: #AAA;
|
||||||
border-radius: 10px;
|
border-radius: 4px;
|
||||||
background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, .2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .2) 75%, transparent 75%, transparent)
|
background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, .2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .2) 75%, transparent 75%, transparent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1485,6 +1485,10 @@
|
|||||||
|
|
||||||
<asp:DropDownList ID="DdlUsuariosAsignado" CssClass="select2me" Width="200px" DataTextField="Nombre" DataValueField="CveUsuario" runat="server"></asp:DropDownList>
|
<asp:DropDownList ID="DdlUsuariosAsignado" CssClass="select2me" Width="200px" DataTextField="Nombre" DataValueField="CveUsuario" runat="server"></asp:DropDownList>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
<asp:Panel runat="server" ID="PnlUsuarioYaAsignado" Visible="false" Style="text-align:left;font-size:14px;height:34px;margin-top:10px">
|
||||||
|
Asignado a:
|
||||||
|
<asp:Label runat="server" ID="LblUsuarioYaAsignado"/><br /><br />
|
||||||
|
</asp:Panel>
|
||||||
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary" Style="margin-top: 5px;" runat="server" Text="Guardar" Width="170px" ValidationGroup="GrpGuardar" />
|
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary" Style="margin-top: 5px;" runat="server" Text="Guardar" Width="170px" ValidationGroup="GrpGuardar" />
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|||||||
@@ -817,6 +817,7 @@ Partial Class OC
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
MostrarUsuarioAsignado()
|
||||||
Me.Form.DefaultButton = ""
|
Me.Form.DefaultButton = ""
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -3128,7 +3129,7 @@ Partial Class OC
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
If objOrdenCompra.AddOrdenCompra("OC", -1, TxtDescrip.Text, TxtJustificacion.Text, DdlPrioridad.SelectedValue.ToEntero, TxtFecha.Text.ToDate, DdlMoneda.SelectedValue.ToEntero, CveEstatusInicialOC, TxtFechaEstimadaEntrega.Text, LugarEntrega,
|
If objOrdenCompra.AddOrdenCompra("OC", -1, TxtDescrip.Text, TxtJustificacion.Text, DdlPrioridad.SelectedValue.ToEntero, TxtFecha.Text.ToDate, DdlMoneda.SelectedValue.ToEntero, CveEstatusInicialOC, TxtFechaEstimadaEntrega.Text, LugarEntrega,
|
||||||
CveUsuario, CveEmpresaActual, 0, pCveProveedor:=DdlProveedores.SelectedValue.ToEntero, pCveProveedorSucursal:=DdlProveedorSucursal.SelectedValue.ToEntero, CveCliente:=Ddlcliente.txtValue.Value.ToEntero, CveVendedor:=DdlVendedor.SelectedValue.ToEntero, PrioridadObservacion:=txtobsprioridad.Text,
|
CveUsuario, CveEmpresaActual, 0, pCveProveedor:=DdlProveedores.SelectedValue.ToEntero, pCveProveedorSucursal:=DdlProveedorSucursal.SelectedValue.ToEntero, CveUsuarioAsignado:=DdlUsuariosAsignado.SelectedValue.ToEntero(), CveCliente:=Ddlcliente.txtValue.Value.ToEntero, CveVendedor:=DdlVendedor.SelectedValue.ToEntero, PrioridadObservacion:=txtobsprioridad.Text,
|
||||||
PorcentajeIVA:=Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2), IVA:=IVA, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, IDPoliza:=IDPolizaPresupuestal, CveCotizacion:=CveCotizacion, FolioAdicional:=TxtFolioAdicional.Text,
|
PorcentajeIVA:=Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2), IVA:=IVA, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, IDPoliza:=IDPolizaPresupuestal, CveCotizacion:=CveCotizacion, FolioAdicional:=TxtFolioAdicional.Text,
|
||||||
EntregaDirecta:=If(ChkEntregaDirecta.Checked, 1, -1), CveDireccionEnvio:=If(DdlDireccionEnvio.Visible, DdlDireccionEnvio.SelectedValue.ToEntero, -1), IEPS:=TxtIEPS.Text.ToDecimal, CveIEAnticipo:=CveIEAnticipo, ImporteAnticipo:=ImporteAnticipos, UsoCFDI:=DdlUsoCFDI.SelectedValue.ToEntero,
|
EntregaDirecta:=If(ChkEntregaDirecta.Checked, 1, -1), CveDireccionEnvio:=If(DdlDireccionEnvio.Visible, DdlDireccionEnvio.SelectedValue.ToEntero, -1), IEPS:=TxtIEPS.Text.ToDecimal, CveIEAnticipo:=CveIEAnticipo, ImporteAnticipo:=ImporteAnticipos, UsoCFDI:=DdlUsoCFDI.SelectedValue.ToEntero,
|
||||||
Promocion:=Promocion) Then
|
Promocion:=Promocion) Then
|
||||||
@@ -8038,6 +8039,13 @@ Partial Class OC
|
|||||||
UpSolicitarAnticipo.Update()
|
UpSolicitarAnticipo.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MostrarUsuarioAsignado()
|
||||||
|
If CveUsuarioAsignado > 0 Then
|
||||||
|
PnlUsuarioYaAsignado.Visible = True
|
||||||
|
Dim NombreUsuario As String = GlobalDTUsuarios(CveUsuario:=CveUsuarioAsignado).FiltroPrimeroValor("Nombre")
|
||||||
|
LblUsuarioYaAsignado.Text = NombreUsuario
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
'Private Sub CargaVentaRelacionada()
|
'Private Sub CargaVentaRelacionada()
|
||||||
' Dim GridViewPSAux As GridView = GvD
|
' Dim GridViewPSAux As GridView = GvD
|
||||||
' Dim CveOCDetalle As New StringBuilder()
|
' Dim CveOCDetalle As New StringBuilder()
|
||||||
|
|||||||
@@ -97,6 +97,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LbPorAtender" runat="server"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel por Atender</asp:LinkButton>
|
<asp:LinkButton ID="LbPorAtender" runat="server"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel por Atender</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LbPendientesPDF" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF Pendientes</asp:LinkButton>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LbPendientes" runat="server"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel Pendientes</asp:LinkButton>
|
<asp:LinkButton ID="LbPendientes" runat="server"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel Pendientes</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
@@ -107,6 +110,7 @@
|
|||||||
<Triggers>
|
<Triggers>
|
||||||
<asp:PostBackTrigger ControlID="LbPorAtender" />
|
<asp:PostBackTrigger ControlID="LbPorAtender" />
|
||||||
<asp:PostBackTrigger ControlID="LbPendientes" />
|
<asp:PostBackTrigger ControlID="LbPendientes" />
|
||||||
|
<asp:PostBackTrigger ControlID="LbPendientesPDF" />
|
||||||
<asp:PostBackTrigger ControlID="LbConsultar" />
|
<asp:PostBackTrigger ControlID="LbConsultar" />
|
||||||
</Triggers>
|
</Triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -22,9 +22,17 @@ Partial Class RepOC
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
ViewState("DtPorAtender") = value
|
ViewState("DtPorAtender") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property DtPendiente As DataTable
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("DtPendiente"), DataTable)
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DtPendiente") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
txtFechaI.Text = Now.AddMonths(-3).ToShortDateString
|
txtFechaI.Text = Now.AddMonths(-3).ToShortDateString
|
||||||
@@ -87,6 +95,7 @@ Partial Class RepOC
|
|||||||
CargarCentrosDeCosto(DdlProyectos, DdlSubProyectos, LblProyecto, LblSubProyecto)
|
CargarCentrosDeCosto(DdlProyectos, DdlSubProyectos, LblProyecto, LblSubProyecto)
|
||||||
GvPorAtender.Columns(5).HeaderText = LblSubProyecto.Text
|
GvPorAtender.Columns(5).HeaderText = LblSubProyecto.Text
|
||||||
GvPendientes.Columns(5).HeaderText = LblSubProyecto.Text
|
GvPendientes.Columns(5).HeaderText = LblSubProyecto.Text
|
||||||
|
GvConsultar.Columns(5).HeaderText = LblSubProyecto.Text
|
||||||
DivProyectos.Visible = DdlProyectos.Visible
|
DivProyectos.Visible = DdlProyectos.Visible
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -182,6 +191,7 @@ Partial Class RepOC
|
|||||||
Protected Sub btnConsultarPendientes_Click(sender As Object, e As EventArgs) Handles btnConsultarPendientes.Click
|
Protected Sub btnConsultarPendientes_Click(sender As Object, e As EventArgs) Handles btnConsultarPendientes.Click
|
||||||
LbPorAtender.Visible = True
|
LbPorAtender.Visible = True
|
||||||
LbPendientes.Visible = True
|
LbPendientes.Visible = True
|
||||||
|
LbPendientesPDF.Visible = True
|
||||||
LbConsultar.Visible = False
|
LbConsultar.Visible = False
|
||||||
|
|
||||||
Tab.Visible = True
|
Tab.Visible = True
|
||||||
@@ -214,6 +224,7 @@ Partial Class RepOC
|
|||||||
DdlEstatus.SelectedValue.ToEntero, UsuarioActual.CveUsuario, ddlcliente.SelectedValue.ToEntero, SoloSubProyectosConPermiso:=If(UsuarioActual.Empresa.Funcionalidad(530) = "1", True, False),
|
DdlEstatus.SelectedValue.ToEntero, UsuarioActual.CveUsuario, ddlcliente.SelectedValue.ToEntero, SoloSubProyectosConPermiso:=If(UsuarioActual.Empresa.Funcionalidad(530) = "1", True, False),
|
||||||
CveUsuarioAsignado:=DdlUsuarioAsignado.SelectedValue.ToEntero(), EntregaDirecta:=DdlEntregaDirecta.SelectedValue.ToEntero()) Then
|
CveUsuarioAsignado:=DdlUsuarioAsignado.SelectedValue.ToEntero(), EntregaDirecta:=DdlEntregaDirecta.SelectedValue.ToEntero()) Then
|
||||||
GvPendientes.DataSource = OC.DtResultados
|
GvPendientes.DataSource = OC.DtResultados
|
||||||
|
DtPendiente = OC.DtResultados
|
||||||
GvPendientes.DataBind()
|
GvPendientes.DataBind()
|
||||||
'If (GvPendientes.Rows.Count > 0) Then
|
'If (GvPendientes.Rows.Count > 0) Then
|
||||||
' GvPendientes.UseAccessibleHeader = True
|
' GvPendientes.UseAccessibleHeader = True
|
||||||
@@ -312,6 +323,7 @@ Partial Class RepOC
|
|||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles btnConsultar.Click
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles btnConsultar.Click
|
||||||
LbPorAtender.Visible = False
|
LbPorAtender.Visible = False
|
||||||
LbPendientes.Visible = False
|
LbPendientes.Visible = False
|
||||||
|
LbPendientesPDF.Visible = False
|
||||||
LbConsultar.Visible = True
|
LbConsultar.Visible = True
|
||||||
DivConsultar.Visible = True
|
DivConsultar.Visible = True
|
||||||
DivPendiete.Visible = False
|
DivPendiete.Visible = False
|
||||||
@@ -330,7 +342,8 @@ Partial Class RepOC
|
|||||||
CveUsuarioAutorizo:=DdlUsuarioAutorizo.SelectedValue.ToEntero(), CveUsuarioAsignado:=DdlUsuarioAsignado.SelectedValue.ToEntero(), EntregaDirecta:=DdlEntregaDirecta.SelectedValue.ToEntero()) Then
|
CveUsuarioAutorizo:=DdlUsuarioAutorizo.SelectedValue.ToEntero(), CveUsuarioAsignado:=DdlUsuarioAsignado.SelectedValue.ToEntero(), EntregaDirecta:=DdlEntregaDirecta.SelectedValue.ToEntero()) Then
|
||||||
|
|
||||||
GvConsultar.DataSource = OC.DtResultados
|
GvConsultar.DataSource = OC.DtResultados
|
||||||
DtOC = OC.DtResultados
|
DtOC = OC.DtResultados
|
||||||
|
DtPorAtender = OC.DtResultados
|
||||||
LblTotal.Text = OC.DtResultados.SUM("Total").FormatoNumero
|
LblTotal.Text = OC.DtResultados.SUM("Total").FormatoNumero
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoProceso(227) Then
|
If UsuarioActual.TienePermisoProceso(227) Then
|
||||||
@@ -459,6 +472,7 @@ Partial Class RepOC
|
|||||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
params.Add(New ReportParameter("AgrupadoPor", $"{Folio}{Tipo}{Proyecto}{SubProyecto}{Estatus}{AF}{Usuario}{FI}{FF}{Clasificacion}{Producto}{Completa}{Proveedor}{Cliente}"))
|
params.Add(New ReportParameter("AgrupadoPor", $"{Folio}{Tipo}{Proyecto}{SubProyecto}{Estatus}{AF}{Usuario}{FI}{FF}{Clasificacion}{Producto}{Completa}{Proveedor}{Cliente}"))
|
||||||
params.Add(New ReportParameter("SubProyectoHeader", LblSubProyecto.Text))
|
params.Add(New ReportParameter("SubProyectoHeader", LblSubProyecto.Text))
|
||||||
|
params.Add(New ReportParameter("Titulo", "REPORTE DE ORDENES DE COMPRA POR ATENDER"))
|
||||||
|
|
||||||
If Imagen.Exists Then
|
If Imagen.Exists Then
|
||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
params.Add(New ReportParameter("LogoPath", logouri))
|
||||||
@@ -480,7 +494,27 @@ Partial Class RepOC
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LbPendientes_Click(sender As Object, e As System.EventArgs) Handles LbPendientes.Click
|
Protected Sub LbPendientes_Click(sender As Object, e As System.EventArgs) Handles LbPendientes.Click
|
||||||
GvPendientes.ExportToExcel("OrdenesCompraPendientes" & Now.ToShortDateString)
|
'GvPendientes.ExportToExcel("OrdenesCompraPendientes" & Now.ToShortDateString)
|
||||||
|
ImprimirPendientes("EXCEL")
|
||||||
|
End Sub
|
||||||
|
Protected Sub LbPendientesPDF_Click(sender As Object, e As System.EventArgs) Handles LbPendientesPDF.Click
|
||||||
|
ImprimirPendientes("PDF")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ImprimirPendientes(format As String)
|
||||||
|
If UsuarioActual.CveEmpresa.Contiene(72) Then
|
||||||
|
Dim params As New List(Of ReportParameter)
|
||||||
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||||
|
params.Add(New ReportParameter("FechaInicio", If(txtFechaI.Text = "", "-1", txtFechaI.Text)))
|
||||||
|
params.Add(New ReportParameter("FechaFin", If(txtFechaF.Text = "", "-1", txtFechaF.Text)))
|
||||||
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
|
params.Add(New ReportParameter("FechaImpresion", Now.ToShortDateString))
|
||||||
|
params.Add(New ReportParameter("SubProyecto", LblSubProyecto.Text))
|
||||||
|
|
||||||
|
ImprimirPDF(String.Format(UsuarioActual.Empresa.Ruta & "/Formatos/RepRequisicionesOC.rdlc", UsuarioActual.Empresa.Ruta), DtPendiente, params, Formato:=format)
|
||||||
|
Else
|
||||||
|
GvConsultar.ExportToExcel("OrdenesCompra" & Now.ToShortDateString)
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LbConsultar_Click(sender As Object, e As System.EventArgs) Handles LbConsultar.Click
|
Protected Sub LbConsultar_Click(sender As Object, e As System.EventArgs) Handles LbConsultar.Click
|
||||||
If UsuarioActual.CveEmpresa.Contiene(72) Then
|
If UsuarioActual.CveEmpresa.Contiene(72) Then
|
||||||
|
|||||||
@@ -309,7 +309,7 @@
|
|||||||
<asp:PostBackTrigger ControlID="LbExcelCxCActivas" />
|
<asp:PostBackTrigger ControlID="LbExcelCxCActivas" />
|
||||||
</Triggers>
|
</Triggers>
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvCxC" runat="server" DataKeyNames="CveVenta,Folio,Original,Saldo,CveMoneda,TipoCambio,CveSubProyecto,IVA,RetIVA,RetISR,IEPS" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Cobrar Pendientes" ToolTip="Listado de CxC" CssClass="table table-striped table-advance table-hover ScrollAD" Style="text-align: center;" GridLines="None">
|
<asp:GridView ID="GvCxC" runat="server" DataKeyNames="CveVenta,Folio,Original,Saldo,CveMoneda,TipoCambio,CveSubProyecto,IVA,RetIVA,RetISR,IEPS,PorcentajeIVA,PorcentajeIEPS,PorcentajeRetIVA,PorcentajeRetISR" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Cobrar Pendientes" ToolTip="Listado de CxC" CssClass="table table-striped table-advance table-hover ScrollAD" Style="text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Factura</HeaderTemplate>
|
<HeaderTemplate>Factura</HeaderTemplate>
|
||||||
@@ -1882,15 +1882,40 @@
|
|||||||
<h4 class="modal-title">Confirmación de Pago</h4>
|
<h4 class="modal-title">Confirmación de Pago</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="control-label col-sm-2 label-titulo">Facturas:</label>
|
<label class="control-label col-sm-3 label-titulo">Nombre:</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-9">
|
||||||
<asp:Label ID="LbFactura" Text="" CssClass="form-control-static" runat="server" />
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon">#</span>
|
||||||
|
<asp:TextBox ID="TxtNombreCompleto" ClientIDMode="Static" Text="" CssClass="form-control input-sm" runat="server" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<label class="control-label col-sm-2 label-titulo">Pago:</label>
|
</div>
|
||||||
<div class="col-sm-4">
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
<label class="control-label col-sm-3 label-titulo">Concepto:</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon">#</span>
|
||||||
|
<asp:TextBox ID="TxtConcepto" ClientIDMode="Static" Text="" CssClass="form-control input-sm" runat="server" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
<label class="control-label col-sm-3 label-titulo">Referencia:</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon">#</span>
|
||||||
|
<asp:TextBox ID="TxtReferencia" ClientIDMode="Static" Text="" CssClass="form-control input-sm" runat="server" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
<label class="control-label col-sm-3 label-titulo">Importe:</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon">$</span>
|
<span class="input-group-addon">$</span>
|
||||||
<asp:TextBox ID="TxtImporte" ClientIDMode="Static" Text="" Enabled="false" CssClass="form-control input-sm" runat="server" />
|
<asp:TextBox ID="TxtImporte" ClientIDMode="Static" Text="" Enabled="false" CssClass="form-control input-sm" runat="server" />
|
||||||
@@ -1900,18 +1925,28 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCETxtImporte" runat="server" HighlightCssClass="vco" TargetControlID="RVTxtImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCETxtImporte" runat="server" HighlightCssClass="vco" TargetControlID="RVTxtImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
<div id="DivPagoDolares" class="row" style="margin-top: 20px;" runat="server">
|
<div id="DivPagoDolares" class="row" style="margin-top: 20px;" runat="server">
|
||||||
<div class="col-sm-12 text-right">
|
<div class="col-sm-12 text-right">
|
||||||
<p>
|
<p>
|
||||||
*El pago incluye facturas en dolares. Las cuales se calcularon con el TC del día <b>$
|
*El pago incluye facturas en dolares. Las cuales se calcularon con el TC del día <b>$
|
||||||
|
|
||||||
<asp:Literal ID="LtTC" Text="" runat="server" />
|
<asp:Literal ID="LtTC" Text="" runat="server" />
|
||||||
</b>
|
</b>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
<label class="control-label col-sm-3 label-titulo">Correo:</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon">@</span>
|
||||||
|
<asp:TextBox ID="TxtCorreo" ClientIDMode="Static" Text="" CssClass="form-control input-sm" runat="server" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button id="CancelarProsePago" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
<button id="CancelarProsePago" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||||
|
|||||||
@@ -564,9 +564,13 @@ Partial Class Ventas_PortalCliente
|
|||||||
DtPagos.Columns.Add("TCVenta", GetType(Decimal))
|
DtPagos.Columns.Add("TCVenta", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("ImporteVenta", GetType(Decimal))
|
DtPagos.Columns.Add("ImporteVenta", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("IVA", GetType(Decimal))
|
DtPagos.Columns.Add("IVA", GetType(Decimal))
|
||||||
|
DtPagos.Columns.Add("PorcentajeIVA", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("RetIVA", GetType(Decimal))
|
DtPagos.Columns.Add("RetIVA", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("RetISR", GetType(Decimal))
|
DtPagos.Columns.Add("PorcentajeRetIVA", GetType(Decimal))
|
||||||
|
DtPagos.Columns.Add("RetISR", GetType(Decimal))
|
||||||
|
DtPagos.Columns.Add("PorcentajeRetISR", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("IEPS", GetType(Decimal))
|
DtPagos.Columns.Add("IEPS", GetType(Decimal))
|
||||||
|
DtPagos.Columns.Add("PorcentajeIEPS", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("TCPago", GetType(Decimal))
|
DtPagos.Columns.Add("TCPago", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("ImportePago", GetType(Decimal))
|
DtPagos.Columns.Add("ImportePago", GetType(Decimal))
|
||||||
DtPagos.Columns.Add("ImportePagoMX", GetType(Decimal))
|
DtPagos.Columns.Add("ImportePagoMX", GetType(Decimal))
|
||||||
@@ -584,11 +588,14 @@ Partial Class Ventas_PortalCliente
|
|||||||
Dr("CveMoneda") = Gvr.DataKey("CveMoneda").ToEntero
|
Dr("CveMoneda") = Gvr.DataKey("CveMoneda").ToEntero
|
||||||
Dr("TCVenta") = Gvr.DataKey("TipoCambio").ToDecimal
|
Dr("TCVenta") = Gvr.DataKey("TipoCambio").ToDecimal
|
||||||
Dr("ImporteVenta") = Gvr.DataKey("Original").ToDecimal
|
Dr("ImporteVenta") = Gvr.DataKey("Original").ToDecimal
|
||||||
Dr("IVA") = Gvr.DataKey("IVA").ToDecimal
|
Dr("IVA") = Gvr.DataKey("IVA").ToDecimal
|
||||||
|
Dr("PorcentajeIVA") = Gvr.DataKey("PorcentajeIVA").ToDecimal
|
||||||
Dr("RetIVA") = Gvr.DataKey("RetIVA").ToDecimal
|
Dr("RetIVA") = Gvr.DataKey("RetIVA").ToDecimal
|
||||||
Dr("RetISR") = Gvr.DataKey("RetISR").ToDecimal
|
Dr("PorcentajeRetIVA") = Gvr.DataKey("PorcentajeRetIVA").ToDecimal
|
||||||
Dr("IEPS") = Gvr.DataKey("IEPS").ToDecimal
|
Dr("RetISR") = Gvr.DataKey("RetISR").ToDecimal
|
||||||
|
Dr("PorcentajeRetISR") = Gvr.DataKey("PorcentajeRetISR").ToDecimal
|
||||||
|
Dr("IEPS") = Gvr.DataKey("IEPS").ToDecimal
|
||||||
|
Dr("PorcentajeIEPS") = Gvr.DataKey("PorcentajeIEPS").ToDecimal
|
||||||
Dr("TCPago") = If(Gvr.DataKey("CveMoneda").ToEntero = 1, 1, TCPago)
|
Dr("TCPago") = If(Gvr.DataKey("CveMoneda").ToEntero = 1, 1, TCPago)
|
||||||
Dr("ImportePago") = Gvr.DataKey("Saldo").ToDecimal
|
Dr("ImportePago") = Gvr.DataKey("Saldo").ToDecimal
|
||||||
If Gvr.DataKey("CveMoneda").ToEntero > 1 Then
|
If Gvr.DataKey("CveMoneda").ToEntero > 1 Then
|
||||||
@@ -615,10 +622,14 @@ Partial Class Ventas_PortalCliente
|
|||||||
DivPagoDolares.Visible = False
|
DivPagoDolares.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
LbFactura.Text = Facturas.Substring(0, Facturas.Length - 2)
|
'LbFactura.Text = Facturas.Substring(0, Facturas.Length - 2)
|
||||||
TxtImporte.Text = DtPagos.SUM("ImportePagoMX").FormatoNumero(2)
|
TxtImporte.Text = DtPagos.SUM("ImportePagoMX").FormatoNumero(2)
|
||||||
RVTxtImporte.MaximumValue = DtPagos.SUM("ImportePagoMX").FormatoNumero(2)
|
RVTxtImporte.MaximumValue = DtPagos.SUM("ImportePagoMX").FormatoNumero(2)
|
||||||
|
|
||||||
|
TxtConcepto.Text = "Pago de facturas"
|
||||||
|
TxtReferencia.Text = CveCliente.ToString
|
||||||
|
TxtNombreCompleto.Text = LtlCliente.Text
|
||||||
|
|
||||||
RegistraScript("$('#ModalProsePago').modal()")
|
RegistraScript("$('#ModalProsePago').modal()")
|
||||||
|
|
||||||
UpProsePago.Update()
|
UpProsePago.Update()
|
||||||
@@ -644,11 +655,11 @@ Partial Class Ventas_PortalCliente
|
|||||||
End Select
|
End Select
|
||||||
|
|
||||||
Dim myNameValueCollection As New NameValueCollection()
|
Dim myNameValueCollection As New NameValueCollection()
|
||||||
Dim Nombre = LimpiaTextoSoloLetras(LtlCliente.Text)
|
Dim Nombre = LimpiaTextoSoloLetras(TxtNombreCompleto.Text)
|
||||||
Dim Facturas = LimpiaTextoSoloLetrasNumeros(LbFactura.Text.Replace(",", " "))
|
|
||||||
myNameValueCollection.Add("nom", Nombre.Substring(0, If(Nombre.Length > 200, 200, Nombre.Length)))
|
myNameValueCollection.Add("nom", Nombre.Substring(0, If(Nombre.Length > 200, 200, Nombre.Length)))
|
||||||
myNameValueCollection.Add("con", $"Pago de facturas {Facturas.Substring(0, If(Facturas.Length > 180, 180, Facturas.Length))}")
|
myNameValueCollection.Add("con", TxtConcepto.Text)
|
||||||
myNameValueCollection.Add("ref", CveCliente.ToString)
|
myNameValueCollection.Add("ref", TxtReferencia.Text)
|
||||||
myNameValueCollection.Add("imp", TxtImporte.Text)
|
myNameValueCollection.Add("imp", TxtImporte.Text)
|
||||||
myNameValueCollection.Add("ema", UsuarioActual.Usuario) '
|
myNameValueCollection.Add("ema", UsuarioActual.Usuario) '
|
||||||
myNameValueCollection.Add("urlOk", $"{Request.Url.GetLeftPart(UriPartial.Authority)}/PortalCliente/PortalCliente.aspx?okpp=1&p={Parametro}")
|
myNameValueCollection.Add("urlOk", $"{Request.Url.GetLeftPart(UriPartial.Authority)}/PortalCliente/PortalCliente.aspx?okpp=1&p={Parametro}")
|
||||||
@@ -746,7 +757,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
' PREPOLIZA
|
' PREPOLIZA
|
||||||
Dim CvePlantillaPoliza = 11
|
Dim CvePlantillaPoliza = 11
|
||||||
Dim FechaMovimiento As Date = Now
|
Dim FechaMovimiento As Date = Now
|
||||||
Dim Concepto = ""
|
Dim Concepto = "Prosepago"
|
||||||
Dim DtConceptos As New DataTable
|
Dim DtConceptos As New DataTable
|
||||||
Dim CveMonedaPago = 1
|
Dim CveMonedaPago = 1
|
||||||
|
|
||||||
@@ -764,9 +775,13 @@ Partial Class Ventas_PortalCliente
|
|||||||
Dim CveMonedaVenta = 1
|
Dim CveMonedaVenta = 1
|
||||||
Dim TCVenta = 0.0D
|
Dim TCVenta = 0.0D
|
||||||
Dim IVAVenta = 0.0D
|
Dim IVAVenta = 0.0D
|
||||||
Dim RetIVAVenta = 0.0D
|
Dim PorcentajeIVA = 0.0D
|
||||||
|
Dim RetIVAVenta = 0.0D
|
||||||
|
Dim PorcentajeRetIVA = 0.0D
|
||||||
Dim RetISRVenta = 0.0D
|
Dim RetISRVenta = 0.0D
|
||||||
Dim IEPSVenta = 0.0D
|
Dim PorcentajeRetISR = 0.0D
|
||||||
|
Dim IEPSVenta = 0.0D
|
||||||
|
Dim PorcentajeIEPS = 0.0D
|
||||||
Dim TCPago = 0.0D
|
Dim TCPago = 0.0D
|
||||||
Dim PorcentajePago = 0.0D
|
Dim PorcentajePago = 0.0D
|
||||||
Dim ImportePago = 0.0D
|
Dim ImportePago = 0.0D
|
||||||
@@ -774,6 +789,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
Dim TCGeneral = 0.0D
|
Dim TCGeneral = 0.0D
|
||||||
Dim TCFluctuacion = 0.0D
|
Dim TCFluctuacion = 0.0D
|
||||||
Dim CveProveedorContabilizar = -1
|
Dim CveProveedorContabilizar = -1
|
||||||
|
Dim PorcentajeImpuesto As Decimal = 0
|
||||||
|
|
||||||
Dim CvePrePoliza = ObjConta.AddPrePolizas("PortalCliente/Pago-Prosepago", CvePlantillaPoliza, TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal, CveMonedaPago, FechaMovimiento, Concepto, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
Dim CvePrePoliza = ObjConta.AddPrePolizas("PortalCliente/Pago-Prosepago", CvePlantillaPoliza, TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal, CveMonedaPago, FechaMovimiento, Concepto, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
@@ -795,6 +811,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
importeMX = 0
|
importeMX = 0
|
||||||
IdCtaContable = 0
|
IdCtaContable = 0
|
||||||
CveCuenta = 0
|
CveCuenta = 0
|
||||||
|
PorcentajeImpuesto = 0
|
||||||
ConceptoMovimiento = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, ConceptoContable, LtlCliente.Text, DrPago("Factura").ToString, DrPago("Factura").ToString)
|
ConceptoMovimiento = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, ConceptoContable, LtlCliente.Text, DrPago("Factura").ToString, DrPago("Factura").ToString)
|
||||||
'VALORES DE LA VENTA
|
'VALORES DE LA VENTA
|
||||||
Referencia = DrPago("Factura").ToString
|
Referencia = DrPago("Factura").ToString
|
||||||
@@ -802,18 +819,22 @@ Partial Class Ventas_PortalCliente
|
|||||||
CveVenta = DrPago("CveVenta").ToString.ToEntero
|
CveVenta = DrPago("CveVenta").ToString.ToEntero
|
||||||
CveMonedaVenta = DrPago("CveMoneda").ToString.ToEntero
|
CveMonedaVenta = DrPago("CveMoneda").ToString.ToEntero
|
||||||
TCVenta = DrPago("TCVenta").ToString.ToDecimal
|
TCVenta = DrPago("TCVenta").ToString.ToDecimal
|
||||||
IVAVenta = DrPago("IVA").ToString.ToDecimal
|
IVAVenta = DrPago("IVA").ToString.ToDecimal
|
||||||
RetIVAVenta = DrPago("RetIVA").ToString.ToDecimal
|
PorcentajeIVA = DrPago("PorcentajeIVA").ToString.ToDecimal
|
||||||
RetISRVenta = DrPago("RetISR").ToString.ToDecimal
|
RetIVAVenta = DrPago("RetIVA").ToString.ToDecimal
|
||||||
IEPSVenta = DrPago("IEPS").ToString.ToDecimal
|
PorcentajeRetIVA = DrPago("PorcentajeRetIVA").ToString.ToDecimal
|
||||||
|
RetISRVenta = DrPago("RetISR").ToString.ToDecimal
|
||||||
|
PorcentajeRetISR = DrPago("PorcentajeRetISR").ToString.ToDecimal
|
||||||
|
IEPSVenta = DrPago("IEPS").ToString.ToDecimal
|
||||||
|
PorcentajeIEPS = DrPago("PorcentajeIEPS").ToString.ToDecimal
|
||||||
TCPago = DrPago("TCPago").ToString.ToDecimal
|
TCPago = DrPago("TCPago").ToString.ToDecimal
|
||||||
ImportePago = DrPago("ImportePago").ToString.ToDecimal
|
ImportePago = DrPago("ImportePago").ToString.ToDecimal
|
||||||
ImportePagoMX = DrPago("ImportePagoMX").ToString.ToDecimal
|
ImportePagoMX = DrPago("ImportePagoMX").ToString.ToDecimal
|
||||||
PorcentajePago = DrPago("ImportePago").ToString.ToDecimal / DrPago("ImporteVenta").ToString.ToDecimal 'EL IMPORTE PAGO ES EL IMPORTE QUE SE PAGÓ EN LA MONEDA ORIGINAL DE LA VENTA
|
PorcentajePago = DrPago("ImportePago").ToString.ToDecimal / DrPago("ImporteVenta").ToString.ToDecimal 'EL IMPORTE PAGO ES EL IMPORTE QUE SE PAGÓ EN LA MONEDA ORIGINAL DE LA VENTA
|
||||||
TCFluctuacion = If(UsuarioActual.Empresa.Funcionalidad(159) = "1", TCVenta, TCPago)
|
TCFluctuacion = If(UsuarioActual.Empresa.Funcionalidad(159) = "1", TCVenta, TCPago)
|
||||||
|
|
||||||
|
|
||||||
'CONFIGURACION POR CONCEPTO DE PREPOLIZA
|
'CONFIGURACION POR CONCEPTO DE PREPOLIZA
|
||||||
Select Case ConceptoContable
|
Select Case ConceptoContable
|
||||||
Case 2 'PAGO CLIENTE
|
Case 2 'PAGO CLIENTE
|
||||||
ImporteMovimiento = ImportePago.RoundSQL()
|
ImporteMovimiento = ImportePago.RoundSQL()
|
||||||
@@ -854,6 +875,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = IVAVenta * PorcentajePago
|
ImporteMovimiento = IVAVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCVenta
|
importeMX = ImporteMovimiento * TCVenta
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeIVA
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -871,6 +893,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = IVAVenta * PorcentajePago
|
ImporteMovimiento = IVAVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCFluctuacion
|
importeMX = ImporteMovimiento * TCFluctuacion
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeIVA
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -888,6 +911,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = RetIVAVenta * PorcentajePago
|
ImporteMovimiento = RetIVAVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCVenta
|
importeMX = ImporteMovimiento * TCVenta
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeRetIVA
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -920,6 +944,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = RetIVAVenta * PorcentajePago
|
ImporteMovimiento = RetIVAVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCFluctuacion
|
importeMX = ImporteMovimiento * TCFluctuacion
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeRetIVA
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -953,6 +978,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = RetISRVenta * PorcentajePago
|
ImporteMovimiento = RetISRVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCVenta
|
importeMX = ImporteMovimiento * TCVenta
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeRetISR
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -986,6 +1012,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = RetIVAVenta * PorcentajePago
|
ImporteMovimiento = RetIVAVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCFluctuacion
|
importeMX = ImporteMovimiento * TCFluctuacion
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeRetISR
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -1019,6 +1046,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
ImporteMovimiento = IEPSVenta * PorcentajePago
|
ImporteMovimiento = IEPSVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCVenta
|
importeMX = ImporteMovimiento * TCVenta
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeIEPS
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -1035,7 +1063,8 @@ Partial Class Ventas_PortalCliente
|
|||||||
ElseIf CveMonedaVenta = 2 Then
|
ElseIf CveMonedaVenta = 2 Then
|
||||||
ImporteMovimiento = IEPSVenta * PorcentajePago
|
ImporteMovimiento = IEPSVenta * PorcentajePago
|
||||||
importeMX = ImporteMovimiento * TCFluctuacion
|
importeMX = ImporteMovimiento * TCFluctuacion
|
||||||
End If
|
End If
|
||||||
|
PorcentajeImpuesto = PorcentajeIEPS
|
||||||
|
|
||||||
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
ImporteMovimiento = ImporteMovimiento.RoundSQL()
|
||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
@@ -1081,7 +1110,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
|
|
||||||
'AGREGA PREPOLIZA DETALLE
|
'AGREGA PREPOLIZA DETALLE
|
||||||
If ImporteMovimiento <> 0 Then
|
If ImporteMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, -1, CveVenta, -1, CveSubProyecto, CveCliente, CveProveedorContabilizar, ImporteMX:=importeMX, CveCuenta:=CveCuenta, TipoCambio:=TCGeneral) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, -1, CveVenta, -1, CveSubProyecto, CveCliente, CveProveedorContabilizar, ImporteMX:=importeMX, CveCuenta:=CveCuenta, TipoCambio:=TCGeneral, PorcentajeImpuesto:=PorcentajeImpuesto) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
MensajeError.Append("No se pudo insertar el detalle de la póliza<br>")
|
MensajeError.Append("No se pudo insertar el detalle de la póliza<br>")
|
||||||
Exit For
|
Exit For
|
||||||
@@ -3438,7 +3467,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub EnviarCorreoPedido(ObjFactura As Modelos.Factura)
|
Private Sub EnviarCorreoPedido(ObjFactura As Modelos.Factura)
|
||||||
Dim Hilo As New System.Threading.Thread(Sub() MandaMails(UsuarioActual, ObjFactura.CveVenta, True, ObjFactura, ""))
|
Dim Hilo As New System.Threading.Thread(Sub() MandaMails(UsuarioActual, ObjFactura.CveVenta, True, ObjFactura))
|
||||||
Hilo.Start()
|
Hilo.Start()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -4588,21 +4588,21 @@
|
|||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" runat="server" style="text-align: left">Calcular Factor de Integración</h4>
|
<h4 class="modal-title" runat="server" style="text-align: left">Calcular factor de integración</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtFISalariodiarioImss" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFISalariodiario" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtFISalariodiarioImss">Salario Diario(IMSS):</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtFISalariodiario">Salario diario:</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtFIDiasVacaciones" Text="6" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFIDiasVacaciones" Text="6" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtFIDiasVacaciones">Días Vacaciones:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtFIDiasVacaciones">Días vacaciones:</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtFIPrimaVacacional" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFIPrimaVacacional" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtFIPrimaVacacional">Prima Vacacional:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtFIPrimaVacacional">Prima vacacional:</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtFIAguinaldo" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFIAguinaldo" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
@@ -4614,7 +4614,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtFISalarioDiarioIntegrado" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFISalarioDiarioIntegrado" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtFISalarioDiarioIntegrado">Salario Diario Integrado:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtFISalarioDiarioIntegrado">Salario Diario Integrado(SDI):</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -4645,7 +4645,7 @@
|
|||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" runat="server" style="text-align: left">Modificar Salario</h4>
|
<h4 class="modal-title" runat="server" style="text-align: left">Modificar salario</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div>
|
<div>
|
||||||
@@ -4677,12 +4677,12 @@
|
|||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtSalarioDiarioImSS" Enabled="true" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtSalarioDiarioImSS" Enabled="true" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioImSS">Salario diario(Imss):</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioImSS">Salario diario(IMSS):</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtSalarioDiarioIntegrado" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtSalarioDiarioIntegrado" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" Enabled="false" AssociatedControlID="TxtSalarioDiarioIntegrado">Salario diario integrado:</asp:Label>
|
<asp:Label runat="server" Enabled="false" AssociatedControlID="TxtSalarioDiarioIntegrado">Salario Diario Integrado(SDI):</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1477,7 +1477,7 @@ Partial Class RH_Personal
|
|||||||
TxtSalarioDiario.Text = ObjPersonal.SalarioDiario.ToString()
|
TxtSalarioDiario.Text = ObjPersonal.SalarioDiario.ToString()
|
||||||
TxtSDI.Text = ObjPersonal.SDI.ToString()
|
TxtSDI.Text = ObjPersonal.SDI.ToString()
|
||||||
TxtSalarioCotizado.Text = ObjPersonal.SalarioDiarioSS.ToString()
|
TxtSalarioCotizado.Text = ObjPersonal.SalarioDiarioSS.ToString()
|
||||||
TxtFISalariodiarioImss.Text = ObjPersonal.SalarioDiarioSS.ToString()
|
TxtFISalariodiario.Text = ObjPersonal.SalarioDiario.ToString()
|
||||||
TxtBono.Text = ObjPersonal.Bono.ToString()
|
TxtBono.Text = ObjPersonal.Bono.ToString()
|
||||||
TxtNumDiasAguinaldo.Text = ObjPersonal.NumDiasAguinaldo.ToString()
|
TxtNumDiasAguinaldo.Text = ObjPersonal.NumDiasAguinaldo.ToString()
|
||||||
TxtFIAguinaldo.Text = ObjPersonal.NumDiasAguinaldo.ToString()
|
TxtFIAguinaldo.Text = ObjPersonal.NumDiasAguinaldo.ToString()
|
||||||
@@ -6205,39 +6205,34 @@ Partial Class RH_Personal
|
|||||||
TxtFIPrimaVacacional.Text = "25"
|
TxtFIPrimaVacacional.Text = "25"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
TxtFISalariodiario.Text = TxtSalarioDiario.Text
|
||||||
|
|
||||||
TxtFISalariodiarioImss.Text = TxtSalarioCotizado.Text
|
|
||||||
TxtFactordeIntegracion.Text = ""
|
TxtFactordeIntegracion.Text = ""
|
||||||
TxtFISalarioDiarioIntegrado.Text = ""
|
TxtFISalarioDiarioIntegrado.Text = ""
|
||||||
|
If UsuarioActual.CveEmpresa.Contiene(72, 80) Then
|
||||||
|
TxtFIDiasVacaciones.Text = "6"
|
||||||
|
Else
|
||||||
|
Using objRH As New ClsRH
|
||||||
|
If objRH.VacacionesResumenGet(CvePersonal, UsuarioActual.Empresa.CveEmpresa) Then
|
||||||
|
If objRH.DtResultados.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
If objRH.DtResultados.Rows.Count > 0 Then
|
||||||
|
Dim diasvaca As Integer = objRH.DtResultados(0)("Dias").ToString().ToEntero()
|
||||||
|
TxtFIDiasVacaciones.Text = If(diasvaca > 5, diasvaca, 6).ToString()
|
||||||
|
Else
|
||||||
|
TxtFIDiasVacaciones.Text = "6"
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
|
||||||
|
End If
|
||||||
Dim objRH As New ClsRH
|
|
||||||
|
|
||||||
If objRH.VacacionesResumenGet(CvePersonal, UsuarioActual.Empresa.CveEmpresa) Then
|
|
||||||
If objRH.DtResultados.Rows.Count > 0 Then
|
|
||||||
|
|
||||||
If objRH.DtResultados.Rows.Count > 0 Then
|
|
||||||
TxtFIDiasVacaciones.Text = objRH.DtResultados(0)("Dias").ToString
|
|
||||||
Else
|
|
||||||
TxtFIDiasVacaciones.Text = "6"
|
|
||||||
End If
|
End If
|
||||||
Else
|
End Using
|
||||||
|
End If
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
objRH.Dispose()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RegistraScript("$('#DmodalFactordeIntegraccion').modal()")
|
RegistraScript("$('#DmodalFactordeIntegraccion').modal()")
|
||||||
UpFactordeintegracion.Update()
|
UpFactordeintegracion.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkCalcularFactordeintegracion_Click(sender As Object, e As EventArgs)
|
Private Sub calcularSDI()
|
||||||
Dim SD As Decimal = TxtFISalariodiarioImss.Text.ToDecimal()
|
Dim SD As Decimal = TxtFISalariodiario.Text.ToDecimal()
|
||||||
Dim primav As Decimal = TxtFIPrimaVacacional.Text.ToDecimal()
|
Dim primav As Decimal = TxtFIPrimaVacacional.Text.ToDecimal()
|
||||||
Dim DiasVacaciones As Decimal = TxtFIDiasVacaciones.Text.ToDecimal()
|
Dim DiasVacaciones As Decimal = TxtFIDiasVacaciones.Text.ToDecimal()
|
||||||
Dim diasaguinaldo As Decimal = TxtFIAguinaldo.Text.ToDecimal()
|
Dim diasaguinaldo As Decimal = TxtFIAguinaldo.Text.ToDecimal()
|
||||||
@@ -6245,18 +6240,26 @@ Partial Class RH_Personal
|
|||||||
Dim SDI As Decimal = (SD * FI)
|
Dim SDI As Decimal = (SD * FI)
|
||||||
TxtFactordeIntegracion.Text = FI.ToString()
|
TxtFactordeIntegracion.Text = FI.ToString()
|
||||||
TxtFISalarioDiarioIntegrado.Text = String.Format("{0:###0.########}", SDI)
|
TxtFISalarioDiarioIntegrado.Text = String.Format("{0:###0.########}", SDI)
|
||||||
UpFactordeintegracion.Update()
|
UpFactordeintegracion.Update()
|
||||||
Alert(String.Format(" salario diario integreado {0:###0.########}", SDI))
|
End Sub
|
||||||
|
Protected Sub LnkCalcularFactordeintegracion_Click(sender As Object, e As EventArgs)
|
||||||
|
calcularSDI()
|
||||||
|
Alert(String.Format(" salario diario integreado {0}", TxtFISalarioDiarioIntegrado.Text))
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkCalcularFactordeintegracionyguardar_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkCalcularFactordeintegracionyguardar_Click(sender As Object, e As EventArgs)
|
||||||
LnkCalcularFactordeintegracion_Click(Nothing, Nothing)
|
calcularSDI()
|
||||||
|
|
||||||
Using ObjPersonal As ClsRH = New ClsRH()
|
Using ObjPersonal As ClsRH = New ClsRH()
|
||||||
If ObjPersonal.UpdateSalarioImss(CvePersonal, UsuarioActual.CveEmpresa, TxtFISalarioDiarioIntegrado.Text.ToDouble(), TxtFISalariodiarioImss.Text.ToDouble) Then
|
If ObjPersonal.UpdateSalariointegrado(CvePersonal, UsuarioActual.CveEmpresa, TxtFISalarioDiarioIntegrado.Text.ToDouble(), TxtFISalariodiario.Text.ToDouble) Then
|
||||||
TxtSalarioCotizado.Text = TxtFISalariodiarioImss.Text
|
TxtSalarioDiario.Text = TxtFISalariodiario.Text
|
||||||
|
TxtSalarioDiarioM.Text = TxtFISalariodiario.Text
|
||||||
|
'TxtSalarioCotizado.Text = TxtFISalarioDiarioIntegrado.Text
|
||||||
|
'TxtSalarioDiarioImSS.Text = TxtFISalarioDiarioIntegrado.Text
|
||||||
|
TxtSalarioDiarioIntegrado.Text = TxtFISalarioDiarioIntegrado.Text
|
||||||
TxtSDI.Text = TxtFISalarioDiarioIntegrado.Text
|
TxtSDI.Text = TxtFISalarioDiarioIntegrado.Text
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
Alert("Se ha actualizado el salario diario integreado")
|
Alert("Se ha actualizado el salario diario integreado")
|
||||||
|
RegistraScript("$('#DmodalFactordeIntegraccion').modal('hide')")
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
End Sub
|
End Sub
|
||||||
@@ -6273,8 +6276,10 @@ Partial Class RH_Personal
|
|||||||
Using ObjPersonal As ClsRH = New ClsRH()
|
Using ObjPersonal As ClsRH = New ClsRH()
|
||||||
If ObjPersonal.UpdateSalarios(CvePersonal, TxtFechamodSalario.Text.ToDate().ToString("yyyy/MM/dd"), UsuarioActual.CveEmpresa, TxtSalarioDiarioM.Text.ToDecimal(), TxtSalarioDiarioIntegrado.Text.ToDecimal(), TxtSalarioDiarioImSS.Text.ToDecimal(), TxtSalarioDiarioPago.Text.ToDecimal()) Then
|
If ObjPersonal.UpdateSalarios(CvePersonal, TxtFechamodSalario.Text.ToDate().ToString("yyyy/MM/dd"), UsuarioActual.CveEmpresa, TxtSalarioDiarioM.Text.ToDecimal(), TxtSalarioDiarioIntegrado.Text.ToDecimal(), TxtSalarioDiarioImSS.Text.ToDecimal(), TxtSalarioDiarioPago.Text.ToDecimal()) Then
|
||||||
TxtSalarioDiario.Text = TxtSalarioDiarioM.Text
|
TxtSalarioDiario.Text = TxtSalarioDiarioM.Text
|
||||||
|
TxtFISalariodiario.Text = TxtSalarioDiarioM.Text
|
||||||
TxtSalarioCotizado.Text = TxtSalarioDiarioImSS.Text
|
TxtSalarioCotizado.Text = TxtSalarioDiarioImSS.Text
|
||||||
TxtSDI.Text = TxtSalarioDiarioIntegrado.Text
|
TxtSDI.Text = TxtSalarioDiarioIntegrado.Text
|
||||||
|
TxtFISalarioDiarioIntegrado.Text = TxtSalarioDiarioIntegrado.Text
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
Alert("Se ha actualizado el salario", TipoMensaje.ToastInformacion)
|
Alert("Se ha actualizado el salario", TipoMensaje.ToastInformacion)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ function ADScroller2() {
|
|||||||
TVisibleCols = Tthis.clone();
|
TVisibleCols = Tthis.clone();
|
||||||
TVisibleCols.attr('id', ('ADCol' + Tid));
|
TVisibleCols.attr('id', ('ADCol' + Tid));
|
||||||
Tthis.before(TVisibleCols);
|
Tthis.before(TVisibleCols);
|
||||||
Tthis.css("width", (TWidth - ancho1 - 15))
|
Tthis.css("width", (TWidth - ancho1 - 15));
|
||||||
for (var i = numColumnas; i > colVisibles + 1; i--) {
|
for (var i = numColumnas; i > colVisibles + 1; i--) {
|
||||||
$('table#ADCol' + Tid + ' > tbody > tr > td:nth-child(' + i + '),table#ADCol' + Tid + ' > tbody > tr > th:nth-child(' + i + ')').each(function () {
|
$('table#ADCol' + Tid + ' > tbody > tr > td:nth-child(' + i + '),table#ADCol' + Tid + ' > tbody > tr > th:nth-child(' + i + ')').each(function () {
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
@@ -381,12 +381,12 @@ function ADScroller2() {
|
|||||||
var hr1 = tr1.outerHeight();
|
var hr1 = tr1.outerHeight();
|
||||||
var hr2 = $(txx2[i]).closest('tr').outerHeight();
|
var hr2 = $(txx2[i]).closest('tr').outerHeight();
|
||||||
if (hr1 > hr2) {
|
if (hr1 > hr2) {
|
||||||
$(txx1[i]).css('height', hr1)
|
$(txx1[i]).css('height', hr1);
|
||||||
$(txx2[i]).css('height', hr1)
|
$(txx2[i]).css('height', hr1);
|
||||||
}
|
}
|
||||||
if (hr2 > hr1) {
|
if (hr2 > hr1) {
|
||||||
$(txx1[i]).css('height', hr2)
|
$(txx1[i]).css('height', hr2);
|
||||||
$(txx2[i]).css('height', hr2)
|
$(txx2[i]).css('height', hr2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -402,8 +402,8 @@ function ADScroller2() {
|
|||||||
var divcenterbody = $('<div class="AdsBody" ></div>');
|
var divcenterbody = $('<div class="AdsBody" ></div>');
|
||||||
Tthis.before(contenedor);
|
Tthis.before(contenedor);
|
||||||
contenedor.append(divheader);
|
contenedor.append(divheader);
|
||||||
THeader1 = $('<tbody></tbody>')
|
THeader1 = $('<tbody></tbody>');
|
||||||
THeader2 = $('<tbody></tbody>')
|
THeader2 = $('<tbody></tbody>');
|
||||||
for (var i = rowVisibles + 1; i >= 2; i--) {
|
for (var i = rowVisibles + 1; i >= 2; i--) {
|
||||||
$('table#ADCol' + Tid + ' > tbody > tr:nth-child(' + i + ')').prependTo(THeader1);
|
$('table#ADCol' + Tid + ' > tbody > tr:nth-child(' + i + ')').prependTo(THeader1);
|
||||||
$('table#' + Tid + ' > tbody > tr:nth-child(' + i + ')').prependTo(THeader2);
|
$('table#' + Tid + ' > tbody > tr:nth-child(' + i + ')').prependTo(THeader2);
|
||||||
@@ -418,7 +418,7 @@ function ADScroller2() {
|
|||||||
divheader.append(divheader2);
|
divheader.append(divheader2);
|
||||||
divheader1.append(THeader1);
|
divheader1.append(THeader1);
|
||||||
|
|
||||||
var anchoc1 = divheader1.outerWidth() + 15;
|
var anchoc1 = divheader1.outerWidth();
|
||||||
var altoc1 = divheader1.outerHeight() + 15;
|
var altoc1 = divheader1.outerHeight() + 15;
|
||||||
divheaderScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;"></div>').append(THeader2);
|
divheaderScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;"></div>').append(THeader2);
|
||||||
divheader2.append(divheaderScroll);
|
divheader2.append(divheaderScroll);
|
||||||
@@ -426,6 +426,7 @@ function ADScroller2() {
|
|||||||
contenedor.append(divcenter);
|
contenedor.append(divcenter);
|
||||||
divcenter.append(divcenterCols);
|
divcenter.append(divcenterCols);
|
||||||
divcolsScroll = $('<div class="ADSCroll" style="height:' + (heightGral - altoc1) + 'px;"></div>').append(TVisibleCols);
|
divcolsScroll = $('<div class="ADSCroll" style="height:' + (heightGral - altoc1) + 'px;"></div>').append(TVisibleCols);
|
||||||
|
divcolsScroll.width(anchoc1);
|
||||||
divcenterCols.append(divcolsScroll);
|
divcenterCols.append(divcolsScroll);
|
||||||
divcenter.append(divcenterbody);
|
divcenter.append(divcenterbody);
|
||||||
divbodyScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;height:' + (heightGral - altoc1 + 20) + 'px;"></div>').append(Tthis);
|
divbodyScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;height:' + (heightGral - altoc1 + 20) + 'px;"></div>').append(Tthis);
|
||||||
@@ -1816,8 +1817,9 @@ jQuery(document).ready(function () {
|
|||||||
DataTablePaginatorScroll();
|
DataTablePaginatorScroll();
|
||||||
DataTablePaginatorScroll2();
|
DataTablePaginatorScroll2();
|
||||||
loadAdDropzone();
|
loadAdDropzone();
|
||||||
clonsbuttons();
|
clonsbuttons();
|
||||||
ADScroller2();
|
ADScroller2();
|
||||||
|
//setTimeout(ADScroller2, 500);
|
||||||
$('body').removeClass('page-portlet-fullscreen');
|
$('body').removeClass('page-portlet-fullscreen');
|
||||||
|
|
||||||
$('.form-md-floating-label input').each(function () {
|
$('.form-md-floating-label input').each(function () {
|
||||||
|
|||||||
@@ -4200,7 +4200,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvAcum" Width="100%" runat="server" GridLines="None"
|
<asp:GridView ID="GvAcum" Width="100%" runat="server" GridLines="None"
|
||||||
DataKeyNames="CveMovto, CveCliente,Cantidad,CveTamaño,Puntos,ImporteCargo,ImporteBonificacion,ImporteCompra,CveConcepto,CveVenta,Observaciones,CveUsuario,FechaIng,FacturadoCargo,FacturadoBonificacion"
|
DataKeyNames="CveMovto, CveCliente,Cantidad,CveTamaño,Puntos,ImporteCargo,ImporteBonificacion,ImporteCompra,CveConcepto,CveVenta,Observaciones,CveUsuario,FechaIng,FacturadoCargo,FacturadoBonificacion,CveSubProyecto"
|
||||||
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
||||||
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|||||||
@@ -9323,6 +9323,7 @@ Partial Class Clientes
|
|||||||
|
|
||||||
Dim SubTotal As Decimal = 0D
|
Dim SubTotal As Decimal = 0D
|
||||||
Dim IVA As Decimal = 0D
|
Dim IVA As Decimal = 0D
|
||||||
|
Dim CveSubProyecto As Integer = -1
|
||||||
|
|
||||||
For Each GvRow As GridViewRow In GvAcum.Rows
|
For Each GvRow As GridViewRow In GvAcum.Rows
|
||||||
If Tipo = 1 Then
|
If Tipo = 1 Then
|
||||||
@@ -9334,6 +9335,8 @@ Partial Class Clientes
|
|||||||
SubTotal = SubTotal + GvRow.DataKey("ImporteBonificacion").ToDecimal
|
SubTotal = SubTotal + GvRow.DataKey("ImporteBonificacion").ToDecimal
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
CveSubProyecto = GvRow.DataKey("CveSubProyecto").ToEntero
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Dim CvePS As Integer = UsuarioActual.Empresa.Funcionalidad(534).ToEntero 'CvePS Distruibuidor Bonificación Nota
|
Dim CvePS As Integer = UsuarioActual.Empresa.Funcionalidad(534).ToEntero 'CvePS Distruibuidor Bonificación Nota
|
||||||
@@ -9455,7 +9458,8 @@ Partial Class Clientes
|
|||||||
ObjFactura.Alfa2 = ""
|
ObjFactura.Alfa2 = ""
|
||||||
ObjFactura.Alfa3 = ""
|
ObjFactura.Alfa3 = ""
|
||||||
|
|
||||||
ObjFactura.Num1 = 0
|
'NUM 1- CARGO 2- BONIFICACION
|
||||||
|
ObjFactura.Num1 = Tipo
|
||||||
ObjFactura.Num2 = 0
|
ObjFactura.Num2 = 0
|
||||||
|
|
||||||
ObjFactura.Num3 = 0
|
ObjFactura.Num3 = 0
|
||||||
@@ -9505,7 +9509,7 @@ Partial Class Clientes
|
|||||||
ObjFactura.SetCliente()
|
ObjFactura.SetCliente()
|
||||||
|
|
||||||
''SUCURSAL
|
''SUCURSAL
|
||||||
|
ObjFactura.CveSubProyecto = CveSubProyecto
|
||||||
ObjFactura.SetSubProyectoMatriz(Me)
|
ObjFactura.SetSubProyectoMatriz(Me)
|
||||||
ObjFactura.SetSubProyecto(Me)
|
ObjFactura.SetSubProyecto(Me)
|
||||||
ObjFactura.ClienteSucursal = New Modelos.SucursalModel
|
ObjFactura.ClienteSucursal = New Modelos.SucursalModel
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 truncate">Productos Servicios:</label>
|
<label class="col-md-1 truncate">Productos Servicios:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<ADS:Dropdownlost runat="server" ID="DdlPS" Style="width: 95%;" CssClass="DdlPS" CssClassDdl="select2me " DataTextField="PSCodigo" DataValueField="CvePS" />
|
<ADS:Dropdownlost runat="server" ID="DdlPS" CssStyle="100%" Style="width: 95%;" CssClass="DdlPS" CssClassDdl="select2me form-control" DataTextField="PSCodigo" DataValueField="CvePS" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Inicio:
|
Fecha Inicio:
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Ventas con los filtros especificados" ToolTip="Listado de Ventas"
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Ventas con los filtros especificados" ToolTip="Listado de Ventas"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Cliente" DataField="Cliente" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Folio" DataField="Cliente" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:TemplateField HeaderText="Grupo" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField HeaderText="Grupo" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ Partial Class Ventas_RepAuxiliarFacturas
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
txtFechaI.Text = String.Format("01{0:/MM/yyyy}", DateTime.Now)
|
||||||
CargaCombos()
|
CargaCombos()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -208,8 +209,7 @@ Partial Class Ventas_RepAuxiliarFacturas
|
|||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
|
||||||
Dim TipoComprobante As String = If(DdlTipoComprobante.GetSelectedValuesM = "", "-1", DdlTipoComprobante.GetSelectedValuesM)
|
Dim TipoComprobante As String = If(DdlTipoComprobante.GetSelectedValuesM = "", "-1", DdlTipoComprobante.GetSelectedValuesM)
|
||||||
Dim FechaI, FechaF As Date
|
Dim FechaI, FechaF As Date
|
||||||
FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.ToDate, MinFecha)
|
FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.ToDate, MinFecha)
|
||||||
|
|||||||
@@ -766,7 +766,7 @@ Partial Class Ventas_RepVentas
|
|||||||
Dim json As String = Newtonsoft.Json.JsonConvert.SerializeObject(query)
|
Dim json As String = Newtonsoft.Json.JsonConvert.SerializeObject(query)
|
||||||
Select Case DdlGrafica.SelectedValue.ToEntero
|
Select Case DdlGrafica.SelectedValue.ToEntero
|
||||||
Case 1
|
Case 1
|
||||||
RegistraScript($"CargaGraficaBarras({json})", "22")
|
RegistraScript($"CargaGraficaBarras({json});console.log({json})", "22")
|
||||||
Case 2
|
Case 2
|
||||||
RegistraScript($"CargaGraficaPastel({json})", "22")
|
RegistraScript($"CargaGraficaPastel({json})", "22")
|
||||||
End Select
|
End Select
|
||||||
|
|||||||
@@ -2214,6 +2214,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If DdlTipoComprobante.SelectedValue.Contiene("Ped", "PeC") Then
|
If DdlTipoComprobante.SelectedValue.Contiene("Ped", "PeC") Then
|
||||||
TrAlmacenAsignado.Visible = True
|
TrAlmacenAsignado.Visible = True
|
||||||
|
TrAlmacenOrigen.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim CveAlmacenDestino As Integer = DtContratos.FiltroPrimeroValor("CveAlmacenDestino", $"CveContrato = {If(DdlContratosModal.Items.Count > 0, DdlContratosModal.SelectedValue, "0")}").ToEntero()
|
Dim CveAlmacenDestino As Integer = DtContratos.FiltroPrimeroValor("CveAlmacenDestino", $"CveContrato = {If(DdlContratosModal.Items.Count > 0, DdlContratosModal.SelectedValue, "0")}").ToEntero()
|
||||||
@@ -2232,6 +2233,7 @@ Partial Class Ventas
|
|||||||
Else
|
Else
|
||||||
RequiereAlmacenDestino = False
|
RequiereAlmacenDestino = False
|
||||||
TrAlmacenAsignado.Visible = False
|
TrAlmacenAsignado.Visible = False
|
||||||
|
TrAlmacenOrigen.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'ENVIO DE FACTURA
|
'ENVIO DE FACTURA
|
||||||
@@ -2244,11 +2246,12 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'Modalidad Contrato
|
'Modalidad Contrato
|
||||||
If Request("CveContrato") IsNot Nothing AndAlso IsNumeric(Request("CveContrato")) AndAlso Request("CveContrato").ToEntero() > 0 AndAlso Request("Tipo") IsNot Nothing AndAlso IsNumeric(Request("Tipo")) AndAlso Request("Tipo").Contiene("0", "1") Then
|
If Request("CveContrato") IsNot Nothing AndAlso IsNumeric(Request("CveContrato")) AndAlso Request("CveContrato").ToEntero() > 0 AndAlso Request("Tipo") IsNot Nothing AndAlso IsNumeric(Request("Tipo")) AndAlso Request("Tipo").Contiene("0", "1") Then
|
||||||
TrAlmacenOrigen.Visible = False
|
|
||||||
If DdlTipoComprobante.SelectedValue.Contiene("Ped", "PeC") Then
|
If DdlTipoComprobante.SelectedValue.Contiene("Ped", "PeC") Then
|
||||||
TrAlmacenAsignado.Visible = True
|
TrAlmacenAsignado.Visible = True
|
||||||
|
TrAlmacenOrigen.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UPCondicionesPago.Visible = False
|
UPCondicionesPago.Visible = False
|
||||||
RequiereAlmacenDestino = True
|
RequiereAlmacenDestino = True
|
||||||
CveContrato = Request("CveContrato").ToEntero()
|
CveContrato = Request("CveContrato").ToEntero()
|
||||||
@@ -3016,11 +3019,28 @@ Partial Class Ventas
|
|||||||
DdlAlmacenAsignado.DataBind()
|
DdlAlmacenAsignado.DataBind()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim CveAlmacenOrigen As Integer = DrContrato("CveAlmacenOrigen").ToString().ToEntero()
|
||||||
|
|
||||||
|
If CveAlmacenOrigen > 0 Then
|
||||||
|
'TrAlmacenOrigen.Visible = True
|
||||||
|
|
||||||
|
DdlAlmacenOrigen.Items.Clear()
|
||||||
|
DdlAlmacenOrigen.DataSource = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1, CveAlmacen:=CveAlmacenOrigen) '.FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()}")
|
||||||
|
DdlAlmacenOrigen.DataBind()
|
||||||
|
DdlAlmacenOrigen.SelectedValueExist(CveAlmacenOrigen.ToString())
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
If DdlTipoComprobante.SelectedValue.Contiene("Ped", "PeC") Then
|
If DdlTipoComprobante.SelectedValue.Contiene("Ped", "PeC") Then
|
||||||
DdlAlmacenAsignado.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()}")
|
DdlAlmacenAsignado.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()}")
|
||||||
DdlAlmacenAsignado.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlAlmacenAsignado.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlAlmacenAsignado.SelectedValueExist(CveAlmacenDestino.ToString())
|
DdlAlmacenAsignado.SelectedValueExist(CveAlmacenDestino.ToString())
|
||||||
DdlAlmacenAsignado.DataBind()
|
DdlAlmacenAsignado.DataBind()
|
||||||
|
|
||||||
|
DdlAlmacenOrigen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()}")
|
||||||
|
DdlAlmacenOrigen.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
DdlAlmacenOrigen.SelectedValueExist(CveAlmacenOrigen.ToString())
|
||||||
|
DdlAlmacenOrigen.DataBind()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
@@ -3274,7 +3294,10 @@ Partial Class Ventas
|
|||||||
DdlAlmacenAsignado.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()} {If(DdlTipoComprobante.SelectedValue = "Ped", "", "AND CveTipoAlmacen IN (4,10)")}")
|
DdlAlmacenAsignado.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()} {If(DdlTipoComprobante.SelectedValue = "Ped", "", "AND CveTipoAlmacen IN (4,10)")}")
|
||||||
DdlAlmacenAsignado.DataBind()
|
DdlAlmacenAsignado.DataBind()
|
||||||
DdlAlmacenAsignado.Enabled = True
|
DdlAlmacenAsignado.Enabled = True
|
||||||
|
|
||||||
TrAlmacenAsignado.Visible = True
|
TrAlmacenAsignado.Visible = True
|
||||||
|
TrAlmacenOrigen.Visible = True
|
||||||
|
|
||||||
TrTipoPedido.Visible = True
|
TrTipoPedido.Visible = True
|
||||||
TrObs.InnerText = "No. Serie"
|
TrObs.InnerText = "No. Serie"
|
||||||
SpObs.InnerText = "Contrato"
|
SpObs.InnerText = "Contrato"
|
||||||
@@ -7357,16 +7380,20 @@ Partial Class Ventas
|
|||||||
If ObjContr.GetContratos(CveContrato, UsuarioActual.CveEmpresa) Then
|
If ObjContr.GetContratos(CveContrato, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
If ObjContr.DtResultados.Rows.Count > 0 Then
|
If ObjContr.DtResultados.Rows.Count > 0 Then
|
||||||
' si es flexible que notifique el monto maximo, si no lo es que notifique el porcentaje alcanzado... flexible = 2, no flexible = 1
|
|
||||||
Dim PorcentajeAvance As Double = ObjContr.DtResultados.Rows(0)("ContratoAvance").ToString().ToDouble
|
|
||||||
|
|
||||||
|
|
||||||
|
'SI ES FLEXIBLE QUE NOTIFIQUE EL MONTO MAXIMO, SI NO LO ES QUE NOTIFIQUE EL PORCENTAJE ALCANZADO... FLEXIBLE = 2, NO FLEXIBLE = 1
|
||||||
If ObjContr.DtResultados.Rows(0)("ModalidadDetalle").ToString() = "1" Then
|
If ObjContr.DtResultados.Rows(0)("ModalidadDetalle").ToString() = "1" Then
|
||||||
|
Dim PorcentajeAvance As Double = ObjContr.DtResultados.Rows(0)("ContratoAvance").ToString().ToDouble
|
||||||
|
|
||||||
If PorcentajeAvance >= 100 Then
|
If PorcentajeAvance >= 100 Then
|
||||||
EnviarNotificacionAvance(ObjContr.DtResultados.Rows(0)("NumeroContrato").ToString(), ObjContr.DtResultados.Rows(0)("DescripcionContrato").ToString(), ObjContr.DtResultados.Rows(0)("ContratoTipo").ToString(), ObjContr.DtResultados.Rows(0)("NombreComercial").ToString(), ObjContr.DtResultados.Rows(0)("CorreoVendedor").ToString())
|
EnviarNotificacionAvance(ObjContr.DtResultados.Rows(0)("NumeroContrato").ToString(), ObjContr.DtResultados.Rows(0)("DescripcionContrato").ToString(), ObjContr.DtResultados.Rows(0)("ContratoTipo").ToString(), ObjContr.DtResultados.Rows(0)("NombreComercial").ToString(), ObjContr.DtResultados.Rows(0)("CorreoVendedor").ToString())
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Dim MontoMaximo As Double = ObjContr.DtResultados.Rows(0)("ImporteMax").ToString().ToDouble
|
Dim MontoMaximo As Double = ObjContr.DtResultados.Rows(0)("ImporteMax").ToString().ToDouble
|
||||||
|
Dim Avance As Double = ObjContr.DtResultados.Rows(0)("Avance").ToString().ToDouble
|
||||||
|
|
||||||
|
Dim PorcentajeAvance As Double = (Avance / MontoMaximo) * 100
|
||||||
|
|
||||||
If PorcentajeAvance >= 100 And MontoMaximo > 0 Then
|
If PorcentajeAvance >= 100 And MontoMaximo > 0 Then
|
||||||
EnviarNotificacionAvance(ObjContr.DtResultados.Rows(0)("NumeroContrato").ToString(), ObjContr.DtResultados.Rows(0)("DescripcionContrato").ToString(), ObjContr.DtResultados.Rows(0)("ContratoTipo").ToString(), ObjContr.DtResultados.Rows(0)("NombreComercial").ToString(), ObjContr.DtResultados.Rows(0)("CorreoVendedor").ToString(), MontoMaximo)
|
EnviarNotificacionAvance(ObjContr.DtResultados.Rows(0)("NumeroContrato").ToString(), ObjContr.DtResultados.Rows(0)("DescripcionContrato").ToString(), ObjContr.DtResultados.Rows(0)("ContratoTipo").ToString(), ObjContr.DtResultados.Rows(0)("NombreComercial").ToString(), ObjContr.DtResultados.Rows(0)("CorreoVendedor").ToString(), MontoMaximo)
|
||||||
@@ -7554,7 +7581,6 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub CreaObjetosVentaAmortizacion(ObjVentas As ClsVentas, FolioFiscalRelacionado As String, CveAnticipoPadre As Integer,
|
Private Sub CreaObjetosVentaAmortizacion(ObjVentas As ClsVentas, FolioFiscalRelacionado As String, CveAnticipoPadre As Integer,
|
||||||
Optional CveVentasPadre As Integer = -1, Optional NCDescuento As Boolean = False)
|
Optional CveVentasPadre As Integer = -1, Optional NCDescuento As Boolean = False)
|
||||||
ObjFacturaDevolucion = New Modelos.Factura
|
ObjFacturaDevolucion = New Modelos.Factura
|
||||||
@@ -12243,7 +12269,9 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa.Contiene(1, 72, 80) Then
|
If UsuarioActual.CveEmpresa.Contiene(1, 72, 80) Then
|
||||||
DdlTipoAmortizacionAnticipo.Items.Add(New ListItem("Amortización anticipo sobre factura en cero", "3"))
|
If Not DdlTipoAmortizacionAnticipo.Items.Cast(Of ListItem).Any(Function(x) x.Value = "3") Then
|
||||||
|
DdlTipoAmortizacionAnticipo.Items.Add(New ListItem("Amortización anticipo sobre factura en cero", "3"))
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(343) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(343) = "1" Then
|
||||||
@@ -13102,6 +13130,7 @@ Partial Class Ventas
|
|||||||
If DdlTipoComprobante.SelectedValue = "Rem" Then
|
If DdlTipoComprobante.SelectedValue = "Rem" Then
|
||||||
DdlTipoComprobante.Enabled = False
|
DdlTipoComprobante.Enabled = False
|
||||||
TrAlmacenAsignado.Visible = False
|
TrAlmacenAsignado.Visible = False
|
||||||
|
TrAlmacenOrigen.Visible = False
|
||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -14196,6 +14225,7 @@ Partial Class Ventas
|
|||||||
'REINICIALIZA VALORES DE ENTREGA POR ADELANTADO
|
'REINICIALIZA VALORES DE ENTREGA POR ADELANTADO
|
||||||
RequiereAlmacenDestino = False
|
RequiereAlmacenDestino = False
|
||||||
TrAlmacenAsignado.Visible = False
|
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) = "1" Then
|
||||||
Alert("Se ocupa una autorización.", TipoMensaje.MsgAdvertencia)
|
Alert("Se ocupa una autorización.", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -14287,10 +14317,21 @@ Partial Class Ventas
|
|||||||
DdlAlmacenAsignado.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()} AND CveTipoAlmacen IN (10)")
|
DdlAlmacenAsignado.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()} AND CveTipoAlmacen IN (10)")
|
||||||
DdlAlmacenAsignado.DataBind()
|
DdlAlmacenAsignado.DataBind()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim CveAlmacenOrigen As Integer = DtContratos.FiltroPrimeroValor("CveAlmacenOrigen", $"CveContrato = {If(DdlContratosModal.Items.Count > 0, DdlContratosModal.SelectedValue, "0")}").ToEntero()
|
||||||
|
|
||||||
|
If CveAlmacenOrigen > 0 Then
|
||||||
|
DdlAlmacenOrigen.Items.Clear()
|
||||||
|
DdlAlmacenOrigen.DataSource = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1, CveAlmacen:=CveAlmacenOrigen) '.FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero()}")
|
||||||
|
DdlAlmacenOrigen.DataBind()
|
||||||
|
DdlAlmacenOrigen.SelectedValueExist(CveAlmacenOrigen.ToString())
|
||||||
|
End If
|
||||||
|
|
||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
Else
|
Else
|
||||||
RequiereAlmacenDestino = False
|
RequiereAlmacenDestino = False
|
||||||
TrAlmacenAsignado.Visible = False
|
TrAlmacenAsignado.Visible = False
|
||||||
|
TrAlmacenOrigen.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'ENVIO DE FACTURA
|
'ENVIO DE FACTURA
|
||||||
|
|||||||
@@ -104,6 +104,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user