This commit is contained in:
@@ -164,9 +164,42 @@ public partial class OI_TableroDetalle : ClsPaginas
|
||||
|
||||
protected void BtnUpPosition_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool continuar = false;
|
||||
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||
{
|
||||
eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
||||
eveobj.IniciaTransacSQL();
|
||||
continuar =eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
||||
if (continuar)
|
||||
{
|
||||
List<string> orderlist = TxtCveOrdeList.Text.Split(',').ToList<string>();
|
||||
continuar = eveobj.OrdenaTareas(orderlist, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario);
|
||||
}
|
||||
|
||||
if (continuar)
|
||||
{
|
||||
eveobj.Commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
eveobj.RollBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void BtnOrderList_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<string> orderlist = TxtCveOrdeList.Text.Split(',').ToList<string>();
|
||||
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||
{
|
||||
eveobj.IniciaTransacSQL();
|
||||
if(eveobj.OrdenaListas(orderlist,UsuarioActual.CveEmpresa,UsuarioActual.CveUsuario))
|
||||
{
|
||||
eveobj.Commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
eveobj.RollBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user