Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. private void RecibosPercepciones()
  2. {
  3. CultureInfo ci2 = new CultureInfo("es-ES");
  4. String dia = ci2.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek).ToString();
  5. if (dia == "lunes")
  6. {
  7. IEnumerable<Registro_Percepciones2> RP = new Registro_Percepciones2().GetAll();
  8.  
  9. foreach(var item in RP)
  10. {
  11. if (item.Pagos_Realizados != item.No_Pagos)
  12. {
  13. new Detalle_RPercerciones()
  14. {
  15. Folio = folp,
  16. id_RPercepciones = item.idRegistroP,
  17. Monto = item.Monto / item.No_Pagos
  18. }.Insert();
  19. }
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement