morena
This commit is contained in:
@@ -313,7 +313,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
if (CveCircular > 0)
|
||||
{
|
||||
|
||||
CargaDatos();
|
||||
string[] correos;
|
||||
correos = TxtCorreo.Text.Split(';');
|
||||
byte[] ArchivoBytes = ArchivoBytesArrya(HkArchivo.Text);
|
||||
@@ -321,7 +321,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
int Contador = 0;
|
||||
foreach (string Correo in correos)
|
||||
{
|
||||
MandaCorreo(TxtAsunto.Text, Correo, Contador > 0 ? "" : TxtCorreoAdicional.Text, TxtCircular.Text.Replace("< ", "<"), ArchivoBytes, HkArchivo.Text);
|
||||
MandaCorreo(TxtAsunto.Text, Correo, Contador > 0 ? "" : TxtCorreoAdicional.Text, TxtCircular.Text.Replace("< ", "<"), ArchivoBytes, HkArchivo.Text, CircularInsertado);
|
||||
Contador += 1;
|
||||
}
|
||||
BtnGuardar.Text = "Actualizar";
|
||||
@@ -375,7 +375,6 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
string FileExtension = "-1";
|
||||
List<Archivo> Filesgral = TxtArchivo.getfiles().Archivos;
|
||||
//string Filename = "";
|
||||
|
||||
foreach (Archivo fileItem in Filesgral)
|
||||
{
|
||||
try
|
||||
@@ -446,7 +445,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
private void MandaCorreo(string Asunto, string Para, string ArrayCC, string body, byte[] ArchivoBinario, string NombreArchivo)
|
||||
private void MandaCorreo(string Asunto, string Para, string ArrayCC, string body, byte[] ArchivoBinario, string NombreArchivo,int CircularInsertado=-1)
|
||||
{
|
||||
string a = string.Format("{0} -- {1} --- {2}", Asunto, Para, ArrayCC);
|
||||
a.GuardaLog();
|
||||
@@ -485,6 +484,22 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
return new byte[] { };
|
||||
}
|
||||
private byte[] ArchivoBytesArryarutaCompleta(string ArchivoEnviar)
|
||||
{
|
||||
if (File.Exists(ArchivoEnviar))
|
||||
{
|
||||
System.IO.FileStream fs = System.IO.File.Open(ArchivoEnviar, System.IO.FileMode.Open, System.IO.FileAccess.Read);
|
||||
byte[] buff = new byte[fs.Length + 1];
|
||||
if (fs.Length > 0)
|
||||
{
|
||||
fs.Read(buff, 0, (fs.Length.ToString().ToEntero() - 1));
|
||||
fs.Close();
|
||||
}
|
||||
return buff;
|
||||
}
|
||||
|
||||
return new byte[] { };
|
||||
}
|
||||
|
||||
|
||||
protected void RLBTipoEnvioTipo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
|
||||
@@ -18,8 +18,8 @@ Partial Class OI_RepMinutas
|
||||
End Sub
|
||||
|
||||
Private Sub CargaFiltros()
|
||||
txtFechaI.Text = New Date(NowADS().Year, NowADS().Month, 1).ToShortDateString
|
||||
txtFechaF.Text = NowADS().ToShortDateString
|
||||
TxtFechaI.Text = NowADS().ToShortDateString()
|
||||
TxtFechaF.Text = (NowADS().AddMonths(1)).ToShortDateString()
|
||||
End Sub
|
||||
Public Sub CargaDatosOIMinutas()
|
||||
Dim ObjProspectos As New ClsOIEventos
|
||||
|
||||
@@ -29,8 +29,8 @@ public partial class OI_RepReuniones : ClsPaginas
|
||||
|
||||
private void CargaFiltros()
|
||||
{
|
||||
TxtFechaI.Text = new DateTime(NowADS().Year, NowADS().Month, 1).ToShortDateString();
|
||||
TxtFechaF.Text = NowADS().ToShortDateString();
|
||||
TxtFechaI.Text = NowADS().ToShortDateString();
|
||||
TxtFechaF.Text = (NowADS().AddMonths(1)).ToShortDateString();
|
||||
TxtCFechaInicio.Text = TxtFechaI.Text;
|
||||
TxtCFechaFin.Text = TxtFechaF.Text;
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
CveTipoEvento = drow["CveTipoEvento"].ToString().ToEntero();
|
||||
|
||||
|
||||
if(CveTipoEvento == 3)
|
||||
if(CveTipoEvento == 3 && CveEventoPadre<=0)
|
||||
{
|
||||
DivAvance.Visible = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user