This commit is contained in:
@@ -139,13 +139,20 @@
|
||||
</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">Terminar y 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">
|
||||
@@ -696,6 +703,37 @@
|
||||
</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">
|
||||
@@ -925,14 +963,69 @@
|
||||
// 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>
|
||||
|
||||
@@ -98,6 +98,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
LnkEnviarMinuta.Visible = false;
|
||||
TxtAsunto.Enabled = false;
|
||||
TxtDescripcion.Enabled = false;
|
||||
TxtCorreoExterno.Enabled = false;
|
||||
tareanueva.CveEventoPadre = RCveEvento;
|
||||
//LnkUpFileVisible = true;
|
||||
//LnkUpUsuariosVisible = true;
|
||||
@@ -125,7 +126,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
CveUsuarioDe = drow["CveUsuarioDe"].ToString().ToEntero();
|
||||
CveUsuarioPara = drow["CveUsuarioPara"].ToString().ToEntero();
|
||||
int CveEventoEstatus = drow["CveEventoEstatus"].ToString().ToEntero();
|
||||
if (CveEventoEstatus ==4)
|
||||
if (CveEventoEstatus == 4)
|
||||
{
|
||||
LnkEnviarMinuta.Visible = true;
|
||||
LnkSaveAcuerdos.Visible = false;
|
||||
@@ -513,12 +514,12 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
if (cveUsuarioDe <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'C C Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
|
||||
}
|
||||
|
||||
if (cveUsuarioPara <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"Para\"";
|
||||
|
||||
}
|
||||
if (errorMessage.Length == 0)
|
||||
@@ -637,12 +638,12 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
if (cveUsuarioDe <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'C C Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
|
||||
}
|
||||
|
||||
if (cveUsuarioPara <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"Para\"";
|
||||
|
||||
}
|
||||
if (errorMessage.Length == 0)
|
||||
@@ -1164,7 +1165,8 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
protected void LnkSaveAcuerdos_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (ClsOIEventos ObjEventos =new ClsOIEventos()) {
|
||||
using (ClsOIEventos ObjEventos = new ClsOIEventos())
|
||||
{
|
||||
ObjEventos.UpdateEventoMinuta(TxtAsunto.Text, TxtDescripcion.Text, TxtAcuerdos.Text.Replace("< ", "<"), new DateTime(1999, 1, 1), "-1", RCveEvento);
|
||||
}
|
||||
}
|
||||
@@ -1173,4 +1175,95 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
{
|
||||
cargarAgenda();
|
||||
}
|
||||
|
||||
protected void BtnTerminarYAgendar_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
string errorMessage = "";
|
||||
|
||||
|
||||
int cveUsuarioDe = UsuarioActual.CveUsuario;
|
||||
List<int> listaCCP = new List<int>();
|
||||
//int cveUsuarioPara = CveUsuarioPara;
|
||||
|
||||
OITipoEventos cveTipoEvento = OITipoEventos.Agenda;
|
||||
string asunto = TxtAgendaAsunto.Text;
|
||||
string descripcion = string.Format("siguiente reunión Minuta \"{0}\"", TxtAsunto.Text);
|
||||
int prioridad = 1;
|
||||
int cveAgendaTipo = 4;
|
||||
string fechaInicio = "";
|
||||
string fechaFin = "1900/01/01 00:00";
|
||||
if (txtFechaI.Text.ToDateTimeExcat().Year <= 1999)
|
||||
{
|
||||
if (txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||
{
|
||||
errorMessage = "No se ingresó una fecha de inicio valida";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
fechaInicio = txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").ToString("yyyy/MM/dd HH:mm");
|
||||
fechaFin = txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").AddHours(2).ToString("yyyy/MM/dd HH:mm");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fechaInicio = txtFechaI.Text.ToDateTimeExcat().ToString("yyyy/MM/dd HH:mm");
|
||||
fechaFin = txtFechaI.Text.ToDateTimeExcat().AddHours(2).ToString("yyyy/MM/dd HH:mm");
|
||||
}
|
||||
int cveRevision = -1;
|
||||
string archivoname = "";
|
||||
|
||||
|
||||
|
||||
int cveUsuarioIng = UsuarioActual.CveUsuario;
|
||||
int cveEmpresa = UsuarioActual.CveEmpresa;
|
||||
bool Continuar = true;
|
||||
int Folio = -1;
|
||||
int CveEvento = -1;
|
||||
|
||||
if (errorMessage.Length == 0)
|
||||
{
|
||||
|
||||
List<string> chkList = new List<string>();
|
||||
using (ClsOIEventos objOI = new ClsOIEventos())
|
||||
{
|
||||
objOI.IniciaTransacSQL();
|
||||
foreach (var cveUsuarioPara in LCveUsuarioCCP)
|
||||
{
|
||||
if (Continuar)
|
||||
{
|
||||
Continuar = objOI.AddOI_Eventos2(cveTipoEvento, asunto, descripcion, prioridad, cveUsuarioDe, cveUsuarioPara, fechaInicio, fechaFin, cveRevision, archivoname, listaCCP, chkList, cveUsuarioIng, cveEmpresa, RCveEvento, null, cveAgendaTipo);
|
||||
CveEvento = objOI.CveEvento;
|
||||
Folio = objOI.Folio;
|
||||
if (CveEvento == 0)
|
||||
{
|
||||
Continuar = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
objOI.Commit();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
objOI.RollBack();
|
||||
Continuar = false;
|
||||
}
|
||||
}
|
||||
if (Continuar && CveEvento > 0)
|
||||
{
|
||||
|
||||
LnkTerminarMinuta_Click(null, null);
|
||||
//this.Alert("Se ha agregadó la nueva agenda", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -158,6 +158,8 @@
|
||||
<asp:LinkButton ID="LnkUpUsuarios" OnClick="LnkUpUsuarios_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Actualizar Miembros</asp:LinkButton></li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkReasignar" OnClick="LnkReasignar_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Reasignar</asp:LinkButton></li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkUpVinculo" OnClick="LnkUpVinculo_Click" Visible="false" runat="server"><i class="fa fa-pencil"></i> Agregar Vinculo</asp:LinkButton></li>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
@@ -348,7 +350,7 @@
|
||||
<asp:UpdatePanel ID="UpEstatus" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="form-group form-md-line-input">
|
||||
<div class="form-group form-md-line-input" style="display: none;">
|
||||
<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>
|
||||
@@ -697,11 +699,11 @@
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlEventoEstatus">Estatus:</asp:Label>
|
||||
</div>
|
||||
<asp:Panel ID="pnlTerminarPadre" runat="server">
|
||||
<asp:Panel ID="pnlTerminarPadre" Visible="false" runat="server">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">Terminar Padre</div>
|
||||
<div class="col-sm-6">
|
||||
<asp:CheckBox ID="chkTerminarPadre" runat="server" />
|
||||
<asp:CheckBox ID="chkTerminarPadre" Text=" " CssClass="chksino " runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -723,6 +725,176 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id='<%= idUpVinculo %>' class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UpVinculoModal" 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="Literal4" runat="server">Cambiar Estatus</asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<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="2" Text="Cliente"></asp:ListItem>
|
||||
<asp:ListItem Value="3" Text="Personal"></asp:ListItem>
|
||||
<asp:ListItem Value="4" Text="Proveedor"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlViculos">Relacionar Con:</asp:Label>
|
||||
</div>
|
||||
<asp:Panel ID="PnlActivoFijo" Visible="false" runat="server">
|
||||
|
||||
<asp:GridView ID="GvAF" runat="server" AutoGenerateColumns="False" EmptyDataText="No se Encontró Activo Fijo Registrado" ToolTip="Listado de Activos Fijos"
|
||||
CssClass="table table-smallpadding Widthall" DataKeyNames="CveActivoFijo,Codigo" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Código">
|
||||
<ItemStyle Width="70px" />
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkUpVinculoAF" OnClick="LnkUpVinculoAF_Click" Text='<%# Eval("Codigo") %>' runat="server"></asp:LinkButton>
|
||||
<%--<asp:HyperLink ID="Hpl" runat="server" Text='<%# Eval("Codigo") %>' NavigateUrl='<%# Eval("CveActivoFijo", "/AF/AF.aspx?CveActivoFijo={0}")%>'></asp:HyperLink>--%>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Descripción">
|
||||
<ItemStyle Width="140px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo Act. Fijo">
|
||||
<ItemStyle Width="90px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTipoActivoFijo" runat="server" Text='<%# Eval("TipoActivoFijo")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Sub Tipo Act. Fijo">
|
||||
<ItemStyle Width="110px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSubTIpoActivoFijo" runat="server" Text='<%# Eval("SubTIpoActivoFijo")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Responsable">
|
||||
<ItemStyle Width="105px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlResponsable" runat="server" Text='<%# Eval("Responsable")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="No. Serie">
|
||||
<ItemStyle Width="50px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNoSerie" runat="server" Text='<%# Eval("NoSerie")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Año" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemStyle Width="50px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAño" runat="server" Text='<%# Eval("Año")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SubProyecto">
|
||||
<ItemStyle Width="90px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemStyle Width="50px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstadoActivoFijo" runat="server" Text='<%# Eval("EstadoActivoFijo")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center">
|
||||
<ItemStyle Width="75px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usuario">
|
||||
<ItemStyle Width="80px" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</asp:Panel>
|
||||
|
||||
<asp:Panel ID="PnlCliente" runat="server">
|
||||
|
||||
<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>
|
||||
<asp:TemplateField HeaderText="RFC" ItemStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkUpVinculoCliente" OnClick="LnkUpVinculoCliente_Click" Text='<%# Eval("RFC") %>' runat="server"></asp:LinkButton>
|
||||
<%--<asp:Literal ID="LtlRFC" runat="server" Text='<%# Eval("RFC") %>'></asp:Literal>--%>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField Visible="true" ItemStyle-Width="100" HeaderText="Código">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlCodigo" runat="server" Text='<%# Eval("Codigo") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre" ItemStyle-Width="320px">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Sucursal" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Teléfono" ItemStyle-Width="60">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTelefono" runat="server" Text='<%# Eval("Telefono") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Vendedor" Visible="false" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlVendedor" runat="server" Text='<%# Eval("Vendedor") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usuario" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="PnlPersonal" runat="server">
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="PnlProveedor" runat="server">
|
||||
</asp:Panel>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<%--<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>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='<%= iddivAgregarArchivo %>' class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog ">
|
||||
<asp:UpdatePanel ID="UpdatePanel2" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
|
||||
@@ -23,6 +23,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
|
||||
#region Propiedades
|
||||
public const string idUpVinculo = "idUpVinculo";
|
||||
public const string iddivAgregarMiembros = "iddivAgregarMiembros";
|
||||
public const string iddivAgregar = "divModalAgregarActividad";
|
||||
public const string iddivAgregarArchivo = "divModalAgregarArchivo";
|
||||
@@ -38,6 +39,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
public List<int> LcveuserVisto { get { if (ViewState["LcveuserVisto"] == null) { ViewState["LcveuserVisto"] = new List<int>(); } return (List<int>)ViewState["LcveuserVisto"]; } set { ViewState["LcveuserVisto"] = value; } }
|
||||
private OI_TareaDetalle_Permisos Permisos { get { return ViewState["Permisos"] == null ? null : (OI_TareaDetalle_Permisos)ViewState["Permisos"]; } set { ViewState["Permisos"] = value; } }
|
||||
public bool EsNuevo { get { return Convert.ToBoolean(ViewState["EsNuevo"]); } set { ViewState["EsNuevo"] = value; } }
|
||||
public bool Convinculo { get { return Convert.ToBoolean(ViewState["Convinculo"]); } set { ViewState["Convinculo"] = value; } }
|
||||
public bool LnkAgregarCheckListVisible { get { return Convert.ToBoolean(ViewState["LnkAgregarCheckListVisible"]); } set { ViewState["LnkAgregarCheckListVisible"] = value; } }
|
||||
public bool LnkUpFileVisible { get { return Convert.ToBoolean(ViewState["LnkUpFileVisible"]); } set { ViewState["LnkUpFileVisible"] = value; } }
|
||||
public bool LnkUpUsuariosVisible { get { return Convert.ToBoolean(ViewState["LnkUpUsuariosVisible"]); } set { ViewState["LnkUpUsuariosVisible"] = value; } }
|
||||
@@ -48,7 +50,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Convinculo = false;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
CveEventoPadre = 0;
|
||||
@@ -374,6 +376,9 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
if (ObjOI_E.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
LnkUpVinculo.Visible = true;
|
||||
LnkUpVinculo.Text = "<i class=\"fa fa-plus\"></i> Agregar Relación";
|
||||
|
||||
PnlUsuarios.Visible = true;
|
||||
portletMiembros.Visible = false;
|
||||
LnkUpFileVisible = true;
|
||||
@@ -417,6 +422,16 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
int CveProveedor = drow["CveProveedor"].ToString().ToEntero();
|
||||
int CveCompra = drow["CveCompra"].ToString().ToEntero();
|
||||
int CvePersonal = drow["CvePersonal"].ToString().ToEntero();
|
||||
|
||||
int CveActivoFijo = drow["CveActivoFijo"].ToString().ToEntero();
|
||||
int CveIE = drow["CveIE"].ToString().ToEntero();
|
||||
int CveProspecto = drow["CveProspecto"].ToString().ToEntero();
|
||||
int CveOS = drow["CveOS"].ToString().ToEntero();
|
||||
int CveOC = drow["CveOC"].ToString().ToEntero();
|
||||
int CveContrato = drow["CveContrato"].ToString().ToEntero();
|
||||
int CveSubProyecto = drow["CveSubProyecto"].ToString().ToEntero();
|
||||
int CveMovimientoAlmacen = drow["CveMovimientoAlmacen"].ToString().ToEntero();
|
||||
|
||||
//int = drow[""].ToString().ToEntero();
|
||||
|
||||
string titulo = "";
|
||||
@@ -451,11 +466,58 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
titulo = "Personal: ";
|
||||
link = string.Format("<a href=\"/RH/Personal.aspx?CvePersonal={1}\" class=\"linkCorreo\">{0} </a>", drow["NombreCompleto"], CvePersonal);
|
||||
}
|
||||
|
||||
if(titulo.Length > 0)
|
||||
else if (CveActivoFijo > 0)
|
||||
{
|
||||
LtlVinculo.Text= string.Format("<div class=\"panel panel-default\" style=\"margin-bottom: 5px;\"><div class=\"panel-heading\" style=\"display: inline-block; width: 19%; border-bottom-width: 0px; margin: 0px;\"><h3 class=\"panel-title\">{0}</h3></div><div class=\"panel-body\" style=\"display: inline-block; width: 79%;\">{1}</div></div>",
|
||||
titulo = "Activo Fijo";
|
||||
link = string.Format("<a href=\"/AF/AF.aspx?CveActivoFijo={1}\" class=\"linkCorreo\">{0} </a>", drow["ActivoFijo"], CveActivoFijo);
|
||||
}
|
||||
else if (CveIE > 0)
|
||||
{
|
||||
titulo = "Bancos";
|
||||
link = string.Format("<a href=\"//Bancos/IE.aspx?CveIE={1}\" class=\"linkCorreo\">{0} </a>", drow["BancIE"], CveIE);
|
||||
}
|
||||
else if (CveProspecto > 0)
|
||||
{
|
||||
titulo = "Prospecto";
|
||||
link = string.Format("<a href=\"/Prospectos/ProspectosSIP.aspx?CveProspecto={1}\" class=\"linkCorreo\">{0} </a>", drow["Prospecto"], CveProspecto);
|
||||
}
|
||||
else if (CveOS > 0)
|
||||
{
|
||||
titulo = "Orden de servicio";
|
||||
link = string.Format("<a href=\"/OS/OrdenesServicios.aspx?OS={1}\" class=\"linkCorreo\">{0} </a>", drow["OrdenServicio"], CveOS);
|
||||
}
|
||||
else if (CveOC > 0)
|
||||
{
|
||||
titulo = "Orden de Compra";
|
||||
link = string.Format("<a href=\"/OC/OC.aspx?OC={1}\" class=\"linkCorreo\">{0} </a>", drow["OrdenCompra"], CveOC);
|
||||
}
|
||||
else if (CveContrato > 0)
|
||||
{
|
||||
titulo = "Contrato";
|
||||
link = string.Format("<a href=\"/Contratos/Contrato.aspx?CveContrato={1}\" class=\"linkCorreo\">{0} </a>", drow["Contrato"], CveContrato);
|
||||
}
|
||||
else if (CveSubProyecto > 0)
|
||||
{
|
||||
titulo = "Sub Proyecto";
|
||||
link = string.Format("<a href=\"/?={1}\" class=\"linkCorreo\">{0} </a>", drow["SubProyecto"], CveSubProyecto);
|
||||
}
|
||||
else if (CveMovimientoAlmacen > 0)
|
||||
{
|
||||
titulo = "Almacen";
|
||||
link = string.Format("<a href=\"/Inventarios/EntradasSalidas.aspx?CveMovimiento={1}\" class=\"linkCorreo\">{0} </a>", drow["MovAlmacen"], CveMovimientoAlmacen);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (titulo.Length > 0)
|
||||
{
|
||||
LtlVinculo.Text = string.Format("<div class=\"panel panel-default\" style=\"margin-bottom: 5px;\"><div class=\"panel-heading\" style=\"display: inline-block; width: 19%; border-bottom-width: 0px; margin: 0px;\"><h3 class=\"panel-title\">{0}</h3></div><div class=\"panel-body\" style=\"display: inline-block; width: 79%;\">{1}</div></div>",
|
||||
titulo, link);
|
||||
Convinculo = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LnkUpVinculo.Text = "<i class=\"fa fa-pencil\"></i> Actualizar Relación";
|
||||
}
|
||||
titulo = "";
|
||||
link = "";//EP.[CveTipoEvento] CveTipoEventoPadre,EP.Asunto AS AsuntoPadre
|
||||
@@ -495,12 +557,12 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ObjOI_E.GetEventosVinculos(RCveEvento, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
GVVinculo.DataSource = ObjOI_E.DtResultados;
|
||||
GVVinculo.DataBind();
|
||||
portletvinculos.Visible = (ObjOI_E.DtResultados.Rows.Count > 0);
|
||||
}
|
||||
//if (ObjOI_E.GetEventosVinculos(RCveEvento, UsuarioActual.CveEmpresa))
|
||||
//{
|
||||
// GVVinculo.DataSource = ObjOI_E.DtResultados;
|
||||
// GVVinculo.DataBind();
|
||||
// portletvinculos.Visible = (ObjOI_E.DtResultados.Rows.Count > 0);
|
||||
//}
|
||||
if (ObjOI_E.Getcheklist(RCveEvento))
|
||||
{
|
||||
GVcheklist.DataSource = ObjOI_E.DtResultados;
|
||||
@@ -609,7 +671,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
if (cveUsuarioDe <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'C C Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
|
||||
}
|
||||
|
||||
if (cveUsuarioPara <= 0)
|
||||
@@ -938,7 +1000,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
Alert("Tema agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("Tema Agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||
TxtTema.Text = "";
|
||||
set_GlobalDTOIRevision(-1, objoi.DtResultados);
|
||||
@@ -1286,7 +1348,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
if (cveUsuarioPara <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"Para\"";
|
||||
|
||||
}
|
||||
if (cveUsuarioPara == cveUsuarioDe)
|
||||
@@ -1671,6 +1733,66 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
protected void DDlEstatus_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlTerminarPadre.Visible = (DDlEstatus.SelectedValue.ToEntero() > 3 && CveEventoPadre > 0);
|
||||
pnlTerminarPadre.Visible = ((DDlEstatus.SelectedValue.ToEntero() == 3 || DDlEstatus.SelectedValue.ToEntero() == 4) && CveEventoPadre > 0);
|
||||
}
|
||||
|
||||
protected void LnkUpVinculo_Click(object sender, EventArgs e)
|
||||
{
|
||||
RegistraScript(string.Format("$('#{0}').modal();", idUpVinculo));
|
||||
}
|
||||
|
||||
protected void DdlViculos_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
int CveVinculo = DdlViculos.SelectedValue.ToEntero();
|
||||
PnlActivoFijo.Visible = (CveVinculo == 1);
|
||||
PnlCliente.Visible = (CveVinculo == 2);
|
||||
PnlPersonal.Visible = (CveVinculo == 3);
|
||||
PnlProveedor.Visible = (CveVinculo == 4);
|
||||
if (PnlActivoFijo.Visible)
|
||||
{
|
||||
;
|
||||
using ( ClsAF ObjAF = new ClsAF())
|
||||
{
|
||||
|
||||
if (ObjAF.GetActivosFijos(-1, UsuarioActual.CveEmpresa, "-1", "-1", -1, -1, "-1", DateTime.Now.Year, -1, -1,-1,-1, "-1",-1))
|
||||
{
|
||||
GvActividades.DataSource = ObjAF.DtResultados;
|
||||
GvActividades.DataBind();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (PnlCliente.Visible)
|
||||
{
|
||||
|
||||
using (ClsClientes ObjClientes = new ClsClientes())
|
||||
{
|
||||
if (ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa, -1))
|
||||
{
|
||||
GvClientes.DataSource = ObjClientes.DtResultados;
|
||||
GvClientes.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (PnlPersonal.Visible)
|
||||
{
|
||||
|
||||
}
|
||||
if (PnlProveedor.Visible)
|
||||
{
|
||||
|
||||
}
|
||||
UpVinculoModal.Update();
|
||||
}
|
||||
|
||||
protected void LnkUpVinculoAF_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void LnkUpVinculoCliente_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,12 +188,12 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
||||
|
||||
if (cveUsuarioDe <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'C C Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
|
||||
}
|
||||
|
||||
if (cveUsuarioPara <= 0)
|
||||
{
|
||||
errorMessage = "No se selecciono el miembro 'Para'";
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"Para\"";
|
||||
|
||||
}
|
||||
if (errorMessage.Length == 0)
|
||||
@@ -306,7 +306,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
||||
{
|
||||
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
this.Alert("Tema agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
this.Alert("Tema Agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||
|
||||
if (Ismodal)
|
||||
|
||||
Reference in New Issue
Block a user