-- mejora
This commit is contained in:
@@ -219,8 +219,7 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
}
|
||||
protected void CargaDevolucionesProveedor(int CveProveedor)
|
||||
{
|
||||
ClsMovimientos ObjMov = new ClsMovimientos();
|
||||
ClsCompProveedores clsCompProveedores = new ClsCompProveedores();
|
||||
ClsMovimientos ObjMov = new ClsMovimientos();
|
||||
|
||||
if (ObjMov.GetEgresosSinComprobar("-1", "-1", CveProveedor, -1, -1, -1, -1, -1, -1, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
@@ -228,8 +227,7 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
GvDevoluciones.DataSource = ObjMov.DtResultados.FiltraParametros("CveIE > 0 AND Saldo > 0 AND CveConceptoContable in (10,48,338)", "", columnas);
|
||||
GvDevoluciones.DataBind();
|
||||
}
|
||||
ObjMov.Dispose();
|
||||
clsCompProveedores.Dispose();
|
||||
ObjMov.Dispose();
|
||||
UpDevoluciones.Update();
|
||||
}
|
||||
#endregion
|
||||
@@ -249,7 +247,7 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
case "3":
|
||||
if (ObjMov.GetEgresosSinComprobar("-1", "-1", -1, CvePersonal, -1, -1, -1, 1, -1, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
string[] columnas = new string[7] { "CveIE", "IEDevolucion", "Saldo", "Importe", "Pagado", "Folio", "FechaDocumento" };
|
||||
string[] columnas = new string[10] { "CveIE", "IEDevolucion", "Saldo", "Importe", "Pagado", "Folio", "FechaDocumento", "Abreviatura", "CveMoneda", "TipoCambio" };
|
||||
GvDevoluciones.DataSource = ObjMov.DtResultados.FiltraParametros("CveIE > 0 AND Saldo > 0 ", "", columnas);
|
||||
GvDevoluciones.DataBind();
|
||||
}
|
||||
@@ -257,7 +255,7 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
case "4":
|
||||
if (ObjMov.GetPrestamosPersonalXSaldar(CvePersonal, -1, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
string[] columnas = new string[7] { "CveIE", "IEDevolucion", "Saldo", "Importe", "Pagado", "Folio", "FechaDocumento" };
|
||||
string[] columnas = new string[10] { "CveIE", "IEDevolucion", "Saldo", "Importe", "Pagado", "Folio", "FechaDocumento", "Abreviatura", "CveMoneda", "TipoCambio" };
|
||||
GvDevoluciones.DataSource = ObjMov.DtResultados.FiltraParametros("CveIE > 0 AND Saldo > 0 ", "", columnas);
|
||||
GvDevoluciones.DataBind();
|
||||
}
|
||||
@@ -335,9 +333,6 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
}
|
||||
//terminan validaciones
|
||||
|
||||
|
||||
|
||||
|
||||
List<Archivo> filesgral = Anexo.getfiles().Archivos;
|
||||
string filemove = "";
|
||||
string Comprobante = "";
|
||||
@@ -347,8 +342,6 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
filemove = fileItem.filename;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ClsBancos ObjIE = new ClsBancos();
|
||||
ClsContabilidad ObjMov = new ClsContabilidad(ObjIE.IniciaTransacSQL());
|
||||
ClsCompras ObjComp = new ClsCompras(ObjIE.IniciaTransacSQL());
|
||||
@@ -622,9 +615,9 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
archivo = new System.IO.FileInfo(String.Format("{0}Formatos/ComprobanteEgreso.rdlc", UsuarioActual.Empresa.Ruta, DdlCuenta.SelectedValue.ToEntero()));
|
||||
}
|
||||
|
||||
if (IDPoliza > 0)
|
||||
if (CvePrePoliza > 0)
|
||||
{
|
||||
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
|
||||
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPrePolizaS.aspx?CvePrePoliza={0}"">Ver Póliza</a>", CvePrePoliza);
|
||||
}
|
||||
ObjIE.Commit();
|
||||
|
||||
@@ -633,7 +626,6 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
filemove.FilesMove(CveIE.ToString(), String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase: false);
|
||||
}
|
||||
|
||||
|
||||
if (!Msg.ToString().Equals(""))
|
||||
{
|
||||
string AccionJS = String.Format(@"document.location.href=""{0}"";", HttpContext.Current.Request.Url.PathAndQuery);
|
||||
@@ -661,20 +653,22 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
{
|
||||
ClsNominas onom = new ClsNominas();
|
||||
|
||||
onom.GetConceptos(UsuarioActual.CveEmpresa);
|
||||
DataTable dt = onom.DtResultados.FiltraParametros(" FormulaTotal = 'FNC.[MovimientosPermanentes]'");
|
||||
DdlConcepto.Items.Clear();
|
||||
|
||||
DdlConcepto.DataSource = dt.FiltraParametros("Tipo ='D'");
|
||||
|
||||
DataRow drow = dt.NewRow();
|
||||
drow["CveConcepto"] = "-1";
|
||||
drow["Concepto"] = "Seleccione";
|
||||
dt.Rows.InsertAt(drow, 0);
|
||||
DdlConcepto.DataSource = dt;
|
||||
DdlConcepto.SelectedValueExist("-1");
|
||||
DdlConcepto.DataBind();
|
||||
if (onom.GetConceptos(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
DataTable dt = onom.DtResultados.FiltraParametros(" FormulaTotal = 'FNC.[MovimientosPermanentes]'");
|
||||
DdlConcepto.Items.Clear();
|
||||
DdlConcepto.DataSource = dt.FiltraParametros("Tipo ='D'");
|
||||
|
||||
DataRow drow = dt.NewRow();
|
||||
drow["CveConcepto"] = "-1";
|
||||
drow["Concepto"] = "Seleccione";
|
||||
dt.Rows.InsertAt(drow, 0);
|
||||
DdlConcepto.DataSource = dt;
|
||||
DdlConcepto.SelectedValueExist("-1");
|
||||
|
||||
//DdlConcepto.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
}
|
||||
onom.Dispose();
|
||||
//DdlConcepto.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlConcepto.DataBind();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user