1033 lines
74 KiB
Plaintext
1033 lines
74 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="MinutaDetalle.aspx.cs" Inherits="OI_MinutaDetalle" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.divArchivo {
|
|
padding: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.divArchivo a {
|
|
color: #659be0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.divArchivo a i {
|
|
font-size: 32px;
|
|
line-height: 32px;
|
|
}
|
|
|
|
.mypaste:before {
|
|
content: "Pegar aquí";
|
|
}
|
|
|
|
.addropzone.dz-clickable:before {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.pnlCorreo {
|
|
display: table;
|
|
width: 100%;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.headerCorreo {
|
|
font-size: 16px;
|
|
float: left;
|
|
width: 20%;
|
|
color: #333333;
|
|
background-color: #f9f9f9;
|
|
border-color: #e0e0e0;
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.bodycorreos {
|
|
padding: 3px 15px;
|
|
width: 80%;
|
|
float: right;
|
|
}
|
|
|
|
.headerCorreoCCP {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
@media (min-width: 1167px) {
|
|
.headerCorreoCCP {
|
|
padding: 30px 15px;
|
|
}
|
|
}
|
|
|
|
.linkCorreo {
|
|
text-decoration: none;
|
|
color: #659be0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
tr[hide="1"] {
|
|
display: none;
|
|
}
|
|
|
|
.addropzone {
|
|
min-height: 130px;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
<asp:UpdatePanel ID="UpTituloPagina" runat="server">
|
|
<ContentTemplate>
|
|
Minuta:
|
|
<asp:Literal runat="server" ID="ltlTituloPage"></asp:Literal>
|
|
</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">
|
|
<ContentTemplate>
|
|
</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="UpContenido" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<asp:Panel runat="server" ID="portletMinuta" class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Datos Minuta</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control TxtAsunto" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Asunto:" AssociatedControlID="TxtAsunto"></asp:Label>
|
|
</div>
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control TxtDescripcion" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:Panel ID="pnlmiembrosvista" Visible="false" runat="server">
|
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
|
<div class="headerCorreo ">
|
|
<h3 class="panel-title ">Moderador:</h3>
|
|
</div>
|
|
<div class="bodycorreos ">
|
|
<asp:Literal ID="LtlDeUser" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
|
<div class="headerCorreo ">
|
|
<h3 class="panel-title ">Participantes:</h3>
|
|
</div>
|
|
<div class="bodycorreos ">
|
|
<asp:Literal ID="LtlCCPara" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtCorreoExterno" runat="server" CssClass="form-control TxtCorreoExterno" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
<%--<asp:RequiredFieldValidator ID="RfvCorreoExterno" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoExterno" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Externo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
|
<asp:Label runat="server" Text="Correos Externos" AssociatedControlID="TxtCorreoExterno"></asp:Label>
|
|
</div>
|
|
</asp:Panel>
|
|
|
|
|
|
<div class="text-center">
|
|
<asp:LinkButton ID="LnkGuardar" runat="server" OnClick="LnkGuardar_Click" CssClass="btn btn-primary">Guardar</asp:LinkButton>
|
|
<asp:LinkButton ID="LnkEnviarMinuta" Visible="false" runat="server" OnClick="LnkEnviarMinuta_Click" CssClass="btn btn-primary">Enviar Minuta</asp:LinkButton>
|
|
<asp:LinkButton ID="LnkTerminar_EnviarMinuta" Visible="false" runat="server" OnClick="LnkTerminarMinuta_Click" CssClass="btn btn-primary LnkTerminarMinuta">Terminar y Enviar Minuta</asp:LinkButton>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-7">
|
|
<div style="height: 12px; width: 100%; text-align: right; font-style: italic; font-weight: bold">
|
|
<span id="ltlFechaAutoGuardado"></span>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<asp:Panel runat="server" ID="portletArchivo" class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-file-archive-o font-green"></i>
|
|
<span class="caption-subject bold uppercase">Archivo</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding filediv">
|
|
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
|
<div class="divArchivo">
|
|
<asp:HyperLink ID="HypArchivo" runat="server" Target="_blank">
|
|
<asp:Literal ID="LtlArchivo" runat="server"></asp:Literal><br />
|
|
<i class="fa fa-download"></i>
|
|
</asp:HyperLink>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
<div class="col-md-6">
|
|
|
|
<asp:Panel runat="server" ID="portletUserNew" class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Miembros</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList runat="server" ID="DdlRoles" DataValueField="CveRol" DataTextField="Rol" CssClass="select2me form-control ddlrol" Width="100%" onchange="ddlRol_Onchange();" />
|
|
<asp:Label runat="server" Text="Perfil:" AssociatedControlID="DdlRoles"></asp:Label>
|
|
</div>
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList runat="server" ID="DdlSucursales" DataValueField="CveProyecto" DataTextField="SubProyecto" CssClass="select2me form-control ddlsucursal" Width="100%" onchange="DdlSucursales_Onchange();" />
|
|
<asp:Label runat="server" Text="Sucursales:" AssociatedControlID="DdlSucursales"></asp:Label>
|
|
</div>
|
|
<%--<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtUsuario" runat="server" CssClass="form-control TxtUsuario" CausesValidation="true"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Usuario" AssociatedControlID="TxtUsuario"></asp:Label>
|
|
</div>--%>
|
|
|
|
|
|
<div class="text-right" style="">
|
|
<asp:TextBox ID="TxtUsuario" runat="server" CssClass="form-control input-sm TxtUsuario" Style="display: inline-block; margin-right: -20px; width: 150px;" CausesValidation="true"></asp:TextBox>
|
|
<a href="javascript:;" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" DataKeyNames="CveUsuario,Nombre,Correo,Empresa,CveRol,CveSubProyecto"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD GVUsuarios" GridLines="None" data-height="200"
|
|
OnRowDataBound="GVUsuarios_RowDataBound">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
|
<HeaderTemplate>
|
|
<%-- <a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa fa-check-square-o"></i></a>
|
|
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa-square-o"></i></a>--%>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkOk" CssClass="ChkOk" Checked="false" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Usuario</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Rol</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
</div>
|
|
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%">
|
|
<ajax:TabPanel ID="TabAcuerdos" runat="server" HeaderText="Acuerdos">
|
|
<ContentTemplate>
|
|
|
|
<asp:HiddenField runat="server" ID="hdnCveEvento" ClientIDMode="Static" />
|
|
<asp:HiddenField runat="server" ID="hdnCveEventoEstatus" Value="1" ClientIDMode="Static" />
|
|
<asp:UpdatePanel ID="UpChkList" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Panel runat="server" ID="portletChekList" Visible="true" class="portlet light smmallpadding bordered" DefaultButton="LnkAgregarchklistitem">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-check-square-o font-green"></i>
|
|
<span class="caption-subject bold uppercase">Acuerdos <span id="Contador"></span></span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton ID="LnkSaveAcuerdos" OnClick="LnkSaveAcuerdos_Click" CssClass="btn btn-default" runat="server">Guardar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div style="display: none;">
|
|
|
|
<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 ckeditor" TextMode="MultiLine" Rows="3" CausesValidation="true"></asp:TextBox>--%>
|
|
<asp:TextBox ID="TxtActividad" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Acuerdo" 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" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
|
<%--<a class="btn btn-default">Agregar</a>--%>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:GridView ID="GVcheklist" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVcheklist" AutoGenerateColumns="False"
|
|
DataKeyNames="CveEventoCheckList,CveEvento,CveTipoEvento,EventoComentario,Estatus,CveUsuario,Usuario,FechaIng">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="" ItemStyle-Width="30">
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkEstatus" Text=" " OnCheckedChanged="ChkEstatus_CheckedChanged" runat="server" data-valor='<%# Extensiones.ModExtensiones.Encripta(Eval("CveEventoCheckList").ToString())%>' Checked='<%# Eval("Estatus")%>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Acuerdo">
|
|
<ItemTemplate>
|
|
<%--<pre>--%>
|
|
<span class="pre">
|
|
<asp:Literal ID="lbleventoComentario" runat="server" Text='<%# Eval("EventoComentario")%>'> </asp:Literal>
|
|
</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 class="form-group form-md-line-input ">
|
|
<%--<asp:Label runat="server" Text="Acuerdos" AssociatedControlID="TxtAcuerdos"></asp:Label>--%>
|
|
<asp:TextBox ID="TxtAcuerdos" runat="server" CssClass="form-control ADSckeditor TxtAcuerdos" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel ID="TabTareas" Visible="false" runat="server" HeaderText="Tareas">
|
|
<ContentTemplate>
|
|
<UserControl:TareaNueva runat="server" id="tareanueva" Ismodal="false" />
|
|
<asp:Panel runat="server" ID="portletTareas" Visible="false" class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Tarea nueva</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton ID="LnkAgregarTarea" OnClick="LnkAgregarTarea_Click" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtTareaAsunto" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtTareaAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Asunto:" AssociatedControlID="TxtTareaAsunto"></asp:Label>
|
|
</div>
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtTareaDescripcion" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtTareaDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtTareaDescripcion"></asp:Label>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="txtTareaFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtTareaFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label AssociatedControlID="txtTareaFechaI" runat="server" Text="Fecha Inicio"></asp:Label>
|
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="txtTareaFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVtxtFechaF" runat="server" ControlToValidate="txtTareaFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label AssociatedControlID="txtTareaFechaF" runat="server" Text="Fecha Fin"></asp:Label>
|
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
<ajax:ValidatorCalloutExtender ID="VcoFechaF" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList ID="DdlTareaPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
|
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
|
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlTareaPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" AssociatedControlID="DdlTareaPrioridad">Prioridad:</asp:Label>
|
|
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList ID="DdlTareaPara" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" AssociatedControlID="DdlTareaPara">Para:</asp:Label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<asp:TextBox ID="TxtTareaArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
|
</div>
|
|
<div class="col-md-6">
|
|
|
|
<div class="text-right" style="">
|
|
<asp:TextBox ID="TxtUsuarioB" runat="server" CssClass="form-control input-sm TxtUsuarioB" Style="display: inline-block; margin-right: -20px; width: 150px;" CausesValidation="true"></asp:TextBox>
|
|
<a href="javascript:;" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<asp:GridView ID="GVUsuariosB" runat="server" AutoGenerateColumns="false" DataKeyNames="CveUsuario,Nombre,Correo,Empresa,CveRol,CveSubProyecto"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD GVUsuariosB" GridLines="None" data-height="200"
|
|
OnRowDataBound="GVUsuarios_RowDataBound">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
|
<HeaderTemplate>
|
|
CCP
|
|
<br />
|
|
<a id="chkAll" onclick="chkAllB_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa fa-check-square-o"></i></a>
|
|
<a id="UnchkAll" onclick="chkAllB_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa-square-o"></i></a>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkOk" CssClass="ChkOk" Checked="false" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Usuario</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Rol</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6 ">
|
|
</div>
|
|
<div class="col-sm-6 ">
|
|
</div>
|
|
</div>
|
|
|
|
<%--//OIE.[CveEvento], OIE.[CveTipoEvento], OIE.[Folio], OIE.[Asunto], OIE.[Descripcion], OIE.[Prioridad], OIE.[CveUsuarioDe], OIE.[CveUsuarioPara],
|
|
//OIE.[CveEventoEstatus], OIE.[FechaInicio], OIE.[FechaFin], OIE.[FechaRealTermino], OIE.[CveRevision], OIE.[Archivo], OIE.[FechaIng],
|
|
//OIE.[CveUsuarioIng], OIE.[CveEmpresa], OIE.[CveUsuarioModifico], OIE.[Avance]--%>
|
|
</div>
|
|
|
|
</asp:Panel>
|
|
<asp:Button ID="btnreloadTareas" OnClick="btnreloadTareas_Click" CssClass="hidden btnreloadTareas" UseSubmitBehavior="false" runat="server" Text="Button" />
|
|
<asp:GridView ID="GVTareas" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
|
DataKeyNames="Titulo,NombreRegistro,CveEvento,CveTipoEvento,Folio,Asunto,Descripcion,Prioridad,CveUsuarioDe,CveUsuarioPara,CveEventoEstatus,FechaInicio,FechaFin,FechaRealTermino,CveRevision,Archivo,FechaIng,CveUsuarioIng,CveEmpresa,CveUsuarioModifico,Avance">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Folio">
|
|
<ItemTemplate>
|
|
<a target="_blank" href='<%# Eval("CveEvento","/OI/TareaDetalle.aspx?CveEvento={0}")%>' class="Widthallimp">
|
|
<asp:Label runat="server" Text='<%# Eval("Folio")%>'> </asp:Label>
|
|
</a>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Asunto">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Asunto")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Descripción">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Descripcion")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Para">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("UserPara")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Inicio">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy HH}:{0:mm}")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Fin">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy HH}:{0:mm}")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Estatus">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("EventoEstatus")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel ID="TabAgendas" Visible="false" runat="server" HeaderText="Agendas">
|
|
<ContentTemplate>
|
|
|
|
<asp:Panel runat="server" ID="Panel1" class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Agenda nueva</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton ID="LnkAgregarAgenda" OnClick="LnkAgregarAgenda_Click" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAgendaAsunto" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="rfvAgendaAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAgendaAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Asunto:" AssociatedControlID="TxtAgendaAsunto"></asp:Label>
|
|
</div>
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtAgendaDescripcion" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="rfvAgendaDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAgendaDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtAgendaDescripcion"></asp:Label>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:TextBox ID="TxtAgendaArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="txtAgendaFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="rfvAgendaFechaI" runat="server" ControlToValidate="txtAgendaFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label AssociatedControlID="txtAgendaFechaI" runat="server" Text="Fecha Inicio"></asp:Label>
|
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="rfvAgendaFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList ID="DdlAgendaTipo" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Sin Tipo" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Llamar" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Otro" Value="4"></asp:ListItem>
|
|
<asp:ListItem Text="Presupuestar" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="Visitar" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" AssociatedControlID="DdlAgendaTipo">Agenda Tipo:</asp:Label>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-sm-3" style="display: none;">
|
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="txtAgendaFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvAgendaFechaF" runat="server" ControlToValidate="txtAgendaFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label AssociatedControlID="txtAgendaFechaF" runat="server" Text="Fecha Fin"></asp:Label>
|
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RfvAgendaFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList ID="DdlAgendaPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
|
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
|
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvAgendaPrioridad" runat="server" ControlToValidate="DdlAgendaPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" AssociatedControlID="DdlAgendaPrioridad">Prioridad:</asp:Label>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RfvAgendaPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:DropDownList ID="DdlAgendaPara" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" AssociatedControlID="DdlAgendaPara">Para:</asp:Label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12 text-center">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<asp:GridView ID="GvAgenda" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
|
DataKeyNames="Titulo,NombreRegistro,CveEvento,CveTipoEvento,Folio,Asunto,Descripcion,Prioridad,CveUsuarioDe,CveUsuarioPara,CveEventoEstatus,FechaInicio,FechaFin,FechaRealTermino,CveRevision,Archivo,FechaIng,CveUsuarioIng,CveEmpresa,CveUsuarioModifico,Avance">
|
|
<Columns>
|
|
<%--<asp:TemplateField HeaderText="Folio">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblfolio" runat="server" Text='<%# Eval("Folio")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>--%>
|
|
<asp:TemplateField HeaderText="Asunto">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Asunto")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Descripción">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Descripcion")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Para">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("UserPara")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Inicio">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy HH}:{0:mm}")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Estatus">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("EventoEstatus")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Tipo">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("AgendaTipo")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel ID="TabArchivos" Visible="false" runat="server" HeaderText="Archivos y bitacora">
|
|
<ContentTemplate>
|
|
|
|
<asp:UpdatePanel ID="UpActividades" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtComentario" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Agregar Comentario" AssociatedControlID="TxtComentario"></asp:Label>
|
|
</div>
|
|
<asp:TextBox ID="Txtfilecomentario" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
|
|
|
</div>
|
|
<div class="col-md-4">
|
|
<asp:LinkButton ID="BtnAgregarComentario" OnClick="BtnAgregarComentario_Click" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-advance table-hover Widthall ScrollAD GvActividades"
|
|
OnRowDataBound="GvActividades_RowDataBound"
|
|
GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy HH:mm}" HeaderText="Fecha">
|
|
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="NombreUsuario" DataFormatString=" {0}" HeaderText="Usuario">
|
|
<ItemStyle Width="200px" />
|
|
</asp:BoundField>
|
|
<%--<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación"></asp:BoundField>--%>
|
|
<asp:TemplateField HeaderText="Observación">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("EventoComentario").ToString().Replace("\n","<br/>") %>'></asp:Literal>
|
|
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="">
|
|
<ItemTemplate>
|
|
<asp:HyperLink Target="_blank" ID="HplA" runat="server"><i class="fa fa-download"></i></asp:HyperLink>
|
|
<%--<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />--%>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" Width="40px" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
</ajax:TabContainer>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div id='idDivAgendarMinuta' class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpModalCambiarEstatus" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
|
<h4 class="modal-title" style="text-align: left">
|
|
<asp:Literal ID="Literal1" runat="server">Terminar y Agendar</asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input">
|
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvtxtFechaIs" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor seleccione uno." ValidationGroup="Grpagendarnext"></asp:RequiredFieldValidator>
|
|
<asp:Label AssociatedControlID="txtFechaI" runat="server" Text="Fecha "></asp:Label>
|
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
<ajax:ValidatorCalloutExtender ID="VcetxtFechaIs" runat="server" HighlightCssClass="vco" TargetControlID="RfvtxtFechaIs" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<asp:LinkButton ID="BtnTerminarYAgendar" OnClick="BtnTerminarYAgendar_Click" CssClass="btn btn-primary" ValidationGroup="Grpagendarnext" runat="server">Terminar</asp:LinkButton>
|
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<script src="/Metronic/assets/global/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
setTimeout("autoGuardado()", 60000);
|
|
});
|
|
|
|
//$('#btnAutoGuardado').click(function () {
|
|
function autoGuardado() {
|
|
|
|
if ($get("hdnCveEvento").value != "" && $get("hdnCveEventoEstatus").value != "4") {
|
|
var SendObj = {
|
|
"CveEvento": $get("hdnCveEvento").value,
|
|
"Asunto": $(".TxtAsunto").val(),
|
|
"Descripcion": $(".TxtDescripcion").val(),
|
|
"Acuerdos": $(".TxtAcuerdos").val().replace(/< /gi, '<'),
|
|
}
|
|
fechaAutoGuardado();
|
|
var stringData = JSON.stringify(SendObj);
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '/asmx/wsOI.asmx/AutoGuardadoMinuta',
|
|
data: "{'objMinuta':" + stringData + "}",
|
|
contentType: 'application/json; utf-8',
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
fechaAutoGuardado();
|
|
if (data.d != null) {
|
|
alert(data.d);
|
|
}
|
|
},
|
|
error: function (jqXHR, textStatus, errorThrown) {
|
|
}
|
|
}
|
|
);
|
|
}
|
|
|
|
|
|
function fechaAutoGuardado() {
|
|
var f = new Date();
|
|
var hours = f.getHours();
|
|
var minutes = f.getMinutes();
|
|
var ampm = hours >= 12 ? 'pm' : 'am';
|
|
|
|
hours = hours % 12;
|
|
hours = hours ? hours : 12; // the hour '0' should be '12'
|
|
minutes = minutes < 10 ? '0' + minutes : minutes;
|
|
|
|
var strTime = hours + ':' + minutes + ' ' + ampm;
|
|
|
|
//if (hours <= 9)
|
|
// hours = "0" + hours;
|
|
//if (minutes <= 9)
|
|
// minutes = "0" + minutes;
|
|
|
|
$get("ltlFechaAutoGuardado").innerText = "Última hora de auto guardado " + strTime;
|
|
}
|
|
setTimeout("autoGuardado()", 60000);
|
|
}
|
|
</script>
|
|
<script>
|
|
////////////////////////////////////////////////Filtros Usuarios////////////////////////////////////////
|
|
let CveRol = -1;
|
|
let CveSucursal = -1;
|
|
let usuariotext = "";
|
|
let usuariotextB = "";
|
|
function ddlRol_Onchange() {
|
|
CveRol = $('select.ddlrol option:selected').val();
|
|
showhideUser();
|
|
}
|
|
function DdlSucursales_Onchange() {
|
|
CveSucursal = $('select.ddlsucursal option:selected').val();
|
|
showhideUser();
|
|
}
|
|
|
|
let tickBarBmaster = 0;
|
|
function TxtUsuario_Onchange() {
|
|
let obj = $('.TxtUsuario');
|
|
let text = '';
|
|
tickBarBmaster = tickBarBmaster + 1;
|
|
tickBarnew = tickBarBmaster;
|
|
setTimeout(function () {
|
|
if (tickBarnew == tickBarBmaster) {
|
|
if ((text = obj.val().trim()) != usuariotext) {
|
|
usuariotext = text;
|
|
showhideUser();
|
|
}
|
|
}
|
|
}, 500);
|
|
}
|
|
|
|
function TxtUsuarioB_Onchange() {
|
|
let obj = $('.TxtUsuarioB');
|
|
let text = '';
|
|
tickBarBmaster = tickBarBmaster + 1;
|
|
tickBarnew = tickBarBmaster;
|
|
setTimeout(function () {
|
|
if (tickBarnew == tickBarBmaster) {
|
|
if ((text = obj.val().trim()) != usuariotextB) {
|
|
usuariotextB = text;
|
|
showhideUserB();
|
|
}
|
|
}
|
|
}, 500);
|
|
}
|
|
function chkAll_OncLick(valor) {
|
|
$('.GVUsuarios tr:visible input[type="checkbox"]').prop("checked", valor);
|
|
}
|
|
|
|
function chkAllB_OncLick(valor) {
|
|
$('.GVUsuariosB tr:visible input[type="checkbox"]').prop("checked", valor);
|
|
}
|
|
function showhideUser() {
|
|
let strCveRol = CveRol > 0 ? '[data-rol="' + CveRol + '"]' : '';
|
|
let strCveSucursal = CveSucursal > 0 ? '[data-sucursal="' + CveSucursal + '"]' : '';
|
|
let strusuario = usuariotext.length > 0 ? ' td:nth-child(2):contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
|
|
|
$('.GVUsuarios tr.items').attr('hide', '1')//oculto todos
|
|
if (strusuario.length > 0) {
|
|
$('.GVUsuarios tr.items' + strCveRol + strCveSucursal + strusuario).closest('tr').attr('hide', '');//muestro los que tienen filtro con usuario,sucursal y rol
|
|
} else {
|
|
$('.GVUsuarios tr.items' + strCveRol + strCveSucursal).attr('hide', '');//muestro los que tienen filtro con sucursal y rol
|
|
|
|
}
|
|
//e.Row.Attributes.Add("data-rol", CveRol);
|
|
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
|
}
|
|
function showhideUserB() {
|
|
let strusuario = usuariotextB.length > 0 ? ':contains("' + usuariotextB + '")' : '';// td:nth-child(2)
|
|
|
|
$('.GVUsuariosB tr.items').attr('hide', '1')//oculto todos
|
|
if (strusuario.length > 0) {
|
|
$('.GVUsuariosB tr.items' + strusuario).attr('hide', '');//muestro los que tienen filtro con usuario,sucursal y rol
|
|
} else {
|
|
$('.GVUsuariosB tr.items').attr('hide', '');//muestro los que tienen filtro con sucursal y rol
|
|
|
|
}
|
|
//e.Row.Attributes.Add("data-rol", CveRol);
|
|
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
|
}
|
|
|
|
function loadeventos() {
|
|
let input = $('input.TxtUsuario:not(.ConEvento)')
|
|
let inputB = $('input.TxtUsuarioB:not(.ConEvento)')
|
|
|
|
input.bind({
|
|
copy: TxtUsuario_Onchange
|
|
, paste: TxtUsuario_Onchange
|
|
, cut: TxtUsuario_Onchange
|
|
, keydown: TxtUsuario_Onchange
|
|
, keyup: TxtUsuario_Onchange
|
|
});
|
|
inputB.bind({
|
|
copy: TxtUsuarioB_Onchange
|
|
, paste: TxtUsuarioB_Onchange
|
|
, cut: TxtUsuarioB_Onchange
|
|
, keydown: TxtUsuarioB_Onchange
|
|
, keyup: TxtUsuarioB_Onchange
|
|
});
|
|
input.addClass('ConEvento');
|
|
inputB.addClass('ConEvento');
|
|
}
|
|
////////////////////////////////////////////////Filtros Usuarios////////////////////////////////////////
|
|
//////////////////////////////////////////////////////CheckList/////////////////////////////////////////
|
|
|
|
function setchecklist() {
|
|
let checks = $('.GVcheklist input[type="checkbox"]:not(.chadd)');
|
|
checks.change(function () {
|
|
loaderinit = (function () { });
|
|
let ischeked = $(this).is(':checked');
|
|
$(this).closest('tr').toggleClass('finished');
|
|
if ($(".LnkSinfuncion").length) { $(".LnkSinfuncion").click(); }
|
|
});
|
|
checks.addClass('chadd');
|
|
}
|
|
//////////////////////////////////////////////////////CheckList/////////////////////////////////////////
|
|
|
|
function CargaPickers() {
|
|
$.datetimepicker.setLocale('es');
|
|
$('input.ADDateTimePicker').each(function () {
|
|
var TThis = $(this);
|
|
TThis.datetimepicker({
|
|
dayOfWeekStart: 1,
|
|
lang: 'es',
|
|
format: 'd/m/Y H:i',
|
|
formatDate: 'd/m/Y H:i',
|
|
step: 30
|
|
});
|
|
var Div = TThis.parent()
|
|
var boton = document.createElement('span');
|
|
boton.className = "input-group-btn"
|
|
|
|
var subboton = document.createElement('a')
|
|
subboton.className = "btn default btnCalendar"
|
|
subboton.innerHTML = "<i class='fa fa-calendar'></i>"
|
|
subboton.addEventListener('click', function () {
|
|
TThis.datetimepicker('show')
|
|
});
|
|
boton.appendChild(subboton)
|
|
|
|
var agregar = true;
|
|
for (var i = 0; i < Div[0].children.length; i++) {
|
|
if (Div[0].children[i].isEqualNode(boton)) {
|
|
agregar = false;
|
|
}
|
|
}
|
|
if (agregar) {
|
|
Div[0].appendChild(boton);
|
|
}
|
|
//Div[0].appendChild(boton)
|
|
|
|
});
|
|
}
|
|
function OnAddedTareaNueva() {
|
|
$('.btnreloadTareas').click();
|
|
}
|
|
|
|
function SetEditor() {
|
|
}
|
|
function GetContents() {
|
|
// Get the editor instance that you want to interact with.
|
|
var editor = CKEDITOR.instances.editor1;
|
|
|
|
// Get editor content.
|
|
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-getData
|
|
alert(editor.getData());
|
|
}
|
|
function AgendarSiguienteReunion() {
|
|
$('.LnkTerminarMinuta').confirmation({
|
|
title: '¿Agendar Siguiente Reunión?',
|
|
btnOkClass: 'btn btn-sm btn-danger',
|
|
btnOkLabel: 'No',
|
|
btnOkIcon: '',
|
|
btnCancelClass: 'btn btn-sm btn-default',
|
|
btnCancelLabel: 'Si',
|
|
btnCancelIcon: 'glyphicon glyphicon-ok',
|
|
onCancel: function (event, element) { /*Alert('se agendo la siguiente reunion;');*/ $('#idDivAgendarMinuta').modal(); return false; /*event.preventDefault();*/ },
|
|
});
|
|
$('.LnkTerminarMinuta').removeClass('LnkTerminarMinuta');
|
|
//data-toggle="confirmation" data-popout="true" data-original-title="¿Agendar Siguiente Reunión?" data-btn-ok-label="No"
|
|
//data-btn-cancel-label="si" data-on-cancel="debugger;event.preventDefault();Alert('se agendo la siguiente reunion;')"
|
|
}
|
|
|
|
|
|
function CargaPickers() {
|
|
$.datetimepicker.setLocale('es');
|
|
$('input.ADDateTimePicker').each(function () {
|
|
var TThis = $(this);
|
|
TThis.datetimepicker({
|
|
dayOfWeekStart: 1,
|
|
lang: 'es',
|
|
format: 'd/m/Y H:i',
|
|
formatDate: 'd/m/Y H:i',
|
|
step: 30
|
|
});
|
|
var Div = TThis.parent()
|
|
var boton = document.createElement('span');
|
|
boton.className = "input-group-btn"
|
|
|
|
var subboton = document.createElement('a')
|
|
subboton.className = "btn default btnCalendar"
|
|
subboton.innerHTML = "<i class='fa fa-calendar'></i>"
|
|
subboton.addEventListener('click', function () {
|
|
TThis.datetimepicker('show')
|
|
});
|
|
boton.appendChild(subboton)
|
|
|
|
var agregar = true;
|
|
for (var i = 0; i < Div[0].children.length; i++) {
|
|
if (Div[0].children[i].isEqualNode(boton)) {
|
|
agregar = false;
|
|
}
|
|
}
|
|
if (agregar) {
|
|
Div[0].appendChild(boton);
|
|
}
|
|
//Div[0].appendChild(boton)
|
|
|
|
});
|
|
|
|
|
|
}
|
|
function ADSReady() {
|
|
CargaPickers();
|
|
SetEditor();
|
|
CargaPickers();
|
|
loadeventos();
|
|
showhideUser();
|
|
setchecklist();
|
|
AgendarSiguienteReunion();
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|