1735 lines
121 KiB
Plaintext
1735 lines
121 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Acercamiento.aspx.cs" Inherits="CRM_Acercamiento" EnableEventValidation="false" %>
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||
<link href="/Metronic/assets/global/plugins/cubeportfolio/css/cubeportfolio.css" rel="stylesheet" type="text/css" />
|
||
<link href="/Metronic/assets/admin/pages/css/portfolio.min.css" rel="stylesheet" type="text/css" />
|
||
<style>
|
||
.cbp img {
|
||
background-color: #FFF;
|
||
}
|
||
|
||
.cbp-popup-lightbox-figure {
|
||
background-color: #FFF;
|
||
}
|
||
</style>
|
||
<style>
|
||
html, body {
|
||
width: 100%;
|
||
height: 100%;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
#map {
|
||
width: 100%;
|
||
height: calc(100% - 51px);
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
|
||
#map {
|
||
position: fixed !important;
|
||
}
|
||
|
||
.pac-container.pac-logo {
|
||
z-index: 100000;
|
||
}
|
||
|
||
#map {
|
||
height: 100%;
|
||
}
|
||
</style>
|
||
<style>
|
||
span.round-tab:hover {
|
||
color: #333 !important;
|
||
border: 2px solid #333 !important;
|
||
}
|
||
|
||
.wizard h3 {
|
||
margin-top: 0 !important;
|
||
}
|
||
|
||
@media( max-width : 585px ) {
|
||
|
||
.wizard {
|
||
width: 90% !important;
|
||
height: auto !important;
|
||
}
|
||
}
|
||
|
||
.ADScroller-body {
|
||
max-height: 140px !important;
|
||
}
|
||
|
||
.ADScroller-footer {
|
||
visibility: hidden;
|
||
}
|
||
|
||
.emptyDataRpt {
|
||
color: #333333;
|
||
background-color: #f9f9f9;
|
||
border-color: #e0e0e0;
|
||
}
|
||
|
||
.MultiLineTextBox {
|
||
resize: none;
|
||
}
|
||
|
||
|
||
.listTerminado{
|
||
text-decoration: line-through;
|
||
}
|
||
</style>
|
||
|
||
<style>
|
||
/*METRONIC*/
|
||
.bg-white {
|
||
background: #ffffff !important;
|
||
}
|
||
|
||
.bg-white-opacity {
|
||
background: rgba(255, 255, 255, 0.8) !important;
|
||
}
|
||
|
||
.wizard {
|
||
margin: 0px auto !important;
|
||
background: #fff !important;
|
||
}
|
||
|
||
.wizard .nav-tabs {
|
||
position: relative !important;
|
||
/*margin: 40px auto !important;*/
|
||
margin-bottom: 0 !important;
|
||
border-bottom-color: #e0e0e0 !important;
|
||
}
|
||
|
||
.wizard > div.wizard-inner {
|
||
position: relative !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col:after {
|
||
content: " " !important;
|
||
position: absolute !important;
|
||
left: 46% !important;
|
||
opacity: 0 !important;
|
||
margin: 0 auto !important;
|
||
bottom: 0px !important;
|
||
border: 5px solid transparent !important;
|
||
border-bottom-color: #5bc0de !important;
|
||
transition: 0.1s ease-in-out !important;
|
||
}
|
||
|
||
/* .wizard div.mt-step-col.active:after {
|
||
content: " " !important;
|
||
position: absolute !important;
|
||
left: 46% !important;
|
||
opacity: 1 !important;
|
||
margin: 0 auto !important;
|
||
bottom: 0px !important;
|
||
border: 10px solid transparent !important;
|
||
border-bottom-color: #5bc0de !important;
|
||
}*/
|
||
|
||
.wizard div.mt-step-col.etapaactual.active div.mt-step-number {
|
||
background: #32c5d2 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col.done.active div.mt-step-number {
|
||
background: #26C281 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col.error.active div.mt-step-number {
|
||
background: #E7505A !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col.enabled div.mt-step-number:hover {
|
||
background: #e5e5e5 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col.etapaactual div.mt-step-number:hover {
|
||
background: #32c5d2 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col.done div.mt-step-number:hover {
|
||
background: #26C281 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.wizard div.mt-step-col.error div.mt-step-number:hover {
|
||
background: #E7505A !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-col {
|
||
padding: 25px 0;
|
||
text-align: center;
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-number {
|
||
font-size: 26px;
|
||
border-radius: 50% !important;
|
||
display: inline-block;
|
||
margin: auto;
|
||
padding: 9px;
|
||
margin-bottom: 5px;
|
||
border: 3px solid;
|
||
border-color: #e5e5e5;
|
||
color: #95A5A6;
|
||
position: relative;
|
||
z-index: 5;
|
||
height: 60px;
|
||
width: 60px;
|
||
text-align: center;
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-number > i {
|
||
position: relative;
|
||
top: 50%;
|
||
transform: translateY(-120%);
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-title {
|
||
font-size: 20px;
|
||
font-weight: 400;
|
||
position: relative;
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-title:after {
|
||
content: '';
|
||
height: 3px;
|
||
width: 50%;
|
||
position: absolute;
|
||
background-color: #e5e5e5;
|
||
top: -32px;
|
||
left: 50%;
|
||
z-index: 4;
|
||
transform: translateY(-100%);
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-title:before {
|
||
content: '';
|
||
height: 3px;
|
||
width: 50%;
|
||
position: absolute;
|
||
background-color: #e5e5e5;
|
||
top: -32px;
|
||
right: 50%;
|
||
z-index: 4;
|
||
transform: translateY(-100%);
|
||
}
|
||
|
||
.mt-element-step .step-line .first .mt-step-title:before {
|
||
content: none;
|
||
}
|
||
|
||
.mt-element-step .step-line .last .mt-step-title:after {
|
||
content: none;
|
||
}
|
||
|
||
.mt-element-step .step-line .etapaactual .mt-step-number {
|
||
color: #32c5d2 !important;
|
||
border-color: #32c5d2 !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .etapaactual .mt-step-title,
|
||
.mt-element-step .step-line .etapaactual .mt-step-content {
|
||
color: #32c5d2 !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .etapaactual .mt-step-title:after, .mt-element-step .step-line .etapaactual .mt-step-title:before {
|
||
background-color: #32c5d2;
|
||
}
|
||
|
||
.mt-element-step .step-line .done .mt-step-number {
|
||
color: #26C281 !important;
|
||
border-color: #26C281 !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .done .mt-step-title,
|
||
.mt-element-step .step-line .done .mt-step-content {
|
||
color: #26C281 !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .done .mt-step-title:after, .mt-element-step .step-line .done .mt-step-title:before {
|
||
background-color: #26C281;
|
||
}
|
||
|
||
.mt-element-step .step-line .error .mt-step-number {
|
||
color: #E7505A !important;
|
||
border-color: #E7505A !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .error .mt-step-title,
|
||
.mt-element-step .step-line .error .mt-step-content {
|
||
color: #E7505A !important;
|
||
}
|
||
|
||
.mt-element-step .step-line .error .mt-step-title:after, .mt-element-step .step-line .error .mt-step-title:before {
|
||
background-color: #E7505A;
|
||
}
|
||
|
||
@media (max-width: 991px) {
|
||
/* 991px */
|
||
.mt-element-step .step-line .mt-step-title:after {
|
||
content: none;
|
||
}
|
||
|
||
.mt-element-step .step-line .mt-step-title:before {
|
||
content: none;
|
||
}
|
||
}
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||
<asp:UpdatePanel ID="UpEncabezado" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Label runat="server" ID="LblEncabezadoAcercamiento" Text=" Registro de Acercamiento/Oportunidad"></asp:Label>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton ID="LnkCerrarAcercamiento" OnClick="LnkCerrarAcercamiento_Click" Text="" runat="server" Style="cursor: pointer; margin-right: 5px;"><i class="fa fa-times"></i><span runat="server" id="SpanTituloCierre" style="padding-left: 5px;">Cerrar Acercamiento/Oportunidad</span></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="UPBitacoraEtapas" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row" style="margin-left: 10px; margin-right: 10px;">
|
||
<section>
|
||
<%-- STEPS --%>
|
||
<div class="col-md-12">
|
||
<div class="wizard">
|
||
<div class="wizard-inner">
|
||
<div class="mt-element-step">
|
||
<div class="col-md-12 step-line nav nav-tabs" role="tablist">
|
||
<div class="col-md-12">
|
||
<asp:Repeater ID="RptStepsEtapasProceso" runat="server" OnItemDataBound="RptStepsEtapasProceso_ItemDataBound">
|
||
<ItemTemplate>
|
||
<%-- COMPONENTE STEP - SE VALIDAN EN CODEBEHIND LOS ELEMENTOS DE CADA ETAPA PARA ASIGNARLE LAS CLASES CORRESPONDIENTES SIENDO OPCION
|
||
- CLASES OBLIGATORIAS: col-md-n, mt-step-col , SIENDO N EL NUMERO DE ETAPAS.
|
||
MAS DE 6 ETAPAS NO SE RECOMIENDA POR ESTETICA PERO ES FUNCIONAL. MAS DE 12 DISTORCIONAN LA DISTRUBUCION DEL COMPONENTE,
|
||
- CLASES OPCIONALES APARIENCIA Y COMPORTAMIENTO DEL STEP: first, last, error, done, active, enabled, disabled, active, etapaactual --%>
|
||
|
||
<div runat="server" id="DivEtapaRpt" class="" role="presentation">
|
||
<a href='<%# String.Format("#CveEtapaProceso{0}", Eval("CveEtapaProceso"))%>' name='<%# Eval("CveEtapaProceso")%>' runat="server" data-toggle="tab" role="tab" style="text-decoration: none;">
|
||
<div class="mt-step-number bg-white"><%# Eval("Orden")%> </div>
|
||
<div class="mt-step-title uppercase font-grey-cascade"><%# Eval("EtapaProceso")%></div>
|
||
<%--<div class="mt-step-content font-grey-cascade">Lorem ipsum dolor sit amet</div>--%>
|
||
</a>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:Repeater>
|
||
</div>
|
||
<%-- <div class="col-md-1" runat="server" id="DivVerBitacoraCompleta" style="float: left; padding-top: 45px;" visible="false">
|
||
<asp:LinkButton runat="server" ID="LbtVerBitacoraCompleta" role="tab" ToolTip="Ver Resumen de Bitacora" data-toggle="tooltip" OnClick="LbtVerBitacoraCompleta_Click" Style="text-decoration: none;">
|
||
<i class="fa fa-angle-down fa-3x" style="color: #32c5d2 !important"></i>
|
||
</asp:LinkButton>
|
||
</div>--%>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<asp:UpdatePanel ID="UPAcercamiento" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<ajax:TabContainer ID="TabsAcercamiento" runat="server" ActiveTabIndex="0" Width="100%">
|
||
|
||
<ajax:TabPanel ID="TabDatosAcercmaiento" runat="server" HeaderText="Información de la Empresa">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<%-- DATOS DE ACERCAMIENTO --%>
|
||
<div class="col-md-4">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-users font-green"></i>
|
||
<span class="caption-subject bold uppercase">Datos del Acercamiento/Oportunidad</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DivBodyAcercamiento" class="portlet-body form">
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtNombreAcercamiento" CssClass="form-control " runat="server" MaxLength="150"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVNombreAcercamiento" runat="server" ControlToValidate="TxtNombreAcercamiento" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre del Acercamiento/Oportunidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtNombreAcercamiento.ClientID.ToString()%>">Proyecto:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright" style="padding: 0;">
|
||
<div runat="server" id="DivFechaApertura" class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important">
|
||
<asp:TextBox ID="TxtFechaApertura" runat="server" Style="margin-left: 5px;" CssClass="form-control" Width="120px" MaxLength="10"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="imgCalendarioFechaApertura" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<label for="<%= TxtFechaApertura.ClientID.ToString()%>" style="width: 120px;"><span style="color: #F3565D">*</span> Apertura:</label>
|
||
</div>
|
||
<asp:RequiredFieldValidator ID="RFVTxtFechaApertura" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtFechaApertura" ErrorMessage="<b><span style='text-decoration: underline; margin-left: 15px;'>ERROR:</span></b><br /><span style='margin-left: 15px;'>El campo <b>''Apertura''</b> es necesario.</span>" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:MaskedEditExtender ID="MEETxtFechaApertura" runat="server" TargetControlID="TxtFechaApertura" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CETxtFechaApertura" EnabledOnClient="false" TargetControlID="TxtFechaApertura" PopupButtonID="imgCalendarioFechaApertura" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
</div>
|
||
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright" style="padding: 0;">
|
||
|
||
<div runat="server" id="DivFechaCierre" class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important;">
|
||
<asp:TextBox ID="TxtFechaCierre" Enabled="false" runat="server" Style="margin-left: 5px;" CssClass="form-control" CausesValidation="true" Width="120px" MaxLength="10"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="imgCalendarioFechaCierre" ToolTip="disponible al finalizar proceso" data-toggle="tooltip" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<label for="<%= DivFechaCierre.ClientID.ToString()%>" style="width: 120px;">Cierre:</label>
|
||
</div>
|
||
|
||
<ajax:MaskedEditExtender ID="MEETxtFechaCierre" runat="server" TargetControlID="TxtFechaCierre" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CETxtFechaCierre" EnabledOnClient="false" TargetControlID="TxtFechaCierre" PopupButtonID="imgCalendarioFechaCierre" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
</div>
|
||
</div>
|
||
<%-- style="padding-bottom: 17px;" --%>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcion" CssClass="form-control MultiLineTextBox" onkeyDown="checkTextAreaMaxLength(this,event,'200');" TextMode="MultiLine" Rows="2" CausesValidation="true" runat="server" MaxLength="200"></asp:TextBox>
|
||
<%--<asp:RequiredFieldValidator ID="RFVDescripcion" 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>--%>
|
||
<label style="height: 83px;" for="<%= TxtDescripcion.ClientID.ToString()%>">Descripción del Proyecto:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright" runat="server" id="DVEmpresaDdl" visible="true">
|
||
<asp:DropDownList ID="DdlEmpresaCRM" DataTextField="Empresa" DataValueField="CveEmpresaCRM" CausesValidation="true" OnSelectedIndexChanged="DdlEmpresaCRM_SelectedIndexChanged" AutoPostBack="true" runat="server" Width="100%" AppendDataBoundItems="true" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||
<label for="<%= DdlEmpresaCRM.ClientID.ToString()%>">Empresa:</label>
|
||
<asp:RequiredFieldValidator ID="RFVEmpresaCRM" CssClass="help-block errorimput" runat="server" ControlToValidate="DdlEmpresaCRM" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Empresa''</b> es necesario." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
</div>
|
||
|
||
|
||
<div class="form-group" runat="server" id="DVEmpresaLnk" visible="false" >
|
||
<label for="<%= LnkEmpresaCRM.ClientID.ToString()%>" style="color:#888888">Empresa:</label>
|
||
<asp:HyperLink runat="server" ID="LnkEmpresaCRM" target="_blank" CssClass="Texto" style="font-size:16px;margin-top:-10px!important"></asp:HyperLink>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlContactoPrincipal" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="NombreTipoTelCorreo" DataValueField="CveContacto" Class="form-control input-sm select2me">
|
||
<asp:ListItem Value="-1" Text="Seleccione"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlContactoPrincipal.ClientID.ToString()%>">Contacto Principal:</label>
|
||
</div>
|
||
|
||
|
||
<div id="DivPS" runat="server" class="form-group form-md-line-input input-iconright">
|
||
<label style="color:#888888" for="<%= DdlPS.ClientID.ToString()%>">Producto Servicio:</label>
|
||
<ADS:Dropdownlost runat="server" ID="DdlPS" CssStyle="width:100%" CssClassDdl="form-control select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%-- END DATOS DE ACERCAMIENTO --%>
|
||
|
||
<%-- DATOS DE VENDEDOR CRM --%>
|
||
<div class="col-md-4">
|
||
<div class="portlet light xspadding bordered" style="height: 228px">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-certificate font-green"></i>
|
||
<span class="caption-subject bold uppercase">Datos del Vendedor</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DivBodyEmpresa" class="portlet-body form">
|
||
<div class="row">
|
||
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlVendedor" DataTextField="Vendedor" DataValueField="CveVendedor" CausesValidation="true" runat="server" Width="100%" AppendDataBoundItems="true" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||
<label for="<%= DdlVendedor.ClientID.ToString()%>">Vendedor Asignado:</label>
|
||
<asp:RequiredFieldValidator ID="RFVVen" CssClass="help-block errorimput" runat="server" ControlToValidate="DdlVendedor" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Vendedor''</b> es necesario." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
</div>
|
||
<div id="DivMedioCaptacion" runat="server" class="form-group col-md-6 form-md-line-input input-iconright" >
|
||
<asp:DropDownList ID="DdlMedioCaptacion" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="MedioCaptacion" DataValueField="CveMedioCaptacion" Class="form-control input-sm select2me"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" InitialValue="-1" runat="server" ControlToValidate="DdlMedioCaptacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b> El campo <b>''Medio de Captación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<label for="<%= DdlMedioCaptacion.ClientID.ToString()%>" style="width: 90%">Medio de Captación:</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div id="DivImporte" runat="server" class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtImporte" CssClass="form-control" runat="server" Style="text-align: right;" onkeyup="FormatoMoneda(this)"></asp:TextBox>
|
||
<%--<asp:RequiredFieldValidator ID="RFVTxtPuestoContactoProveedor" runat="server" ControlToValidate="TxtPuestoContactoProveedor" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Puesto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarContactoProveedor"></asp:RequiredFieldValidator>--%>
|
||
<label for="<%= TxtImporte.ClientID.ToString()%>" style="width: 90%;">Importe:</label>
|
||
</div>
|
||
|
||
<div id="DivComision" runat="server" class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtComision" CssClass="form-control " runat="server" Style="text-align: right;" onkeyup="FormatoMoneda(this)"></asp:TextBox>
|
||
<%--<asp:RequiredFieldValidator ID="RFVTxtPuestoContactoProveedor" runat="server" ControlToValidate="TxtPuestoContactoProveedor" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Puesto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarContactoProveedor"></asp:RequiredFieldValidator>--%>
|
||
<label for="<%= TxtComision.ClientID.ToString()%>" style="width: 90%;">Comisión:</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div id="DivProbabilidadAcercamiento" runat="server" class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlProbabilidadAcercamiento" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="ProbabilidadAcercamiento" DataValueField="CveProbabilidadAcercamiento" Class="form-control input-sm select2me"></asp:DropDownList>
|
||
<label for="<%= DdlProbabilidadAcercamiento.ClientID.ToString()%>">Probabilidad:</label>
|
||
</div>
|
||
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control input-sm select2me" Width="100%">
|
||
<asp:ListItem Value="1" Text="Baja"></asp:ListItem>
|
||
<asp:ListItem Value="2" Text="Media"></asp:ListItem>
|
||
<asp:ListItem Value="3" Text="Alta"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%=DdlPrioridad.ClientID.ToString()%>">Prioridad:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-4">
|
||
|
||
<div class="portlet light xspadding bordered" style="height: 228px">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-refresh font-green"></i>
|
||
<span class="caption-subject bold uppercase">Datos del Proceso</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DivBodyProceso" class="portlet-body form">
|
||
|
||
<%-- <div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlTipoProceso" DataTextField="TipoProceso" DataValueField="CveTipoProceso" CausesValidation="true" OnSelectedIndexChanged="DdlTipoProceso_SelectedIndexChanged" AutoPostBack="true" runat="server" Width="100%" AppendDataBoundItems="true" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||
<label for="<%= DdlTipoProceso.ClientID.ToString()%>">Proceso:</label>
|
||
<asp:RequiredFieldValidator ID="RFVTipoProceso" CssClass="help-block errorimput" runat="server" ControlToValidate="DdlTipoProceso" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proceso''</b> es necesario." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
</div>--%>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlEtapaProceso" runat="server" OnSelectedIndexChanged="DdlEtapaProceso_SelectedIndexChanged" AutoPostBack="true" DataTextField="EtapaProceso" DataValueField="CveEtapaProceso" Width="100%" AppendDataBoundItems="true" Class="form-control input-sm select2me">
|
||
<asp:ListItem Value="-1" Text="Seleccione"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlEtapaProceso.ClientID.ToString()%>">Etapa Actual:</label>
|
||
<asp:RequiredFieldValidator ID="RFVEtapaActual" CssClass="help-block errorimput" runat="server" ControlToValidate="DdlEtapaProceso" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Etapa Actual'</b> es necesario." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-group col-md-6 ">
|
||
<label>En pausa: </label>
|
||
<asp:CheckBox ID="ChkePausa" runat="server" CssClass="make-switchsd" data-size="small" Text=" " />
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<%--END DATOS DE EMPRESA CRM --%>
|
||
</div>
|
||
<div class="row">
|
||
|
||
<div class="col-md-4"></div>
|
||
|
||
<div class="col-md-4">
|
||
|
||
<div class="portlet light xspadding bordered" >
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-refresh font-green"></i>
|
||
<span class="caption-subject bold uppercase">Check List</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DVCheckList" class="portlet-body form">
|
||
|
||
<asp:UpdatePanel ID="UpChkList" runat="server" UpdateMode="Conditional">
|
||
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
<div class="form-group form-md-line-input">
|
||
<asp:TextBox ID="TxtActividad" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="Rfvactividadchklist" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtActividad" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''actividad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTareachklist"></asp:RequiredFieldValidator>
|
||
<asp:Label runat="server" Text="Actividad" AssociatedControlID="TxtActividad"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<%--<asp:Button ID="LnkSinfuncion" OnClick="LnkSinfuncion_Click" UseSubmitBehavior="false" CssClass="btn btn-default LnkSinfuncion hidden" runat="server"></asp:Button>--%>
|
||
<asp:LinkButton ID="LnkAgregarchklistitem" OnClick="LnkAgregarchklistitem_Click" ValidationGroup="GrpTareachklist" CssClass="btn btn-success" runat="server">Agregar</asp:LinkButton>
|
||
<%--<a class="btn btn-default">Agregar</a>--%>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
|
||
<asp:GridView ID="GVcheklist" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVcheklist mysmallbtn" AutoGenerateColumns="False"
|
||
DataKeyNames="CveEventoCheckList,CveEvento,CveTipoEvento,EventoComentario,Estatus,CveUsuario,Usuario,FechaIng" OnRowDataBound="GVcheklist_RowDataBound">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="" ItemStyle-Width="30">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkEstatus" Text=" " AutoPostBack="true" OnCheckedChanged="ChkEstatus_CheckedChanged" runat="server" data-valor='<%# Extensiones.ModExtensiones.Encripta(Eval("CveEventoCheckList").ToString())%>' Checked='<%# Eval("Estatus")%>' />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Actividad">
|
||
<ItemTemplate>
|
||
<%--<pre>--%>
|
||
<span class="pre">
|
||
<asp:Label ID="lbleventoComentario" runat="server" Text='<%# Eval("EventoComentario")%>'> </asp:Label>
|
||
</span>
|
||
<%--</pre>--%>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="30" Visible="false">
|
||
<ItemTemplate>
|
||
<%--<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="LnkEditarCheck_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>--%>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="30">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LnkD" runat="server" OnClick="LnkEliminarchek_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el cheklist?" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
|
||
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="col-md-4"></div>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabDatosTecnicos" runat="server" HeaderText="Información Técnica">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<%-- max-height: 410px;--%>
|
||
<div class="col-md-6" style="width: 100%">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-info-circle font-green"></i>
|
||
<span class="caption-subject bold uppercase">Información Técnica</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DivBodyDatosTecnicos" class="portlet-body form">
|
||
<%-- DATOS DINAMICOS - TABLA ENCUESTA --%>
|
||
<asp:UpdatePanel ID="UpDatosTecnicos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div runat="server" id="DivMensajeDatosTecnicos" style="padding-top: 4px; padding-bottom: 4px; margin-top: 5px; margin-bottom: 5px; margin-left: auto; margin-right: auto; text-align: center; border-color: LightGrey; border-width: 1px; border-style: solid; border-collapse: collapse; background: #eee;">
|
||
<asp:Label runat="server" ID="LblTextoEncuestaNoEncontada" Width="100%" Text="No se han agregado preguntas a este tipo de proceso."></asp:Label>
|
||
</div>
|
||
<div id="DivEncuesta" style="display: inline; width: 100%; padding-top: 0px;" runat="server">
|
||
<asp:GridView ID="GvDatosTecnicos" DataKeyNames="CvePregunta,CveTipoPregunta, CveEncuestaAplicadaDetalle, RespuestaDefault, CveRespuesta, Valor" EmptyDataText="No se encontraron Respuestas Registrados" Width="100%"
|
||
Visible="true" runat="server" GridLines="None" AutoGenerateColumns="False" ShowHeader="False" CssClass="xspadding" OnRowDataBound="GvDatosTecnicos_RowDataBound">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemStyle BorderStyle="None" />
|
||
<ItemTemplate>
|
||
<table border="0" cellpadding="0" cellspacing="0" style="padding: 0 !important; margin: 0; border: 0; width: 100%;">
|
||
<tr style="padding: 0 !important; margin: 0;">
|
||
<td colspan="2" style="text-align: left; padding: 0 !important; margin: 0; border: 0;" class="t">
|
||
<%--<asp:Label ID="LblPreguntaDinamica" Text='<%# Eval("Pregunta") + ":"%>' runat="server" CssClass="control-label" Font-Size="13px" ForeColor="#888888"></asp:Label>--%>
|
||
</td>
|
||
</tr>
|
||
<tr style="padding: 0 !important; margin: 0; border: 0;">
|
||
<td style="padding: 0 !important; margin: 0; border: 0;">
|
||
<div runat="server" id="DivTxtRespuestaDinamica" visible="false" class="form-group col-md-12 form-md-line-input input-iconright" style="padding-top: 0px; padding-left: 0; padding-right: 0;">
|
||
<asp:TextBox ID="TxtRespuestaDinamica" runat="server" CausesValidation="true" Width="100%" CssClass="form-control"></asp:TextBox>
|
||
<label for="GvDatosTecnicos.ClientID.ToString()" style="left: 0; margin-top: -10px;"><%# Eval("Pregunta") + ":"%> </label>
|
||
<%--<asp:RequiredFieldValidator SetFocusOnError="true" ID="RFVTxtRespuestaDinamica" CssClass="errorimput" runat="server" ControlToValidate="TxtRespuestaDinamica" ErrorMessage="<i><span style='color: darkred;'>Campo requerido</span></i>"></asp:RequiredFieldValidator>--%>
|
||
</div>
|
||
|
||
<div runat="server" id="DivDdlRespuestaDinamica" visible="false" class="form-group col-md-12 form-md-line-input input-iconright" style="padding-top: 0px; padding-left: 0; padding-right: 0;">
|
||
<asp:DropDownList ID="DdlRespuestaDinamica" Width="50%" runat="server" DataTextField="Respuesta" DataValueField="CveRespuesta" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||
<label for="GvDatosTecnicos.ClientID.ToString()" style="left: 0; margin-top: -10px;"><%# Eval("Pregunta") + ":"%> </label>
|
||
</div>
|
||
|
||
<div runat="server" id="DivRdlRespuestaDinamica" visible="false" class="form-group col-md-12 form-md-line-input input-iconright" style="padding-top: 0px; padding-left: 0; padding-right: 0;">
|
||
<asp:RadioButtonList ID="RdlRespuestaDinamica" runat="server" DataTextField="Respuesta" DataValueField="CveRespuesta" CssClass="form-control" BorderStyle="None" RepeatDirection="Horizontal"></asp:RadioButtonList>
|
||
<label for="GvDatosTecnicos.ClientID.ToString()" style="left: 0; margin-top: -10px;"><%# Eval("Pregunta") + ":"%> </label>
|
||
</div>
|
||
|
||
<div runat="server" id="DivChkRespuestaDinamica" visible="false" class="form-group col-md-12 form-md-line-input input-iconright" style="padding-top: 15px; padding-left: 0px; padding-right: 0;">
|
||
<asp:CheckBox ID="ChkRespuestaDinamica" runat="server" CssClass="form-control make-switchsd" BorderStyle="None" data-size="small"></asp:CheckBox>
|
||
<label for="GvDatosTecnicos.ClientID.ToString()" style="left: 0; margin-top: -8px;"><%# Eval("Pregunta") + ":"%> </label>
|
||
</div>
|
||
|
||
<div runat="server" id="DivTxtRespuestaDinamicaMultilinea" visible="false" class="form-group col-md-12 form-md-line-input input-iconright" style="padding-top: 0px; padding-left: 0; padding-right: 0;">
|
||
<asp:TextBox ID="TxtRespuestaDinamicaMultilinea" runat="server" TextMode="MultiLine" Rows="3" CausesValidation="true" Width="100%" CssClass="form-control MultiLineTextBox"></asp:TextBox>
|
||
<label for="GvDatosTecnicos.ClientID.ToString()" style="left: 0; margin-top: -10px; height: 83px;"><%# Eval("Pregunta") + ":"%> </label>
|
||
<%--<asp:RequiredFieldValidator SetFocusOnError="true" ID="RFVTxtRespuestaDinamica" CssClass="errorimput" runat="server" ControlToValidate="TxtRespuestaDinamica" ErrorMessage="<i><span style='color: darkred;'>Campo requerido</span></i>"></asp:RequiredFieldValidator>--%>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright" style="padding: 0!important; padding-top: 5px !important;">
|
||
<div runat="server" id="DivFechaDinamica" visible="false" class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 150px !important; padding: 0!important;">
|
||
<asp:TextBox ID="TxtRespuestaFechaDinamica" runat="server" Style="margin: 0px; padding: 0px;" CssClass="form-control" Width="150px" MaxLength="10"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="imgCalendarioFechaDinamica" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<label for="<%= GvDatosTecnicos.ClientID.ToString()%>" style="width: 100% !important; left: 0; margin-top: -17px;"><%# Eval("Pregunta") + ":"%></label>
|
||
</div>
|
||
|
||
<ajax:MaskedEditExtender ID="MEETxtFechaDinamica" runat="server" TargetControlID="TxtRespuestaFechaDinamica" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CETxtFechaDinamica" TargetControlID="TxtRespuestaFechaDinamica" PopupButtonID="imgCalendarioFechaDinamica" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<%-- END DATOS DINAMICOS - TABLA ENCUESTA --%>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%-- END DATOS DE PROCESO DE ACERCAMIENTO--%>
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabImagenes" runat="server" HeaderText="Imágenes" OnClientClick="clickgaleria">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6" style="width: 100%">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-info-circle font-green"></i>
|
||
<span class="caption-subject bold uppercase">IMÁGENES</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="DivBodyImg" class="portlet-body form">
|
||
<div class="row" style="margin: unset">
|
||
<div class="col">
|
||
<asp:LinkButton ID="HyperLink1" CssClass="btn btn-success" data-toggle="modal" data-target="#Modalupfotos" runat="server" Style="cursor: pointer; float: right;" ToolTip="Observaciones"><i class="fa fa-upload"></i> Cargar Archivo</asp:LinkButton><br />
|
||
</div>
|
||
</div>
|
||
<div class="row" style="margin: unset">
|
||
<div class="col">
|
||
<asp:UpdatePanel ID="UpGaleria" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div class="portfolio-content portfolio-1">
|
||
<div id="js-filters-juicy-projects" class="cbp-l-filters-button">
|
||
</div>
|
||
<div id="js-grid-juicy-projects" class="cbp">
|
||
<asp:Repeater ID="RptFotos" runat="server">
|
||
<ItemTemplate>
|
||
<div class="cbp-item graphic">
|
||
<div class="cbp-caption">
|
||
<div class="cbp-caption-defaultWrap">
|
||
<img src='<%# String.Format("/ashx/SIGCRM.ashx?Metodo=getimgacercamiento&r={0}",UrlIMGEncriptada(Eval("URLParametros").ToString())) %>'>
|
||
</div>
|
||
<div class="cbp-caption-activeWrap">
|
||
<div class="cbp-l-caption-alignCenter">
|
||
<div class="cbp-l-caption-body">
|
||
<asp:Button ID="BtnEliminarFoto" OnClick="BtnEliminarFoto_Click" data-toggle="confirmation" data-original-title="¿Estás Seguro?" data-btn-ok-label="Si" runat="server" CommandArgument='<%# Eval("CveArchivo").ToString() %>' Text="Borrar" CssClass=" btn red uppercase" />
|
||
<a href='<%# String.Format("/ashx/SIGCRM.ashx?Metodo=getimgacercamiento&r={0}",UrlIMGEncriptada(Eval("URLParametros").ToString())) %>' class=" btn blue uppercase">Ver</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="cbp-l-grid-projects-title uppercase text-center"><%#Eval("Titulo").ToString() %></div>
|
||
<div class="cbp-l-grid-projects-desc uppercase text-center"><%# Eval("Descripcion").ToString() %></div>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:Repeater>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="Modalupfotos" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Agregar Imagen</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpUpFotos" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtTituloImagen" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtTituloImagen" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Titulo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioImagen"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtTituloImagen.ClientID.ToString()%>">Titulo:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcionImagen" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50" TextMode="MultiLine"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcionImagen" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioImagen"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtDescripcionImagen.ClientID.ToString()%>">Descripción:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div>
|
||
<asp:TextBox ID="TxtUpFotos" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnUpFotos" Text="Subir Foto" OnClick="BtnUpFotos_Click" ValidationGroup="GrpObligatorioImagen" runat="server" ClientIDMode="Static" CssClass="btn btn-primary" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabCotizaciones" runat="server" HeaderText="Cotizaciones" Enabled="true">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12 ">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Cotizaciones </span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
<asp:UpdatePanel ID="UpAddCotizacion" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:HyperLink ID="HplAgregarCotizacion" Visible="true" Target="_blank" runat="server" data-toggle="tooltip" title="Agregar Cotización" class="btn btn-circle btn-sm btn-default"><i class="fa fa-plus"></i></asp:HyperLink>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div runat="server" id="Div1" visible="false" class="row" style="margin-right: 10px; margin-top: 0px; margin-bottom: 5px;" align="right">
|
||
<input type="text" id="TxtBusquedaCotizacion" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCotizacion','{0}')", GvCotizacion.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCotizacion','{0}')", GvCotizacion.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
<div runat="server" id="Div2" style="padding: 0 10px 10px 10px;">
|
||
<asp:UpdatePanel runat="server" ID="UpCotizacion" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvCotizacion" runat="server" DataKeyNames="CveVenta,CveEmpresaCRM,CveAcercamientoCRM,CveEstatusFactura, EstatusFactura,Total" EmptyDataText="Aún no se han registrado cotizaciones."
|
||
EmptyDataRowStyle-HorizontalAlign="Center" ToolTip="Listado de Cotizaciones" CssClass="table table-striped table-advance table-hover ScrollAD Widthall mysmallbtn" AlternatingRowStyle-BorderStyle="None"
|
||
GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" AutoGenerateColumns="false" OnRowDataBound="GvCotizacion_RowDataBound">
|
||
<Columns>
|
||
<asp:HyperLinkField DataTextField="SerieFolio" Target="_blank" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" ItemStyle-HorizontalAlign="Left" HeaderText="Serie Folio" />
|
||
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<asp:BoundField DataField="Total" ItemStyle-HorizontalAlign="Right" HeaderText="Total" DataFormatString="{0:N1}" />
|
||
|
||
<asp:TemplateField HeaderText="Estatus" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lblEstatus" runat="server" Text='<%# Eval("EstatusFactura")%>'> </asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabGastos" runat="server" HeaderText="Gastos" Enabled="true">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12 ">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">GASTOS </span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
<asp:UpdatePanel ID="UpAddGastos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:LinkButton ID="LbAddGastos" Visible="true" runat="server" data-toggle="tooltip" title="Agregar Gasto" OnClick="LbAddGastos_Click" class="btn btn-circle btn-sm btn-default"><i class="fa fa-plus"></i></asp:LinkButton>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div runat="server" id="Div3" visible="false" class="row" style="margin-right: 10px; margin-top: 0px; margin-bottom: 5px;" align="right">
|
||
<input type="text" id="TxtBusquedaGastos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaGastos','{0}')", GvCotizacion.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaGastos','{0}')", GvCotizacion.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
<div runat="server" id="Div4" style="padding: 0 10px 10px 10px;">
|
||
<asp:UpdatePanel runat="server" ID="UpGastos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvGastos" runat="server" EmptyDataText="Aún no se han registrado gastos." DataKeyNames="CveAcercamientoGasto,Descripcion,Importe"
|
||
EmptyDataRowStyle-HorizontalAlign="Center" ToolTip="Listado de Cotizaciones" CssClass="table table-striped table-advance table-hover ScrollAD Widthall mysmallbtn" AlternatingRowStyle-BorderStyle="None"
|
||
GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" AutoGenerateColumns="false" OnRowDataBound="GvGastos_RowDataBound">
|
||
<Columns>
|
||
<%--<asp:HyperLinkField DataTextField="SerieFolio" Target="_blank" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" ItemStyle-HorizontalAlign="Left" HeaderText="Serie Folio" />--%>
|
||
<asp:TemplateField HeaderText="Descripción" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lblDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'> </asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lblImporte" runat="server" Text='<%# Eval("Importe","{0:N2}")%>'> </asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lblUsuario" runat="server" Text='<%# Eval("Usuario")%>'> </asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lblFechaIng" runat="server" Text='<%# Eval("FechaIng","{0:d}")%>'> </asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="ImgE" OnClick="ImgE_Click" runat="server" AlternateText="Editar" CausesValidation="False"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgD" OnClick="imgD_Click" runat="server" AlternateText="Eliminar" CausesValidation="False" 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" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
</ajax:TabContainer>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<table border="0" class="Widthall" style="padding-top: 20px;">
|
||
<tr>
|
||
<td align="center">
|
||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardarAcercamiento" Visible="false" runat="server" OnClick="BtnGuardarAcercamiento_Click" CssClass="btn btn-primary" Text="Guardar" ValidationGroup="GrpGuardar" />
|
||
<asp:Button ID="BtnEliminarAcercamiento" Visible="false" runat="server" OnClick="BtnEliminarAcercamiento_Click" CssClass="btn btn-danger" Text="Eliminar" AlternateText="Eliminar" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea continuar, esta acción eliminara todo registro del acercamiento/Oportunidad?" data-btn-ok-label="si" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<%-- INICIO BITACORA --%>
|
||
<div class="row" id="DivBitacora" visible="false" runat="server" style="padding-top: 15px;">
|
||
<asp:UpdatePanel ID="UPBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<%-- BITACORA / ACTIVIDADES --%>
|
||
<div class="col-md-8">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<%--<i class="fa fa-users font-green"></i>--%>
|
||
<span id="TituloBitacora" runat="server" class="caption-subject bold uppercase">Bitacora</span>
|
||
<asp:Button ID="BtnCambiaEtapaBitacora" runat="server" OnClick="BtnCambiaEtapaBitacora_Click" Style="display: none" />
|
||
<asp:HiddenField ID="HdfEtapaSeleccionada" runat="server" />
|
||
</div>
|
||
<div runat="server" id="DivAccionesBitacoraActividades" class="actions">
|
||
<div class="btn-group">
|
||
<asp:LinkButton runat="server" ID="LbtVerBitacoraCompleta" class="btn btn-circle btn-sm blue" Text="Ver todo" data-toggle="tooltip" OnClick="LbtVerBitacoraCompleta_Click" Style="text-decoration: none; margin-right: 5px;">
|
||
<%--<i class="fa fa-angle-down fa-3x" style="color: #32c5d2 !important"></i>--%>
|
||
</asp:LinkButton>
|
||
<a class="btn btn-circle btn-sm btn-default" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" aria-expanded="false">Agregar <i class="fa fa-angle-down"></i></a>
|
||
<ul class="dropdown-menu pull-right">
|
||
<li>
|
||
<asp:HyperLink ID="LnkAgregarObservaciones" Text="<i class='fa fa-commenting-o'></i> Observación" data-toggle="modal" data-target="#ModalBitacora" runat="server" Style="cursor: pointer; margin-right: 5px;"></asp:HyperLink>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:HyperLink ID="LnkAgregarAgenda" Text="<i class='fa fa-calendar-plus-o'></i> Agenda" data-toggle="modal" data-target="#ModalAgenda" runat="server" Style="cursor: pointer; margin-right: 5px;"></asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||
<script>
|
||
function OnAddedTareaNueva() {
|
||
$('.btnupEventoBitacora').click();
|
||
}
|
||
</script>
|
||
<li>
|
||
</ul>
|
||
<UserControl:TareaNueva runat="server" ID="TareaNueva" />
|
||
|
||
|
||
<%-- <asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green' ></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green' ></i>Agendar" Visible="false" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Agendar"></asp:HyperLink><br />
|
||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||
<UserControl:TareaNueva runat="server" ID="TareaNueva" />
|
||
<script> function OnAddedTareaNueva() { $('.btnupEventoBitacora').click(); }</script>--%>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body" style="padding: 10px 10px 5px 10px; max-height: 200px !important;">
|
||
<div class="scroller" style="height: 180px" data-always-visible="1" data-rail-visible="1">
|
||
<asp:GridView ID="GVEventoBitacora" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora" EmptyDataRowStyle-HorizontalAlign="Center"
|
||
DataKeyNames="CveEtapaProcesoCRM, PosicionGPS, Lat, Long"
|
||
CssClass="table table-striped table-advance table-hover Widthall" Style="max-height: 200px !important" GridLines="None" OnRowDataBound="GVEventoBitacora_RowDataBound">
|
||
<Columns>
|
||
<asp:TemplateField Visible="false">
|
||
<HeaderTemplate>Etapa</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Label ID="LblEtapa" runat="server" Text='' Font-Bold="true"></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# String.Format("{0:g}",Eval("FechaIng")) %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha Agenda</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFechaAgenda" runat="server" Text='<%# String.Format("{0:g}",Eval("FechaInicio")) %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Usuario</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Descripción</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate></HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LnkVerUbicacion" OnClick="LnkVerUbicacion_Click" CommandArgument='<%# Eval("PosicionGPS")%>' Visible="false" runat="server" CssClass="btn btn-circle btn-icon-only" Style="padding: 4px; height: 25px;">
|
||
<i class="fa fa-globe"></i>
|
||
</asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
<RowStyle CssClass="Texto" />
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<%-- BITACORA / ARCHIVOS --%>
|
||
<div class="col-md-4">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<%--<i class="fa fa-users font-green"></i>--%>
|
||
<span class="caption-subject bold uppercase">Archivos</span>
|
||
</div>
|
||
<div runat="server" id="DivAccionesBitacoraArchivos" class="actions">
|
||
<div class="btn-group">
|
||
<a class="btn btn-circle btn-sm btn-default" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" aria-expanded="false">Agregar <i class="fa fa-angle-down"></i>
|
||
</a>
|
||
<ul class="dropdown-menu pull-right">
|
||
<li>
|
||
<asp:HyperLink ID="HplSubirArchivo" Text="<i class='fa fa-upload'></i> Subir Archivo" data-toggle="modal" data-target="#ModalBitacora" runat="server" Style="cursor: pointer; margin-right: 5px;"></asp:HyperLink>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body" style="padding: 10px 10px 5px 10px; max-height: 200px !important;">
|
||
<div class="scroller" data-always-visible="1" data-rail-visible="1" style="height: 180px">
|
||
<div class="panel-group accordion" id='AccordArchivos' style="margin-bottom: 5px;">
|
||
<asp:Repeater ID="RptArchivosBitacora" runat="server" OnItemDataBound="RptArchivosBitacora_ItemDataBound">
|
||
<ItemTemplate>
|
||
<div class="panel panel-default">
|
||
<div class="panel-heading">
|
||
<div class="row">
|
||
<div class="col-md-10 col-xs-10">
|
||
<h4 class="panel-title">
|
||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#AccordArchivos" href='#collapse_<%# Eval("CveEvento")%>' style="text-decoration: none;">
|
||
<%# Eval("Descripcion")%>
|
||
</a>
|
||
</h4>
|
||
</div>
|
||
<div class="col-md-1 col-xs-1" style="padding-left: 0px; padding-top: 9px;">
|
||
<asp:Label runat="server" ID="LblTipoArchivo" Text="" Font-Bold="true"></asp:Label>
|
||
</div>
|
||
<div class="col-md-1 col-xs-1" style="padding-left: 0px; padding-top: 9px;">
|
||
<asp:LinkButton ID="LinkArchivo" Visible="False" runat="server" CssClass="Texto" OnClick="DownloadFile">
|
||
<i class="fa fa-download" ></i>
|
||
</asp:LinkButton>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div id='collapse_<%# Eval("CveEvento")%>' class="panel-collapse collapse">
|
||
<div class="panel-body">
|
||
<div class="col-md-6">
|
||
<p><b>Fecha:</b> <%# String.Format("{0:g}", Eval("FechaIng"))%> </p>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<p><b>Usuario:</b> <%# Eval("Usuario")%></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ItemTemplate>
|
||
<FooterTemplate>
|
||
<div class="emptyDataRpt" runat="server" id="DivRptArchivoBitacoraEmpty" visible="false" style="padding: 5px; text-align: center;">
|
||
<asp:Label ID="LblEmptyRpt" runat="server" Text="No se encontraron archivos en esta etapa."></asp:Label>
|
||
</div>
|
||
</FooterTemplate>
|
||
</asp:Repeater>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<%-- FIN BITACORA --%>
|
||
|
||
<%-- INICIO MODALES --%>
|
||
<%-- MODAL OBSERVACIONES BITACORA --%>
|
||
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Bitácora</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="form-group col-md-8 form-md-line-input input-iconright">
|
||
|
||
<asp:TextBox BackColor="#f9f9f9" ID="TxtEventoDescripcion" MaxLength="5000" Style="margin-top: 10px;" runat="server" TextMode="MultiLine" CausesValidation="true" Width="100%" CssClass="form-control MultiLineTextBox" Columns="60" Rows="6"></asp:TextBox>
|
||
<label for="<%= TxtEventoDescripcion.ClientID.ToString()%>" style="height: 160px; width: 368px;">Bitácora/Observaciones:</label>
|
||
<%--<asp:CheckBox ID="ChkEventoPrioridad" CssClass="md-checksd2" Text="Bitácora de Atención" runat="server" />--%>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<div>
|
||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%--<div>
|
||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div> --%>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardarEventoBitacora" OnClick="BtnGuardarEventoBitacora_Click" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%-- FIN MODAL BITACORA --%>
|
||
|
||
<%-- MODAL AGENDA --%>
|
||
<div id="ModalAgenda" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalAgenda" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Agendar Evento</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
|
||
<div class="row">
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlTipoAgenda" Width="100%" DataTextField="AgendaTipo" DataValueField="CveAgendaTipo" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true">
|
||
</asp:DropDownList>
|
||
<label for="<%=DdlTipoAgenda.ClientID.ToString()%>">Tipo de Asunto:</label>
|
||
</div>
|
||
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlPrioridadAgenda" Width="100%" runat="server" CssClass="form-control input-sm select2me">
|
||
<asp:ListItem Selected="True" Text="Baja" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
||
<asp:ListItem Text="Alta" Value="3"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%=DdlPrioridadAgenda.ClientID.ToString()%>">Prioridad:</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlContactoAgenda" Width="100%" DataTextField="Nombre" DataValueField="CveContacto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true">
|
||
</asp:DropDownList>
|
||
<label for="<%=DdlContactoAgenda.ClientID.ToString()%>">Contacto:</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtAsuntoAgenda" MaxLength="100" CssClass="form-control" runat="server" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVAsuntoAgenda" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsuntoAgenda" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>: El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="VGGuardarAgenda"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtAsuntoAgenda.ClientID.ToString()%>">Asunto:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcionAgenda" MaxLength="5000" runat="server" TextMode="MultiLine" Rows="2" CausesValidation="true" Width="100%" CssClass="form-control MultiLineTextBox"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcionAgenda" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcionAgenda" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>: El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="VGGuardarAgenda"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtDescripcionAgenda.ClientID.ToString()%>" style="height: 60px;">Descripción:</label>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<div class="col-md-4 input-group input-sm date date-picker" data-date-format="dd/mm/yyyy hh:mm">
|
||
|
||
<asp:TextBox ID="TxtFechaInicioAgenda" runat="server" Width="100%" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" autocomplete="false" ></asp:TextBox>
|
||
<label for="<%= TxtFechaInicioAgenda.ClientID.ToString()%>"><span style='color: #F3565D'>*</span> Fecha de Inicio:</label>
|
||
</div>
|
||
<asp:RequiredFieldValidator ID="RFVFechaInicioAgenda" CssClass="help-block errorimput" runat="server" ControlToValidate="TxtFechaInicioAgenda" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>: El campo <b>''Fecha de Inicio''</b> es necesario, por favor ingréselo." ValidationGroup="VGGuardarAgenda"></asp:RequiredFieldValidator>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnGuardarAgenda" OnClick="BtnGuardarAgenda_Click" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="VGGuardarAgenda" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<%-- FIN MODAL BITACORA --%>
|
||
|
||
<%-- MODAL CIERRE-CANCELADO / MOTIVO RECHAZO --%>
|
||
<div id="ModalCierreMotivoRechazo" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpCierreMotivoRechazo" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 runat="server" id="TituloModalCierreMotivoRechazo" class="modal-title">Registro de Cierre Cancelado</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
|
||
<div class="row">
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright" style="padding: 0;">
|
||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important;">
|
||
<asp:TextBox ID="TxtFechaCierreRechazo" runat="server" Style="margin-left: 5px;" CssClass="form-control" CausesValidation="true" Width="120px" MaxLength="10"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="imgCalendariotFechaCierreRechazo" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<label for="<%= TxtFechaCierreRechazo.ClientID.ToString()%>" style="width: 120px;">Fecha de Cierre:</label>
|
||
</div>
|
||
<asp:RequiredFieldValidator ID="RFVFechaCierreRechazo" CssClass="help-block errorimput" runat="server" ControlToValidate="TxtFechaCierreRechazo" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>: El campo <b>''Fecha de Cierre''</b> es necesario, por favor ingréselo." ValidationGroup="VGGuardarCierreCancelacion"></asp:RequiredFieldValidator>
|
||
<ajax:MaskedEditExtender ID="MEEFechaCierreRechazo" runat="server" TargetControlID="TxtFechaCierreRechazo" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEFechaCierreRechazo" TargetControlID="TxtFechaCierreRechazo" PopupButtonID="imgCalendariotFechaCierreRechazo" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
</div>
|
||
|
||
<div class="form-group col-md-6 form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlRechazoMotivo" Width="100%" DataValueField="CveRechazoMotivo" DataTextField="RechazoMotivo" AppendDataBoundItems="true" runat="server" CssClass="form-control input-sm select2me">
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVRechazoMotivo" InitialValue="-1" runat="server" ControlToValidate="DdlRechazoMotivo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b> El campo <b>''Motivo de Rechazo''</b> es necesario, por favor ingréselo." ValidationGroup="VGGuardarCierreCancelacion"></asp:RequiredFieldValidator>
|
||
<label for="<%=DdlRechazoMotivo.ClientID.ToString()%>" style="width: 90%;">Motivo de Rechazo:</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-group form-md-line-input input-iconright" style="margin-left: 15px; margin-right: 15px;">
|
||
<asp:TextBox ID="TxtObservacionRechazo" MaxLength="200" runat="server" TextMode="MultiLine" Rows="2" CausesValidation="true" Width="100%" CssClass="form-control MultiLineTextBox"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVTxtObservacionRechazo" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtObservacionRechazo" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>: El campo <b>''Observación''</b> es necesario, por favor ingréselo." ValidationGroup="VGGuardarCierreCancelacion"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtObservacionRechazo.ClientID.ToString()%>" style="height: 60px;">Observación:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnRegistrarCierreCancelacion" OnClick="BtnRegistrarCierreCancelacion_Click" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="VGGuardarCierreCancelacion" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<%-- FIN MODAL CIERRE-CANCELADO / MOTIVO RECHAZO --%>
|
||
|
||
<%-- MODAL VER UBICACION--%>
|
||
<div id="ModalVerUbicacion" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalUbicacion" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 runat="server" id="H1" class="modal-title">Ubicacion Geográfica </h4>
|
||
</div>
|
||
<div class="modal-body" style="height: 280px;">
|
||
<div id="map" style="position: relative !important; width: 95%; height: 250px;"></div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<%--<asp:Button ID="Button1" OnClick="BtnRegistrarCierreCancelacion_Click" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="VGGuardarCierreCancelacion" />--%>
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<%-- FIN MODAL VER UBICACION --%>
|
||
|
||
<%-- MODAL AGREGAR GASTO--%>
|
||
<div id="DivAgregarGasto" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalGastos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlTituloModalGasto" runat="server">Agregar Gasto</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcionGasto" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvTxtDescripcionCosto" runat="server" ControlToValidate="TxtDescripcionGasto" 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="GrpGasto"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtDescripcionGasto.ClientID.ToString()%>">Descripción:</label>
|
||
<i></i>
|
||
</div>
|
||
<br />
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||
<asp:TextBox ID="TxtImporteGasto" CssClass="form-control " Width="150px" runat="server" MaxLength="10" CausesValidation="true" Style="text-align: right!important" OnKeyup="FormatoMoneda(this);"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvImporteCosto" runat="server" ControlToValidate="TxtImporteGasto" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGasto"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtImporteGasto.ClientID.ToString()%>">Importe:</label>
|
||
<i></i>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarGastoModal" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpGasto" OnClick="BtnAgregarGastoModal_Click" />
|
||
<button id="Button3" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<%-- FIN MODAL AGREGAR GASTO --%>
|
||
</asp:Content>
|
||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||
<script src="/Metronic/assets/global/plugins/dropzone/dropzone.js"></script>
|
||
<!-- Second, add the Timer and Easing plugins -->
|
||
<script type="text/javascript" src="/Scripts/jquery.timers-1.2.js"></script>
|
||
<script type="text/javascript" src="/Scripts/jquery.easing.1.3.js"></script>
|
||
<script src="/Metronic/assets/global/plugins/jquery.pulsate.min.js"></script>
|
||
<!-- Third, add the GalleryView Javascript and CSS files -->
|
||
<script type="text/javascript" src="/Scripts/jquery.galleryview-3.0-dev.js"></script>
|
||
<link type="text/css" rel="stylesheet" href="/css/jquery.galleryview-3.0-dev.css" />
|
||
<script src="/Metronic/assets/global/plugins/cubeportfolio/js/jquery.cubeportfolio.min.js" type="text/javascript"></script>
|
||
<script type="text/javascript">
|
||
// CAMBIO DE ETAPA DE BITACORA
|
||
$(document).ready(function () {
|
||
|
||
$('body').on('show.bs.tab', 'a[data-toggle="tab"]', function (e) {
|
||
// RECUPERAMOS EL ELEMENTO QUE DESENCADEMO EL EVENTO Y VERIFICAMOS SI NO ESTA DESACTIVADO
|
||
var $target = $(e.target);
|
||
|
||
if ($target.parent().hasClass('disabled')) {
|
||
return false;
|
||
} else {
|
||
// CAMBIAMOS LA ETAPA ACTIVA
|
||
var $active = $('.wizard .nav-tabs div.active');
|
||
$active.removeClass('active');
|
||
$target.parent().addClass('active');
|
||
|
||
// RECUPERAMOS LA CVEETAPA DEL A HREF, SE LA ASIGNAMOS AL HIDDENFIELD Y LLAMAMOS AL METODO QUE RECARGA EL GRID
|
||
var CveEtapaSeleccionada = $target.attr('name');
|
||
$('#<%=HdfEtapaSeleccionada.ClientID%>').val(CveEtapaSeleccionada);
|
||
document.getElementById('<%= BtnCambiaEtapaBitacora.ClientID %>').click();
|
||
}
|
||
});
|
||
});
|
||
|
||
function checkTextAreaMaxLength(textBox, e, length) {
|
||
var mLen = textBox["MaxLength"];
|
||
if (null == mLen)
|
||
mLen = length;
|
||
|
||
var maxLength = parseInt(mLen);
|
||
if (!checkSpecialKeys(e)) {
|
||
if (textBox.value.length > maxLength - 1) {
|
||
if (window.event)//IE
|
||
e.returnValue = false;
|
||
else//Firefox
|
||
e.preventDefault();
|
||
}
|
||
}
|
||
}
|
||
|
||
function checkSpecialKeys(e) {
|
||
if (e.keyCode != 8 && e.keyCode != 46 && e.keyCode != 37 && e.keyCode != 38 && e.keyCode != 39 && e.keyCode != 40)
|
||
return false;
|
||
else
|
||
return true;
|
||
}
|
||
|
||
function clickgaleria() {
|
||
$("#C_Tab_TabImagenes").css({ "display": "block", "visibility": "auto" });
|
||
initcarusel();
|
||
initcarusel2 = function () { };
|
||
}
|
||
var initcarusel = function () {
|
||
'use strict';
|
||
if ($('#js-grid-juicy-projects').data('hascube') != '1') {
|
||
$('#js-grid-juicy-projects').cubeportfolio({
|
||
filters: '#js-filters-juicy-projects',
|
||
loadMore: '#js-loadMore-juicy-projects',
|
||
loadMoreAction: 'click',
|
||
layoutMode: 'grid',
|
||
defaultFilter: '*',
|
||
animationType: 'quicksand',
|
||
gapHorizontal: 35,
|
||
gapVertical: 30,
|
||
gridAdjustment: 'responsive',
|
||
mediaQueries: [{
|
||
width: 1500,
|
||
cols: 5
|
||
}, {
|
||
width: 1100,
|
||
cols: 4
|
||
}, {
|
||
width: 800,
|
||
cols: 3
|
||
}, {
|
||
width: 480,
|
||
cols: 2
|
||
}, {
|
||
width: 320,
|
||
cols: 1
|
||
}],
|
||
caption: 'overlayBottomReveal',
|
||
displayType: 'sequentially',
|
||
displayTypeSpeed: 80,
|
||
|
||
// lightbox
|
||
lightboxDelegate: '.cbp-lightbox',
|
||
lightboxGallery: true,
|
||
lightboxTitleSrc: 'data-title',
|
||
lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>',
|
||
|
||
// singlePage popup
|
||
singlePageDelegate: '.cbp-singlePage',
|
||
singlePageDeeplinking: true,
|
||
singlePageStickyNavigation: true,
|
||
singlePageCounter: '<div class="cbp-popup-singlePage-counter">{{current}} of {{total}}</div>',
|
||
singlePageCallback: function (url, element) {
|
||
// to update singlePage content use the following method: this.updateSinglePage(yourContent)
|
||
var t = this;
|
||
|
||
$.ajax({
|
||
url: url,
|
||
type: 'GET',
|
||
dataType: 'html',
|
||
timeout: 10000
|
||
})
|
||
.done(function (result) {
|
||
t.updateSinglePage(result);
|
||
})
|
||
.fail(function () {
|
||
t.updateSinglePage('AJAX Error! Please refresh the page!');
|
||
});
|
||
},
|
||
});
|
||
$('#js-grid-juicy-projects').data('hascube', '1')
|
||
}
|
||
}
|
||
var initcarusel2 = initcarusel;
|
||
</script>
|
||
<script>
|
||
var image = '/Imagenes/rsz_11rsz_car.png';
|
||
var geocoder;
|
||
var uluru = { lat: 24.6345, lng: -102.5528 };
|
||
var map;
|
||
var directionsService;
|
||
var directionsDisplay;
|
||
|
||
function initMap() {
|
||
|
||
map = new google.maps.Map(document.getElementById('map'), {
|
||
center: uluru,
|
||
zoom: 10,
|
||
disableDefaultUI: true
|
||
});
|
||
|
||
google.maps.event.addListener(map, "click", function (event) {
|
||
closeLastOpenedInfoWindow();
|
||
});
|
||
|
||
directionsService = new google.maps.DirectionsService;
|
||
directionsDisplay = new google.maps.DirectionsRenderer;
|
||
directionsDisplay.setOptions({ suppressMarkers: true });
|
||
geocoder = new google.maps.Geocoder();
|
||
directionsDisplay.setMap(map);
|
||
|
||
|
||
var upControlDiv = document.createElement('div');
|
||
var upControl = new ControlLabels(upControlDiv, map);
|
||
|
||
upControlDiv.index = 1;
|
||
map.controls[google.maps.ControlPosition.TOP_LEFT].push(upControlDiv);
|
||
|
||
//var trafficLayer = new google.maps.TrafficLayer();
|
||
//trafficLayer.setMap(map);
|
||
}
|
||
|
||
var markers = [];
|
||
var lastOpenedInfoWindow;
|
||
function CreaMarcador(lat, long, nomEquipo, ContentString) {
|
||
if (typeof imagen === 'undefined') { imagen = image; }
|
||
|
||
var markerIcon = {
|
||
url: imagen,
|
||
labelOrigin: new google.maps.Point(26, 43)
|
||
};
|
||
|
||
var marker = new google.maps.Marker({
|
||
position: { lat: lat, lng: long },
|
||
title: nomEquipo,
|
||
map: map
|
||
});
|
||
|
||
marker.Nombre = nomEquipo;
|
||
|
||
var infowindow = new google.maps.InfoWindow({
|
||
content: ContentString
|
||
});
|
||
marker.addListener('click', function () {
|
||
closeLastOpenedInfoWindow();
|
||
GetDirecciones(coords, infowindow, marker);
|
||
infowindow.open(map, marker);
|
||
lastOpenedInfoWindow = infowindow;
|
||
});
|
||
markers.push(marker);
|
||
map.setCenter({ lat: lat, lng: long });
|
||
}
|
||
|
||
function fitBoundsToVisibleMarkers() {
|
||
|
||
var bounds = new google.maps.LatLngBounds();
|
||
|
||
for (var i = 0; i < markers.length; i++) {
|
||
if (markers[i].getVisible()) {
|
||
bounds.extend(markers[i].getPosition());
|
||
}
|
||
}
|
||
map.fitBounds(bounds);
|
||
|
||
}
|
||
|
||
function closeLastOpenedInfoWindow() {
|
||
if (lastOpenedInfoWindow) {
|
||
lastOpenedInfoWindow.close();
|
||
}
|
||
}
|
||
function DeleteMarkers() {
|
||
for (var i = 0; i < markers.length; i++) {
|
||
markers[i].setMap(null);
|
||
}
|
||
markers = [];
|
||
directionsDisplay.setMap(null);
|
||
}
|
||
|
||
function ControlLabels(controlDiv, map) {
|
||
|
||
// Set CSS for the control border.
|
||
var controlUI = document.createElement('div');
|
||
controlUI.style.marginLeft = '10px';
|
||
controlUI.style.zIndex = '0';
|
||
controlUI.style.cursor = 'pointer';
|
||
// controlUI.style.position = 'absolute';
|
||
controlUI.style.left = "0px";
|
||
controlUI.style.width = "150px";
|
||
controlUI.style.marginTop = "10px"
|
||
controlUI.style.top = "0px";
|
||
controlUI.className = 'gmnoprint';
|
||
|
||
controlDiv.appendChild(controlUI);
|
||
|
||
var ControlSub1 = document.createElement('div')
|
||
ControlSub1.style.float = 'left';
|
||
ControlSub1.className = 'gm-style-mtc'
|
||
controlUI.appendChild(ControlSub1)
|
||
|
||
var ControlSub2 = document.createElement('div')
|
||
ControlSub2.style.direction = 'ltr';
|
||
ControlSub2.style.overflow = 'hidden';
|
||
ControlSub2.id = "LnkEtiquetas"
|
||
ControlSub2.style.textAlign = 'center';
|
||
ControlSub2.style.position = 'relative';
|
||
ControlSub2.style.color = 'rgb(0,0,0)';
|
||
ControlSub2.style.fontFamily = ' "Open Sans", sans-serif; ';
|
||
ControlSub2.style.msUserSelect = 'none;';
|
||
ControlSub2.style.fontSize = '11px'
|
||
ControlSub2.style.backgroundColor = 'rgb(255,255,255)'
|
||
ControlSub2.style.padding = '11px'
|
||
ControlSub2.style.backgroundClip = 'padding-box'
|
||
ControlSub2.style.minWidth = '28px'
|
||
ControlSub2.style.fontWeight = '500'
|
||
ControlSub2.style.boxShadow = '0 1px 4px -1px rgba(0,0,0,.3)';
|
||
ControlSub2.innerHTML = 'Mostrar Etiquetas'
|
||
ControlSub1.appendChild(ControlSub2)
|
||
|
||
|
||
ControlSub1.addEventListener('click', function () {
|
||
EscondeLabels();
|
||
});
|
||
|
||
}
|
||
var visible = false
|
||
function EscondeLabels() {
|
||
if (visible) {
|
||
for (var i = 0; i < markers.length; i++) {
|
||
markers[i].setLabel(null);
|
||
}
|
||
visible = false
|
||
} else {
|
||
for (var i = 0; i < markers.length; i++) {
|
||
var label = {
|
||
text: markers[i].Nombre,
|
||
fontSize: "12px",
|
||
color: 'black',
|
||
fontWeight: 'bolder'
|
||
}
|
||
markers[i].setLabel(label);
|
||
}
|
||
visible = true
|
||
}
|
||
}
|
||
|
||
function GetDirecciones(posicion, infowindow, marker) {
|
||
if (marker.formatted_address) { return false; }
|
||
else if (marker.formatted_addressrow) {
|
||
infowindow.setContent(infowindow.getContent() + "<div style='margin-left:5px'>" + "Dirección: " + marker.formatted_addressrow + "</div>");
|
||
marker.formatted_address = marker.formatted_addressrow
|
||
}
|
||
else {
|
||
var lat = posicion.lat
|
||
var lng = posicion.lng
|
||
$.getJSON('http://adsistemasof.sytes.net/nominatim/reverse.php?format=jsonv2&lat=' + lat + '&lon=' + lng, function (data) {
|
||
if (typeof (data.error) === 'undefined') {
|
||
marker.formatted_address = data.display_name
|
||
infowindow.setContent(infowindow.getContent() + "<div style='margin-left:5px'>" + "Dirección: " + data.display_name + "</div>");
|
||
|
||
} else {
|
||
marker.formatted_address = "Dirección no encontrada";
|
||
infowindow.setContent(infowindow.getContent() + "<div style='margin-left:5px'> Dirección: No Encontrada </div>");
|
||
}
|
||
});
|
||
}
|
||
|
||
}
|
||
|
||
function retFalse() {
|
||
return false;
|
||
}
|
||
|
||
</script>
|
||
<script
|
||
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAJnZ1CoEUX425C20aqzFw4dYxFL_LfThk&libraries=places">
|
||
</script>
|
||
</asp:Content>
|
||
|