This commit is contained in:
@@ -322,9 +322,9 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
}
|
||||
string fechaFin = "";
|
||||
DateTime dfechaF;
|
||||
if ((dfechaF=txtFechaF.Text.ToDateTimeExcat()).Year <= 1999)
|
||||
if ((dfechaF = txtFechaI.Text.ToDateTimeExcat()).Year <= 1999)
|
||||
{
|
||||
if ((dfechaF = txtFechaF.Text.ToDateTimeExcat("dd/MM/yyyy")).Year <= 1999)
|
||||
if ((dfechaF = txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy")).Year <= 1999)
|
||||
{
|
||||
errorMessage = "No se ingresó una fecha fin valida";
|
||||
|
||||
@@ -353,8 +353,8 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
|
||||
}
|
||||
if (EsNuevo)
|
||||
{
|
||||
bool Continuar = false;
|
||||
{
|
||||
bool Continuar = false;
|
||||
if (errorMessage.Length == 0)
|
||||
{
|
||||
|
||||
@@ -373,7 +373,6 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
objOI.Commit();
|
||||
enviarConvocatoria(CveEvento);
|
||||
//ObjEventosCorreo o = objOI.objCorreo;
|
||||
//string mailbody = MailgetBodyNuevatarea(o.Folio, o.Link, o.Asunto, o.Descripcion, string.Format("{0:dd/MM/yyyy}", fechaInicio.ToDateTime()), string.Format("{0:HH:mm horas}", fechaInicio.ToDateTime()), string.Format("{0:dd/MM/yyyy}", fechaFin.ToDateTime()), string.Format("{0:HH:mm horas}", fechaFin.ToDateTime()), o.Prioridad, o.Tema, Nombrede, Nombrepara);
|
||||
//EnviarCorreo(UsuarioActual.Empresa, o.AsuntoCorreo, mailbody, o.mailPara, "");
|
||||
@@ -386,6 +385,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
}
|
||||
if (Continuar && CveEvento > 0)
|
||||
{
|
||||
enviarConvocatoria(CveEvento);
|
||||
if (rutaarchivoOri.Length > 0)
|
||||
{
|
||||
string ruta = string.Format("{0}OIFiles\\", UsuarioActual.Empresa.Ruta);
|
||||
@@ -407,7 +407,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
bool Continuar = true;
|
||||
using (ClsOIEventos objOI = new ClsOIEventos())
|
||||
{
|
||||
@@ -416,7 +416,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
|
||||
Continuar= objOI.UpdateEventoMinuta(asunto, descripcion, TxtOrdendeldia.Text.Replace("< ", "<"), dfechaF, "-1", RCveEvento);
|
||||
Continuar = objOI.UpdateEventoMinuta(asunto, descripcion, TxtOrdendeldia.Text.Replace("< ", "<"), dfechaF, "-1", RCveEvento);
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
@@ -520,7 +520,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
LnkOpenModalAsistencia.Visible = true;
|
||||
UpAcciones.Update();
|
||||
this.Alert(string.Format("Se ha iniciado la minuta<br /> para ir a la minuta <a href=\"/OI/MinutaDetalle.aspx?CveEvento={0}\">click aquí</a>", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0);
|
||||
LnkOpenModalAsistencia_Click(null,null);
|
||||
LnkOpenModalAsistencia_Click(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -565,7 +565,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert("se ingresó la asistencia correctamente.");
|
||||
Alert("se ingresó la asistencia correctamente.");
|
||||
|
||||
}
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide');", iddivTomarAsistencia));
|
||||
@@ -585,6 +585,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
{
|
||||
return string.Format("{0}/{1}", HttpContext.Current.Request.Url.ToString().Replace(HttpContext.Current.Request.Url.PathAndQuery, ""), addstr);
|
||||
}
|
||||
string UsuarioDemail = "";
|
||||
private string MailgetBodyConvocatoria(int RCveEvento)
|
||||
{
|
||||
|
||||
@@ -599,6 +600,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
{
|
||||
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
||||
UsuarioDe = drow["NombreRegistro"].ToString();
|
||||
UsuarioDemail= drow["NombreRegistro"].ToString();
|
||||
Folio = drow["Folio"].ToString().ToEntero();
|
||||
Link = GetDominio(string.Format("OI/ConvocatoriaDetalle.aspx?CveEvento={0}", RCveEvento));
|
||||
Asunto = drow["Asunto"].ToString();
|
||||
@@ -687,7 +689,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
StrMail.Append(" </div>");
|
||||
StrMail.Append(" <br />");
|
||||
|
||||
StrMail.Append(" <br />");
|
||||
StrMail.Append(" <br />");
|
||||
StrMail.Append(" <br />");
|
||||
StrMail.Append($" <a href=\"{Link}\" style=\"padding: 10px 20px; text-align: center;\">Minuta</a>");
|
||||
StrMail.Append(" <br />");
|
||||
@@ -731,11 +733,40 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
|
||||
|
||||
ClsSisMail Mail = new ClsSisMail();
|
||||
Mail.SendMail(EmpresaNotificaciones, get_GlobalDTUsuarios(UsuarioActual.CveUsuario).Rows[0]["correo"].ToString() + TxtCorreoExterno.Text, TxtAsunto.Text, Body, CCP: ArrayCC, Archivos: LSRutasMail);
|
||||
Mail.SendMail(EmpresaNotificaciones, get_GlobalDTUsuarios(UsuarioActual.CveUsuario).Rows[0]["correo"].ToString() + ";" + TxtCorreoExterno.Text, string.Format("⏰ {1} te ha invitado a una reunión, {0}", TxtAsunto.Text, UsuarioDemail), Body, CCP: ArrayCC, Archivos: LSRutasMail);
|
||||
}
|
||||
protected void LnkEnviarCorreo_Click(object sender, EventArgs e)
|
||||
{
|
||||
enviarConvocatoria(RCveEvento);
|
||||
Alert("Se Envió por correo la convocatoria", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("Se Envió por correo la convocatoria", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
|
||||
|
||||
public string GenerateIcsContent(DateTime dateStart,
|
||||
DateTime dateEnd, string email, string location,
|
||||
string summary, string description)
|
||||
{
|
||||
string DateFormat = "yyyyMMddTHHmmssZ";
|
||||
var s = dateStart.ToUniversalTime().ToString(DateFormat);
|
||||
var e = dateEnd.ToUniversalTime().ToString(DateFormat);
|
||||
var iCal = string.Format(@"BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
METHOD:PUBLISH
|
||||
BEGIN:VEVENT
|
||||
ORGANIZER:MAILTO:{0}
|
||||
DTSTART:{1}
|
||||
DTEND:{2}
|
||||
LOCATION:{3}
|
||||
UID:{4}
|
||||
DTSTAMP:{4}
|
||||
SUMMARY:{5}
|
||||
DESCRIPTION:{6}
|
||||
PRIORITY:5
|
||||
CLASS:PUBLIC
|
||||
END:VEVENT
|
||||
END:VCALENDAR", email, s, e, location,
|
||||
DateTime.Now.ToUniversalTime().ToString(DateFormat),
|
||||
summary, description);
|
||||
return iCal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user