Merge branch 'master' of http://jperez@adsistemasof.sytes.net:8383/SIG.git
This commit is contained in:
@@ -221,6 +221,37 @@ Public Class ClsOIEventos
|
||||
|
||||
#Region "oieventos2.0"
|
||||
|
||||
Public Function UpEventosVinculos(cveEvento As Int32, cveActivoFijo As Int32, cveIE As Int32, cveProspecto As Int32, cveCliente As Int32, cveOS As Int32, cveOC As Int32, cvePersonal As Int32,
|
||||
cveProveedor As Int32, cveCompra As Int32, cveVenta As Int32, cveContrato As Int32, cveUsuario As Int32, cveSubProyecto As Int32, cveMovimientoAlmacen As Int32,
|
||||
cveEmpresaCRM As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_OI_EventosVinculosUp", CommandType.StoredProcedure)
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveEvento", SqlDbType.Int, cveEvento)
|
||||
.Add("@CveActivoFijo", SqlDbType.Int, cveActivoFijo)
|
||||
.Add("@CveIE", SqlDbType.Int, cveIE)
|
||||
.Add("@CveProspecto", SqlDbType.Int, cveProspecto)
|
||||
.Add("@CveCliente", SqlDbType.Int, cveCliente)
|
||||
.Add("@CveOS", SqlDbType.Int, cveOS)
|
||||
.Add("@CveOC", SqlDbType.Int, cveOC)
|
||||
.Add("@CvePersonal", SqlDbType.Int, cvePersonal)
|
||||
.Add("@CveProveedor", SqlDbType.Int, cveProveedor)
|
||||
.Add("@CveCompra", SqlDbType.Int, cveCompra)
|
||||
.Add("@CveVenta", SqlDbType.Int, cveVenta)
|
||||
.Add("@CveContrato", SqlDbType.Int, cveContrato)
|
||||
.Add("@CveSubProyecto", SqlDbType.Int, cveSubProyecto)
|
||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int, cveMovimientoAlmacen)
|
||||
.Add("@CveEmpresaCRM", SqlDbType.Int, cveEmpresaCRM)
|
||||
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
retorno = True
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió un error al obtener el Catálogo de Evento Usuario.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End Try
|
||||
End With
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function GetEventosUsuario2(CveEvento As Integer, CveEmpresa As Integer) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
DataAdapter("PA_OI_EventosUsuarios2Get")
|
||||
@@ -303,10 +334,10 @@ Public Class ClsOIEventos
|
||||
Return retorno
|
||||
End Function
|
||||
|
||||
Public Function AddEventoMinuta2(Asunto As String, Descripcion As String, Acuerdos As String, CveUsuarioDe As Integer, CveUsuarioPara As Integer, FechaInicio As DateTime, Archivo As String, Lmiembros As List(Of Integer), chkList As List(Of String), CveUsuarioIng As Integer, CveEmpresa As Integer) As Boolean
|
||||
Public Function AddEventoMinuta2(Asunto As String, Descripcion As String, Acuerdos As String, CveUsuarioDe As Integer, CveUsuarioPara As Integer, FechaInicio As DateTime, Archivo As String, Lmiembros As List(Of Integer), chkList As List(Of String), CveUsuarioIng As Integer, CveEmpresa As Integer, CorreoExterno As String) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
Retorno = AddOI_Eventos2(OITipoEventos.Minuta, Asunto, Descripcion, 3, -1, -1, String.Format("{0:yyyy/MM/dd HH:mm}", FechaInicio), "1900/01/01 00:00", -1, Archivo, Lmiembros, chkList, CveUsuarioIng, CveEmpresa, -1, Acuerdos)
|
||||
Retorno = AddOI_Eventos2(OITipoEventos.Minuta, Asunto, Descripcion, 3, -1, -1, String.Format("{0:yyyy/MM/dd HH:mm}", FechaInicio), "1900/01/01 00:00", -1, Archivo, Lmiembros, chkList, CveUsuarioIng, CveEmpresa, -1, Acuerdos, CorreoExterno:=CorreoExterno)
|
||||
'Retorno = AddEvento(5, -1, Asunto, Descripcion, 1, -1, -1, FechaInicio, ("01/01/1799").ToDate, -1, -1, "-1", CveUsuarioIng, CveEmpresa, -1, -1, -1, -1, -1, -1, -1, -1)
|
||||
|
||||
Return Retorno
|
||||
@@ -317,7 +348,7 @@ Public Class ClsOIEventos
|
||||
Optional CveActivoFijo As Integer = -1, Optional CveIE As Integer = -1, Optional CveProspecto As Integer = -1, Optional CveCliente As Integer = -1,
|
||||
Optional CveOS As Integer = -1, Optional CveOC As Integer = -1, Optional CvePersonal As Integer = -1, Optional CveProveedor As Integer = -1,
|
||||
Optional CveCompra As Integer = -1, Optional CveVenta As Integer = -1, Optional CveContrato As Integer = -1, Optional CveSubProyecto As Integer = -1,
|
||||
Optional CveMovimientoAlmacen As Integer = -1) As Boolean
|
||||
Optional CveMovimientoAlmacen As Integer = -1, Optional CorreoExterno As String = "") As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
|
||||
Dim xmlMiembros As System.Xml.Linq.XDocument = Nothing
|
||||
@@ -374,6 +405,7 @@ Public Class ClsOIEventos
|
||||
.Add("@CveContrato", SqlDbType.Int).Value = CveContrato
|
||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = CveMovimientoAlmacen
|
||||
.Add("@CorreoExterno", SqlDbType.VarChar).Value = CorreoExterno
|
||||
|
||||
|
||||
'.Add("@mailPara", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
||||
|
||||
@@ -963,10 +963,10 @@
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Parameters!FechaImpresion.Value</Value>
|
||||
<Value>=Now</Value>
|
||||
<Style>
|
||||
<FontSize>9pt</FontSize>
|
||||
<Format>dd/MM/yyyy</Format>
|
||||
<Format>dd/MM/yyyy HH:mm:ss tt</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Line Name="Line1">
|
||||
<Top>0.08792cm</Top>
|
||||
<Height>0cm</Height>
|
||||
<Width>20.06868cm</Width>
|
||||
<Width>19.15246cm</Width>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
@@ -16,7 +16,7 @@
|
||||
<TablixBody>
|
||||
<TablixColumns>
|
||||
<TablixColumn>
|
||||
<Width>5.89659cm</Width>
|
||||
<Width>7.3197cm</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>4.7613cm</Width>
|
||||
@@ -25,10 +25,10 @@
|
||||
<Width>1.60341cm</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>3.72586cm</Width>
|
||||
<Width>2.55502cm</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>4.01284cm</Width>
|
||||
<Width>2.80719cm</Width>
|
||||
</TablixColumn>
|
||||
</TablixColumns>
|
||||
<TablixRows>
|
||||
@@ -457,10 +457,10 @@
|
||||
</TablixMembers>
|
||||
</TablixRowHierarchy>
|
||||
<DataSetName>DataSet1</DataSetName>
|
||||
<Top>0.36336cm</Top>
|
||||
<Left>0.06868cm</Left>
|
||||
<Top>0.26431cm</Top>
|
||||
<Left>0.10583cm</Left>
|
||||
<Height>1.06771cm</Height>
|
||||
<Width>20cm</Width>
|
||||
<Width>19.04663cm</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
@@ -472,7 +472,7 @@
|
||||
<Height>0.60091in</Height>
|
||||
<Style />
|
||||
</Body>
|
||||
<Width>7.92485in</Width>
|
||||
<Width>7.54034in</Width>
|
||||
<Page>
|
||||
<PageHeader>
|
||||
<Height>3.19792cm</Height>
|
||||
@@ -514,9 +514,9 @@
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox1</rd:DefaultName>
|
||||
<Top>0.48896cm</Top>
|
||||
<Left>2.56328cm</Left>
|
||||
<Left>5.74694cm</Left>
|
||||
<Height>0.6cm</Height>
|
||||
<Width>15.44165cm</Width>
|
||||
<Width>8.8382cm</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
@@ -577,9 +577,9 @@
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox2</rd:DefaultName>
|
||||
<Top>1.98854cm</Top>
|
||||
<Left>2.56328cm</Left>
|
||||
<Left>5.78222cm</Left>
|
||||
<Height>0.95278cm</Height>
|
||||
<Width>15.44165cm</Width>
|
||||
<Width>8.8382cm</Width>
|
||||
<ZIndex>2</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
@@ -607,7 +607,7 @@
|
||||
<Top>0.11437cm</Top>
|
||||
<Left>0.10583cm</Left>
|
||||
<Height>0cm</Height>
|
||||
<Width>19.96285cm</Width>
|
||||
<Width>19.04663cm</Width>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
@@ -696,9 +696,9 @@
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox10</rd:DefaultName>
|
||||
<Top>0.22726cm</Top>
|
||||
<Left>6.97591cm</Left>
|
||||
<Left>7.92841cm</Left>
|
||||
<Height>0.36335cm</Height>
|
||||
<Width>2.92333cm</Width>
|
||||
<Width>3.55833cm</Width>
|
||||
<ZIndex>3</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
@@ -731,7 +731,7 @@
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||
<Top>0.22726cm</Top>
|
||||
<Left>18.00281cm</Left>
|
||||
<Left>16.91135cm</Left>
|
||||
<Height>0.36335cm</Height>
|
||||
<Width>2.06587cm</Width>
|
||||
<ZIndex>4</ZIndex>
|
||||
@@ -752,10 +752,10 @@
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Today</Value>
|
||||
<Value>=Now</Value>
|
||||
<Style>
|
||||
<FontSize>9pt</FontSize>
|
||||
<Format>dd/MM/yyy</Format>
|
||||
<Format>dd/MM/yyy HH:mm:ss tt</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
@@ -765,10 +765,10 @@
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox8</rd:DefaultName>
|
||||
<Top>0.2202cm</Top>
|
||||
<Left>9.89924cm</Left>
|
||||
<Top>0.22726cm</Top>
|
||||
<Left>10.62431cm</Left>
|
||||
<Height>0.37041cm</Height>
|
||||
<Width>2.5cm</Width>
|
||||
<Width>5.72096cm</Width>
|
||||
<ZIndex>5</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
|
||||
@@ -658,9 +658,9 @@
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox2</rd:DefaultName>
|
||||
<Top>1.67104cm</Top>
|
||||
<Left>2.56328cm</Left>
|
||||
<Left>5.78222cm</Left>
|
||||
<Height>0.95278cm</Height>
|
||||
<Width>14.72728cm</Width>
|
||||
<Width>8.43036cm</Width>
|
||||
<ZIndex>2</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
@@ -798,9 +798,10 @@
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Parameters!FechaImpresion.Value</Value>
|
||||
<Value>=Now</Value>
|
||||
<Style>
|
||||
<FontSize>9pt</FontSize>
|
||||
<Format>dd/MM/yyy HH:mm:ss tt</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
|
||||
1144
Empresas/Grales/Formatos/TareaDetalle.rdlc
Normal file
1144
Empresas/Grales/Formatos/TareaDetalle.rdlc
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
@@ -107,25 +108,18 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
Avance = drow["Avance"].ToString().ToDecimal();
|
||||
|
||||
TxtAsunto.Text = drow["Asunto"].ToString();
|
||||
TxtCorreoExterno.Text = drow["CorreoExterno"].ToString();
|
||||
TxtDescripcion.Text = drow["Descripcion"].ToString();
|
||||
TxtAcuerdos.Text = drow["Acuerdos"].ToString().Replace("<", "< ");
|
||||
//txtFechaI.Text = string.Format("{0:dd/MM/yyyy HH:mm}", drow["FechaInicio"]);
|
||||
//txtFechaF.Text = string.Format("{0:dd/MM/yyyy HH:mm}", drow["FechaFin"]);
|
||||
//DdlTema.SelectedValueExist(drow["CveRevision"].ToString());
|
||||
//DdlEventoEstatus.SelectedValueExist(drow["CveEventoEstatus"].ToString());
|
||||
//DDlEstatus.SelectedValueExist(drow["CveEventoEstatus"].ToString());
|
||||
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()));
|
||||
TxtArchivo.Visible = (drow["Archivo"].ToString().Length == 0);
|
||||
portletArchivo.Visible = !TxtArchivo.Visible;
|
||||
//LnkUpFile.Text = (portletArchivo.Visible ? "<i class=\"fa fa-pencil\"></i> Actualizar archivo" : "<i class=\"fa fa-plus\"></i> Agregar archivo");
|
||||
//Literal3.Text = portletArchivo.Visible ? "Actualizar archivo" : "Agregar archivo";
|
||||
//BtnActualizarArchivo.Text = portletArchivo.Visible ? "Actualizar" : "Agregar";
|
||||
int CveUsuarioIng = drow["CveUsuarioIng"].ToString().ToEntero();
|
||||
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;
|
||||
@@ -136,13 +130,6 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
}
|
||||
hdnCveEventoEstatus.Value = CveEventoEstatus.ToString();
|
||||
hdnCveEvento.Value = RCveEvento.ToString();
|
||||
//TxtAvance.Text = string.Format("{0:##0}", drow["Avance"]);
|
||||
//TxtUsuarioreg.Text = string.Format("{0}", drow["NombreRegistro"]);
|
||||
//TxtFechaIng.Text = string.Format("{0:dd/MM/yyyy}", drow["FechaIng"]);
|
||||
//OIE.[CveEvento], OIE.[CveTipoEvento], OIE.[Folio], OIE.[Asunto], OIE.[Descripcion], OIE.[Prioridad], OIE.[CveUsuarioDe], OIE.[CveUsuarioPara],
|
||||
//OIE.[CveEventoEstatus], OIE.[FechaInicio], OIE.[FechaFin], OIE.[FechaRealTermino], OIE.[CveRevision], OIE.[Archivo], OIE.[FechaIng],
|
||||
//OIE.[CveUsuarioIng], OIE.[CveEmpresa], OIE.[CveUsuarioModifico], OIE.[Avance]
|
||||
|
||||
StringBuilder StrDeUser = new StringBuilder();
|
||||
StringBuilder StrCCPara = new StringBuilder();
|
||||
ltlTituloPage.Text = drow["Asunto"].ToString();
|
||||
@@ -182,7 +169,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
{
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
CheckBox ChkOk = gvRow.FCCheckBox("ChkOk");
|
||||
if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||
if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||
{
|
||||
ChkOk.Checked = true;
|
||||
}
|
||||
@@ -379,7 +366,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
using (ClsOIEventos oieve = new ClsOIEventos())
|
||||
{
|
||||
oieve.IniciaTransacSQL();
|
||||
Continuar = oieve.AddEventoMinuta2(asunto, descripcion, acuerdos, cveusuarioDe, cveusuarioPara, DateTime.Now, archivoname, lMiembros, chkList, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||
Continuar = oieve.AddEventoMinuta2(asunto, descripcion, acuerdos, cveusuarioDe, cveusuarioPara, DateTime.Now, archivoname, lMiembros, chkList, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, TxtCorreoExterno.Text);
|
||||
CveEvento = oieve.CveEvento;
|
||||
Folio = oieve.Folio;
|
||||
|
||||
@@ -448,13 +435,13 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
CheckBox ChkOk = gvRow.FCCheckBox("ChkOk");
|
||||
if (ChkOk.Checked)
|
||||
{
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
listaCCP.Add(CveUsuario);
|
||||
}
|
||||
}
|
||||
}
|
||||
int cveUsuarioPara = DdlTareaPara.SelectedValue.ToEntero();
|
||||
|
||||
|
||||
OITipoEventos cveTipoEvento = OITipoEventos.Tarea;
|
||||
string asunto = TxtTareaAsunto.Text;
|
||||
string descripcion = TxtTareaDescripcion.Text;
|
||||
@@ -513,12 +500,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)
|
||||
@@ -536,7 +523,7 @@ public partial class OI_MinutaDetalle : 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, RCveEvento);
|
||||
Continuar = objOI.AddOI_Eventos2(cveTipoEvento, asunto, descripcion, prioridad, cveUsuarioDe, cveUsuarioPara, fechaInicio, fechaFin, cveRevision, archivoname, listaCCP, chkList, cveUsuarioIng, cveEmpresa, RCveEvento);
|
||||
CveEvento = objOI.CveEvento;
|
||||
Folio = objOI.Folio;
|
||||
if (CveEvento == 0)
|
||||
@@ -637,12 +624,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)
|
||||
@@ -827,7 +814,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
|
||||
ClsSisMail Mail = new ClsSisMail();
|
||||
Mail.SendMail(EmpresaNotificaciones, get_GlobalDTUsuarios(UsuarioActual.CveUsuario).Rows[0]["correo"].ToString(), TxtAsunto.Text, Body.ToString(), CCP: ArrayCC);
|
||||
Mail.SendMail(EmpresaNotificaciones, get_GlobalDTUsuarios(UsuarioActual.CveUsuario).Rows[0]["correo"].ToString() + TxtCorreoExterno.Text, TxtAsunto.Text, Body.ToString(), CCP: ArrayCC);
|
||||
Alert("Se Envió por correo la Minuta", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Retorno = true;
|
||||
}
|
||||
@@ -845,7 +832,6 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
StringBuilder StrSB = new StringBuilder();
|
||||
|
||||
string DireccionURL = "";// GlobalDTParametros(SisParametros.URL).Cadena1;
|
||||
string Variables = "";
|
||||
|
||||
string Tarea;
|
||||
string De;
|
||||
@@ -1164,7 +1150,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 +1160,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>
|
||||
@@ -223,7 +225,7 @@
|
||||
<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>--%>
|
||||
@@ -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>
|
||||
@@ -356,7 +358,7 @@
|
||||
|
||||
<asp:Label runat="server" AssociatedControlID="DdlEventoEstatus">Estatus:</asp:Label>
|
||||
</div>
|
||||
<asp:Label ID="lblEstatus" Style="font-size: 25px" runat="server" Text="Label"></asp:Label>
|
||||
<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>
|
||||
@@ -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 = "";
|
||||
@@ -426,7 +441,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
titulo = "Cliente: ";
|
||||
link = string.Format("<a href=\"/Ventas/Clientes.aspx?CveCliente={1}\" class=\"linkCorreo\">{0}</a>", drow["Cliente"], CveCliente);
|
||||
|
||||
|
||||
}
|
||||
else if (CveVenta > 0)
|
||||
{
|
||||
@@ -451,17 +466,64 @@ 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
|
||||
switch (drow["CveTipoEventoPadre"].ToString().ToEntero())
|
||||
{
|
||||
case (int)OITipoEventos.Proyecto:
|
||||
case (int)OITipoEventos.Proyecto:
|
||||
titulo = "Proyecto: ";
|
||||
link = string.Format("<a href=\"/OI/Proyecto.aspx?CveEvento={1}\" class=\"linkCorreo\">{0} </a>", drow["AsuntoPadre"], drow["CveEventoPadre"]);
|
||||
break;
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
</div>
|
||||
<asp:Panel runat="server" CssClass="actions">
|
||||
<div class="btn-group">
|
||||
<asp:LinkButton ID="LnkAgregarTarea" OnClick="BtnGuardarTarea_Click" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkAgregarTarea" OnClick="BtnGuardarTarea_Click" ValidationGroup="GrpTarea" CssClass="btn btn-default" runat="server">Agregar</asp:LinkButton>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
@@ -202,7 +202,7 @@
|
||||
<asp:Button ID="BtnopenmodalConPadre" OnClick="BtnopenmodalConPadre_Click" CssClass="hidden BtnopenmodalConPadre" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||
</asp:Panel>
|
||||
<asp:Panel runat="server" ID="iddivAgregarTareamodalfooter" CssClass="modal-footer">
|
||||
<asp:LinkButton ID="BtnGuardarTarea" OnClick="BtnGuardarTarea_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||
<asp:LinkButton ID="BtnGuardarTarea" OnClick="BtnGuardarTarea_Click" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Guardar</asp:LinkButton>
|
||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||
</asp:Panel>
|
||||
</asp:Panel>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -4441,12 +4441,19 @@
|
||||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green' style='font-weight: 700 !important;' >Agendar</i>" Visible="false" Style="cursor: pointer;" ToolTip="Agendar"></asp:HyperLink><br />
|
||||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||||
<UserControl:TareaNueva runat="server" id="TareaNueva" />
|
||||
<script> function OnAddedTareaNueva() {
|
||||
$('.btnupEventoBitacora').click();
|
||||
}
|
||||
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnupEventoBitacora" OnClick="btnupEventoBitacora_Click" UseSubmitBehavior="false" CssClass="hidden btnupEventoBitacora" runat="server" Text="Button" />
|
||||
<asp:GridView ID="GvEB" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
@@ -4470,7 +4477,7 @@
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>Descripción</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
||||
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%#If(Eval("CveTipoEvento").ToString() = "1", String.Format("Tarea :<a href=""/OI/TareaDetalle.aspx?CveEvento={0}"">{1}<a>", Eval("CveEvento"), Eval("Asunto")), Eval("Descripcion").ToString()) %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
|
||||
@@ -3561,7 +3561,7 @@ Partial Class Clientes
|
||||
Private Sub CargaEventoBitacora()
|
||||
Dim ObjEventoBitacora As New ClsOIEventos()
|
||||
If ObjEventoBitacora.GetAgendaBitacora(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCliente:=CveCliente) Then
|
||||
GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento = 6 OR CveTipoEvento = 2")
|
||||
GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN(6,2,1)")
|
||||
Else
|
||||
GvEB.DataSource = Nothing
|
||||
End If
|
||||
@@ -10039,5 +10039,8 @@ Partial Class Clientes
|
||||
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub btnupEventoBitacora_Click(sender As Object, e As EventArgs)
|
||||
CargaEventoBitacora()
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
|
||||
@@ -4133,7 +4133,11 @@
|
||||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Visible="false" Style="cursor: pointer; text-decoration: none;" ToolTip="Agendar"><i class='fa fa-calendar-plus-o font-green' style='font-weight: 700 !important;' ></i> <span class="caption-subject bold font-green">Agendar</span></asp:HyperLink><br />
|
||||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||||
<UserControl:TareaNueva runat="server" id="TareaNueva" />
|
||||
<script> function OnAddedTareaNueva() {
|
||||
$('.btnupEventoBitacora').click();
|
||||
}
|
||||
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -4142,6 +4146,7 @@
|
||||
|
||||
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnupEventoBitacora" OnClick="btnupEventoBitacora_Click" UseSubmitBehavior="false" CssClass="hidden btnupEventoBitacora" runat="server" Text="Button" />
|
||||
<asp:GridView ID="GvEB" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
@@ -4165,7 +4170,7 @@
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>Descripción</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
||||
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%#If(Eval("CveTipoEvento").ToString() = "1", String.Format("Tarea :<a href=""/OI/TareaDetalle.aspx?CveEvento={0}"">{1}<a>", Eval("CveEvento"), Eval("Asunto")), Eval("Descripcion").ToString()) %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="50px">
|
||||
|
||||
@@ -16869,7 +16869,7 @@ Partial Class Ventas
|
||||
|
||||
Dim ObjEventoBitacora As New ClsOIEventos()
|
||||
If ObjEventoBitacora.GetAgendaBitacora(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVenta) Then
|
||||
GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento = 6 OR CveTipoEvento = 2")
|
||||
GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN(6,2,1)")
|
||||
Else
|
||||
GvEB.DataSource = Nothing
|
||||
End If
|
||||
@@ -25441,4 +25441,7 @@ Partial Class Ventas
|
||||
Public EsPUModificado As Boolean = False
|
||||
End Class
|
||||
|
||||
Protected Sub btnupEventoBitacora_Click(sender As Object, e As EventArgs)
|
||||
CargaEventoBitacora()
|
||||
End Sub
|
||||
End Class
|
||||
@@ -52,6 +52,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user