Пример #1
0
 public QueryDataChartLogic(QueryEntityCollection queryEntityCollection)
 {
     database  = new DatabaseAccess();
     commonUI  = new CommonUIMethodsAndFunctions();
     chartData = new LineGraph();
     this.queryEntityCollection = queryEntityCollection;
     callLocation = Call_Location.NONE;
 }
 public PatientSnapshotLogic(Patient patient)
 {
     this.patient = patient;
     database     = new DatabaseAccess();
     chartData    = new LineGraph();
     chartData.cds.ShowPointAverageLabels    = true;
     chartData.cds.IncludeOnlyEligibleValues = false;
     commonUI = new CommonUIMethodsAndFunctions();
 }
 public QueryBuilderLogic(QueryEntityCollection queryEntityCollection, int editQueryIndex)
 {
     this.queryEntityCollection = queryEntityCollection;
     this.editQueryIndex        = editQueryIndex;
     queryCommands  = new CommandCenter();
     database       = new DatabaseAccess();
     commonUI       = new CommonUIMethodsAndFunctions();
     queries        = setQueries(queries);
     pendingQueries = new List <Query>();
     copiedQuery    = null;
 }
Пример #4
0
        public AddQueryToBuilderLogic(List <Query> queries, DataGridView dgvCurrentQuery, int selectedIndex, CommandCenter queryCommands)
        {
            this.queries         = queries;
            this.dgvCurrentQuery = dgvCurrentQuery;

            if (selectedIndex == -1)
            {
                query = new PatientQuery("", "", "");
            }
            else
            {
                query = queries[selectedIndex];
            }

            this.selectedIndex = selectedIndex;
            this.queryCommands = queryCommands;
            commonUI           = new CommonUIMethodsAndFunctions();
        }
 public QueryManagerLogic(QueryEntityCollection queryEntityCollection)
 {
     this.queryEntityCollection = queryEntityCollection;
     commonUI = new CommonUIMethodsAndFunctions();
 }