private void BtnDelete_Click(object sender, RoutedEventArgs e)
 {
     classEdit.Edit("Update Lead set IdStatus='2' " +
                    $"Where IdLead='{classDG.SelectId()}'");
     classDG.LoadDB("Select * from dbo.ViewListLead " +
                    $"Where Login='******' " +
                    $"and NameStatus='Активный' " +
                    $"Order by DateTimeLeadCreated DESC ");
 }
Beispiel #2
0
 private void BtnDelete_Click(object sender, RoutedEventArgs e)
 {
     classEdit.Edit("Update LeadsAndCalls set Status='Удален' " +
                    $"Where IdLeadAndCalls='{classDG.SelectId()}'");
     classDG.LoadDB("Select * from dbo.ViewListCall " +
                    $"Where Login='******' " +
                    $"and NameStatus='Активный' and Status='Активен' " +
                    $"Order by LeadCallDateTime DESC ");
 }