263 lines
18 KiB
Plaintext
263 lines
18 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ContratosSecciones.aspx.vb" Inherits="Contratos_ContratosSecciones" %>
|
|
|
|
<%--<%@ Register Assembly="AspMapNET" Namespace="AspMap.Web" TagPrefix="cc1" %>--%>
|
|
<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="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
<asp:Label ID="LblTitulo" runat="server" Text="Contratos Secciones"></asp:Label>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<%--<asp:UpdatePanel ID="UpFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Panel ID="PnlFiltros" runat="server" DefaultButton="CmdConsultar">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="display: none;">
|
|
<tr id="TrProgramar" runat="server" class="SubTotales">
|
|
<td>Contratos: <asp:DropDownList ID="DdlContrato" runat="server" AutoPostBack="true" DataTextField="NumeroContrato" DataValueField="CveContrato" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 90px !important;"></asp:DropDownList></td>
|
|
<td>Partida: <asp:DropDownList ID="DdlClasificacion" runat="server" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 90px !important;"></asp:DropDownList></td>
|
|
<td>Productos y Servicios: <asp:DropDownList ID="DdlPS" runat="server" AutoPostBack="true" DataTextField="PS" DataValueField="CvePS" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;"></asp:DropDownList></td>
|
|
<td>Sección: <asp:DropDownList ID="DdlSeccion" runat="server" AutoPostBack="false" DataTextField="Seccion" DataValueField="CveSeccion" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;"></asp:DropDownList></td>
|
|
<td>
|
|
<asp:Button ID="CmdConsultar" runat="server" CausesValidation="true" ValidationGroup="GrConsulta" Text="Consultar" class="btn btn-primary" /></td>
|
|
<td>
|
|
<asp:Button ID="BtnAgregar" runat="server" CausesValidation="true" Text="Agregar" ClientIDMode="Static" class="btn btn-success" /></td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped table-advance table-hover">
|
|
<thead>
|
|
<tr class="Titulos">
|
|
<th width="300px">
|
|
<asp:LinkButton ID="LbSeccion" runat="server" CausesValidation="false" Text="" CommandArgument="Seccion" OnClick="LbOrden_Click">
|
|
Partida/PS
|
|
<asp:Literal ID="ImgSeccion" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbCantidad" runat="server" CausesValidation="false" Text="" CommandArgument="Cantidad" OnClick="LbOrden_Click">
|
|
Importe
|
|
<asp:Literal ID="ImgCantidad" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="120px">
|
|
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" Text="" CommandArgument="Estimacion" OnClick="LbOrden_Click">
|
|
# Estimación
|
|
<asp:Literal ID="ImgEstimacion" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" Text="" CommandArgument="FolioVenta" OnClick="LbOrden_Click">
|
|
Factura
|
|
<asp:Literal ID="ImgFolioVenta" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbAvance" runat="server" CausesValidation="false" Text="" CommandArgument="VerFoto" OnClick="LbOrden_Click">
|
|
Fotografía
|
|
<asp:Literal ID="ImgVerFoto" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbEstimacion" runat="server" CausesValidation="false" Text="" CommandArgument="VerGeom" OnClick="LbOrden_Click">
|
|
GPS
|
|
<asp:Literal ID="ImgVerGeom" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GV" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron Contratos Secciones con los Filtros seleccionados" DataKeyNames="CveContratoSeccion,id_gis" ShowHeader="false" SelectedRowStyle-BackColor="#66CCFF" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LtlSeccion" runat="server" CssClass="Texto" Text='<%# Eval("Agrupador")%>' CommandArgument='<%# Eval("ID_GIS") %>' CommandName="Sel"></asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstimacion" runat="server" Text='<%# Eval("NumeroEstimacion")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLFactura" runat="server" Text='<%# Eval("FolioVenta")%>' NavigateUrl='<%# "/Ventas/Ventas.aspx?CveVenta=67225" %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LBFoto" runat="server" Text='<%# Eval("VerFoto")%>' CommandArgument='<%# Eval("CveContratoSeccion") %>' OnClick="LBFoto_OnClick" NavigateUrl='<%# "/Ventas/Ventas.aspx?CveVenta=67225" %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LBGeom" runat="server" Text='<%# Eval("VerGeom") %>' CommandArgument='<%# Eval("CveContratoSeccion") %>' OnClick="LBGeom_OnClick" NavigateUrl='<%# "/Ventas/Ventas.aspx?CveVenta=67225" %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
<asp:UpdatePanel ID="UpContratos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="divContrato" runat="server" clientidmode="Static" visible="False" style="background-color: #4F81BD;">
|
|
<table width="100%" border="1" cellpadding="10" cellspacing="10">
|
|
<tr>
|
|
<td style="background-color: white;">
|
|
<table width="100%" cellpadding="0">
|
|
<tr>
|
|
<td style="text-align: right;">
|
|
<img style="cursor: pointer;" src="/Imagenes/close.gif" alt="Cerrar" onclick="$get('divContrato').style.display='none';" /></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<asp:Panel ID="PanelContratos" runat="server">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="575">
|
|
<tr align="left" id="TrContratos" runat="server" visible="false">
|
|
|
|
<td>Contrato: <asp:DropDownList ID="DdlContratoAdd" runat="server" AutoPostBack="true" DataTextField="NumeroContrato" DataValueField="CveContrato" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 90px !important;"></asp:DropDownList></td>
|
|
<td>Clasificación: <asp:DropDownList ID="DdlClasificacionAdd" runat="server" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 90px !important;"></asp:DropDownList></td>
|
|
<td>Productos y Servicios: <asp:DropDownList ID="DdlPSAdd" runat="server" AutoPostBack="true" DataTextField="PS" DataValueField="CvePS" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;"></asp:DropDownList></td>
|
|
<td>Sección: <asp:DropDownList ID="DdlSeccionAdd" runat="server" AutoPostBack="true" DataTextField="Seccion" DataValueField="CveSeccion" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 90px !important;"></asp:DropDownList></td>
|
|
<td>Cantidad: <asp:TextBox ID="TxtCantidad" runat="server" Width="30px"></asp:TextBox></td>
|
|
<td>P.U.:<asp:TextBox ID="TxtPU" runat="server" Width="50px"></asp:TextBox></td>
|
|
<td>
|
|
<asp:Button Text="Agregar" runat="server" ID="BtnAgregarContratoSeccion" class="btn btn-success" /></td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UPFoto" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="divFotos" runat="server" clientidmode="Static" visible="False" style="background-color: white;">
|
|
<table width="450px" border="0" cellpadding="5" cellspacing="10">
|
|
<tr>
|
|
<td style="background-color: white;" colspan="3">
|
|
<table width="100%" cellpadding="0">
|
|
<tr>
|
|
<td style="text-align: right;">
|
|
<img style="cursor: pointer;" src="/Imagenes/close.gif" alt="Cerrar" onclick="$get('divFotos').style.display='none';" /></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 33%">
|
|
<asp:Image ID="Img1" runat="server" Width="100px" /></td>
|
|
<td style="width: 33%">
|
|
<asp:Image ID="Img2" runat="server" Width="100px" Visible="False" /></td>
|
|
<td style="width: 33%">
|
|
<asp:Image ID="Img3" runat="server" Width="100px" Visible="False" /></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPGPS" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="divGeom" runat="server" clientidmode="Static" visible="False" style="background-color: white;">
|
|
<table width="450px" border="1" cellpadding="10" cellspacing="10">
|
|
<tr>
|
|
<td style="background-color: white;">
|
|
<table width="100%" cellpadding="0">
|
|
<tr>
|
|
<td style="text-align: right;">
|
|
<img style="cursor: pointer;" src="/Imagenes/close.gif" alt="Cerrar" onclick="$get('divGeom').style.display='none';" /></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<img width="350px" height="350px" src="/Imagenes/Gluyas/ImgMapa2.png" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<cc1:Map ID="Mapa" runat="server" Height="450px" Width="900px" MapUnit="Meter" OnInfoTool="Map1_InfoTool" ImageFormat="Png" EnableSession="false" PixelPerInch="100" ImageTempDirectory="/Temp" BackColor="#f2efe9" FontQuality="ClearType" ImageResolution="100" MapTool="Info" ImagePriority="High" PanCursor="url(/imagenes/hand-drag.cur),default" />
|
|
<cc1:ZoomBar ID="ZBMapa" runat="server" Position="TopLeft" Map="Mapa" EnableViewState="true"
|
|
Visible="true" />
|
|
<asp:Label ID="LblCoords" runat="server" Text="" ClientIDMode="Static"></asp:Label>
|
|
<asp:Label ID="Label1" runat="server" Text="" ClientIDMode="Static" Visible="false"></asp:Label>
|
|
<asp:HiddenField ID="HdnPosX" runat="server" ClientIDMode="Static" Value="0" />
|
|
<asp:HiddenField ID="HdnPosY" runat="server" ClientIDMode="Static" Value="0" />
|
|
<asp:Label ID="LblMsg" runat="server" Text="" Visible="true"></asp:Label>
|
|
<asp:HiddenField ID="HdnEscala" runat="server" />
|
|
<asp:Panel ID="divPuntoDetalle" runat="server" ClientIDMode="Static" Width="300px" BackColor="White" Style="border: solid 1px black; color: Black; display: none; position: relative; left: 0;">
|
|
<table border="0" width="300px" cellpadding="0" cellspacing="1">
|
|
<tr class="Titulos">
|
|
<td>
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="TbInfoPunto" style="cursor: move;">
|
|
<tr>
|
|
<td style="width: 245px">Información</td>
|
|
<td style="padding-right: 4px; padding-top: 4px" valign="top">
|
|
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('divPuntoDetalle').style.display='none';" /></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Table ID="tbPuntoDetalle" runat="server"></asp:Table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<table>
|
|
<tr>
|
|
<td style="text-align: center;">
|
|
<cc1:Map Visible="False" ID="MapGeom" runat="server" Height="350px" Width="350px" MapUnit="Meter" ImageFormat="Png" EnableSession="false" PixelPerInch="100" ImageTempDirectory="/Temp" BackColor="#f2efe9" FontQuality="ClearType" ImageResolution="100" MapTool="Info" ImagePriority="High" PanCursor="url(/imagenes/hand-drag.cur),default" />
|
|
</td>
|
|
</tr>
|
|
</table>--%>
|
|
<br />
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script type="text/javascript">
|
|
|
|
function Colorea(l) {
|
|
debugger;
|
|
var obj = $get("Tr" + l);
|
|
if (obj) {
|
|
alert(1);
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|