usercontrol Tareas
This commit is contained in:
@@ -4,9 +4,16 @@
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
.GVVinculo a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
tr[hide="1"] {
|
||||
display: none;
|
||||
background-color:rgb(4,71,103)
|
||||
background-color: rgb(4,71,103)
|
||||
}
|
||||
|
||||
.portlet {
|
||||
@@ -174,12 +181,12 @@
|
||||
</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" CausesValidation="true"></asp:TextBox>
|
||||
<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" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||
<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>
|
||||
@@ -211,10 +218,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<asp:Literal ID="LtlVinculo" runat="server"></asp:Literal><asp:Literal ID="LtlVinculoLink" runat="server"></asp:Literal>
|
||||
|
||||
<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="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtFechaI" 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="txtFechaI" 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>--%>
|
||||
@@ -269,20 +278,21 @@
|
||||
<span class="caption-subject bold uppercase">CheckList <span id="Contador"></span></span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="portlet-body rowpadding" 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" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="Rfvactividadchklist" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtActividad" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''actividad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTareachklist"></asp:RequiredFieldValidator>
|
||||
<asp:Label runat="server" Text="Actividad" AssociatedControlID="TxtActividad"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<asp:Button ID="LnkSinfuncion" OnClick="LnkSinfuncion_Click" UseSubmitBehavior="false" CssClass="btn btn-default LnkSinfuncion hidden" runat="server"></asp:Button>
|
||||
<asp:LinkButton ID="LnkAgregarchklistitem" OnClick="LnkAgregarchklistitem_Click" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkAgregarchklistitem" OnClick="LnkAgregarchklistitem_Click" ValidationGroup="GrpTareachklist" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
||||
<%--<a class="btn btn-default">Agregar</a>--%>
|
||||
</div>
|
||||
</div>
|
||||
@@ -339,10 +349,14 @@
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DdlEventoEstatus" Visible="true" runat="server" DataValueField="CveEventoEstatus" CssClass="form-control select2me input-sm" Width="100%" DataTextField="EventoEstatus">
|
||||
</asp:DropDownList>
|
||||
<div style="display: none">
|
||||
<asp:DropDownList ID="DdlEventoEstatus" Visible="true" runat="server" DataValueField="CveEventoEstatus" Style="display: none" CssClass="form-control select2me input-sm" Width="100%" DataTextField="EventoEstatus">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
<asp:Label runat="server" AssociatedControlID="DdlEventoEstatus">Estatus:</asp:Label>
|
||||
</div>
|
||||
<asp:Label ID="lblEstatus" Style="font-size: 25px" runat="server" Text="Label"></asp:Label>
|
||||
<div class="DivAvance">
|
||||
<asp:Label runat="server" CssClass="labelitem" AssociatedControlID="TxtAvance">Avance:</asp:Label>
|
||||
<asp:TextBox ID="TxtAvance" runat="server" CssClass="form-control TxtAvance" CausesValidation="true"></asp:TextBox>
|
||||
@@ -363,6 +377,39 @@
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
|
||||
<asp:Panel runat="server" ID="portletvinculos" Visible="false" class="portlet light smmallpadding bordered" Style="margin-bottom: 15px;">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Vinculos</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<asp:UpdatePanel ID="UpVinculos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GVVinculo" runat="server" AutoGenerateColumns="false"
|
||||
CssClass="table-hover Widthall GVVinculo" GridLines="None" ShowHeader="false">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate></HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal runat="server" Text='<%# Eval("Vinculo") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
<asp:Panel runat="server" ID="portletArchivo" class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
@@ -427,8 +474,8 @@
|
||||
<HeaderTemplate>
|
||||
C. C. Para
|
||||
<br />
|
||||
<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="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>
|
||||
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="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="ChkCCP" CssClass="ChkOk" Checked="false" runat="server" />
|
||||
@@ -468,53 +515,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="display: none;">
|
||||
|
||||
<%--<table class="Widthall table ">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>comentario con archivo</td>
|
||||
<td><a><i class="fa fa-download"></i></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>comentario</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se termino la activada y del checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se termino la activada x del checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se agrego la activada p al checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se agrego la activada w al checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se agrego la activada z al checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se agrego la activada y al checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se agrego la activada x al checklist</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>19/04/2020 </td>
|
||||
<td>Se registro la tarea oi</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>--%>
|
||||
|
||||
<asp:UpdatePanel ID="UpActividades" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-advance table-hover Widthall ScrollAD GvActividades"
|
||||
@@ -562,13 +562,13 @@
|
||||
<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="form-group form-md-line-input" style="display:none">
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group form-md-line-input" style="display: none">
|
||||
<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" style="display:none">
|
||||
<div class="form-group form-md-line-input" style="display: none">
|
||||
<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>
|
||||
@@ -601,8 +601,8 @@
|
||||
<HeaderTemplate>
|
||||
C. C. Para
|
||||
<br />
|
||||
<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="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 fa-square-o"></i></a>
|
||||
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="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 fa-square-o"></i></a>--%>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkCCP" CssClass="ChkOk" Checked="false" runat="server" />
|
||||
@@ -693,11 +693,26 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList ID="DDlEstatus" Visible="true" runat="server" DataValueField="CveEventoEstatus" CssClass="form-control select2me input-sm" Width="100%" DataTextField="EventoEstatus">
|
||||
<asp:DropDownList ID="DDlEstatus" Visible="true" AutoPostBack="true" OnSelectedIndexChanged="DDlEstatus_SelectedIndexChanged" runat="server" DataValueField="CveEventoEstatus" CssClass="form-control select2me input-sm" Width="100%" DataTextField="EventoEstatus">
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlEventoEstatus">Estatus:</asp:Label>
|
||||
</div>
|
||||
<asp:Panel ID="pnlTerminarPadre" runat="server">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">Terminar Padre</div>
|
||||
<div class="col-sm-6">
|
||||
<asp:CheckBox ID="chkTerminarPadre" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="BtnCambiarEstatus" OnClick="BtnCambiarEstatus_Click" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Guardar</asp:LinkButton>
|
||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||
@@ -728,7 +743,7 @@
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%--<script>
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
|
||||
@@ -739,6 +754,7 @@
|
||||
});
|
||||
|
||||
</script>--%>
|
||||
<asp:TextBox ID="TxtIsnewtarea" CssClass=" hidden TxtIsnewtarea " runat="server"></asp:TextBox>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
@@ -817,6 +833,23 @@
|
||||
|
||||
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||
}
|
||||
//TxtAsunto TxtDescripcion TxtIsnewtarea
|
||||
|
||||
function loadTxtAsunto() {
|
||||
if ($('input.TxtIsnewtarea').val() == "1") {
|
||||
let input = $('input.TxtAsunto:not(.CEvent)')
|
||||
let TxtAsunto_Onchange = function () { let valor = $('input.TxtAsunto').val(); /*console.log(valor);*/ $('.TxtDescripcion').val(valor); }
|
||||
input.bind({
|
||||
copy: TxtAsunto_Onchange
|
||||
, paste: TxtAsunto_Onchange
|
||||
, cut: TxtAsunto_Onchange
|
||||
, keydown: function (event) { if (event.which == 13) { event.preventDefault(); } TxtAsunto_Onchange(); }
|
||||
, keyup: function (event) { if (event.which == 13) { event.preventDefault(); } TxtAsunto_Onchange(); }
|
||||
});
|
||||
input.addClass('CEvent');
|
||||
}
|
||||
}
|
||||
|
||||
function loadeventos() {
|
||||
let input = $('input.TxtUsuario:not(.ConEvento)')
|
||||
|
||||
@@ -936,6 +969,7 @@
|
||||
CargaPickers();
|
||||
setchecklistitulo();
|
||||
barraavance();
|
||||
loadTxtAsunto();
|
||||
//$('.GVcheklist input[type="checkbox"]:checked').addClass('icheck setclass');
|
||||
});
|
||||
$(document).ready(function () {
|
||||
@@ -945,6 +979,7 @@
|
||||
CargaPickers();
|
||||
setchecklistitulo();
|
||||
barraavance();
|
||||
loadTxtAsunto();
|
||||
//$('.GVUsuarios input[type="checkbox"]:not(.setclass)').addClass('icheck setclass');
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user