This commit is contained in:
@@ -127,13 +127,15 @@
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Convocatoria
|
||||
</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="LnkUpUsuarios" OnClick="LnkUpUsuarios_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Actualizar Participantes</asp:LinkButton></li>
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkUpUsuarios" OnClick="LnkUpUsuarios_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Actualizar Participantes</asp:LinkButton></li>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
@@ -141,10 +143,10 @@
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
<asp:UpdatePanel ID="UpContenido" runat="server">
|
||||
<asp:UpdatePanel ID="UpContenido" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="col-md-7">
|
||||
<asp:Panel runat="server" ID="portletMinuta" class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
@@ -159,7 +161,7 @@
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control " 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>
|
||||
<asp:Label runat="server" Text="Asunto / Tema:" 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>
|
||||
@@ -189,6 +191,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtDuracion" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDuracion" 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="Duración:" AssociatedControlID="TxtDuracion"></asp:Label>
|
||||
</div>
|
||||
<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>--%>
|
||||
@@ -214,13 +222,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row" style="display: none;">
|
||||
<div class="col-sm-6" style="display: none;">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
||||
<asp:ListItem Selected="True" 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: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>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" 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="DdlPrioridad">Prioridad:</asp:Label>
|
||||
@@ -243,28 +251,7 @@
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<asp:Panel runat="server" ID="portletChekList" Visible="true" class="portlet light smmallpadding bordered">
|
||||
<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">Orden deldía <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">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="padding-top: 0px;">
|
||||
<asp:TextBox ID="TxtOrdendeldia" runat="server" CssClass="form-control ADSckeditor " CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="portletMiembros" class="col-md-3">
|
||||
<asp:Panel runat="server" ID="portletMiembros" class="col-md-5">
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
@@ -327,6 +314,24 @@
|
||||
</asp:Panel>
|
||||
</div>
|
||||
|
||||
<asp:Panel runat="server" ID="portletChekList" Visible="true" class="portlet light smmallpadding bordered">
|
||||
<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">ORDEN DEL DÍA <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">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="padding-top: 0px;">
|
||||
<asp:TextBox ID="TxtOrdendeldia" runat="server" CssClass="form-control ADSckeditor " CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="text-center">
|
||||
<asp:LinkButton ID="LnkIniciar" OnClick="LnkIniciar_Click" Visible="false" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Iniciar</asp:LinkButton>
|
||||
<asp:HyperLink ID="HypIrMinuta" Visible="false" CssClass="btn btn-primary" runat="server">Ir Minuta</asp:HyperLink>
|
||||
@@ -465,10 +470,10 @@
|
||||
}
|
||||
|
||||
function showhideUser2() {
|
||||
let strusuario = usuariotext.length > 0 ? ' td:nth-child(3):contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
||||
let strusuario = usuariotext.length > 0 ? ':contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
||||
|
||||
$('.GVUsuarios tr.items').attr('hide', '1')//oculto todos
|
||||
$('.GVUsuarios tr.items' + strusuario).closest('tr').attr('hide', '');//muestro los que tienen filtro con usuario
|
||||
$('.GVUsuarios tr.items' + strusuario).attr('hide', '');//muestro los que tienen filtro con usuario
|
||||
|
||||
}
|
||||
function TxtUsuario_Onchange() {
|
||||
@@ -489,11 +494,11 @@
|
||||
function showhideUser() {
|
||||
let strCveRol = CveRol > 0 ? '[data-rol="' + CveRol + '"]' : '';
|
||||
let strCveSucursal = CveSucursal > 0 ? '[data-sucursal="' + CveSucursal + '"]' : '';
|
||||
let strusuario = usuariotext.length > 0 ? ' td:nth-child(3):contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
||||
let strusuario = usuariotext.length > 0 ? ':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
|
||||
$('.GVUsuarios tr.items' + strCveRol + strCveSucursal + strusuario).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
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
pnlmiembrosvista.Visible = true;
|
||||
TxtAsunto.Text = drow["Asunto"].ToString();
|
||||
TxtDescripcion.Text = drow["Descripcion"].ToString();
|
||||
TxtDuracion.Text = drow["Duracion"].ToString();
|
||||
DdlPrioridad.SelectedValueExist(drow["Prioridad"].ToString());
|
||||
txtFechaI.Text = string.Format("{0:dd/MM/yyyy HH:mm}", drow["FechaInicio"]);
|
||||
txtFechaF.Text = string.Format("{0:dd/MM/yyyy HH:mm}", drow["FechaFin"]);
|
||||
@@ -98,7 +99,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
CveUsuarioDe = drow["CveUsuarioDe"].ToString().ToEntero();
|
||||
int CveEventoEstatus = drow["CveEventoEstatus"].ToString().ToEntero();
|
||||
bool permisoeditar = UsuarioActual.CveUsuario == CveUsuarioDe || UsuarioActual.CveUsuario == CveUsuarioIng;
|
||||
LnkIniciar.Visible = permisoeditar && (CveEventoHijo <0);
|
||||
LnkIniciar.Visible = permisoeditar && (CveEventoHijo <=0);
|
||||
HypIrMinuta.Visible = (CveEventoHijo > 0);
|
||||
HypIrMinuta.NavigateUrl = string.Format("/OI/MinutaDetalle.aspx?CveEvento={0}", CveEventoHijo);
|
||||
TxtAsunto.Enabled = permisoeditar;
|
||||
@@ -355,7 +356,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
using (ClsOIEventos objOI = new ClsOIEventos())
|
||||
{
|
||||
objOI.IniciaTransacSQL();
|
||||
Continuar = objOI.AddOI_Eventos2(cveTipoEvento, asunto, descripcion, prioridad, cveUsuarioDe, cveUsuarioPara, fechaInicio, fechaFin, cveRevision, archivoname, listaCCP, chkList, cveUsuarioIng, cveEmpresa, CorreoExterno: TxtCorreoExterno.Text, Acuerdos: TxtOrdendeldia.Text.Replace("< ", "<"), Lugar: TxtLugar.Text,CveEventoPadre: (RCveEventoPadre>0? RCveEventoPadre:-1));
|
||||
Continuar = objOI.AddOI_Eventos2(cveTipoEvento, asunto, descripcion, prioridad, cveUsuarioDe, cveUsuarioPara, fechaInicio, fechaFin, cveRevision, archivoname, listaCCP, chkList, cveUsuarioIng, cveEmpresa, CorreoExterno: TxtCorreoExterno.Text, Acuerdos: TxtOrdendeldia.Text.Replace("< ", "<"), Lugar: TxtLugar.Text,CveEventoPadre: (RCveEventoPadre>0? RCveEventoPadre:-1),Duracion:TxtDuracion.Text);
|
||||
|
||||
CveEvento = objOI.CveEvento;
|
||||
Folio = objOI.Folio;
|
||||
|
||||
@@ -87,6 +87,9 @@
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel ID="UpAcciones" runat="server">
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkOpenModalAsistencia" OnClick="LnkOpenModalAsistencia_Click" runat="server"><i class="fa fa-users"></i>Asistencia</asp:LinkButton></li>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
@@ -142,8 +145,8 @@
|
||||
<%--<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>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</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>
|
||||
@@ -730,15 +733,73 @@
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='<%= iddivTomarAsistencia %>' class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UpTomarASistencia" 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="LtlTituloUsuarios" runat="server">Actualizar miembros</asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="text-right" style="">
|
||||
<asp:TextBox ID="TxtTomarAsistencia" runat="server" CssClass="form-control input-sm" 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="GvTomarAsistencia" runat="server" AutoGenerateColumns="false" DataKeyNames="CveUsuario,Nombre,CveRol" data-txtBuscador='<%# string.Format("#{0}",TxtTomarAsistencia.ClientID) %>'
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD ConBuscador" GridLines="None" data-height="200"
|
||||
OnRowDataBound="GvTomarAsistencia_RowDataBound">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||
<HeaderTemplate>
|
||||
Asistió
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkAsistio" CssClass="ChkOk" Checked='<%# Eval("Asistencia").ToString()=="1" %>' 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 class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtAsistentesExternos" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||
<asp:Label runat="server" Text="Externos" AssociatedControlID="TxtAsistentesExternos"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LnkUpAsistencia" OnClick="LnkUpAsistencia_Click" CssClass="btn btn-primary" runat="server">Guardar</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>
|
||||
</script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
setTimeout("autoGuardado()", 60000);
|
||||
});
|
||||
|
||||
|
||||
loaderinited = loaderinit;
|
||||
//$('#btnAutoGuardado').click(function () {
|
||||
function autoGuardado() {
|
||||
|
||||
@@ -10,6 +10,8 @@ using Extensiones;
|
||||
public partial class OI_MinutaDetalle : ClsPaginas
|
||||
{
|
||||
#region Propiedades
|
||||
|
||||
public const string iddivTomarAsistencia = "iddivTomarAsistencia";
|
||||
public int RCveEvento { get { return ViewState["RCveEvento"] != null ? ViewState["RCveEvento"].ToString().ToEntero() : 0; } set { ViewState["RCveEvento"] = value; } }
|
||||
public int Folio { get { return ViewState["Folio"] != null ? ViewState["Folio"].ToString().ToEntero() : 0; } set { ViewState["Folio"] = value; } }
|
||||
public decimal Avance { get { return ViewState["Avance"] != null ? ViewState["Avance"].ToString().ToEntero() : 0; } set { ViewState["Avance"] = value; } }
|
||||
@@ -110,6 +112,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
TxtAsunto.Text = drow["Asunto"].ToString();
|
||||
TxtCorreoExterno.Text = drow["CorreoExterno"].ToString();
|
||||
TxtDescripcion.Text = drow["Descripcion"].ToString();
|
||||
TxtAsistentesExternos.Text = drow["Asistencia"].ToString();
|
||||
TxtAcuerdos.Text = drow["Acuerdos"].ToString().Replace("<", "< ");
|
||||
HypArchivo.Text = string.Format("{0}<br /><i class=\"fa fa-download\"></i>", drow["Archivo"].ToString());
|
||||
HypArchivo.NavigateUrl = string.Format("~/OI/TareaDetalle.aspx?Archivo={0}&filename={1}", ModExtensiones.Encripta(string.Format("OIFiles\\{0}\\{1}", Folio, drow["Archivo"])), ModExtensiones.Encripta(drow["Archivo"].ToString()));
|
||||
@@ -143,7 +146,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
string palomitavisto = "";
|
||||
string palomitasinver = "<i class=\"fa fa-check\" aria-hidden=\"true\"></i>";
|
||||
if (item["Visto"].ToString().ToEntero() == 1)
|
||||
if (item["Asistencia"].ToString().ToEntero() == 1)
|
||||
{
|
||||
LcveuserVisto.Add(CveUsuario);
|
||||
palomitavisto = palomitasinver;
|
||||
@@ -768,10 +771,10 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
{
|
||||
string script = "";
|
||||
if (agendar)
|
||||
{
|
||||
script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");",RCveEvento );
|
||||
{
|
||||
script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");", RCveEvento);
|
||||
}
|
||||
Alert("La minuta se termino con exito.", ModExtensiones.TipoMensaje.MsgInformacion,script);
|
||||
Alert("La minuta se termino con exito.", ModExtensiones.TipoMensaje.MsgInformacion, script);
|
||||
objOI.Commit();
|
||||
}
|
||||
else
|
||||
@@ -1256,4 +1259,53 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
protected void LnkOpenModalAsistencia_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||
{
|
||||
GvTomarAsistencia.DataSource = null;
|
||||
if (ObjOI_E.GetEventosUsuario2(RCveEvento, UsuarioActual.CveEmpresa)) { GvTomarAsistencia.DataSource = ObjOI_E.DtResultados; }
|
||||
}
|
||||
GvTomarAsistencia.DataBind();
|
||||
UpTomarASistencia.Update();
|
||||
RegistraScript(string.Format("$('#{0}').modal();", iddivTomarAsistencia));
|
||||
}
|
||||
|
||||
protected void LnkUpAsistencia_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
List<int> listaasistencia = new List<int>();
|
||||
foreach (GridViewRow gvRow in GvTomarAsistencia.Rows)
|
||||
{
|
||||
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
CheckBox ChkAsistio = gvRow.FCCheckBox("ChkAsistio");
|
||||
if (ChkAsistio.Checked)
|
||||
{
|
||||
listaasistencia.Add(CveUsuario);
|
||||
}
|
||||
}
|
||||
}
|
||||
bool continuar = false;
|
||||
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||
{
|
||||
continuar = (ObjOI_E.UPMinutasAsistentes(RCveEvento, UsuarioActual.CveEmpresa, TxtAsistentesExternos.Text, UsuarioActual.CveUsuario, listaasistencia));
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
Alert("se ingresó la asistencia correctamente.");
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide');", iddivTomarAsistencia));
|
||||
}
|
||||
}
|
||||
|
||||
protected void GvTomarAsistencia_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
e.Row.CssClass = "items";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,35 +16,46 @@
|
||||
.sortableList {
|
||||
border: 1px solid #eee;
|
||||
width: 250px;
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.sortableList ul {
|
||||
list-style-type: none;
|
||||
min-height: 20px;
|
||||
width: 250px;
|
||||
padding: 5px 0 0 0;
|
||||
margin: 0;
|
||||
ul.ListSorter {
|
||||
list-style-type: none;
|
||||
min-height: 25px;
|
||||
padding: 0px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sortableList ul {
|
||||
list-style-type: none;
|
||||
min-height: 20px;
|
||||
width: 250px;
|
||||
padding: 5px 0 0 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sortableList ul li {
|
||||
margin: 0 5px 5px 5px;
|
||||
padding: 5px;
|
||||
font-size: 1.2em;
|
||||
/*width: 120px;*/
|
||||
background-color: #fff;
|
||||
border: 1px solid #cccccc;
|
||||
position: relative;
|
||||
padding: 7px 35px 7px 5px;
|
||||
}
|
||||
|
||||
.sortableList ul li {
|
||||
margin: 0 5px 5px 5px;
|
||||
padding: 5px;
|
||||
font-size: 1.2em;
|
||||
/*width: 120px;*/
|
||||
background-color: #fff;
|
||||
border: 1px solid #cccccc;
|
||||
position: relative;
|
||||
padding: 7px 35px 7px 5px;
|
||||
}
|
||||
ul.ListSorter > li {
|
||||
background-color: #fff;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.sortableList ul li .btn.edit {
|
||||
padding: 2px 4px;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 4px;
|
||||
}
|
||||
.sortableList ul li .btn.edit {
|
||||
padding: 2px 4px;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 4px;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
@@ -71,28 +82,32 @@
|
||||
<asp:UpdatePanel ID="UpContenido" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargarDatos" OnClick="BtnCargarDatos_Click" CssClass="hidden BtnCargarDatos " runat="server"></asp:Button>
|
||||
<asp:Repeater ID="RptrListas" OnItemDataBound="RptrListas_ItemDataBound" runat="server">
|
||||
<ItemTemplate>
|
||||
<div class="sortableList">
|
||||
<h4><%#Eval("Lista") %></h4>
|
||||
<ul class="connectedSortable " data-cvetablerolista='<%#Eval("CveTableroLista") %>'>
|
||||
|
||||
<asp:Repeater ID="RptTareas" runat="server">
|
||||
<ItemTemplate>
|
||||
<li id='<%#Eval("CveEvento","Evento_{0}") %>' data-cveevento='<%#Eval("CveEvento") %>' class="ui-state-default">
|
||||
<%#Eval("Asunto") %> <a href='<%#Eval("CveEvento","/OI/TareaDetalle.aspx?CveEvento={0}") %>' target="_blank" class="btn btn-default edit"><i class="fa fa-pencil"></i></a>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ul>
|
||||
<div class="text-center">
|
||||
<ul class="ListSorter">
|
||||
<asp:Repeater ID="RptrListas" OnItemDataBound="RptrListas_ItemDataBound" runat="server">
|
||||
<ItemTemplate>
|
||||
<li data-cvetablerolista='<%#Eval("CveTableroLista") %>'>
|
||||
<div class="sortableList">
|
||||
<h4><%#Eval("Lista") %></h4>
|
||||
<ul class="connectedSortable " data-cvetablerolista='<%#Eval("CveTableroLista") %>'>
|
||||
|
||||
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:Repeater ID="RptTareas" runat="server">
|
||||
<ItemTemplate>
|
||||
<li id='<%#Eval("CveEvento","Evento_{0}") %>' data-cveevento='<%#Eval("CveEvento") %>' class="ui-state-default">
|
||||
<%#Eval("Asunto") %> <a href='<%#Eval("CveEvento","/OI/TareaDetalle.aspx?CveEvento={0}") %>' target="_blank" class="btn btn-default edit"><i class="fa fa-pencil"></i></a>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ul>
|
||||
<div class="text-center">
|
||||
|
||||
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ul>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<%--<div class="sortableList">
|
||||
@@ -125,7 +140,6 @@
|
||||
<div class="text-center"><a onclick="console.log(x)" class="btn btn-default"><i class="fa fa-plus"></i></a></div>
|
||||
</div>--%>
|
||||
<UserControl:TareaNueva runat="server" id="TareaNueva" />
|
||||
|
||||
<div id="DModalTableroLista" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UPModalTabl" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -159,14 +173,29 @@
|
||||
<asp:TextBox ID="Txtcvetablerolista" CssClass=" hidden Txtcvetablerolista" runat="server"></asp:TextBox><asp:TextBox ID="txtCveEvento" CssClass="txtCveEvento hidden" runat="server"></asp:TextBox>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
|
||||
function ADSReady() {
|
||||
|
||||
var cvetablerolistaold = 0;
|
||||
var cvetablerolistanew = 0;
|
||||
|
||||
$("ul.ListSorter:not(.withsorter)").sortable({
|
||||
connectWith: ".ListSorter",
|
||||
change: function (event, ui) { },
|
||||
start: function (event, ui) { /*cvetablerolistaold = $(event.srcElement).closest('ul').data('cvetablerolista');*/ },
|
||||
stop: function (event, ui) {
|
||||
setTimeout(function () {
|
||||
cvetablerolistanew = $(event.srcElement).data('cvetablerolista');
|
||||
//let cveevento = $(event.srcElement).data('cveevento');
|
||||
//$('.Txtcvetablerolista').val(cvetablerolistanew);
|
||||
//$('.txtCveEvento').val(cveevento);
|
||||
//$('.BtnUpPosition').click();
|
||||
}, 20);
|
||||
}
|
||||
}).disableSelection();
|
||||
$(".sortableList ul:not(.withsorter)").sortable({
|
||||
connectWith: ".connectedSortable",
|
||||
change: function (event, ui) { },
|
||||
@@ -182,6 +211,7 @@
|
||||
}
|
||||
}).disableSelection();
|
||||
$(".sortableList ul").addClass('withsorter');
|
||||
$("ul.ListSorter").addClass('withsorter');
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkcambiarEstatus" OnClick="LnkcambiarEstatus_Click" runat="server"><i class="fa fa-exchange"></i>Cambiar Estatus</asp:LinkButton></li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkAgregarActividad" OnClick="LnkAgregarActividad_Click" runat="server"><i class="fa fa-plus"></i> Agregar Comentario</asp:LinkButton></li>
|
||||
<asp:LinkButton ID="LnkAgregarActividad" OnClick="LnkAgregarActividad_Click" runat="server"><i class="fa fa-plus"></i> Agregar bitácora</asp:LinkButton></li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkAgregarTema" OnClick="LnkAgregarTema_Click" runat="server"><i class="fa fa-plus"></i> Agregar Tema</asp:LinkButton></li>
|
||||
<li>
|
||||
@@ -245,19 +245,20 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlPrioridad" 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:ListItem Text="Baja" Value="1" ></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" ></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" ></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" 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="DdlPrioridad">Prioridad:</asp:Label>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlTema" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveRevision" DataTextField="Revision" Width="100%">
|
||||
@@ -282,10 +283,10 @@
|
||||
<span class="caption-subject bold uppercase">CheckList <span id="Contador"></span></span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="display: none">
|
||||
<div class="portlet-body rowpadding" >
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group form-md-line-input">
|
||||
@@ -296,7 +297,7 @@
|
||||
</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-default" runat="server">Agregar</asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkAgregarchklistitem" OnClick="LnkAgregarchklistitem_Click" ValidationGroup="GrpTareachklist" CssClass="btn btn-primary" runat="server">Agregar</asp:LinkButton>
|
||||
<%--<a class="btn btn-default">Agregar</a>--%>
|
||||
</div>
|
||||
</div>
|
||||
@@ -433,7 +434,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding filediv">
|
||||
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
|
||||
<div class="divArchivo">
|
||||
<asp:HyperLink ID="HypArchivo" runat="server" Target="_blank">
|
||||
<asp:Literal ID="LtlArchivo" runat="server"></asp:Literal><br />
|
||||
@@ -516,7 +517,7 @@
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-bars font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Registro de actividades</span>
|
||||
<span class="caption-subject bold uppercase">Bitácora</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
@@ -680,7 +681,7 @@
|
||||
<asp:Label runat="server" Text="Agregar Comentario" AssociatedControlID="TxtComentario"></asp:Label>
|
||||
</div>
|
||||
|
||||
<asp:TextBox ID="Txtfilecomentario" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="Txtfilecomentario" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="BtnAgregarComentario" OnClick="BtnAgregarComentario_Click" CssClass="btn btn-primary" runat="server">Agregar</asp:LinkButton>
|
||||
@@ -714,11 +715,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Panel>
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtComentarioTerminarpadre" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
||||
<asp:Label runat="server" Text="Agregar Comentario" AssociatedControlID="TxtComentarioTerminarpadre"></asp:Label>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -746,7 +747,7 @@
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlViculos" Visible="true" AutoPostBack="true" OnSelectedIndexChanged="DdlViculos_SelectedIndexChanged" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
||||
<asp:ListItem Value="0" Text="Seleccione" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Value="1" Text="Activo Fijo"></asp:ListItem>
|
||||
<%--<asp:ListItem Value="1" Text="Activo Fijo"></asp:ListItem>--%>
|
||||
<asp:ListItem Value="2" Text="Cliente"></asp:ListItem>
|
||||
<asp:ListItem Value="3" Text="Personal"></asp:ListItem>
|
||||
<asp:ListItem Value="4" Text="Proveedor"></asp:ListItem>
|
||||
@@ -829,12 +830,9 @@
|
||||
</asp:GridView>--%>
|
||||
</asp:Panel>
|
||||
|
||||
<asp:Panel ID="PnlCliente" Visible="false" runat="server">
|
||||
|
||||
<div class="form-group form-md-line-input">
|
||||
<ADS:Dropdownlost ID="DdlCliente" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="NombreComercial" DataValueField="CveCliente" CssClass="form-control"></ADS:Dropdownlost>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlCliente">Cliente:</asp:Label>
|
||||
</div>
|
||||
<asp:Panel ID="PnlCliente" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
||||
<ADS:Dropdownlost ID="DdlCliente" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="NombreComercial" DataValueField="CveCliente" CssClass="form-control"></ADS:Dropdownlost>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlCliente">Cliente:</asp:Label>
|
||||
<%-- <asp:GridView ID="GvClientes" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Clientes registrados"
|
||||
ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD " data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" GridLines="None">
|
||||
<Columns>
|
||||
@@ -889,24 +887,19 @@
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>--%>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="PnlPersonal" Visible="false" runat="server">
|
||||
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:Panel ID="PnlPersonal" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
||||
|
||||
<asp:DropDownList ID="DdlPersonal" runat="server" AppendDataBoundItems="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control input-sm input-medium select2me" Width="100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlPersonal">Personal:</asp:Label>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="PnlProveedor" Visible="false" runat="server">
|
||||
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:Panel ID="PnlProveedor" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
||||
<ADS:Dropdownlost ID="DdlProveedores" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="RazonSocial" DataValueField="CveProveedor" CssClass="form-control"></ADS:Dropdownlost>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlProveedores">Proveedores:</asp:Label>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LnkUpRelacion" OnClick="LnkUpRelacion_Click" runat="server">Actualizar</asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkUpRelacion" OnClick="LnkUpRelacion_Click" CssClass="btn btn-primary " runat="server">Actualizar</asp:LinkButton>
|
||||
<%--<asp:LinkButton ID="LinkButton1" OnClick="BtnCambiarEstatus_Click" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Guardar</asp:LinkButton>--%>
|
||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||
</div>
|
||||
@@ -926,7 +919,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<asp:TextBox ID="txtActualizarArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="txtActualizarArchivo" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="BtnActualizarArchivo" OnClick="BtnActualizarArchivo_Click" CssClass="btn btn-primary" runat="server">Agregar</asp:LinkButton>
|
||||
@@ -1154,6 +1147,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
function nofocus() {
|
||||
let strid = '#<%= txtFechaI.ClientID %>:not(.notfocus)';
|
||||
let input = $(strid);
|
||||
input.focus(function () {
|
||||
$(this).trigger('blur');
|
||||
});
|
||||
input.addClass('notfocus');
|
||||
strid = '#<%= txtFechaF.ClientID %>:not(.notfocus)';
|
||||
input = $(strid);
|
||||
input.focus(function () {
|
||||
$(this).trigger('blur');
|
||||
});
|
||||
input.addClass('notfocus');
|
||||
}
|
||||
|
||||
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
||||
prm.add_endRequest(function (s, e) { loaderinit = loaderinited; });
|
||||
@@ -1162,6 +1169,7 @@
|
||||
setchecklistitulo();
|
||||
barraavance();
|
||||
loadTxtAsunto();
|
||||
nofocus();
|
||||
//$('.GVcheklist input[type="checkbox"]:checked').addClass('icheck setclass');
|
||||
});
|
||||
$(document).ready(function () {
|
||||
@@ -1172,6 +1180,7 @@
|
||||
setchecklistitulo();
|
||||
barraavance();
|
||||
loadTxtAsunto();
|
||||
nofocus();
|
||||
//$('.GVUsuarios input[type="checkbox"]:not(.setclass)').addClass('icheck setclass');
|
||||
});
|
||||
</script>
|
||||
|
||||
File diff suppressed because one or more lines are too long
173
OI/UnoaUno.aspx
173
OI/UnoaUno.aspx
@@ -20,9 +20,24 @@
|
||||
}
|
||||
|
||||
.lnkUsergray {
|
||||
color:#999b9b;
|
||||
color: #999b9b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.unoaunoold {
|
||||
color: #999b9b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.tituloFecha {
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.msgAyuda {
|
||||
color: cadetblue;
|
||||
font-size: 10px;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
@@ -66,14 +81,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="padding-left:25px;">
|
||||
<div class="portlet-body rowpadding" style="padding-left: 25px;">
|
||||
<div class="scroller" style="max-height: 200px;" data-always-visible="1" data-rail-visible="0">
|
||||
<asp:GridView ID="GVSiguiendoA" runat="server" GridLines="None" CssClass="Widthall" AutoGenerateColumns="False" ShowHeader="false" DataKeyNames="CveUsuario,Nombre">
|
||||
<asp:GridView ID="GVSiguiendoA" runat="server" GridLines="None" CssClass="Widthall" AutoGenerateColumns="False" ShowHeader="false" DataKeyNames="CveUsuario,Nombre,Fecha">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre" ItemStyle-Width="18">
|
||||
<ItemTemplate>
|
||||
<i class="fa fa-user" style="color: #659be0;" aria-hidden="true"></i>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton OnClick="SiguiendoAUser_Click" CssClass="lnkUserBlack" runat="server" Text='<%# Eval("Nombre")%>'> </asp:LinkButton><br />
|
||||
<asp:Label CssClass="lnkUsergray" runat="server" Text='<%# Eval("Fecha","ultima Actualización: {0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
<asp:Label CssClass="lnkUsergray" runat="server" Text='<%# Eval("Fecha","Última actualización: {0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
@@ -96,12 +116,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="padding-left:25px;">
|
||||
<asp:GridView ID="GVSeguidoPor" runat="server" GridLines="None" CssClass="" AutoGenerateColumns="False" ShowHeader="false">
|
||||
<div class="portlet-body rowpadding" style="padding-left: 25px;">
|
||||
<asp:GridView ID="GVSeguidoPor" runat="server" GridLines="None" CssClass="" AutoGenerateColumns="False" ShowHeader="false" DataKeyNames="CveUsuarioSeguidor,NombreSeguidor">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre" ItemStyle-Width="18">
|
||||
<ItemTemplate>
|
||||
<i class="fa fa-user" style="color: #659be0;" aria-hidden="true"></i>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" CssClass="lnkUserBlack" Text='<%# Eval("NombreSeguidor")%>'> </asp:Label>
|
||||
<asp:LinkButton OnClick="SeguidoX_Click" runat="server" CssClass="lnkUserBlack" Text='<%# Eval("NombreSeguidor")%>'> </asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
@@ -156,9 +181,13 @@
|
||||
<asp:TemplateField HeaderText="Comentarios">
|
||||
<ItemTemplate>
|
||||
<h4>
|
||||
<asp:Label ID="lblPregunta" CssClass="bold" runat="server" Text='<%# Eval("Pregunta")%>'> </asp:Label></h4>
|
||||
<asp:Label CssClass="bold" runat="server" Text='<%# Eval("Pregunta")%>'> </asp:Label></h4>
|
||||
<asp:Label CssClass="unoaunoold" runat="server" Text='<%# Eval("RespuestaOld")%>'> </asp:Label>
|
||||
<br />
|
||||
<asp:TextBox ID="TxtComentarios" CssClass="form-control" Text='<%# Eval("Respuesta")%>' TextMode="MultiLine" Rows="3" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtComentarios" runat="server" ControlToValidate="TxtComentarios" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarUnoAUno"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoTxtCFecha" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtComentarios" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
@@ -166,7 +195,7 @@
|
||||
<br />
|
||||
<br />
|
||||
<div class="text-center">
|
||||
<asp:LinkButton runat="server" ID="LnkGuardar" OnClick="LnkGuardar_Click" CssClass="btn btn-primary"> Guardar</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="LnkGuardar" OnClick="LnkGuardar_Click" ValidationGroup="GrpGuardarUnoAUno" CssClass="btn btn-primary"> Guardar</asp:LinkButton>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
@@ -188,7 +217,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<ajax:TabContainer ID="TabContainerSeguir" ClientIDMode="static" CssClass="tab-wizard" runat="server" Width="100%" AutoPostBack="true" OnActiveTabChanged="TabContainerSeguir_ActiveTabChanged">
|
||||
<ajax:TabContainer ID="TabContainerSeguir" ClientIDMode="static" CssClass="tab-wizard" runat="server" Width="100%" OnActiveTabChanged="TabContainerSeguir_ActiveTabChanged">
|
||||
<ajax:TabPanel ID="TabPreguntas" runat="server" HeaderText="Preguntas">
|
||||
<ContentTemplate>
|
||||
|
||||
@@ -209,23 +238,20 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 ">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtPregunta" CssClass="form-control TxtPregunta" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtPregunta">Pregunta:</asp:Label>
|
||||
<asp:RequiredFieldValidator ID="RfvPregunta" runat="server" ControlToValidate="TxtPregunta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Pregunta''</b> es necesario, por favor ingréselo." ValidationGroup="VGMPreguntas"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoPregunta" runat="server" HighlightCssClass="vco" TargetControlID="RfvPregunta"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 ">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlPregunta" CssClass="form-control input-sm select2me " runat="server" DataTextField="Pregunta" DataValueField="CveUnoaUnoPregunta" Style="width: 100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlPregunta">Vinculo:</asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtPregunta" CssClass="form-control TxtPregunta" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtPregunta">Pregunta:</asp:Label>
|
||||
<asp:RequiredFieldValidator ID="RfvPregunta" runat="server" ControlToValidate="TxtPregunta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Pregunta''</b> es necesario, por favor ingréselo." ValidationGroup="VGMPreguntas"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoPregunta" runat="server" HighlightCssClass="vco" TargetControlID="RfvPregunta"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<div class="msgAyuda">Si las preguntas que vas a hacer no se encuentran en el listado, agrégalas.</div>
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlPregunta" CssClass="form-control input-sm select2me " runat="server" DataTextField="Pregunta" DataValueField="CveUnoaUnoPregunta" Style="width: 100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlPregunta">Vinculo:</asp:Label>
|
||||
</div>
|
||||
<div class="msgAyuda">Le recordará al usuario la respuesta del día anterior a la pegunta seleccionada (Ej. Si nuestro día actual es Viernes, recordará lo que se respondió en su pregunta el día jueves)</div>
|
||||
<br />
|
||||
<div class="text-center">
|
||||
<asp:LinkButton ID="LnkGuardarPregunta" OnClick="LnkGuardarPregunta_Click" ValidationGroup="VGMPreguntas" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkCancelarPregunta" OnClick="LnkCancelarPregunta_Click" Visible="false" CssClass="btn btn-danger" runat="server">Cancelar</asp:LinkButton>
|
||||
</div>
|
||||
@@ -265,6 +291,7 @@
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-list font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Cuestionario</span>
|
||||
<div class="msgAyuda" style="white-space: nowrap;">Selecciona un cuestionario existente, o bien, genera uno nuevo</div>
|
||||
</div>
|
||||
<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""></a></div>
|
||||
<div class="actions">
|
||||
@@ -274,6 +301,8 @@
|
||||
<div class="portlet-body rowpadding">
|
||||
<asp:DropDownList ID="DdlCuestionario" CssClass="form-control input-sm select2me " runat="server" DataTextField="Cuestionario" DataValueField="CveUnoaUnoCuestionario" Style="width: 100%" OnSelectedIndexChanged="DdlCuestionario_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
|
||||
<%--<asp:DropDownList ID="DdlCuestionario" CssClass="form-control select2me" runat="server"></asp:DropDownList>--%>
|
||||
<br />
|
||||
<br />
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtCuestionario" CssClass="form-control TxtCuestionario" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtCuestionario">Cuestionario:</asp:Label>
|
||||
@@ -412,32 +441,61 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id='<%= idDivModalSiguiendoA %>' class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UpModalSiguiendoA" 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">Siguiendo A:
|
||||
<h4 class="modal-title" style="text-align: left">
|
||||
<asp:Literal ID="LtlTitulosiguiendoA" runat="server"></asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="" style="max-height: 200px;" data-always-visible="1" data-rail-visible="0">
|
||||
<asp:GridView ID="gvPregResSiguiendoA" runat="server" GridLines="None" CssClass="Widthall" AutoGenerateColumns="False" ShowHeader="false">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton OnClick="SiguiendoAUser_Click" CssClass="lnkUserBlack" runat="server" Text='<%# Eval("Pregunta")%>'> </asp:LinkButton><br />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 text-left">
|
||||
<asp:LinkButton ID="lnkAtras" OnClick="lnkAtras_Click" CssClass="btn btn-default" runat="server">< Anterior</asp:LinkButton>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4 text-center" style="padding-top: 5px;">
|
||||
|
||||
<%--<asp:Label ID="LblFechaSeguir" CssClass=" tituloFecha" runat="server" Text="Fecha"></asp:Label>--%>
|
||||
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 109px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaSeguir" runat="server" CssClass="form-control" Width="80" CausesValidation="true" MaxLength="10" Height="24px"></asp:TextBox>
|
||||
<asp:LinkButton ID="LnkFechaSeguir" OnClick="LnkFechaSeguir_Click" class="btn default " Text="<i class='fa fa-refresh'></i>" Height="24px" runat="server" ValidationGroup="grpseguira"></asp:LinkButton>
|
||||
<span class="input-group-btn ">
|
||||
<%--<asp:LinkButton ID="LnkFechaSeguirCalendar" class="btn default " Text="<i class='fa fa-calendar'></i>" Height="24px" runat="server"></asp:LinkButton>--%>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEETxtFechaSeguir" runat="server" TargetControlID="TxtFechaSeguir" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaSeguir" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtFechaSeguir" runat="server" ControlToValidate="TxtFechaSeguir" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaI''</b> es necesario, por favor ingréselo." ValidationGroup="grpseguira"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CvTxtFechaSeguir" runat="server" ControlToValidate="TxtFechaSeguir" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaI''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="grpseguira"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoTxtFechaSegui1" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtFechaSeguir" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoTxtFechaSegui2" runat="server" HighlightCssClass="vco" TargetControlID="CvTxtFechaSeguir" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 text-right">
|
||||
<asp:LinkButton ID="LnkAdelante" OnClick="LnkAdelante_Click" CssClass="btn btn-default" runat="server">Siguiente ></asp:LinkButton>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="" data-always-visible="1" data-rail-visible="0">
|
||||
<asp:GridView ID="gvPregResSiguiendoA" runat="server" GridLines="None" CssClass="Widthall" AutoGenerateColumns="False" ShowHeader="false">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
<ItemTemplate>
|
||||
<div style="padding-bottom: 15px;">
|
||||
<asp:Label CssClass="lnkUserBlack" runat="server" Text='<%# Eval("Pregunta")%>'> </asp:Label><br />
|
||||
<asp:Label CssClass="lnkUsergray" runat="server" Text='<%# Eval("Respuesta")%>'> </asp:Label>
|
||||
<%--<asp:Label CssClass="lnkUsergray" runat="server" Text='<%# Eval("Fecha","ultima Actualización: {0:dd/MM/yyyy}")%>'> </asp:Label>--%>
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button data-dismiss="modal" class="btn btn-danger">Cerrar</button>
|
||||
@@ -446,6 +504,39 @@
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<%-- <div id='<%= idDivModalSiguiendoX %>' class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UpModalSiguiendox" 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">Seguido por:
|
||||
<asp:Literal ID="LtlTituloSeguidox" runat="server"></asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="" data-always-visible="1" data-rail-visible="0">
|
||||
<asp:GridView ID="gvSeguidoPorpreguntas" runat="server" GridLines="None" CssClass="Widthall" AutoGenerateColumns="False" ShowHeader="false">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
<ItemTemplate>
|
||||
<div style="padding-bottom: 15px;">
|
||||
<asp:Label CssClass="lnkUserBlack" runat="server" Text='<%# Eval("Pregunta")%>'> </asp:Label><br />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button data-dismiss="modal" class="btn btn-danger">Cerrar</button>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>--%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -12,6 +12,7 @@ public partial class OI_UnoaUno : ClsPaginas
|
||||
#region Propiedades
|
||||
public const string idDivModalSeguir = "idDivModalSeguir";
|
||||
public const string idDivModalSiguiendoA = "idDivModalSiguiendoA";
|
||||
//public const string idDivModalSiguiendoX = "idDivModalSiguiendoX";
|
||||
private int CcveUnoaUnoPregunta
|
||||
{
|
||||
get { return (ViewState["CcveUnoaUnoPregunta"] == null) ? 0 : Convert.ToInt32(ViewState["CcveUnoaUnoPregunta"]); }
|
||||
@@ -73,7 +74,7 @@ public partial class OI_UnoaUno : ClsPaginas
|
||||
ObjPA_O.Dispose();
|
||||
}
|
||||
GVPA_OI_UnoAUnoTableroGet.DataBind();
|
||||
if (GVPA_OI_UnoAUnoTableroGet.Rows.Count > 0)
|
||||
if (GVPA_OI_UnoAUnoTableroGet.Rows.Count > 0 && TxtCFecha.Text.ToDate().ToString("yyyy/MM/dd") == DateTime.Now.ToString("yyyy/MM/dd"))
|
||||
{
|
||||
LnkGuardar.Visible = true;
|
||||
}
|
||||
@@ -556,21 +557,111 @@ public partial class OI_UnoaUno : ClsPaginas
|
||||
UpSeguirA.Update();
|
||||
}
|
||||
|
||||
|
||||
private int SeguirCveUsuario
|
||||
{
|
||||
get { return (ViewState["SeguirCveUsuario"] == null) ? 0 : Convert.ToInt32(ViewState["SeguirCveUsuario"]); }
|
||||
set { ViewState["SeguirCveUsuario"] = value; }
|
||||
}
|
||||
private int SeguidoPorCve
|
||||
{
|
||||
get { return (ViewState["SeguidoPorCve"] == null) ? 0 : Convert.ToInt32(ViewState["SeguidoPorCve"]); }
|
||||
set { ViewState["SeguidoPorCve"] = value; }
|
||||
}
|
||||
private string SeguirFechaback
|
||||
{
|
||||
get { return (ViewState["SeguirFechaback"] == null) ? "" : ViewState["SeguirFechaback"].ToString(); }
|
||||
set { ViewState["SeguirFechaback"] = value; }
|
||||
}
|
||||
private string SeguirFechanext
|
||||
{
|
||||
get { return (ViewState["SeguirFechanext"] == null) ? "" : ViewState["SeguirFechanext"].ToString(); }
|
||||
set { ViewState["SeguirFechanext"] = value; }
|
||||
}
|
||||
protected void SiguiendoAUser_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToEntero();
|
||||
SeguirCveUsuario = gvRow.DataKey("CveUsuario").ToEntero();
|
||||
SeguidoPorCve = UsuarioActual.CveUsuario;
|
||||
string Nombre = gvRow.DataKey("Nombre");
|
||||
LtlTitulosiguiendoA.Text = Nombre;
|
||||
string strFecha = gvRow.DataKey("Fecha");
|
||||
LtlTitulosiguiendoA.Text = string.Format("Siguiendo A: {0}", Nombre);
|
||||
DateTime Fecha;
|
||||
if (strFecha.Length > 0)
|
||||
{
|
||||
Fecha = strFecha.ToDateTime();
|
||||
strFecha = Fecha.ToString("yyyy/MM/dd");
|
||||
}
|
||||
cargarseguira(strFecha);
|
||||
}
|
||||
private void cargarseguira(string strFecha)
|
||||
{
|
||||
SeguirFechaback = "";
|
||||
SeguirFechanext = "";
|
||||
string fecha = "Sin respuestas capturadas";
|
||||
gvPregResSiguiendoA.DataSource = null;
|
||||
using (ClsOIEventos ObjUnoa = new ClsOIEventos())
|
||||
{
|
||||
ObjUnoa.GetUnoAUnoSiguiendoA(UsuarioActual.CveUsuario, CveUsuario, UsuarioActual.CveEmpresa);
|
||||
if( ObjUnoa.GetUnoAUnoSiguiendoA(SeguidoPorCve, SeguirCveUsuario, UsuarioActual.CveEmpresa, strFecha) && ObjUnoa.DtResultados.Rows.Count >0)
|
||||
{
|
||||
SeguirFechaback = ObjUnoa.DtResultados.MAX("FechaBack").Length > 0 ? ObjUnoa.DtResultados.MAX("FechaBack").ToDateTime().ToString("yyyy/MM/dd") : "";
|
||||
SeguirFechanext = ObjUnoa.DtResultados.MAX("FechaNext").Length > 0 ? ObjUnoa.DtResultados.MAX("FechaNext").ToDateTime().ToString("yyyy/MM/dd") : "";
|
||||
fecha = (ObjUnoa.DtResultados.MAX("Fecha").Length >0 ? ObjUnoa.DtResultados.MAX("Fecha").ToDateTime().ToString("dd/MM/yyyy") : fecha);
|
||||
}
|
||||
gvPregResSiguiendoA.DataSource = ObjUnoa.DtResultados;
|
||||
}
|
||||
gvPregResSiguiendoA.DataBind();
|
||||
RegistraScript(string.Format("$('#{0}').modal();", idDivModalSiguiendoA));
|
||||
|
||||
lnkAtras.Visible = (SeguirFechaback.Length > 0);
|
||||
LnkAdelante.Visible = (SeguirFechanext.Length > 0);
|
||||
TxtFechaSeguir.Text = fecha;
|
||||
UpModalSiguiendoA.Update();
|
||||
|
||||
}
|
||||
protected void lnkAtras_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
cargarseguira(SeguirFechaback);
|
||||
}
|
||||
|
||||
protected void LnkAdelante_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
cargarseguira(SeguirFechanext);
|
||||
}
|
||||
|
||||
protected void SeguidoX_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
SeguirCveUsuario = UsuarioActual.CveUsuario;
|
||||
SeguidoPorCve = gvRow.DataKey("CveUsuarioSeguidor").ToEntero();
|
||||
string Nombre = gvRow.DataKey("NombreSeguidor");
|
||||
LtlTitulosiguiendoA.Text = string.Format("Seguido por: {0}", Nombre);
|
||||
cargarseguira("");
|
||||
//string strFecha = "";
|
||||
|
||||
//LtlTituloSeguidox.Text = Nombre;
|
||||
//gvSeguidoPorpreguntas.DataSource = null;
|
||||
//using (ClsOIEventos ObjUnoa = new ClsOIEventos())
|
||||
//{
|
||||
// if (ObjUnoa.GetUnoAUnoSiguiendoA(SeguirCveUsuario, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, strFecha) && ObjUnoa.DtResultados.Rows.Count > 0)
|
||||
// {
|
||||
// }
|
||||
// gvSeguidoPorpreguntas.DataSource = ObjUnoa.DtResultados;
|
||||
//}
|
||||
//gvSeguidoPorpreguntas.DataBind();
|
||||
//RegistraScript(string.Format("$('#{0}').modal();", idDivModalSiguiendoX));
|
||||
|
||||
//UpModalSiguiendox.Update();
|
||||
}
|
||||
|
||||
|
||||
protected void LnkFechaSeguir_Click(object sender, EventArgs e)
|
||||
{
|
||||
string fechaold = TxtFechaSeguir.Text;
|
||||
string strFecha =TxtFechaSeguir.Text.ToDateTime().ToString("yyyy/MM/dd");
|
||||
|
||||
cargarseguira(strFecha);
|
||||
TxtFechaSeguir.Text = fechaold;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user