Beispiel #1
0
 private void LoadDefaults()
 {
     myC.lvClassification(lvRefBy, "ReferredBy", false);
     myC.lvClassification(lvRefTo, "ReferredTo", false);
     myC.lvClassification(lvART, "Category", false);
     myC.lvClassification(lvAppointment, "Appointments", true);
 }
Beispiel #2
0
        private void LoadDefaults(int reportType)
        {
            myC = new ClassificationInfo();
            myC.lvClassification(lvRefBy, "ReferredBy", false);
            myC.lvClassification(lvRefTo, "ReferredTo", false);
            myC.lvClassification(lvART, "Category", false);
            myC.lvClassification(lvState, "Outcome", false);
            switch (reportType)
            {
            case 3:
                myC.lvClassification(lvAppointment, "Appointments", "ID='DEFAULTER'", true);
                dtpStart.Checked = false;
                dtpStart.Enabled = false;
                try
                {
                    foreach (ListViewItem l in lvAppointment.Items)
                    {
                        l.Checked = true;
                    }
                }
                catch { }
                lvAppointment.Enabled = false;
                dtpEnd.Checked        = true;
                lvRefBy.Enabled       = false;
                lvRefTo.Enabled       = false;
                break;

            default:
                myC.lvClassification(lvAppointment, "Appointments", "ID<>'DEFAULTER'", true);
                //myC.lvClassification(lvAppointment, "Appointments", true);
                break;
            }
        }