Example #1
0
 internal void eliminaSchedeBySoggiorno(int idsoggiorno)
 {
     var schta = new SchedaNotificaTableAdapter();
     schta.DeleteBySoggiorno(idsoggiorno);
 }
Example #2
0
 internal bool hasSchedine(int idcliente)
 {
     var schta = new SchedaNotificaTableAdapter();
     var schdt = schta.GetDataByCliente(idcliente);
     return (schdt.Count > 0);
 }
Example #3
0
        internal void inserisciSchedineSoggiorno(int idsoggiorno, List<SchedaNotifica> schedine)
        {

            var schta = new SchedaNotificaTableAdapter();
            schta.DeleteBySoggiorno(idsoggiorno);
            foreach (var sch in schedine)
                schta.Insert(sch.Numero, (short)sch.Anno, idsoggiorno, sch.Cliente.Id);
        }